T O P I C R E V I E W |
hamed1234 |
Posted - Aug 29 2020 : 07:02:55 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. |
3 L A T E S T R E P L I E S (Newest First) |
xequte |
Posted - Sep 04 2020 : 18:38:59 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
|
hamed1234 |
Posted - Sep 03 2020 : 07:27:05 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? |
xequte |
Posted - Aug 30 2020 : 17:24:03 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
|