[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

OCR in ruby

ben.wyrosdick

3/17/2007 2:02:00 AM

does anyone know of an OCR library in ruby or one that can be called
from command line so I can integrate it with a ruby script?

10 Answers

Tim X

3/17/2007 6:35:00 AM

0

"wyrosdick" <ben.wyrosdick@gmail.com> writes:

> does anyone know of an OCR library in ruby or one that can be called
> from command line so I can integrate it with a ruby script?
>

I don't know of a specific ruby library to do this. However, there is a GNU OCR
project - you could probably bind to its library and use that? It also has a
command line utility that can take input from stdin and send text output to
stdout - possibly you could try using that to see if the genral principal
works.

Tim

P.S. from memory its called gocr
--
tcross (at) rapttech dot com dot au

ben.wyrosdick

3/17/2007 9:19:00 PM

0

On Mar 17, 1:34 am, Tim X <t...@nospam.dev.null> wrote:
> "wyrosdick" <ben.wyrosd...@gmail.com> writes:
> > does anyone know of an OCR library in ruby or one that can be called
> > from command line so I can integrate it with a ruby script?
>
> I don't know of a specific ruby library to do this. However, there is a GNU OCR
> project - you could probably bind to its library and use that? It also has a
> command line utility that can take input from stdin and send text output to
> stdout - possibly you could try using that to see if the genral principal
> works.
>
> Tim
>
> P.S. from memory its called gocr
> --
> tcross (at) rapttech dot com dot au

that worked beautifully ... I use imagemagick to convert the image to
a pgm file then use `gocr -i file.pgm` to get the ocr text from the
command line tool inside of ruby.

thanks
Ben

Werner

5/25/2013 6:26:00 PM

0

Well, yes. But one can still make a profit from selling expensive toys to the rich. I would call that a success. In this case profit would not now exist but for regulation and subsidy. I don't call that a success. I call it crony capitalism.

El Castor

5/25/2013 8:10:00 PM

0

On Sat, 25 May 2013 11:25:37 -0700 (PDT), Werner <whetzner@mac.com>
wrote:

>Well, yes. But one can still make a profit from selling expensive toys to the rich. I would call that a success.

Even that success, if it exists, is likely to be short lived and very
modest. During the heyday of US electric car production, from 1907 -
1939, only 13,000 were built. In 1939, the year the last electric car
manufacturer went belly up, Detroit produced two million gas engine
cars. The unsolved problem is not the car, it's the battery or
capacitor that powers it.

>In this case profit would not now exist but for regulation and subsidy. I don't call that a success. I call it crony capitalism.

Worse yet -- crony environmentalism.

mg

5/26/2013 2:47:00 AM

0

On May 25, 2:09 pm, El Castor <DrE...@justuschickens.com> wrote:
> On Sat, 25 May 2013 11:25:37 -0700 (PDT), Werner <whetz...@mac.com>
> wrote:
>
> >Well, yes. But one can still make a profit from selling expensive toys to the rich. I would call that a success.
>
> Even that success, if it exists, is likely to be short lived

Tesla's stock has skyrocked, by the way, from about $26 a year ago to
about $90 the last time Iooked. So, depending on your level of
confidence in your crystal ball, here's your chance to make a fortune
by selling it short.



> and very
> modest. During the heyday of US electric car production, from 1907 -
> 1939, only 13,000 were built. In 1939, the year the last electric car
> manufacturer went belly up, Detroit produced two million gas engine
> cars. The unsolved problem is not the car, it's the battery or
> capacitor that powers it.
>
> >In this case profit would not now exist but for regulation and subsidy. I don't call that a success. I call it crony capitalism.
>
> Worse yet -- crony environmentalism.

El Castor

5/26/2013 8:23:00 AM

0

On Sat, 25 May 2013 19:47:10 -0700 (PDT), mg <mgkelson@yahoo.com>
wrote:

>On May 25, 2:09?pm, El Castor <DrE...@justuschickens.com> wrote:
>> On Sat, 25 May 2013 11:25:37 -0700 (PDT), Werner <whetz...@mac.com>
>> wrote:
>>
>> >Well, yes. But one can still make a profit from selling expensive toys to the rich. I would call that a success.
>>
>> Even that success, if it exists, is likely to be short lived
>
>Tesla's stock has skyrocked, by the way, from about $26 a year ago to
>about $90 the last time Iooked. So, depending on your level of
>confidence in your crystal ball, here's your chance to make a fortune
>by selling it short.
>
Are you a buyer? You've read what I have to say about Tesla. Tell me
where I'm wrong. I'm the one who bought a Prius before it was
fashionable -- not you. Barring a marvelous battery or a revolutionary
capacitor, Tesla will fail like every other electric car before it.
I'd like it to be successful, but what I'd like doesn't matter. It's
all about the range and how long it takes to recharge. Maybe Tesla
will be saved by a miracle battery, but until it is, I will stick with
my Prius. You can sink your life savings into the damn thing for all I
care, but I wouldn't if I were you.

mg

5/26/2013 10:21:00 AM

0

On May 26, 2:23 am, El Castor <DrE...@justuschickens.com> wrote:
> On Sat, 25 May 2013 19:47:10 -0700 (PDT), mg <mgkel...@yahoo.com>
> wrote:
>
> >On May 25, 2:09 pm, El Castor <DrE...@justuschickens.com> wrote:
> >> On Sat, 25 May 2013 11:25:37 -0700 (PDT), Werner <whetz...@mac.com>
> >> wrote:
>
> >> >Well, yes. But one can still make a profit from selling expensive toys to the rich. I would call that a success.
>
> >> Even that success, if it exists, is likely to be short lived
>
> >Tesla's stock has skyrocked, by the way, from about $26 a year ago to
> >about $90 the last time Iooked. So, depending on your level of
> >confidence in your crystal ball, here's your chance to make a fortune
> >by selling it short.
>
> Are you a buyer? You've read what I have to say about Tesla. Tell me
> where I'm wrong. I'm the one who bought a Prius before it was
> fashionable -- not you. Barring a marvelous battery or a revolutionary
> capacitor, Tesla will fail like every other electric car before it.
> I'd like it to be successful, but what I'd like doesn't matter. It's
> all about the range and how long it takes to recharge. Maybe Tesla
> will be saved by a miracle battery, but until it is, I will stick with
> my Prius. You can sink your life savings into the damn thing for all I
> care, but I wouldn't if I were you.

I missed the run up on Tesla's stock and have never bought any of it
and I don't intend to sell any of it short, either. If I had a crystal
ball, like you do, though, making money in the stock market would be a
lot easier.

El Castor

5/26/2013 4:39:00 PM

0

On Sun, 26 May 2013 03:21:05 -0700 (PDT), mg <mgkelson@yahoo.com>
wrote:

>On May 26, 2:23?am, El Castor <DrE...@justuschickens.com> wrote:
>> On Sat, 25 May 2013 19:47:10 -0700 (PDT), mg <mgkel...@yahoo.com>
>> wrote:
>>
>> >On May 25, 2:09?pm, El Castor <DrE...@justuschickens.com> wrote:
>> >> On Sat, 25 May 2013 11:25:37 -0700 (PDT), Werner <whetz...@mac.com>
>> >> wrote:
>>
>> >> >Well, yes. But one can still make a profit from selling expensive toys to the rich. I would call that a success.
>>
>> >> Even that success, if it exists, is likely to be short lived
>>
>> >Tesla's stock has skyrocked, by the way, from about $26 a year ago to
>> >about $90 the last time Iooked. So, depending on your level of
>> >confidence in your crystal ball, here's your chance to make a fortune
>> >by selling it short.
>>
>> Are you a buyer? You've read what I have to say about Tesla. Tell me
>> where I'm wrong. I'm the one who bought a Prius before it was
>> fashionable -- not you. Barring a marvelous battery or a revolutionary
>> capacitor, Tesla will fail like every other electric car before it.
>> I'd like it to be successful, but what I'd like doesn't matter. It's
>> all about the range and how long it takes to recharge. Maybe Tesla
>> will be saved by a miracle battery, but until it is, I will stick with
>> my Prius. You can sink your life savings into the damn thing for all I
>> care, but I wouldn't if I were you.
>
>I missed the run up on Tesla's stock and have never bought any of it
>and I don't intend to sell any of it short, either. If I had a crystal
>ball, like you do, though, making money in the stock market would be a
>lot easier.

The run up was likely caused in part by a short squeeze, which is one
of the reasons I would never sell anything short. You're the one with
the crystal ball, not me. I have no interest in the stock, one way or
another. I don't like Tesla as a car because, despite it's high price,
the range is limited, and the recharge time is measured in hours, not
minutes. I have many times driven from San Francisco to LA, San Diego,
Las Vegas, and Lake Tahoe, with stops to eat and refuel. Refueling my
Prius takes 10 minutes and I'm good to go 400 miles. Tell me how I do
that in a Tesla. This isn't a liberal/conservative issue -- it's
common sense.

chatnoir

5/26/2013 6:34:00 PM

0

On May 26, 10:38 am, El Castor <DrE...@justuschickens.com> wrote:
> On Sun, 26 May 2013 03:21:05 -0700 (PDT), mg <mgkel...@yahoo.com>
> wrote:
>
>
>
>
>
> >On May 26, 2:23 am, El Castor <DrE...@justuschickens.com> wrote:
> >> On Sat, 25 May 2013 19:47:10 -0700 (PDT), mg <mgkel...@yahoo.com>
> >> wrote:
>
> >> >On May 25, 2:09 pm, El Castor <DrE...@justuschickens.com> wrote:
> >> >> On Sat, 25 May 2013 11:25:37 -0700 (PDT), Werner <whetz...@mac.com>
> >> >> wrote:
>
> >> >> >Well, yes. But one can still make a profit from selling expensive toys to the rich. I would call that a success.
>
> >> >> Even that success, if it exists, is likely to be short lived
>
> >> >Tesla's stock has skyrocked, by the way, from about $26 a year ago to
> >> >about $90 the last time Iooked. So, depending on your level of
> >> >confidence in your crystal ball, here's your chance to make a fortune
> >> >by selling it short.
>
> >> Are you a buyer? You've read what I have to say about Tesla. Tell me
> >> where I'm wrong. I'm the one who bought a Prius before it was
> >> fashionable -- not you. Barring a marvelous battery or a revolutionary
> >> capacitor, Tesla will fail like every other electric car before it.
> >> I'd like it to be successful, but what I'd like doesn't matter. It's
> >> all about the range and how long it takes to recharge. Maybe Tesla
> >> will be saved by a miracle battery, but until it is, I will stick with
> >> my Prius. You can sink your life savings into the damn thing for all I
> >> care, but I wouldn't if I were you.
>
> >I missed the run up on Tesla's stock and have never bought any of it
> >and I don't intend to sell any of it short, either. If I had a crystal
> >ball, like you do, though, making money in the stock market would be a
> >lot easier.
>
> The run up was likely caused in part by a short squeeze, which is one
> of the reasons I would never sell anything short. You're the one with
> the crystal ball, not me. I have no interest in the stock, one way or
> another. I don't like Tesla as a car because, despite it's high price,
> the range is limited, and the recharge time is measured in hours, not
> minutes. I have many times driven from San Francisco to LA, San Diego,
> Las Vegas, and Lake Tahoe, with stops to eat and refuel. Refueling my
> Prius takes 10 minutes and I'm good to go 400 miles. Tell me how I do
> that in a Tesla. This isn't a liberal/conservative issue -- it's
> common sense.- Hide quoted text -
>
> - Show quoted text -

ahhh and you were willing to write off GM a few years ago!

mg

5/26/2013 6:35:00 PM

0

On May 26, 10:38 am, El Castor <DrE...@justuschickens.com> wrote:
> On Sun, 26 May 2013 03:21:05 -0700 (PDT), mg <mgkel...@yahoo.com>
> wrote:
>
>
>
>
>
>
>
>
>
> >On May 26, 2:23 am, El Castor <DrE...@justuschickens.com> wrote:
> >> On Sat, 25 May 2013 19:47:10 -0700 (PDT), mg <mgkel...@yahoo.com>
> >> wrote:
>
> >> >On May 25, 2:09 pm, El Castor <DrE...@justuschickens.com> wrote:
> >> >> On Sat, 25 May 2013 11:25:37 -0700 (PDT), Werner <whetz...@mac.com>
> >> >> wrote:
>
> >> >> >Well, yes. But one can still make a profit from selling expensive toys to the rich. I would call that a success.
>
> >> >> Even that success, if it exists, is likely to be short lived
>
> >> >Tesla's stock has skyrocked, by the way, from about $26 a year ago to
> >> >about $90 the last time Iooked. So, depending on your level of
> >> >confidence in your crystal ball, here's your chance to make a fortune
> >> >by selling it short.
>
> >> Are you a buyer? You've read what I have to say about Tesla. Tell me
> >> where I'm wrong. I'm the one who bought a Prius before it was
> >> fashionable -- not you. Barring a marvelous battery or a revolutionary
> >> capacitor, Tesla will fail like every other electric car before it.
> >> I'd like it to be successful, but what I'd like doesn't matter. It's
> >> all about the range and how long it takes to recharge. Maybe Tesla
> >> will be saved by a miracle battery, but until it is, I will stick with
> >> my Prius. You can sink your life savings into the damn thing for all I
> >> care, but I wouldn't if I were you.
>
> >I missed the run up on Tesla's stock and have never bought any of it
> >and I don't intend to sell any of it short, either. If I had a crystal
> >ball, like you do, though, making money in the stock market would be a
> >lot easier.
>
> The run up was likely caused in part by a short squeeze, which is one
> of the reasons I would never sell anything short. You're the one with
> the crystal ball, not me. I have no interest in the stock, one way or
> another. I don't like Tesla as a car because, despite it's high price,
> the range is limited, and the recharge time is measured in hours, not
> minutes. I have many times driven from San Francisco to LA, San Diego,
> Las Vegas, and Lake Tahoe, with stops to eat and refuel. Refueling my
> Prius takes 10 minutes and I'm good to go 400 miles. Tell me how I do
> that in a Tesla. This isn't a liberal/conservative issue -- it's
> common sense.

Before I retired, I drove a Geo Prism with a 5-speed manual
transmission back and forth to work which was 84 miles round trip.
Combined with the around-town driving, I usually got about 39.5 mpg. I
bought the car when it was one year old, for $11,000, and it already
had 10,000 miles on it. A few months ago, I gave it to my
granddaughter. It had 165,000 miles on it and it still ran like new,
with nothing wrong with it, as far as I know and I only had a few
minor repairs in all those years. So, when you consider the cost of
property taxes and maintenance and gas and insurance, etc., and
prorate the cost of the vehicle over a period of two decades, how
could you ever beat that?

My opinion has always been that the more fuel-efficient, new cars, and
especially electric cars, are for people who have extra money to spend
and not for people who work for a living. Actually, I think even your
Prius falls into that category. So, I personally would never buy
anything like that.