Apr-15-2021, 07:18 PM
You will only get a return of -1 when it first travels through the function and the following evaluates to true
Directly calling the GUI from inside another thread will cause problems.
Depending on how fast it travels through the function and starts another thread looping back on itself, it might be overwhelming the GUI with changes.
if(not cap.isOpened() ): return -1otherwise, it travels right through the function and will return None.
Directly calling the GUI from inside another thread will cause problems.
Depending on how fast it travels through the function and starts another thread looping back on itself, it might be overwhelming the GUI with changes.