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:
guest@filer:~/ocropus-0.2/ocroscript$ ocroscript -v
OCRoscript (interactive)
But gradients does not seem to be defined:
guest@filer:~/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]: ?
guest@filer:~/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