Feature-request (saving character-files)

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

Feature-request (saving character-files)

by sdwdd :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello.

I'm having a feature-request, haven't found any other list, so posting here,
to bugreports..

I'm going to use Ocrad in my own project and I need the ability to save
splitted character bitmaps to files,
so that, for example, it will produce 20 bitmaps in some directory for a
line of text that consists of 20 characters.

I've took a look at the source code cause it seemed to be pretty easy to
make that output, however there is a number of recognize*() methods that
somehow implode the blocks included in the character and I can't get how to
implode them to one bitmap.

Actually, I need that pretty urgently, so it will be great if you guys could
give me some idea of implementation.


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

Re: Feature-request (saving character-files)

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

Reply to Author | View Threaded | Show Only this Message

Serg Buslovsky wrote:
> I'm going to use Ocrad in my own project and I need the ability to save
> splitted character bitmaps to files,
> so that, for example, it will produce 20 bitmaps in some directory for a
> line of text that consists of 20 characters.

You can do it easily modifying the Character::dprint function.

Try "ocrad -D 89 test2.pbm" to see the output it produces. See the
README file for a list of debug levels for the -D option.


Regards,
Antonio.


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