You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to get the stream from my pi camera using pikrellcam and read it via cv2 python module, but it seems that the stream can't be handled correctly because the cvtColor is complaining:
Traceback (most recent call last):
File "...\Python\Python38\lib\multiprocessing\process.py", line 315, in _bootstrap
self.run()
File "...\Python\Python38\lib\multiprocessing\process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "...\Python\Python38\lib\multiprocessing\pool.py", line 109, in worker
initializer(*initargs)
File "...\fotisK69\dev\object_detector_app-master\object_detection_app.py", line 85, in worker
frame_rgb = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB)
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\color.cpp:182: error: (-215:Assertion failed) !_src.empty() in function 'cv::cvtColor'
The stream it self works on a browser, so I do get the camera stream to my laptop!
My setup is using 4 raspberry pi's zero w + pi camera (on each pi) and since the zero is not very strong in object detection due lack of cpu/gpu resources to do this on a laptop for 4 different camera streams.
The below code snippet is reading the stream overlaying some text and writing to a new file and show it in a window:
I know that i can overlay text with pikrellcam too but the will not be related to each pi zero but should add other information. This is just an example.
I guess I have to configure pikrellcam do get a different stream quality, but I am just starting using pikrellcam.
I was trying a different module like motion with the same pi camera and the stream what that solution was working with cv2.
Can you help please.
The text was updated successfully, but these errors were encountered:
Hi,
I am trying to get the stream from my pi camera using pikrellcam and read it via cv2 python module, but it seems that the stream can't be handled correctly because the cvtColor is complaining:
The stream it self works on a browser, so I do get the camera stream to my laptop!
My setup is using 4 raspberry pi's zero w + pi camera (on each pi) and since the zero is not very strong in object detection due lack of cpu/gpu resources to do this on a laptop for 4 different camera streams.
The below code snippet is reading the stream overlaying some text and writing to a new file and show it in a window:
I know that i can overlay text with pikrellcam too but the will not be related to each pi zero but should add other information. This is just an example.
I guess I have to configure pikrellcam do get a different stream quality, but I am just starting using pikrellcam.
I was trying a different module like motion with the same pi camera and the stream what that solution was working with cv2.
Can you help please.
The text was updated successfully, but these errors were encountered: