Use Document Imaging from Command Line

J

Jolin

Hello,

I found Document Imaging really has very good quality of OCR, and I want to
call it from command line. I found command line options in the Document
Imaging help. Some commands work, but some do not.

"mspview <path:filename.tif>" and
"mspview -r <path:filename.tif>" both work to open and show the image.

But "mspview -o <path:filename.tif>" and "mspview -f <path:filename.tif>"
don't work. Nothing happened after I typed these commands.

Could anyone help me on this? Could you please tell me how to open the
image, do OCR, and save the recognized text on disk ONLY using command line?

Thanks a lot!

Jolin
 
H

Harlan Grove

Jolin said:
But "mspview -o <path:filename.tif>" and "mspview -f <path:filename.tif>"
don't work. Nothing happened after I typed these commands.

Are you sure nothing happens? When I use the -o switch, mspview.exe
launches as a separate process, effectively a background process, and
OCRs the TIF file. In the console session it'll seem like nothing
happened, but if you wait for the mspview process to complete, the TIF
file will be changed, now including text. But it's still a TIF file,
so you'd need to open it in mspview interactively to use the OCR'ed
text.

You may want to use the alternative command line

start /wait "" mspview -o filename.tif

which won't return you to the console prompt until the command
finishes.

I don't know the structure of TIF files, so I don't know what to
suggest for extracting text from them using command line tools. But
I'm reasonably certain this isn't the newsgroup to use to find out.
 
L

Louisq

Dear Jolin,
I will look into Document Imaging but I have a more exact understanding of
our issue. I posted a few minutes ago too.
We have to print labels for patient records when they are admitted including
a label for the wristband. We might need about two or three sheets of labels.
I tried doing a merge with Word 2007 but the data file, which contained the
bar code, translated the bar code instead of copying it on the label. Is
there anyway we could have the merge work so that the barcode is copied.
Please advise and thanks for your help.

Louis
 
J

Jolin

Hello Louisq,

I'm sorry I don't quite understand what you described. I'm not very good at
computer.

Jolin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top