Open jojje42 opened 1 year ago
I can confirm this behaviour. Could you find a solution yet?
There is a multithreading example available, but it doesn't do much due to GIL. Multiprocessing would be the real example required.
I did notice that the issue does not occur once the frame is resized using cv2.resize. I did not have a closer look why though. But for a quick&dirty test, resizing the image with the original resolution does work.
I didn't find a solution. Very interesting with the "resize" solution, thanks! Haven't had time to try it but will comment here when tested.
Hi, Trying to change from Python multithreading to multiprocessing. I can queue the frames using threads queue (queue.Queue) but I'll get pickling error during usage of multiprocessor.Queue. I think the reason is that thread queues are skipping serialization in some cases while multiprocessor queues always serialize.
I've tried to make a copy of nd array, e.g. cv_img2 = cv_img.copy(), with the same error.