On Sep 17, 4:04 am, "Thomas Breuel" <[EMAIL PROTECTED]> wrote:
> > i'm trying to draw the Bounding Boxes of the recognized Text onto the
> > Image, and output it. As suggested by the documentation I'm using a
> > lua script. For that i need Rectangle / Line / Pixel drawing routines.
> > The Wiki and the included documentation as well as grepping trough the
> > source files didn't help finding such routines. Maybe someone here
> > knows where I should search further ?
>
> We haven't bound any SDL routines for that yet.  It would be great if you
> could look at the SDL documentation for drawing routines and provide a small
> patch to iulib/utils/dgraphics.{cc,h}

I've actually worked with SDL before, but at the moment i can work
with writing directly on the output image. If I should need more
graphical debugging features, i'll keep in mind to code it nicely and
submit a pach ;) .

>
> > Obtaining the bounding Boxes in lua is not a problem, drawing them
> > onto the image is. I tried "drawing" pixels in the bytearray read from
> > a file, but that also failed. Following code has no effect on the
> > output image ( it should have a diagonal line ) :
>
> That's because you're drawing a one pixel wide line, and you're probably
> scaling the image down a lot during display; the line just disappears.   If
> you make it several pixels wide, you will be able to see it.

Ok, that was it. Thanks, Thomas.

>
> Cheers,
> Thomas.
--~--~---------~--~----~------------~-------~--~----~
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