Error on Raspberry Pi
Closed this issue · 0 comments
chalkytoast commented
Hello,
When starting opencv.py or pyplot.py this error appears:
[ WARN:0] global ../modules/videoio/src/cap_gstreamer.cpp (961) open OpenCV | GStreamer warning: Cannot query video position: status=0, value=-1, duration=-1
[ WARN:0] global ../modules/videoio/src/cap_gstreamer.cpp (961) open OpenCV | GStreamer warning: Cannot query video position: status=0, value=-1, duration=-1
[ WARN:0] global ../modules/videoio/src/cap_gstreamer.cpp (1214) setProperty OpenCV | GStreamer warning: GStreamer: unhandled property
[ WARN:0] global ../modules/videoio/src/cap_gstreamer.cpp (1214) setProperty OpenCV | GStreamer warning: GStreamer: unhandled property
Traceback (most recent call last):
File "/home/pi/ht301_hacklib/./opencv.py", line 15, in <module>
ret, frame = cap.read()
File "/home/pi/ht301_hacklib/ht301_hacklib.py", line 291, in read
ret, frame_raw, frame, meta = self.read_()
File "/home/pi/ht301_hacklib/ht301_hacklib.py", line 281, in read_
frame = frame.view(dtype=dt)
ValueError: When changing to a larger dtype, its size must be a divisor of the total size in bytes of the last axis of the array.
Using system python3-opencv package.
raspberry os (debian) version: 11.2
python3-opencv: 4.5.1+dfsg-5:
Please let me know if I can provide further infos.