OCRFile input file

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
Krep
Junior Coder
Posts: 32
Joined: Thu Nov 12, 2009 3:56 pm

OCRFile input file

Post by Krep » Mon Feb 17, 2025 5:16 pm

Hello folks!

Does OCRFile require a bitmap file or can it use JPEGs? (If it does, perhaps this would be good to mention in the help page description of the command).

If it requires BMP can Macroscheduler convert JPEG to BMP?

-Thanks!
-Still kicking!
Krep

User avatar
Dorian (MJT support)
Automation Wizard
Posts: 1414
Joined: Sun Nov 03, 2002 3:19 am

Re: OCRFile input file

Post by Dorian (MJT support) » Mon Feb 17, 2025 6:05 pm

Krep wrote:
Mon Feb 17, 2025 5:16 pm
Does OCRFile require a bitmap file or can it use JPEGs?
I'm guessing you haven't tried it as you'd have experienced an error. The answer is that OCRImage can't use JPEGS.
Krep wrote:
Mon Feb 17, 2025 5:16 pm
If it requires BMP can Macroscheduler convert JPEG to BMP?
You can do that with Macro Scheduler and ImageMagick. Here's an example :

Code: Select all

//ImageMagick Path
let>IMPath=C:\Program Files\ImageMagick-7.0.9-Q16\magick

//ImageMagick command
Let>IMcommand=mogrify -format bmp d:\ThisIsATest33.jpg

//Run ImageMagick
RunProgram>%IMPath% %IMcommand%

//OCRImage
OCRImage>d:\ThisIsATest33.bmp,res1
It's well worth investing some time into ImageMagick - coupled with Macro Scheduler it can achieve remarkable things! But I'll warn you, once you scratch the surface it'll draw you in.

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts