Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NanoCamera issue with USB IMX219 #9

Open
raihan29s opened this issue Apr 19, 2021 · 6 comments
Open

NanoCamera issue with USB IMX219 #9

raihan29s opened this issue Apr 19, 2021 · 6 comments

Comments

@raihan29s
Copy link

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:

  1. Run and install setup.py
  2. go inside examples and run USB_camera .py. It shows an error.

Expected behavior

  1. Load the USB camera with the Jetson Nano
  2. It will read the camera image
  3. Display the camera frame

Screenshots
Screenshot from 2021-04-18 18-50-20 (1)

Desktop (please complete the following information):

  • OS: Jetson Nano Developer Kit-jp451
@thehapyone
Copy link
Owner

thehapyone commented Apr 20, 2021

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

@raihan29s
Copy link
Author

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.

@thehapyone
Copy link
Owner

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

@jiangxiaogg
Copy link

jiangxiaogg commented Jun 9, 2022

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

@bladetin
Copy link

I have the same problem. Have you solve this?

@dheerajluffy
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants