USB Camera
Test USB Camera
-
Plug in the USB camera and check if the device is detected by running the following command:
v4l2-ctl --list-deviceslinaro@linaro-alip:~$ v4l2-ctl --list-devicesrkisp-statistics (platform: rkisp):/dev/video7/dev/video8/dev/video16/dev/video17rkisp_mainpath (platform:rkisp-vir0):/dev/video0/dev/video1/dev/video2/dev/video3/dev/video4/dev/video5/dev/video6rkisp_mainpath (platform:rkisp-vir1):/dev/video9/dev/video10/dev/video11/dev/video12/dev/video13/dev/video14/dev/video15USB 2.0 Camera: USB Camera (usb-xhci-hcd.5.auto-1.2):/dev/video18/dev/video19- Here,
/dev/video18refers to the camera driver.
- Here,
-
Install necessary libraries by running the following command:
sudo apt install subversion -y -
Download mjpeg-streamer to Core3576:
sudo git clone https://github.com/jacksonliam/mjpg-streamer.gitcd mjpg-streamer/mjpg-streamer-experimentalsudo make allsudo make install -
Open
start.sh:sudo nano start.sh将./mjpg_streamer -i "./input_uvc.so " -o "./output_http.so -w ./www"Replace:
./mjpg_streamer -i "./input_uvc.so -d /dev/video18" -o "./output_http.so -w ./www" -
Run
start.sh:sudo chmod 777 start.shsudo ./start.sh -
Open Firefox and enter the following URL:
http://<Core3566 IP Address>:8080. For example, if the IP address of Core3566 is 192.168.15.103, enter:http://192.168.15.103:8080http://192.168.15.103:8080