NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Logitech HD Pro Webcam C920 USB webcam resolution
El 1/3/25 a las 14:59, Michael van Elst escribió:
ea1abz%gmail.com@localhost (Ramiro Aceves) writes:
Required baseline features:
ID=100 (NEON) - NOT AVAILABLE
ID= 9 (FP16) - NOT AVAILABLE
Both features are suppored by the PI4 CPU. But there is no
generic way to determine that at runtime. That's why you
see the "NOT AVAILABLE" here.
OpenCV lets you skip the check by setting the environment
variable OPENCV_SKIP_CPU_BASELINE_CHECK.
Yes!, that variable makes opencv to skip the check:
netbsd-raspa4$ export OPENCV_SKIP_CPU_BASELINE_CHECK=TRUE
netbsd-raspa4$ python3.12
Python 3.12.8 (main, Jan 10 2025, 00:27:43) [GCC 10.5.0] on netbsd10
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2
>>>
Good, it does not error now when importing the opencv python module.
But this little program to test the camera does not work:
netbsd-raspa4$ cat opencv.py
import cv2
# Open the default camera (0)
cap = cv2.VideoCapture(0)
if not cap.isOpened():
print("Error: Could not open camera.")
else:
ret, frame = cap.read()
if ret:
cv2.imwrite("capture.jpg", frame)
print("Image saved as capture.jpg")
else:
print("Error: Failed to capture image.")
cap.release()
netbsd-raspa4$ python3.12 opencv.py
Error: Could not open camera.
netbsd-raspa4$
Regards.
Home |
Main Index |
Thread Index |
Old Index