That was a wonderful idea for this wonderful program.
Adding white borders didn't solve the problem, but when drawing a smaller apostropheit worked :
l : 3*28 px
apostrophe : 2*7 px
2*5 px didn't work , maybe a proporionally problem as you said.
Thanks again
Pluch'
----- Message d'origine ----
> De : AJ <abommarito@...>
> À : Pluch' <pluch001@...>; jocr-devels@...
> Envoyé le : Jeudi, 8 Janvier 2009, 19h17mn 38s
> Objet : Re : [Jocr-devels] problem on l and '
>
> The image sizes I always used were a consistent hight. So, if in
> normal use of the font, the apostrophe has lots of whitespace under
> it, then that's how I trained it. Also, I always trained with some
> whitespace on both sides of the character. When it trains the
> apostrophe, does it try to autosize the its own box? Maybe it ends
> up cutting off all the whitespace at the bottom and then training the
> shape, which would probably be exactly like the "l" proportionally.
> Is there a way to force it to use a certain box size so it does look
> at the whitespace?
>
> > Hello ans thanks for your response,
> >
> > Yes, I've done that too (the images are : apostrophe 2*10 px and the l is 3*28
> px) and if the l is before the apostrophe in the database, both characters are
> l (if the apostrophe is before l, both are apostrophes).
> >
> > I tried with a 2*28 px image for the apostrophe (10 px height black and 18 px
> white) but this didn't solve the problem ...
> >
> > Any other clue is welcome !
> >
> > Thks
> >
> >
> >
> >
> >
> >
> > ----- Message d'origine ----
> > > De : AJ
> > > À : Pluch' ; jocr-devels@...
> > > Envoyé le : Jeudi, 8 Janvier 2009, 18h38mn 43s
> > > Objet : Re: [Jocr-devels] problem on l and '
> > >
> > > Havent used GOCR in a while, but have you tried training the the
> > > apostrophe and the letter "l" separately? I vaguely remember GOCR
> > > having trouble training on multiple letter sequences, so I always
> > > trained one character at a time.
> > >
> > > > Hello,
> > > >
> > > > I hope I am on the right place for the question bellow.
> > > >
> > > > With gocr 0.41, I try to build my own database, but there is a problem
> with
> > > the apostrophe and the letter l.. With the text "S'il" gocr ask me for the
> > > apostrophe but not for the l : for gocr, the l is like an apostrophe :
> > > >
> > > > Here is what I get with the command line :
> > > >
> > > > gocr -p /home/jeanclaudetergal/txt2/db/ -f UTF8 -v 32 -m 442 -i img.bmp
> > > >
> > > > #DEBUG: ocr_db (285,7)
> > > > # show box + environment
> > > > # show box x= 285 7 d= 2 10 r= 0 0
> > > > # show pattern x= 260 5 d= 52 37 t= 1 1
> > > > ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
> > > > ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
> > > > ,,,,,OOOOOOOOOO,,,,,,,,,,##,,,,,OOO,,,,,,OOO,,,,,,,, -
> > > > ,,,OOOOOOOOOOOOOO,,,,,,,,##,,,,,OOO,,,,,,OOO,,,,,,,,<
> > > > ,,OOOOOOOOOOOOOOOO,,,,,,,##,,,,,OOO,,,,,,OOO,,,,,,,,
> > > > ,OOOOOO,,,,,,OOOOOO,,,,,,##,,,,,OOO,,,,,,OOO,,,,,,,,
> > > > ,OOOO,,,,,,,,,,OOOO,,,,,,##,,,,,,,,,,,,,,OOO,,,,,,,,
> > > > OOOO,,,,,,,,,,,,OOOO,,,,,##,,,,,,,,,,,,,,OOO,,,,,,,,
> > > > OOOO,,,,,,,,,,,,OOOO,,,,,##,,,,,,,,,,,,,,OOO,,,,,,,,
> > > > OOOO,,,,,,,,,,,,,OO,,,,,,##,,,,,,,,,,,,,,OOO,,,,,,,,
> > > > OOOO,,,,,,,,,,,,,,,,,,,,,##,,,,,OOO,,,,,,OOO,,,,,,,,<
> > > > OOOOO,,,,,,,,,,,,,,,,,,,,##,,,,,OOO,,,,,,OOO,,,,,,,, -
> > > > OOOOOO,,,,,,,,,,,,,,,,,,,,,,,,,,OOO,,,,,,OOO,,,,,,,,
> > > > ,OOOOOOOO,,,,,,,,,,,,,,,,,,,,,,,OOO,,,,,,OOO,,,,,,,,
> > > > ,,OOOOOOOOOOOO,,,,,,,,,,,,,,,,,,OOO,,,,,,OOO,,,,,,,,
> > > > ,,,OOOOOOOOOOOOOO,,,,,,,,,,,,,,,OOO,,,,,,OOO,,,,,,,,
> > > > ,,,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,,,,,,,
> > > > ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
> > > > ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
> > > > ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,<
> > > > The above pattern was not recognized.
> > > > Enter UTF8 char or string for above pattern. Leave empty if unsure.
> > > > (I hope this is readable)
> > > >
> > > > You can see the original image here : http://scriptus.free.fr/img/img.bmp..
> > > > What do you think I can do with this problem ? Should I change some
> parameters
> > > or there is no issue with this fonts ?
> > > >
> > > > Thanks in advance and Happy New Year!
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> ------------------------------------------------------------------------------
> > > > Check out the new SourceForge.net Marketplace.
> > > > It is the best place to buy or sell services for
> > > > just about anything Open Source.
> > > > http://p.sf.net/sfu/Xq1LFB
> > > > _______________________________________________
> > > > Jocr-devels mailing list
> > > > Jocr-devels@...
> > > > https://lists.sourceforge.net/lists/listinfo/jocr-devels
> >
> >
> >
> >
> >
|