Closed dakilaledesma closed 5 years ago
Hey thanks! I was wondering why that thread wasn't running... does implementing the temporary fix(es) result in a working program?
Yep, doing both changes results in a working save thread during my testing yesterday.
Alright I am going to implement your temporary fixes and do a pull request for the threading-dev branch @CapPow. I was going to ask another question in a separate issue, but it seems relevant here since the white_balance_image function seems to be the root of the issue. Why is the white_balance_image function not being run in separate thread?
Issues:
white_balance_image(im, r, g, b)
will fail in the following lines due toim
beingNoneType
This is because the image being passed to
white_balance_image()
is reliant onself.im
which is never set (will always beNone
).Temporary fix: Set
self.im = im
arbitrarily in postProcessing.py line 435.save_output_images()
will never save an image due toobj
always beingFalse
Temporary fix: Paste into line 160 in folderMonitor.py:
cv2.imwrite(f"your_filename_here.jpg", cv2.cvtColor(im, cv2.COLOR_RGB2BGR))