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
 Motion Detection for an area
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

AndyColmes

USA
351 Posts

Posted - Nov 12 2011 :  07:00:35  Show Profile  Reply
I am studying the Motion Detection demo and I was wondering if I could use a TImageEnVect and only detect motion defined in a IEBOX object. Please advise.

Thanks.

klausdoege

Germany
389 Posts

Posted - Nov 14 2011 :  09:56:36  Show Profile  Reply
Hello,
show the change in procedure Tfmain.ImageEnView1DShowNewFrame, it works fine.
1. Make a selection in Imageenview1
2. Change Buffer0.AssignImage(ImageEnView1.IEBitmap);
in Imageenview1.CopySelectionToIEBitmap(buffer0);
For Buffer1 make the same, show down.
ready

procedure Tfmain.ImageEnView1DShowNewFrame(Sender: TObject);
var
diff: double;
ss: string;
begin
ImageEnView1.IO.DShowParams.GetSample(ImageEnView1.IEBitmap);
case current of
-1: // first time
begin
imageenview1.CopySelectionToIEBitmap(buffer0);
imageenview1.CopySelectionToIEBitmap(buffer1);
// Buffer0.AssignImage(ImageEnView1.IEBitmap);
// Buffer1.AssignImage(ImageEnView1.IEBitmap);
current := 0;
end;
0:
begin
imageenview1.CopySelectionToIEBitmap(buffer0);
// Buffer0.AssignImage(ImageEnView1.IEBitmap);
current := 1;
end;
1:
begin
imageenview1.CopySelectionToIEBitmap(buffer1);
// Buffer1.AssignImage(ImageEnView1.IEBitmap);
current := 0;
end;
end;

Klaus
Go to Top of Page

AndyColmes

USA
351 Posts

Posted - Nov 15 2011 :  09:58:43  Show Profile  Reply
Thanks very much Klaus. I will give it a try.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: