Answer the question
In order to leave comments, you need to log in
Is it possible to start processing a directory with images in the "background"?
There is a certain script that in a cycle (permanently) takes certain screenshots and adds them to a certain directory.
conditionally,
if __name__ == '__main__':
while running:
for user_coordinates in users_coordinates:
do_user_shop_screen(position)
Answer the question
In order to leave comments, you need to log in
multiprocessing. But keep in mind that this will only help on a multi-core machine, and then only conditionally. You need to measure how often you take screenshots, and how long it takes to process them. If the processing takes 2-3 times longer than the arrival of new screenshots, then you can get out. If not, then you need to optimize processing.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question