sudo apt-get-update && sudo apt full-upgrade -y
Check info webcam USB:
ls /dev/video*
lsusb
RPI About the Camera Modules info: https://www.raspberrypi.com/documentation/accessories/camera.html#libcamera-and-libcamera-apps
libcamera-jpeg -o image.jpg
raspistill -o testshot.jpg
sudo apt install fswebcam -y
testing:
fswebcam image.jpg
fswebcam --device /dev/video1 image.jpg
sudo apt install ffmpeg -y
ffmpeg -f v4l2 -video_size 1280x720 -i /dev/video0 -frames 1 out.jpg
📝 Note: You can set the device to use for recordings with the fswebcam software with the --device flag. For example, to take an image with the second connected USB webcam using fswebcam:
📝 Note:
Para revisar imageusar WinSCP en windows / SCP commands on linux
To capture a 10 second video with your Raspberry Pi camera module
libcamera-vid -t 10000 -o video.h264
sudo apt install ffmpeg -y
ffmpeg -f video4linux2 -framerate 60 -video_size 1920x1080 -input_format mjpeg -i /dev/video0 -f alsa -i hw:1 output.mp4
Application cheese
sudo apt-get update
sudo apt-get install webcam
https://github.com/carjavi/ROS-web-video-server
ls /dev/video*
Conociendo la ruta del nodo del dispositivo de nuestra cámara (/dev/video2), ahora verificaremos los atributos USB de la cámara usando el comando:
libuvc_camera
usaremos el paquete libuvc_camera de ros.
sudo apt-get install ros-noetic-libuvc-camera
Después de eso, estamos listos para crear el paquete ROS
https://github.com/carjavi/video-streaming-python-openCV-UDP-socket
https://github.com/carjavi/raspicam_node
https://github.com/carjavi/raspberry-pi-code/tree/main/streaming-webcam-pi
Copyright © 2022 carjavi.
www.instintodigital.net
carjavi@hotmail.com

