The tutorial uses a version of OCRopus between 0.2 and 0.3. The main difference to 0.2 is that there are some extra commands. The main difference to 0.3 is that you now need to import the modules:
import_all(ocr) import_all(iulib) import_all(graphics) import_all(nustring) import_all(tesseract) Tom On Sun, Nov 16, 2008 at 08:52, grahamgrebe <[EMAIL PROTECTED]> wrote: > > > Hi > > Quick version: > Web page gives 'gradients' in example, but 'gradients' not found in > ocroscript. > > Long version: > > I see from http://ocrocourse.iupr.com/image-processing an example of > the Canny edge detector. The sample program includes the command > 'gradients': > read_image_gray(byteimage,arg[1]) > image:copy(byteimage) > gauss2d(image,3.0,3.0) > gradients(gradm,gradx,grady,image) > > I'm using the ocroscript that comes with ocropus-0.2: > [EMAIL PROTECTED]:~/ocropus-0.2/ocroscript$ ocroscript -v > OCRoscript (interactive) > > But gradients does not seem to be defined: > [EMAIL PROTECTED]:~/Desktop$ ocroscript canny.lua > ocroscript: canny.lua:11: attempt to call global 'gradients' (a nil > value) > stack traceback: > canny.lua:11: in main chunk > [C]: ? > [EMAIL PROTECTED]:~/Desktop$ > > I looked for gradients in the .pkg files, but didn't find it. Looked > around in the subversion server, particularly image.pkg, and didn't > see anything there either. > > Is 'gradients' something that existed in a previous release? Is there > an equivalent function in ocropus-0.2? > > Thanks, > --Graham > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
