Hi, 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 ?
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 ) : require 'lib.util' require 'lib.headings' require 'lib.paragraphs' input = bytearray() read_image_gray(input,arg[1]) for j = 1, 2000 do input:put(j,j,255) input:put(j+2000,j+2000,0) end write_image_rgb(arg[2],input) Please point me in the right direction. Thanks in advance, Raul --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
