jetsonhacks / buildOpenCVTX2

Build and install OpenCV for the NVIDIA Jetson TX2
MIT License
276 stars 152 forks source link

camera open failed #4

Closed ChristophTobler closed 6 years ago

ChristophTobler commented 6 years ago

First of all: Thanks for having all this stuff open-source:+1:

I have a TX2 with the latest JetPack 3.1 (L4T 28.1) and have uninstalled the preinstalled OpenCV version (sudo apt-get purge libopencv4tegra*). After that I installed OpenCV again using your script. That all worked! The gstreamer_view.cpp works as well.

But if I run python cannyDetection.py I get

camera open failed

Any ideas?

jetsonhacks commented 6 years ago

Usually I run it with: $ ./cannyDetection.py but that shouldn't make any difference. Did you try it with sudo?

ChristophTobler commented 6 years ago

Works with sudo ./cannyDetection.py or sudo python cannyDetection.py. Thanks!