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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 OCR in selected area
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

tiagosis

Brazil
44 Posts

Posted - Apr 15 2025 :  12:13:29  Show Profile  Reply
Hello, how can I select a part of the image and OCR only that part? Can you point me to some code or example?

tiago

xequte

38948 Posts

Posted - Apr 15 2025 :  20:44:24  Show Profile  Reply
Hi Tiago

Yes, you can do it as follows:

// perform OCR on the selected image region
ocrRect := ImageEnView1.SelectedRect;
memo1.Lines.Text := m_OCR.recognize( ImageEnView1.IEBitmap.GetIEVisionImage(),
                                     IEVisionRect( ocrRect.x, ocrRect.y, ocrRect.width, ocrRect.height )).c_str();


Please see the demo:

Demos\IEVision\OCR\OCR.dpr

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: