I’ve recently updated to 24.1 64bit because a project I am working on needs to use the onboard camera. I successfully flashed the entire package with JetPack. However, OpenCV segfaults every time when I try to use the camera. I’m using Nvidia’s OpenCV4tegra libraries. This simple program does not run:
python -c "import numpy as np; import cv2; cap = cv2.VideoCapture(0); ret,frame = cap.read()"
The segfault occurs when the very last line runs. What am I doing wrong here? I am extremely disappointed in the fact that the camera does not work. This issue has been dogging me all weekend.
On an unrelated note, my system occasionally hard locks now and firefox no longer works.
Hello nbech, the latter two issues may be related to a memory leak that we are working on, but the issue with the onboard camera has a workaround that involves installing OpenCV 3.1.0.
Sorry for the delayed response, I’ve had to put this project on hold.
I flashed my Jetson with the latest version of JetPack. I then compiled and installed OpenCV 3.1.0 from source. However, the simple program from above still does not work. cap.read() returns False and a NoneType object rather than a frame. I tried just running