Skip to main content

Motion Detection with Delphi through Video Grabber (Share Ware Version)

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 :

No Component Name Properties Value
1 Label1 Caption Start Preview
2 Button1 Caption Start Motion Detection
3 Button2 Caption Start Preview
4 Combobox1 Text -
5 Memo1 Text -
6 Memo1 Text -
7 Shape1 Brush-Color clBlack
8 Videograbber1 - -

Arrange the component like the picture bellow:

Then type this following source code

Component Event Source Code
1 Form1 OnCreate VideoGrabber1.
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.
3 Button2 OnClick videograbber1.StartPreview;
4 Videograbber1 OnMotionDetected   var MaxMotionXLocation,
MaxMotionYLocation: LongInt;
MotionDetector_CompareRed ;
if VideoGrabber1.
MotionDetector_GetCellLocation (MaxMotionCellX, MaxMotionCellY,
MaxMotionYLocation) then
begin   memo2.Text := VideoGrabber1.
5 Videograbber1 OnNot
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

Motion detection  Delphi 2

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

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
or just press like button under this posting


Popular posts from this blog

Login Form Delphi by Connecting to Ms Access Database.

this the step by step  to making application :

Login Form Delphi by Connecting Ms Access Database.

In making/ building application in Delphi, login Form is an important to protect application so that cannot be open by irresponsible person. This login Form is connected with database so that able to keep a lot of username data and password. Before make the application, please create a database as the picture below:
Picture :Login  form Delphi database Microsoft Access
Save the database in the folder which use to save the application

Next step is create the application

Enter the component and the source code as follows.

No Component NameProperties Value1Label1CaptionUsername2Label2CaptionPassword3Edit1Text -4Edit2Text -5Button1CaptionLogin6Adoconnection1--7AdoQuery1ConnectionADOConnection1

Arrange the component as the picture below:

Figure. Login Form Delphi design form

 Create new form

Form properties can be check in the table below
No Component NameProperties Value1Form1CaptionSuccess…

Step by step Accessing SMS With Delphi: Sending SMS Using Borland Delphi 7 Exploit Comport Component (Siemens))

In this example, will present the way how making SMS delivery program with Delphi, basically, data in data communication series between Delphi and mobile phone happen in Format Protocol Data Unit (PDU). The destination number of sending Message and message that will be sent through Delphi program that is made have to be changed into PDU Form first, next is the data will be sent through serial port to mobile phone. To make the send SMS Application , please enter the following component to Form 1.

No Component NameProperties ValueButton1CaptionConnectButton2CaptionDisConnectButton3CaptionConvert to PDUButton4CaptionSend to HPButton5CaptionClearButton6CaptionStart Send SMSButton7CaptionSet PortEdit1Text-Edit2Text<Type The SMS here>Edit3Text-Label1Caption1) Destination Number :Label2Caption2Label3CaptionPDU lengthLabel4CaptionLabel lengthComLed1--Memo1--Memo2--Comport1--Arrange the Component  in such away so that the visualization program is as follows:

Then type the follow…

The Example Using Chart In Borland Delphi 7

The Example Using Chart In Borland Delphi 7

In this writing will discuss about how to use the chart in Delphi 7. In the example that is made by using Delphi 7, chart will appear 2 data in the form of incremental data number, the first data named data 1 and the second data named data 2. Data 1 is incremental data 1 that is begun from 0 until 10; while data 2 is same. Yet, in the beginning condition of data 1 start from 0 while data 2 start from 1.

To make application as the explanation above, please enter the components in the table below into design form.

NoComponentPropertiesValueNote1Form1CaptionThe Chart of Data on Delphi 72GroupBox1CaptionThe Chart of Data on Delphi 73Label1CaptionData 14Label2CaptionData 25Edit1Text06Edit2Text07Button1CaptionShow to Chart8Button2CaptionClose9Timer1EnabledFalse10Chart--Check the NoteNote:

Double click on chart component, set the property of chart as below:

Click on  Add.. Button

Then the following chart gallery will be shown:

Choose the…