Fedora Linux Support Community & Resources Center

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

Forgot Password? Join Us!

Guides & Solutions (No 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.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10th December 2010, 02:32 PM
lkraemer Offline
Registered User
 
Join Date: Dec 2010
Posts: 8
linuxfedorafirefox
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.


PREWORK:
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.
installed.

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)
Code:
sudo yum install cabextract
This will allow the extraction of the CAB Files as needed.

Left Click on APPLICATIONS -> WINE -> WINE CONFIGURATION
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........
Code:
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.
Code:
cd ~
cd .wine
cd drive_c
ls
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.

METHOD #1 - USE IRFANVIEW & KADMOS:
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.......

lkraemer
Attached Thumbnails
Click image for larger version

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

Last edited by lkraemer; 12th December 2010 at 04:17 AM. Reason: Added Irfanview instructions.
Reply With Quote
  #2  
Old 10th December 2010, 09:36 PM
lkraemer Offline
Registered User
 
Join Date: Dec 2010
Posts: 8
linuxfedorafirefox
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
  #3  
Old 10th December 2010, 09:57 PM
Dan Online
Administrator
 
Join Date: Jun 2006
Location: Paris, TX
Posts: 22,854
linuxfedorafirefox
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
  #4  
Old 23rd February 2011, 04:15 PM
nefg Offline
Registered User
 
Join Date: Feb 2008
Posts: 4
linuxchrome
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
  #5  
Old 31st July 2011, 01:18 AM
scrunchie Offline
Registered User
 
Join Date: Jul 2011
Posts: 3
windows_xp_2003firefox
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
Reply

Tags
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 (No Questions) 5 22nd June 2009 11:04 AM
Howto install Limewire 5 on Fedora 11 waramoore Guides & Solutions (No Questions) 12 10th May 2009 05:50 PM
HOWTO: Install Fedora onto a USB pen ! thewonderer57 Guides & Solutions (No Questions) 0 9th April 2009 11:58 PM
HOWTO INSTALL xen on fedora 10 wyattno26 Using Fedora 2 4th December 2008 09:30 AM


Current GMT-time: 12:10 (Monday, 21-04-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

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