ocropus-ctrain not working

50 views
Skip to first unread message

Raj Julha

unread,
Aug 6, 2011, 2:50:42 PM8/6/11
to ocropus
Hi

I successfully installed ocropus ver 0.4.4 on Ubuntu 10.10 by
following instructions at http://code.google.com/p/ocropus/wiki/InstallTranscript

When running ocropus-ctrain I encountered an error
optparse.OptionConflictError: option -R/--rejectfactor: conflicting
option string(s): -R
There were two instances of -R so I replaced the second -R with -f.

I created a chars.db database after following the necessary
preliminary training steps. However when I run the command

ocropus-ctrain -K 10 chars.db -o chars.cmodel

I get the error
# determining per-class cutoff
Traceback (most recent call last):
File "/usr/local/bin/ocropus-ctrain", line 189, in <module>
ntrain = int(stats.scoreatpercentile(counts,threshold))
File "/usr/lib/python2.7/dist-packages/scipy/stats/stats.py", line
1287, in scoreatpercentile
return _interpolate(values[int(idx)], values[int(idx) + 1], idx %
1)
IndexError: index out of bounds

Can someone send a fixed recent version working version of ocropus-
ctrain to the group?

Thanks

Raj

Raj Julha

unread,
Aug 6, 2011, 4:00:13 PM8/6/11
to ocropus, raj....@gmail.com
Hi

Correction, I'm using Ubuntu 11.04.

Raj

On Aug 6, 10:50 pm, Raj Julha <raj.ju...@gmail.com> wrote:
> Hi
>
> I successfully installed ocropus ver 0.4.4 on Ubuntu 10.10 by
> following instructions athttp://code.google.com/p/ocropus/wiki/InstallTranscript

Raj Julha

unread,
Aug 9, 2011, 12:05:38 PM8/9/11
to ocropus
Well

I'm replying to myself. I retried the command after editing the
chars.db file with ocropus-cedit and it worked. I suppose there were
some classes that hadn't been classified?
Is this a requirement before running ocropus-ctrain?

Cheers

Raj

Jerome G

unread,
Mar 2, 2018, 2:16:55 AM3/2/18
to ocropus
Hi bro,
 can you explain me the procedure to do this ctrain for cursive handwriting on windows 7
Reply all
Reply to author
Forward
0 new messages