I found the problem with "write_png_rgb" addressed in

http://stealthlizard.blogspot.com/2008/11/getting-segment-line-script-working-in.html

It seams "write_image_packed" is the function outputing an image

On 5 Dez., 16:33, emanuel <[EMAIL PROTECTED]> wrote:
> Hello
>
> My name is Emanuel Indermühle and i would like to use ocropus to test
> the document analysis algoritms on handwritten documents.
>
> I installed the latest svn version of iulib and ocropus on ubuntu 8.04
> and wrote a small lua script to test the segmentation functionality
>
> -----------------
> require 'lib.util'
> require 'lib.path'
> require 'lib.headings'
> require 'lib.hocr'
> require 'lib.paragraphs'
> require 'lib.xml'
> require 'lib.align'
>
> image = util.read_image_gray_checked(arg[1])
> segmenter = make_SegmentPageByRAST()
> seg = intarray()
> segmenter:segment(seg, image)
> check_page_segmentation(seg)
>
> write_png_rgb("result.png",seg)
> dshow(seg,"huhu")
> ----------------------------------
>
> the last two lines did not work for me:
> - write_png_rgb or write_png seam not to exists, or i can at least not
> find in what file it is defined.
>   the following error is printed:
>
>     ocroscript: pageSegmentation.lua:14: attempt to call global
> 'write_png_rgb' (a nil value)
>
> - dshow raises no error, but nothing happens.
>
> Can you please tell me, how i can view the segmentation in any form?
>
> Thanks a lot,
>
> Emanuel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"ocropus" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/ocropus?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to