← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #685070]: OCR multithreading using java

 

Question #685070 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/685070

    Status: Open => Answered

RaiMan proposed the following answer:
--- Is it possible to use OCR feature for different region objects in
different threads?

If you use threading with SikuliX, you have to coordinate the access to
screen, mouse and keyboard, since this is the restriction: uncoordinated
access to these resources from different threads (or even scripts) will
most probably lead to a mess, especially when the threads act on
different windows or even applications (visibility/focus).

Therefor the basic rule is: only one script at a time on the same
machine.

Exceptions to the rule need special coordination efforts as mentioned
above.

about the error message:
 It might be needed, to use an extra TextRecognizer instance (TextRecognizer.start()) in each thread.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.