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
 Draw Rectangle over the video show in imagenenview
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

hamed1234

5 Posts

Posted - Aug 29 2020 :  07:02:55  Show Profile  Reply
Hi,
Can I Draw rectangle/rectangles over the Imageenview when it showing a video or connected to a camera?
I want to detect some area and draw rectangle(s) whit color borders.

xequte

38616 Posts

Posted - Aug 30 2020 :  17:24:03  Show Profile  Reply
Hi

Yes, you can either draw to the canvas after the video content has been assigned to it, or you add a shape layer and move it as required.

Please take a look at how it is done in the demo:

\Demo\IEVision\TrackObjects\TrackObjects.dpr

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

hamed1234

5 Posts

Posted - Sep 03 2020 :  07:27:05  Show Profile  Reply
Thank you xequte,
I tried to use canvas but It did not work . I use this in button event :

ImageEnView1.BackBuffer.Canvas.Pen.Width := 1;
ImageEnView1.BackBuffer.Canvas.Pen.Color := clRed;
ImageEnView1.BackBuffer.Canvas.Pen.Style := psSolid;
ImageEnView1.BackBuffer.Canvas.MoveTo(10, 10);
ImageEnView1.BackBuffer.Canvas.LineTo(100, 100);
ImageEnView1.Update;

Can you please tell me my mistake?
Go to Top of Page

xequte

38616 Posts

Posted - Sep 04 2020 :  18:38:59  Show Profile  Reply
Hi

The back buffer is likely cleared by the video frame. Did you look at the code in the TrackObjects.dpr demo?

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