hi. Sorry, my English not perfect :)
when I call function:
regions := ocr.getRegions(origImageEn.IEBitmap.GetIEVisionImage(), chkTextRegionsOnly.Checked);
I receive object regions (type TIEVisionVectorRect). All OK
so after that I can save regions to file (like XML). This is needed to making templates where I know which region what must contain.
It is very fast and not need to recognize regions every time
but! if I want to load saved regions from XML - i must call function:
for Node in Nodes do begin
rect.x := strtoint(Node.Attributes['x']);
rect.y := strtoint(Node.Attributes['y']);
rect.width := strtoint(Node.Attributes['width']);
rect.height := strtoint(Node.Attributes['height']);
regions.push_back(rect);
end;
but regions = nil when OCR is created and not called function ocr.getRegions :(
so I cant insert saved regions to nil :(
can you tell me how i can create empty region object in OCR engine to add my regions manually?
and second problem: regions (type TIEVisionVectorRect) don`t contains info about type of region: text, image
my sample demo:
green rects is text layers.
at finish I want to add some functionality to rects: move, resize, delete, create new region