Hi, I have a project similar to this.

The script will compare images by changing the length of 1 photo, and then compare with 1 original photo.
The length of the image will increase by 1 pixel, until the overlap is less than 90%, it is successful.
But there is a problem, when processing this loop, if the loop is over 100, a temporary "freeze" occurs for a short time of the script, and then resumes running.
If executing in multithreading, if the freeze times overlap, it may cause the script to freeze and no longer work, forcing the script to be shut down, and restarted.
So is there a way to make this image comparison operation not cause "freezes" in processing?
Thanks very much.
