![]() |
cv2.resize(...) shutting down processes? - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: cv2.resize(...) shutting down processes? (/thread-23238.html) |
cv2.resize(...) shutting down processes? - DreamingInsanity - Dec-17-2019 I have multiple processes running, and in each, I am trying to resize and image using cv2.resize() However, when I try, it just seems like the processes end there and then. There are no errors - not a single bit of output, it just ends. Say I have this: #do some image processing - image is now stored in 'img': resized = cv2.resize(img, (10,10)) print(resize)The output will be some resized numpy array which is correct. However, if I now do this: #create some processes - each process runs the piece of code below: #do some image processing - image is now stored in 'img': resized = cv2.resize(img, (10,10)) print(resize)There is NO output. It just ends the process at the resize line. I have tried debugging it with pdb, and I get no info on it - again it just ends. I also added this at the beginning of the script: import logging mpl = multiprocessing.log_to_stderr() mpl.setLevel(logging.DEBUG)And then ran it with pdb - this is what I got: Now, 'exitcode 1' means there was some kind of error - i'm not sure if this is what is causing the problem, or if it is just because it was quit through this line:if self.quitting: raise BdbQuitEither way, what is going on here? Why is cv2.resize not working? RE: cv2.resize(...) shutting down processes? - DreamingInsanity - Dec-18-2019 Anyone got an idea? I already have a workaround in my code but I'm still curious as to know what's going on. |