Multithreading video processing in Python

andyholemb report abuse

Hi! I am new to multithreading in Python, but I guess this can help me solve my problem. I have a list of coordinates that are retrieved from video frames. I have to emulate a mouse click on these coordinates. Maybe, emulation click with pyautogui will help me solve the problem? Wouldn't it be too slow? If it would, how do I should use multithreading in order to solve this task? Thanks.

Answers

MonlyDwain report abuse

Hello! Which system are you working on? Does your CPU support multithreading?

andyholemb report abuse

Yes, it supports multithreading.

MonlyDwain report abuse

So, you can use CPU or GPU for threading. I suggest you to read documentation of multithreading. You can find many useful things and examples. https://docs.python.org/2/library/multiprocessing.html#using-a-pool-of-workers

Comments
aqui_c report abuse
This link is for Multiprocessing (instead of multithreading) and for a soon to be deprecated version of Python. You cans see more here: https://stackoverflow.com/questions/3044580/multiprocessing-vs-threading-python
Add Answer

Need support?

Just drop us an email to ... Show more