Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora Resources > Guides & Solutions (Not For Questions)
FedoraForum Search

Forgot Password? Join Us!

Guides & Solutions (Not For Questions) Post your guides here (No links to Blogs accepted). You can also append your comments/questions to a guide, but don't start a new thread to ask a question. Use another forum for that.

Thread Tools Search this Thread Display Modes
Old 10th December 2010, 03:32 PM
lkraemer Offline
Registered User
Join Date: Dec 2010
Posts: 7
HOWTO: Install Irfanview - Ver 4.27 in Fedora 14

HOWTO: Install Irfanview - Ver 4.27 in Fedora 14

This HOWTO: will guide you through the process of installing Irfanview version 4.27 in Fedora 14.

Before staring the install of Irfanview, there are a few things that need to be
downloaded. These need to be installed in the order shown below.

DOWNLOAD or Install:
1. Install - Wine (Ver 1.3.8) (With SYSTEM -> ADMINISTRATION -> ADD/REMOVE Software)
2. Download - winetricks (MFC42.DLL is required) (Google Search for winetricks)
3. Download - cabextract
4. Download - iview427_setup.exe (Google Search for Irfanview)
5. Download - setup_kadmos_irfanview_us.exe
6. Download - irfanview_plugins_427_setup.exe (Optional)
7. Install unpaper Version .3

Open a Terminal Window (Console) and Install: (Cut & Paste to prevent errors)
sudo yum install cabextract
This will allow the extraction of the CAB Files as needed.

This will create the configuration file. You can close the Configuration Window.

Change to the subdirectory where you saved the winetricks and other downloaded files.
Install the MFC42.DLL and others if needed........
cd ~/Downloads/Irfanview
sh winetricks
Now install Irfanview & Kadmos, after copying iview427.exe & setup_kadmos_irfanview_us.exe
to .wine/drive_c. During the install, Create the Desktop Icon ONLY. The others won't work properly.
cd ~
cd .wine
cd drive_c
wine iview427.exe
wine setup_kadmos_irfanview_us.exe
Click on the Desktop Icon to run Irfanview.
If you wish to grab your camera and take some Pictures of that old CookBook, and convert those Pictures to a TXT file there are
two Methods shown here. Just make sure that your Camera is set for MACRO MODE and have enough lighting to get a descent picture.
It may take a few trial runs to get a good output TXT file.

Open the JPG's or BMP's of any image you wish to OCR. Use FILE -> BATCH CONVERT to convert the image/images to TIF, and under
ADVANCED set the Conversion to 1Bit Black, and NO Dithering. Save all Images as TIF. (This will allow OCR conversion by Kadmos).
Open the TIF Image and use OPTIONS -> START OCR to Convert to Text. Use your Mouse to grab the Top Left and Bottom Right corners
of the Left CookBook Page and convert it. Save the File. Repeat for Right CookBook Page. You can't EDIT this text File and save it now.
You must do that later...... after you exit the OCR Plugin.

METHOD #2 - Use TESSERACT OCR: (Don't paste the #--remove blah blah text when using the commands.)
1. Take Pictures of the Cookbook in MACRO MODE. (Or Scan the Cookbook to BMP's)
These JPG's or BMP's will have two CookBook pages on each image.
2. Convert the JPG's/BMP's to PBM's to allow making separate pages with unpaper.
Under ADVANCED select 1 Bit Black, NO Dithering, and NO Compression
convert P102004043.jpg image001.pbm #-- or use Irfanview's Batch Convert for this, which is really easy.....
3. Use unpaper to make two pages of each PBM file.
unpaper --layout double --overwrite --deskew-scan-range 10 --output-pages 2 image%03d.pbm out%03d.pbm
rm image*.pbm #-- remove un-necessary files
4. Convert the PBM to a TIF for Tesseract OCR.
convert out001.pbm out001.tif # -- for one file
for i in `ls out*.pbm`; do convert $i ${i%.pbm}.tif ; done # -- for multiple files
rm out*.pbm #-- remove un-necessary files
5. Use Tesseract OCR to create the text file.
tesseract out001.tif out001 #-- for one file
for i in `ls out*`; do tesseract $i ${i%.tif} ; done #-- for multiple files OR use the next one
for i in $(ls out*.tif) ; do tesseract $i ${i%.tif} ; done # -- for multiple files.
rm out*.tif #-- remove un-necessary files
6. Create the Cookbook from all the converted pages.
cat out*.txt > CookBook.txt
rm out*.txt #-- remove un-necessary files
7. Edit the CookBook Text file to correct the mistakes.

My testing has shown that Kadmos does a better job than Tesseract OCR, but Tesseract works so much faster.
It still leaves a lot of correcting......But it's not too bad.........

REF: http://forums.fedoraforum.org/showthread.php?t=255875

ENJOY! Another Christmas Idea.........Grab those CookBooks from the Relatives and start taking pictures.......

Attached Thumbnails
Click image for larger version

Name:	kadmos.png
Views:	302
Size:	256.0 KB
ID:	20432  

Last edited by lkraemer; 12th December 2010 at 05:17 AM. Reason: Added Irfanview instructions.
Reply With Quote
Old 10th December 2010, 10:36 PM
lkraemer Offline
Registered User
Join Date: Dec 2010
Posts: 7
Re: HOWTO: Install Irfanview - Ver 4.27 in Fedora 14

ADMINISTRATORS - for some reason my posting has disappeared???

Can you recover it?
Reply With Quote
Old 10th December 2010, 10:57 PM
Dan's Avatar
Dan Offline
Join Date: Jun 2006
Location: Paris, TX
Posts: 24,099
Re: HOWTO: Install Irfanview - Ver 4.27 in Fedora 14

Ayup. Sure enough it's there. It got hung up in the auto-moderation filter.
Reply With Quote
Old 23rd February 2011, 05:15 PM
nefg Offline
Registered User
Join Date: Feb 2008
Posts: 4
Re: HOWTO: Install Irfanview - Ver 4.27 in Fedora 14

Installed FC12 tesseract. Found it better than gocr and a bit better than the online http://www.ocrconvert.com/. Worked out of the box for me. 1 document was about 100 years old print scanned, the other some 60 year typewritten crumplled paper which I scanned. Command line for converting, cropping etc no problems for me
Reply With Quote
Old 31st July 2011, 01:18 AM
scrunchie Offline
Registered User
Join Date: Jul 2011
Posts: 3
Re: HOWTO: Install Irfanview - Ver 4.27 in Fedora 14

I concur with the above statement. I also found this to be much better than gocr and ocrconvert. I have had no real issues thus far, and everything is working great. I am wondering if anyone can recomend any good bcp software? I am in great need. Thank you very much.

Last edited by scrunchie; 5th August 2011 at 02:34 PM.
Reply With Quote

editor, graphics, graphics editor, irfanview, paint

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
HowTo Install Fedora 10/11/12 DVD from a 4GB USB stick sideways Installation, Upgrades and Live Media 236 10th May 2012 05:09 PM
HowTo: Install Fedora 11 on a MacBook BlueC Guides & Solutions (Not For Questions) 5 22nd June 2009 11:04 AM
Howto install Limewire 5 on Fedora 11 waramoore Guides & Solutions (Not For Questions) 12 10th May 2009 05:50 PM
HOWTO: Install Fedora onto a USB pen ! thewonderer57 Guides & Solutions (Not For Questions) 0 9th April 2009 11:58 PM
HOWTO INSTALL xen on fedora 10 wyattno26 Using Fedora 2 4th December 2008 10:30 AM

Current GMT-time: 06:05 (Monday, 25-09-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat