Motion Detection with Delphi through Video Grabber (Share Ware Version)
Motion detection is application that is used as observer system or protection system in a certain room, for example coffer room of a organization, such as bank, in a certain time this room has to be empty without anyone inside, as protection application can be developed using sms delivery facility to those that is related when detected a movement. This application can also be developed by automatic facility video recorder if detecting a movement in video preview that is capture in camera as protection input system.
The following is the steps in making Motion detection application with Delphi through Video grabber
Insert the component on the table bellow to the design form :
|2||Button1||Caption||Start Motion Detection|
Arrange the component like the picture bellow:
Then type this following source code
Display_AutoSize := false;
// the control will not resize automatically
AutoRefreshPreview := true;
// the preview will restart automatically when changing device properties
(e.g. video size, analog video standard, etc...)
|2||Button1||OnClick|| videograbber1. |
memo1.Text := VideoGrabber1.
|4||Videograbber1||OnMotionDetected|| var MaxMotionXLocation, |
MotionDetector_GetCellLocation (MaxMotionCellX, MaxMotionCellY,
begin memo2.Text := VideoGrabber1.
|Shape1.Brush.Color := clBlack; |
Memo2.Text := VideoGrabber1.
This is the picture of Motion Detection with Delphi through Video Grabber (Share Ware Version) application:
Start previewing the camera
Motion detection Delphi 1
The video grabber component that is used in this application is shareware version so that it could not work properly (maximal), in limited random time, application will stopped working, besides that application will appear overlay text nagscreen the address of the website is www.datastead.com
I hope this article can give benefit to the visitors, readers, developer and me. Thanks for visiting and availability for sharing this article by pressing
|Share this on Facebook|