Open raihan29s opened 3 years ago
You need to ensure you use the right video camera. Run ls /dev/video* on your terminal to see the id of your video camera.
And then update the code to use your camera id
# for usb camera /dev/video2, the device_id will be 2
Running the command /dev/video*
shows, I have a USB camera connected. Running the nvgstcapture-1.0 --camsrc=0 --cap-dev-node=0
command open the camera. but when I run the code from the repository it shows an error.
Hmmm. The USB camera interface is through v4l2src. Also, I suspect the framerate. Some cameras only support limited framerate. Try running this on your terminal -
gst-launch-1.0 -v v4l2src device="/dev/video0" ! video/x-raw,width=1280,height=1024,format=GRAY16_BE,framerate=30/1 ! videoconvert ! xvimagesink
Also this one -
gst-launch-1.0 -v v4l2src device="/dev/video0" ! video/x-raw, width=1280, height=1024, format=(string)YUY2, framerate=(fraction)30/1 ! videoconvert ! video/x-raw, format=RGB ! xvimagesink
Thanks for the code you shared.I also encountered a problem when developing with a CSI camera (IMX219) recently, and the code you shared did not work correctly, and finally I found that the problem was that some versions of OPENCV did not support GSTREAMER, so I reinstalled OPENCV in JETSON NANO.If successful.I will reply again
I have the same problem. Have you solve this?
Thanks for the code you shared.I also encountered a problem when developing with a CSI camera (IMX219) recently, and the code you shared did not work correctly, and finally I found that the problem was that some versions of OPENCV did not support GSTREAMER, so I reinstalled OPENCV in JETSON NANO.If successful.I will reply again
have you resolved this issue? its 2024 and its still haunting
Bug Description I have been using your nanocamera repository for interfacing my USB camera(Arducam IMX219) with Jetson nano. I checked if my OpenCV is correctly installed. It is correctly installed.
To Reproduce Steps to reproduce the behavior:
Expected behavior
Screenshots
Desktop (please complete the following information):