-
Where did you get the camera module(s)?
online -
Model number of the product(s)?
arducam_64mp [9248x6944] (/base/soc/i2c0mux/i2c@1/arducam_64mp@1a) -
What hardware/platform were you working on?
Linux drone 5.15.32-v8+ #1538 SMP PREEMPT Thu Mar 31 19:40:39 BST 2022 aarch64 GNU/Linux -
Instructions you have followed. (link/manual/etc.)
everything -
Problems you were having?
See below, basically can’t open camera for opencv2 -
The dmesg log from your hardware?
-
Troubleshooting attempts you’ve made?
-
What help do you need?
Trying to rid myself of this error:
import numpy as np
import cv2
cap = cv2.VideoCapture(0)
ret, frame = cap.read()
print(frame)
cv2.imshow(‘frame’,frame)
cv2.waitKey(0)
cap.release()
cv2.destroyAllWindows()
ERRORS:
[ WARN:0] global …/modules/videoio/src/cap_gstreamer.cpp (1824) handleMessage OpenCV | GStreamer warning: Embedded video playback halted; module v4l2src0 reported: Failed to allocate required memory.
[ WARN:0] global …/modules/videoio/src/cap_gstreamer.cpp (914) open OpenCV | GStreamer warning: unable to start pipeline
[ WARN:0] global …/modules/videoio/src/cap_gstreamer.cpp (501) isPipelinePlaying OpenCV | GStreamer warning: GStreamer: pipeline have not been created
None
Traceback (most recent call last):
File “/home/pi/CNN/test.py”, line 7, in
cv2.imshow(‘frame’,frame)
cv2.error: OpenCV(4.5.1) …/modules/highgui/src/window.cpp:376: error: (-215:Assertion failed) size.width>0 && size.height>0 in function 'imshow’
libcamera-hello --list-cameras
Open i2c bus error: No such file or directory
Available cameras
0 : arducam_64mp [9248x6944] (/base/soc/i2c0mux/i2c@1/arducam_64mp@1a)
Modes: ‘SRGGB10_CSI2P’ : 1280x720 [120.03 fps - (2064, 2032)/5120x2880 crop]
1920x1080 [60.04 fps - (784, 1312)/7680x4320 crop]
2312x1736 [30.00 fps - (0, 0)/9248x6944 crop]
3840x2160 [20.00 fps - (784, 1312)/7680x4320 crop]
4624x3472 [10.00 fps - (0, 0)/9248x6944 crop]
9152x6944 [2.70 fps - (0, 0)/9152x6944 crop]