|
Post by Nancy on Jun 21, 2023 10:15:46 GMT
hello,
When running a simple example to test OCR, I get the following error:
"An unexpected error has occurred Exception has been thrown by the target of an invocation."
Any ideas what the problem is? I've enabled OCR and downloaded the plugin.
thanks for your help
|
|
|
Post by Steve on Jun 22, 2023 5:25:29 GMT
Hi Nancy,
Can you pass on the command you were running please.
|
|
|
Post by Nancy on Jun 22, 2023 9:08:27 GMT
hi Steve,
thanks for helping.
I simply do "Add Condition" Condition: IF Object: (OCR) At Location: Then I select the region of interest and enable OCR. Then it gives the error above. When I try the same on my Windows 11 machine it works fine. But on my Windows 10 machine it produces an error.
|
|
|
Post by Steve on Jun 22, 2023 19:12:16 GMT
Hi Nancy, I can't seem to replicate your issue. Does the Windows exception give you a an error dump? If I could see that I could narrow down the issue a little further. Does OCR work outside of the tool? Can you build an run an OCR macro without the add condition page? Examples here www.turnssoft.com/conditions.html#ocr. Have a crack at running an OCR statement with the very verbose parameter set and check out the MMM local log. It will tell us if an issue exist in the macro, plugin, or maybe give us a clue where this exception you are experiencing is coming from. Good luck.
|
|
|
Post by Nancy on Jun 23, 2023 9:37:41 GMT
Here is the log: 06/23/2023 02:25:49.19 AM : Event Log Cleared 06/23/2023 02:25:49.20 AM : Loading settings - applying live settings to MMM 06/23/2023 02:25:56.11 AM : Loading settings - applying live settings to MMM 06/23/2023 02:27:23.88 AM : Loading settings - applying live settings to MMM 06/23/2023 02:27:43.37 AM : Loading settings - applying live settings to MMM 06/23/2023 02:29:28.44 AM : Starting macro playback 06/23/2023 02:29:28.50 AM : Macro condition: 1 | RUN ACTION | OCR | At location [X:1264 Y:534 W:422 H:189]::Lang eng - English::To string OCR 06/23/2023 02:29:28.63 AM : Macro condition - Condition TRUE 06/23/2023 02:29:28.74 AM : Macro action - Running ACTION: OCR 06/23/2023 02:29:28.85 AM : Playback error: 1 | RUN ACTION | OCR | At location [X:1264 Y:534 W:422 H:189]::Lang eng - English::To string OCR - an unexpected error has occured Exception has been thrown by the target of an invocation. 06/23/2023 02:29:28.88 AM : Macro playback finished
|
|