Webcam (UVC Camera) is not detected
AnsweredI'm running Nx Witness in an ARM64 environment, but Webcam (UVC Camera) is not detected. I'm using a board other than Jetson nano.
I would be grateful if you could give me any advice.
The camera I'm using is a Logitech C270. This camera is detected in Jetson nano and Raspberry Pi environments.
Below is the log of my board (ARM64 environment).
$ lsusb
Bus 001 Device 006: ID 046d:0825 Logitech, Inc. Webcam C270
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
When the camera is connected, "/dev/video0" will be generated.
$ ls -l /dev/video*
crw-rw---- 1 root video 81, 0 Nov 30 08:14 /dev/video0
crw-rw---- 1 root video 81, 1 Nov 30 08:14 /dev/video1
Camera images can be acquired with apps other than Nx Witness. Below is a log of running fswebcam.
$ sudo fswebcam -d /dev/video0 -r 1280x720 test.jpg
--- Opening /dev/video0...
Trying source module v4l2...
/dev/video0 opened.
No input was specified, using the first.
--- Capturing frame...
Captured frame in 0.00 seconds.
--- Processing captured image...
Writing JPEG image to 'test.jpg'.
-
Hi Daiki Kato,
Please share the below information with us:
1. What Nx version do you install on Jetson?
2. Follow the instruction here to collect the server log with the DEBUG level. After changing the log level, please wait a while for the next auto-discovery process completed.
Thank you for your cooperation.
0 -
Hi Wendy Chuang,
Thank you for your reply.
1.I'm using an ARM64 board other than jetson. The version of Nx Witness is 4.1.0.31398.
2.I didn't see any logs that looked like I was looking for a USB camera. So, I checked the log when installing Nx Witness. Apparently, loading libusb_camera_plugin has failed.
2020-12-02 01:39:54.728 9864 INFO PluginManager(0x7f5c05e2a0): Considering to load Server plugin [/opt/networkoptix/mediaserver/bin/plugins/libusb_camera_plugin.so]
2020-12-02 01:39:54.735 9864 ERROR PluginManager(0x7f5c05e2a0): Failed loading Server Plugin [/opt/networkoptix/mediaserver/bin/plugins/libusb_camera_plugin.so] (): [cannotLoadLibrary]: Cannot load library /opt/networkoptix/mediaserver/bin/plugins/libusb_camera_plugin.so: (libasound.so.2: cannot open shared object file: No such file or directory)Do you know why libusb_camera_plugin fails to load? Is it lacking in a kernel option of Linux?
0 -
Hi Daiki Kato,
Can you clarify which ARM board and which operating system you are using?
Did you verify this ARM board with the VMS Benchmark tool?0 -
Hi Wendy Chuang,
Thank you for your advice! The USB camera is now recognized below!
$ sudo apt install libasound2
$ sudo systemctl restart networkoptix-mediaserverI'm using a board under development.
- Arm dual-core CPU (1GHz), large-capacity RAM (2GB) and eMMC (32GB) installed
- Ubuntu Linux OS.
I didn't know about VMS benchmarking tools. Is it published for Nx Witness?0 -
Hi Daiki Kato,
The VMS Benchmark tool is an application to test unsupported ARM based SBC and which is distributed through our sales team. It isn't publicly available since it requires some basic understanding of Linux and the command line.
0 -
Hi Wendy Chuang and Norman,
The problem has been resolved. Thank you very much.
0
Please sign in to leave a comment.
Comments
6 comments