I can’t seem to get OpenCV VideoCapture to capture images on the Jetson with python or C++.
They all work fine on MacOS X, Windows7.
Webcams tried: Logitech, Philips 900, Microsoft Lifestyle, GoPro Hero4
Logitech, Philips 900 work with “cheese”.
This is the python code:
import cv2
cap = cv2.VideoCapture(0)
Gives me these errors:
HIGHGUI ERROR: V4L/V4L2: VIDIOC_S_CROP
What does that mean?
I’m using the latest jetpack from a couple months ago. Anybody know how to solve this? BTW, I’m a struggling newbie, new to linux and Jetson. I trying to help a robot team, I’m wiped out, running on fumes. Help please…some direction here would be helpful.
Ideas I have:
Somebody said in 2014 R21 had problems like this. Should I try going back to R19? If yes, is that easy? Does ANYBODY have R21 working with Webcams? Can I just buy a known good webcam off amazon?
Cheese works. Should I download the source and investigate?
Somebody said use V4L to capture video, sounds good, use a LD_PRELOAD command to force a link or something, but I can’t seem to get the V4l, is apt-get install libv4l-0 supposed to work?
Hi ComputersNCars,
Thanks for reporting the issue, we are currently investigating the case and we’ll let you know when we have an update.
In the meantime, you can try using the TK1 camera module through gstreamer and/or the nvgstcapture-1.0 sample.
I am having the same issue. Installed NVIDIA 6.5 and OpenCV4Tegra 24.12.3 on my Jetson TK1 under L4T 21.3.
I tested the sample program “./edge” from openCV and it is working correctly.
When I tested my Logitech 920 webcam with the sample program “./laplace” from openCV, I got the same error:
This program demonstrates Laplace point/edge detection using OpenCV function Laplacian()
It captures from the camera of your choice: 0, 1, … default 0
Call:
./laplace [camera #, default 0]