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

camera works on jupyter notebook, but not from terminal as file.py #19

Open
carlosqro opened this issue Apr 13, 2020 · 1 comment
Open

Comments

@carlosqro
Copy link

greetings

if I work with jupyter notebook I can use the camera, but if I try to run it from terminal as file.py I get the error:

[ WARN:0] global /home/nvidia/host/build_opencv/nv_opencv/modules/videoio/src/cap_gstreamer.cpp (933) open OpenCV | GStreamer warning: Cannot query video position: status=0, value=-1, duration=-1

right after: camera = USBCamera( capture_device=0 )

I tried:

gst-launch-1.0 v4l2src device=/dev/video0 ! videoconvert ! xvimagesink

and works OK

I use nanocamera example and get the same error:

[ WARN:0] global /home/nvidia/host/build_opencv/nv_opencv/modules/videoio/src/cap_gstreamer.cpp (933) open OpenCV | GStreamer warning: Cannot query video position: status=0, value=-1, duration=-1

but it open a video stream anyway and works OK

I am working with a logitech webcam 920

@thehapyone
Copy link

Were you able to fix it? Did the NanoCamera work for you?

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

2 participants