I am trying to use image recognition to identify names of lab tests in a table which does not allow copying text. After the cursor is located near the test name I want to identify, the macro is activated. It selects an approximately 250 x 50 pixel image which will contain the lab test name and surrounding buffer of space to be certain the test name is captured. This is saved as a bmp file. I then use Findimage to compare this image with smaller bmp's that contain CBC, Lipase, and other names of medical tests.
I can not get it to work reliably. For example, if I capture CBC on a patient and use that as my cbc.bmp, then on that specific patient the macro will match cbc,bmp with the 250 X50 pixel image; however if I pull up another patient and activate the macro then it fails to locate CBC in the 250X50 pixel image captured on that patient. I can see no difference in the appearance of CBC in either patients table, and looking at the 250X50 pixel image captured shows "CBC" to be present.
What should I do to make it recognize very similar text that appears identical to my eye? I purchased Macro Scheduler Pro Jan 1 specifically for this.
Difficulty getting image recognition to work
Moderators: JRL, Dorian (MJT support)
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
What are you using to capture the images you are comparing against? Be sure to only use Macro Scheduler's image capture tool.
Is there a background or transparent area that may be changing the appearance of the live capture?
What colour tolerance are you using?
Is the FindImagePos command returning zero, one or multiple possible matches?
Send your script for us to comment on - and some of the images.
Is there a background or transparent area that may be changing the appearance of the live capture?
What colour tolerance are you using?
Is the FindImagePos command returning zero, one or multiple possible matches?
Send your script for us to comment on - and some of the images.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
Thank you for the very prompt response!
I am using the Macro Scheduler capture tool.
There are no transparent backgrounds.
I have tried color tolerances from 0 to 200.
The FindImagePos always returns either 0 or 1.
How do I send the images to you? Do I submit a question on your feedback and support form then attach them to your response email or is there an email address I should send them to directly?
I have to go to work shortly; therefore, I probably won't respond until this evening. I am in Washington state USA.
I am using the Macro Scheduler capture tool.
There are no transparent backgrounds.
I have tried color tolerances from 0 to 200.
The FindImagePos always returns either 0 or 1.
How do I send the images to you? Do I submit a question on your feedback and support form then attach them to your response email or is there an email address I should send them to directly?
I have to go to work shortly; therefore, I probably won't respond until this evening. I am in Washington state USA.
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Yes, contact us via the support form and then attach your images to the auto reply email that you will receive.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?