OCR without loading a file

View: New views
3 Messages — Rating Filter:   Alert me  

OCR without loading a file

by J.S. :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I want to use OCR for recognition of text within images that are loaded
from another software. The problem is that every OCR software I found (including
Ocrad) seem to _force_ you to specify a filename etc.Now, I thought maybe
I had missed something, so here would be my twofold question:
1) Is there a wait to use libjocr to process an image directly (e.g. an
unsigned char*)
2) If not: what would you suggest me to do? I'd be ready to contribute
some code but a bit of guidance would help a lot.

Thanks!

Re: OCR without loading a file

by Bugzilla from ant_diaz@teleline.es :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

J.S. wrote:
> I want to use OCR for recognition of text within images that are loaded
> from another software. The problem is that every OCR software I found
> (including  Ocrad) seem to _force_ you to specify a filename etc.

Ocrad does not force you to specify a filename. It can act as a filter.


> I thought maybe I had missed something, so here would be my twofold question:
> 1) Is there a wait to use libjocr to process an image directly (e.g. an
> unsigned char*)

I don't know. Libjocr is not part of Ocrad.


> 2) If not: what would you suggest me to do? I'd be ready to contribute
> some code but a bit of guidance would help a lot.

Try to execute ocrad through the `popen' function.


Regards,
Antonio.


_______________________________________________
Bug-ocrad mailing list
Bug-ocrad@...
http://lists.gnu.org/mailman/listinfo/bug-ocrad

Re: OCR without loading a file

by J.S. :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Antonio Diaz Diaz wrote:
> J.S. wrote:
>> I want to use OCR for recognition of text within images that are
>> loaded from another software. The problem is that every OCR software
>> I found
>> (including  Ocrad) seem to _force_ you to specify a filename etc.
>
> Ocrad does not force you to specify a filename. It can act as a filter.

Ok, so you can pipe a file in it then...

>> I thought maybe I had missed something, so here would be my twofold
>> question:
>> 1) Is there a wait to use libjocr to process an image directly (e.g.
>> an unsigned char*)
>
> I don't know. Libjocr is not part of Ocrad.

Oh sorry, i meant ocrad. Its just I posted a similar mail on the jocr
mailing list and obviously forgot to replace part of it ;)

>
>
>> 2) If not: what would you suggest me to do? I'd be ready to
>> contribute some code but a bit of guidance would help a lot.
>
> Try to execute ocrad through the `popen' function.

I actually started working on a fix using mkfifo().

Thanks for your help,

>
>
> Regards,
> Antonio.
>


--
++ js




_______________________________________________
Bug-ocrad mailing list
Bug-ocrad@...
http://lists.gnu.org/mailman/listinfo/bug-ocrad