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

unable to open camera [BUG] #55

Open
Daryatnt opened this issue Apr 15, 2022 · 3 comments
Open

unable to open camera [BUG] #55

Daryatnt opened this issue Apr 15, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@Daryatnt
Copy link

I'm facing this error while I'm trying to compile the code :

(python3:287093): GStreamer-WARNING **: 19:10:20.532: Failed to load plugin '/usr/lib/aarch64-linux-gnu/gstreamer-1.0/libgstnvarguscamerasrc.so': /usr/lib/aarch64-linux-gnu/libGLdispatch.so.0: cannot allocate memory in static TLS block

(python3:287093): GStreamer-WARNING **: 19:10:20.534: Failed to load plugin '/usr/lib/aarch64-linux-gnu/gstreamer-1.0/libgstnvvidconv.so': /usr/lib/aarch64-linux-gnu/libGLdispatch.so.0: cannot allocate memory in static TLS block
[ WARN:0] global /home/jetson/opencv/modules/videoio/src/cap_gstreamer.cpp (734) open OpenCV | GStreamer warning: Error opening bin: no element "nvarguscamerasrc"
[ WARN:0] global /home/jetson/opencv/modules/videoio/src/cap_gstreamer.cpp (501) isPipelinePlaying OpenCV | GStreamer warning: GStreamer: pipeline have not been created
[ERROR:0] global /home/jetson/opencv/modules/videoio/src/cap.cpp (142) open VIDEOIO(CV_IMAGES): raised OpenCV exception:

OpenCV(4.5.1) /home/jetson/opencv/modules/videoio/src/cap_images.cpp:253: error: (-5:Bad argument) CAP_IMAGES: can't find starting number (in the name of file): nvarguscamerasrc !  video/x-raw(memory:NVMM), width=1640, height=1232, format=NV12, framerate=21/1 ! nvvidconv flip-method=0 ! video/x-raw, width=960, height=720, format=BGRx !videoconvert ! video/x-raw, format=BGR ! appsink in function 'icvExtractPattern'

What version of L4T/JetPack
4.6

What version of OpenCV
4.5.1

Python Version
3.8

@Daryatnt Daryatnt added the bug Something isn't working label Apr 15, 2022
@YavuzKacar
Copy link

I am having the same problem, any progress about the solution? :)

@YavuzKacar
Copy link

Uninstalling opencv-python and installing it with the following command fixed my problem:
pip3 install git+https://github.com/opencv/opencv-python

@dleporis
Copy link

dleporis commented Nov 28, 2022

Try an OpenCV version specified in the README.md release notes. Keep in mind 4.4.1 JetsonHacksNano wrote was a typo. But 3.3.1 and 4.1.1 worked for me.

Try running: https://gist.github.com/luke-han/55047815e0dc2c446f5e184d9d0201cc for OpenCV 3.3.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants