LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-25-2019, 05:58 PM   #1
AlaricWood
Member
 
Registered: Apr 2014
Posts: 99
Blog Entries: 1

Rep: Reputation: Disabled
optical character recognition


I run Debian 9 on amd64 with 1tb disk and 8gb ram. I have used Debian for many years without problems but 9 has defeated me. Previous versions ran ocrfeeder. Now I can only get tesseract which is plainly a pain. The help file is no help at all and apparently it can only read tiff files. No software I have will save .tiff though I can use convert from the command line.
I installed a new 9 because it used more space than I had in /var. I usually partition manually because the auto partition skimped on boot or root, I forget which, 9 won't install on a manually partitioned disk and as I know nothing about LVM or LVR, whichever is is I had to let the programme do it. 9 does not support my Canon Scanner so I have had to buy a new one.
I downloaded gocr but it won't install.
Is there a usable ocr programme or do I try another distro.
 
Old 08-25-2019, 07:08 PM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
You could install ocrfeeder from source: https://github.com/GNOME/ocrfeeder
 
Old 08-25-2019, 07:53 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,326
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
OP, if you haven't installed from sources before, here's good intro: https://www.linux.com/news/how-insta...-source-linux/

It's not complicated, unless you have to hunt for missing dependencies.
 
Old 08-28-2019, 05:27 PM   #4
AlaricWood
Member
 
Registered: Apr 2014
Posts: 99

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
I would love to but I can't. I have downloaded it from Git and also a deb from the website. Neither work. The deb is for a much earlier version of Debian and needs pythoocanvas which doesn't exist. configure works but make doesn't. I have tried all the make options but no luck. The programme offers an install-sh but the command line doesn't recognise that as a command. Copying it to the command line produces a lot of activity by unfortunately closes the terminal when it has finished so I don't know what happened. The log file when I finally managed to open it was not helpful
I tried gimagereader but that won't install either. I am not savvy enough to use tesseract from the command line. The man page is not in the least helpful and one would need to be a skilled programmer to use it.
I am thinking of installing an earlier version of Debian which offers ocrfeeder. Alternatively Ubuntu and Mint offer a series of commands to install ocrfeeder from source.
I have briefly used Ubuntu but found it difficult and unstable. I could try Mint or Suse and have disks for both.

Regards,

Alaric
 
Old 08-28-2019, 06:22 PM   #5
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
tesseract works with png for me, but definatly not 100% accurate

Code:
tesseract imagefile.png imagefile # that outputs to imagefile.txt
tesseract imagefile.png - # that outputs to stdout

I had a very quick look at the ocrfeeder
I *might* be able to package it
I'll see if I can do a straight compile first

in the meantime
https://blends.debian.org/accessibility/tasks/ocr
 
Old 08-29-2019, 11:36 AM   #6
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
managed to build it in the end

but,
https://launchpad.net/ubuntu/+source...build/14348024
is much easier

its the bionic version ( the ubuntu version of stretch )

Code:
sudo dpkg -i ocrfeeder_0.8.1-4_all.deb
# that will probably fail complaining about missing packages
sudo apt install -f
## that will install the missing packages
## and fix it for you
if not, I can guide you with compiling it from source
trouble is you need to install 100s of mb worth of packages to compile it
 
Old 08-29-2019, 04:59 PM   #7
AlaricWood
Member
 
Registered: Apr 2014
Posts: 99

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Thanks. I had already tried the deb but it is not installable. apt install -f with the file name returns an error as under
The following packages have unmet dependencies:
ocrfeeder : Depends: python-enchant but it is not installable
Depends: python-sane but it is not installable
Depends: gir1.2-gtkspell3-3.0 but it is not installable
Depends: gir1.2-goocanvas-2.0 but it is not installable
E: Unable to correct problems, you have held broken packages.
 
Old 08-29-2019, 05:21 PM   #8
AlaricWood
Member
 
Registered: Apr 2014
Posts: 99

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Sorry I said a bit more but it didn't post. I installed tesseract but the man instructions didn't work. They were accepted but there was no output.
I need ocr and Debian 9.9 seems to be short of a few files. I have cds for most distros and if I have to I can try them.
9.9 forced me to buy a new scanner. It took an age to install and only works marginally. I don't look forward to another session on a new distro that I am not familiar with.
 
Old 08-29-2019, 05:26 PM   #9
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
really ?

what version of Debian do you have?

cat /etc/debian_version
 
Old 08-29-2019, 05:27 PM   #10
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
hmm, well I have 9.9 in lxc, it installed those dependencies no problem
 
Old 08-29-2019, 05:33 PM   #11
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
wait you included the file with the install -f?

no try
Code:
sudo apt install --fix-broken
on its own
 
Old 08-29-2019, 05:48 PM   #12
AlaricWood
Member
 
Registered: Apr 2014
Posts: 99

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
I have 9.9 according to the control centre. I have done dist-upgrade and it reports nothing to upgrade. I downloaded it from the website and copied it to a cd and installed with a few problems. As I said, I usually manually partition because one install using auto ran short in either boot or root, I can't remember which. 9.9 would not install on a manually partitioned disk and I had to use auto with LVR or LVM, whichever it is. I don't know enough about that to try and do it manually.
I don't want to ditch Debian. I have got used to it and up to 9.9 I found it easy to use.
Should I download again and re-install?
 
Old 08-29-2019, 06:09 PM   #13
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
the bold bits

try the second bit first ( since it might still be held , you have not said you uninstalled it )

if that does nothing, do the first, then the second

Quote:
Originally Posted by Firerat View Post

Code:
sudo dpkg -i ocrfeeder_0.8.1-4_all.deb
# that will probably fail complaining about missing packages
sudo apt install -f
## that will install the missing packages
## and fix it for you
 
Old 08-29-2019, 06:32 PM   #14
AlaricWood
Member
 
Registered: Apr 2014
Posts: 99

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
fix-broken uninstalled it. As I said before messing around produced this message.
The following packages have unmet dependencies:
ocrfeeder : Depends: python-enchant but it is not installable
Depends: python-sane but it is not installable
Depends: gir1.2-gtkspell3-3.0 but it is not installable
Depends: gir1.2-goocanvas-2.0 but it is not installable
E: Unable to correct problems, you have held broken packages.
linux AlaricWood is offline Report This Post
None of those files are on my disk nor are they downloadable by synaptic. My sources list includes free and contrib
 
Old 08-29-2019, 06:43 PM   #15
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
only free and contrib?

can you post output of

Code:
cat /etc/apt/sources.list
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Optical Character Recognition in Slackware64 psynot Slackware 4 09-27-2009 03:08 PM
what are optical character recognition softwares in ubuntu ? shridhar005 Linux - Software 6 04-20-2009 10:54 AM
LXer: Optical Character Recognition With Tesseract OCR On Ubuntu 7.04 LXer Syndicated Linux News 0 08-30-2007 06:30 PM
LXer: Optical character recognition is an uphill battle for open source LXer Syndicated Linux News 0 01-04-2006 10:46 AM
What do you use for Optical Character Recognition? the who Linux - Software 0 09-23-2004 07:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration