I don't know. Perhaps the LIBTIF library has a function to identify the TIF type of a file. Alternatively, I think the following free program would include such functionality:
ImageMagick: Convert, Edit, and Compose Images http://www.imagemagick.org/script/index.php JamalOn Mon, 1 Mar 2010, Manish Agrawal wrote:
Date: Mon, 1 Mar 2010 22:46:16 +0530 From: Manish Agrawal <manish10@xxxxxxxxx> Reply-To: program-l@xxxxxxxxxxxxx To: program-l@xxxxxxxxxxxxx, ProgrammingBlind@xxxxxxxxxxxxx Subject: [program-l] Re: Seeking c++ programmer to compile Windows binary of free Tesseract OCR Jamal, How can I know if a tiff file I have is a "compressed" tiff or an "uncompressed" one (if such a thing exists)? -Manish -----Original Message----- From: program-l-bounce@xxxxxxxxxxxxx [mailto:program-l-bounce@xxxxxxxxxxxxx] On Behalf Of Jamal Mazrui Sent: Monday, March 01, 2010 10:07 PM To: program-l@xxxxxxxxxxxxx; ProgrammingBlind@xxxxxxxxxxxxx Subject: [program-l] Re: Seeking c++ programmer to compile Windows binary of free Tesseract OCR Sorry, I don't know what happened to the reply I tried to send to you the next day after getting your message. Unfortunately, I got fatal execution errors. There were two tasks I tried. One was to use the free NirCmd.exe utility to create a .tif snapshot of a window and than try to get text from it. The other was to drop in your tesseract.exe for an older, minimalist one that I include with PDF2TXT. Here is more info on how to replicate what I was testing. NirCmd is available at NirCmd - Windows command line tool http://www.nirsoft.net/utils/nircmd.html The syntax is NirCmd.exe Save ScreenShotWin FileName.tif PDF2TXT is available at http://EmpowermentZone.com/p2tsetup.exe tesseract.exe is located by default in the directory C:\PDF2TXT\OCR In the PDF2TXT dialog, you can press Alt+F to check the Image Format checkbox, which then causes the program to attempt OCR rather than other text extraction methods. Let me know if you have more questions. I'm copying this message to the ProgrammingBlind list as well in case anyone thesere wants to try these tests. Jamal On Mon, 1 Mar 2010, Soronel Haetir wrote:Date: Mon, 1 Mar 2010 07:15:10 -0900 From: Soronel Haetir <soronel.haetir@xxxxxxxxx> Reply-To: program-l@xxxxxxxxxxxxx To: program-l@xxxxxxxxxxxxx Subject: [program-l] Re: Seeking c++ programmer to compile Windows binaryoffree Tesseract OCR I've just been waiting to hear back if there were any issues with the tarball I already sent your way. On 3/1/10, Jamal Mazrui <empower@xxxxxxxxx> wrote:To anyone who has been working on this, do you have anything more toreport?Jamal ** To leave the list, click on the immediately-following link:- ** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe] ** If this link doesn't work then send a message to: ** program-l-request@xxxxxxxxxxxxx ** and in the Subject line type ** unsubscribe ** For other list commands such as vacation mode, click on the ** immediately-following link:- ** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq] ** or send a message, to ** program-l-request@xxxxxxxxxxxxx with the Subject:- faq-- Soronel Haetir soronel.haetir@xxxxxxxxx ** To leave the list, click on the immediately-following link:- ** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe] ** If this link doesn't work then send a message to: ** program-l-request@xxxxxxxxxxxxx ** and in the Subject line type ** unsubscribe ** For other list commands such as vacation mode, click on the ** immediately-following link:- ** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq] ** or send a message, to ** program-l-request@xxxxxxxxxxxxx with the Subject:- faq** To leave the list, click on the immediately-following link:- ** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe] ** If this link doesn't work then send a message to: ** program-l-request@xxxxxxxxxxxxx ** and in the Subject line type ** unsubscribe ** For other list commands such as vacation mode, click on the ** immediately-following link:- ** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq] ** or send a message, to ** program-l-request@xxxxxxxxxxxxx with the Subject:- faq ** To leave the list, click on the immediately-following link:- ** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe] ** If this link doesn't work then send a message to: ** program-l-request@xxxxxxxxxxxxx ** and in the Subject line type ** unsubscribe ** For other list commands such as vacation mode, click on the ** immediately-following link:- ** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq] ** or send a message, to ** program-l-request@xxxxxxxxxxxxx with the Subject:- faq
__________View the list's information and change your settings at //www.freelists.org/list/programmingblind