Skip to content

Latest commit

 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

WebCam testing Rasbian UbuntuServer and ROS

March 24


Test camera USB Webcam

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

Taking Photos (Raspberry Pi Camera Modules)

libcamera-jpeg -o image.jpg
raspistill -o testshot.jpg

fswebcam (USB cameras)

sudo apt install fswebcam -y

testing:

fswebcam image.jpg
fswebcam --device /dev/video1 image.jpg

ffmpeg

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 image usar WinSCP en windows / SCP commands on linux


Recording Video

To capture a 10 second video with your Raspberry Pi camera module

libcamera-vid -t 10000 -o video.h264

ffmpeg

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

Testing from GUI Ubuntu

Application cheese

driver web cam

sudo apt-get update
sudo apt-get install webcam

Testing from Browser

https://es.webcamtests.com/


Install usb_cam ROS Package

https://github.com/carjavi/ROS-web-video-server

uso de la camara en Noetic ROS

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


Video Streaming Using Python OpenCV/ UDP protocol/ Socket Programming

https://github.com/carjavi/video-streaming-python-openCV-UDP-socket


Webcam on ROS Node

https://github.com/carjavi/raspicam_node


Streaming WebCam Pi

https://github.com/carjavi/raspberry-pi-code/tree/main/streaming-webcam-pi



Copyright © 2022 carjavi.
www.instintodigital.net
carjavi@hotmail.com

www.instintodigital.net

About

webcam testing Rasbian UbuntuServer and ROS

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors