I know this question is belong of the forum: http://groups.google.com/group/tesseract-ocr. But I think this is a bug of GetComponentImages maybe, so I post it here. I want to find all rectangle of those symbols by GetComponentImages. This is my code(Actually from oficial documentation):
Note I have used Opencv to show the rectangles here.
If the "targetimage.png" is this
I will get these rectangles
As you see, every time the Tesseract will omit some rectangles. Is it a bug of function GetComponentImages? It if it, how to fix it to implement my target? I know we are some method based on other librarys can do this. But in my case, I have to use Tesseract. This question confused me very long time. Please give me some information.
Expected Behavior:
I hope the GetComponentImages help me get all rectangle.
@egorpugin I'm sure this is a bug of function GetComponentImages, please fix. Mybe GetConnectedComponents can save me, but I don't know how to use it..
Environment
Current Behavior:
I know this question is belong of the forum: http://groups.google.com/group/tesseract-ocr. But I think this is a bug of
GetComponentImages
maybe, so I post it here. I want to find all rectangle of those symbols byGetComponentImages
. This is my code(Actually from oficial documentation):If the "targetimage.png" is this
Then I will get these rectangles
Note I have used Opencv to show the rectangles here.
If the "targetimage.png" is this
I will get these rectangles
As you see, every time the Tesseract will omit some rectangles. Is it a bug of function
GetComponentImages
? It if it, how to fix it to implement my target? I know we are some method based on other librarys can do this. But in my case, I have to use Tesseract. This question confused me very long time. Please give me some information.Expected Behavior:
I hope the
GetComponentImages
help me get all rectangle.