ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 IEVision 6.0.3.0: save/load regions

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
kolio Posted - Aug 26 2022 : 11:19:38
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
2   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Aug 28 2022 : 23:14:29
Hi Kolio

Yes you are better to use a native Delphi type like TRect in your own code than TIEVisionVectorRect.

Tesseract does not return any other information about text other than its position and orientation/angle.

Nigel
Xequte Software
www.imageen.com
kolio Posted - Aug 28 2022 : 04:46:21
I have modified my app for using
ocr.getRegions
only when i need to find regions and on all another operations I have using
array of TRect