train-bpnet-lines.lua

1 view
Skip to first unread message

shouro chowdhury

unread,
Jul 13, 2008, 1:57:54 AM7/13/08
to ocr...@googlegroups.com
in line number 30 of train-bpnet-lines.lua:
print '     <dataset> - a list of "image_path text_path segmentation" lines'
                                                                                 ????

my questions is what data should i provide for "segmentation" to build the dataset.

--
game on

Hasnat

unread,
Jul 13, 2008, 8:47:16 AM7/13/08
to ocr...@googlegroups.com
I think this is a new approach of training using a line of image with proper transcription. In this approach "image_path" may be the main image to be trained, "text_path" may be the transcription and segmentation may be the segmented color image generated from the main image. However this is my prediction. 

Any explanation from the developers of this approach will help us to test this. Hope you will get the correct answer soon.
Regards,
--
Hasnat
Center for Research on Bangla Language Processing (CRBLP)

rangon...@googlemail.com

unread,
Jul 15, 2008, 4:02:08 AM7/15/08
to ocropus
Dear Shouro Chowdhury,

There is some information here :
http://sites.google.com/site/ocropus/documentation/recognition-and-training
in the "Training Bpnet Models from Lines" section.

You must be able to provide a segmentation of your input images and
also transcription.
It's quite similar to the training on isolated characters (http://
sites.google.com/site/ocropus/documentation/isolated-character-
training)

Regards, Yves

shouro chowdhury

unread,
Jul 15, 2008, 8:05:32 AM7/15/08
to ocr...@googlegroups.com
Thank you very much the problem is solved.
but i am facing a new problem and the problem is:

./ocroscript: scripts/rec-bpnet.lua:53: attempt to call global 'make_FstBuilder' (a nil value)
stack traceback:
    scripts/rec-bpnet.lua:53: in main chunk
    [C]: ?

it cant call make_FstBuilder() help me to fix it.
--
game on

shouro chowdhury

unread,
Jul 15, 2008, 11:01:01 AM7/15/08
to ocr...@googlegroups.com
i dont understand why it is happning
i looked in these files langmods/fstbulider.cc and langmods/fstbulider.h
and ocroscript/fst.pkg and ocroscript/fst.cc but did not find any problems.

(note: in ocropus-0.2 its working fine)

so i will apriciate any kind of help from you

thank you.
--
game on

rangon...@googlemail.com

unread,
Jul 16, 2008, 10:23:29 AM7/16/08
to ocropus
Okay, thank you for reporting it. I will investigate this bug

On Jul 15, 5:01 pm, "shouro chowdhury" <souro...@gmail.com> wrote:
> i dont understand why it is happning
> i looked in these files langmods/fstbulider.cc and langmods/fstbulider.h
> and ocroscript/fst.pkg and ocroscript/fst.cc but did not find any problems.
>
> (note: in ocropus-0.2 its working fine)
>
> so i will apriciate any kind of help from you
>
> thank you.
>
> On Tue, Jul 15, 2008 at 6:05 PM, shouro chowdhury <souro...@gmail.com>
> wrote:
>
>
>
> > Thank you very much the problem is solved.
> > but i am facing a new problem and the problem is:
>
> > ./ocroscript: scripts/rec-bpnet.lua:53: attempt to call global
> > 'make_FstBuilder' (a nil value)
> > stack traceback:
> > scripts/rec-bpnet.lua:53: in main chunk
> > [C]: ?
>
> > it cant call make_FstBuilder() help me to fix it.
>
> > On Tue, Jul 15, 2008 at 2:02 PM, rangoni.y...@googlemail.com <
> > rangoni.y...@googlemail.com> wrote:
>
> >> Dear Shouro Chowdhury,
>
> >> There is some information here :
>
> >>http://sites.google.com/site/ocropus/documentation/recognition-and-tr...

rangon...@googlemail.com

unread,
Jul 23, 2008, 11:55:09 AM7/23/08
to ocropus
Dear Shouro Chowdhury

It seems that openfst is not installed or not detected when the script
is executed. I've added an assert in the script. It doesn't solve the
problem yet, but we will work on it.

Regards, Yves

On Jul 15, 2:05 pm, "shouro chowdhury" <souro...@gmail.com> wrote:
> Thank you very much the problem is solved.
> but i am facing a new problem and the problem is:
>
> ./ocroscript: scripts/rec-bpnet.lua:53: attempt to call global
> 'make_FstBuilder' (a nil value)
> stack traceback:
> scripts/rec-bpnet.lua:53: in main chunk
> [C]: ?
>
> it cant call make_FstBuilder() help me to fix it.
>
> On Tue, Jul 15, 2008 at 2:02 PM, rangoni.y...@googlemail.com <
>
>
>
> rangoni.y...@googlemail.com> wrote:
>
> > Dear Shouro Chowdhury,
>
> > There is some information here :
> >http://sites.google.com/site/ocropus/documentation/recognition-and-tr...

rangon...@googlemail.com

unread,
Jul 24, 2008, 5:20:09 AM7/24/08
to ocropus
I forget to say that you have also now a script rec-line.lua which can
be used to recognize a line

usage: ocroscript rec-line <line> <bpnetfile>

You only have to provide an image of your line and a trained bpnet
(trained on lines)

On Jul 23, 5:55 pm, "rangoni.y...@googlemail.com"

Hasnat

unread,
Jul 24, 2008, 5:25:22 AM7/24/08
to ocr...@googlegroups.com
Dear Yves,
                thanks for the information. We are testing that file and I hope souro will let you know the feedback.


On Thu, Jul 24, 2008 at 3:20 PM, rangon...@googlemail.com <rangon...@googlemail.com> wrote:

I forget to say that you have also now a script rec-line.lua which can
be used to recognize a line

usage: ocroscript rec-line <line> <bpnetfile>

You only have to provide an image of your line and a trained bpnet
(trained on lines)

On Jul 23, 5:55 pm, "rangoni.y...@googlemail.com"
<rangoni.y...@googlemail.com> wrote:
> Dear Shouro Chowdhury
>
> It seems that openfst is not installed or not detected when the script
> is executed. I've added an assert in the script. It doesn't solve the
> problem yet, but we will work on it.
>
> Regards, Yves
>


Regards,
--
Hasnat
Center for Research on Bangla Language Processing (CRBLP)
Reply all
Reply to author
Forward
0 new messages