Executing the #ri.BoundingBox(level,x1,y1,x2,y2) command for either words or characters
GoogleCodeExporter opened this issue · 0 comments
GoogleCodeExporter commented
What steps will reproduce the problem?
1. Uncomment the line #ri.BoundingBox(level,x1,y1,x2,y2) in example 6
2. Try a number of things including creating placeholder integer for x1,y1,x2,y2
What is the expected output? What do you see instead?
def BoundingBox(self, *args): return _tesseract.PageIterator_BoundingBox(self,
*args)
NotImplementedError: Wrong number or type of arguments for overloaded function
'PageIterator_BoundingBox'.
Possible C/C++ prototypes are:
tesseract::PageIterator::BoundingBox(tesseract::PageIteratorLevel,int *,int *,int *,int *) const
tesseract::PageIterator::BoundingBox(tesseract::PageIteratorLevel,int const,int *,int *,int *,int *) const
What version of the product are you using? On what operating system?
python-tesseract-0.9-0.4.win-amd64-py2.7.exe, window 7
Please provide any additional information below.
I need character level bounding boxes.
I understand this has something to do with the original function returning by
reference, but I'm not familiar enough with swig to understand how to implement
that line. A few hours googling shows similar confusion over passing and
returning via pointer in swig.
Thanks for the help!
Original issue reported on code.google.com by rexdougl...@gmail.com
on 22 Jul 2014 at 5:59