Tuesday, May 20, 2014

Webcam capture with OpenCV and Tkinter: multithreading

Python, Tkinter, OpenCV, alright! lets check multithreading:

On multithreading with Python, recommended lecture:
http://www.python-course.eu/threads.php
Threading with queues:
http://www.nryoung.org/blog/2013/2/28/python-threading/
Discussion:
http://stackoverflow.com/questions/2846653/python-multithreading-for-dummies

Starting point for multithreading with Tkinter:
http://stackoverflow.com/questions/459083/how-do-you-run-your-own-code-alongside-tkinters-event-loop

Maybe threading is not the answer, GIL:
http://www.jeffknupp.com/blog/2012/03/31/pythons-hardest-problem/
"in any Python program, no matter how many threads and how many processors are present, only one thread is being executed at any time."
So, multiprocessing is the way to go.

No comments:

Post a Comment