2014-05-15 02:09:58 +02:00
|
|
|
object MainForm: TMainForm
|
|
|
|
Left = 0
|
|
|
|
Top = 0
|
|
|
|
Caption = 'cMatchTemplate'
|
2014-05-18 12:36:01 +02:00
|
|
|
ClientHeight = 348
|
|
|
|
ClientWidth = 777
|
2014-05-15 02:09:58 +02:00
|
|
|
Color = clBtnFace
|
|
|
|
Font.Charset = DEFAULT_CHARSET
|
|
|
|
Font.Color = clWindowText
|
|
|
|
Font.Height = -11
|
|
|
|
Font.Name = 'Tahoma'
|
|
|
|
Font.Style = []
|
|
|
|
OldCreateOrder = False
|
|
|
|
PixelsPerInch = 96
|
|
|
|
TextHeight = 13
|
2014-05-18 12:36:01 +02:00
|
|
|
object lbl1: TLabel
|
|
|
|
Left = 451
|
|
|
|
Top = 3
|
|
|
|
Width = 121
|
|
|
|
Height = 13
|
|
|
|
Caption = 'Select the rectangle area'
|
|
|
|
Font.Charset = DEFAULT_CHARSET
|
|
|
|
Font.Color = clMaroon
|
|
|
|
Font.Height = -11
|
|
|
|
Font.Name = 'Tahoma'
|
|
|
|
Font.Style = []
|
|
|
|
ParentFont = False
|
|
|
|
Visible = False
|
|
|
|
end
|
2014-05-15 02:09:58 +02:00
|
|
|
object ocvw1: TocvView
|
|
|
|
Left = 8
|
2014-05-18 12:36:01 +02:00
|
|
|
Top = 22
|
2014-05-15 02:09:58 +02:00
|
|
|
Width = 320
|
|
|
|
Height = 320
|
|
|
|
VideoSource = ocvmgprtn1
|
|
|
|
end
|
|
|
|
object ocvw2: TocvView
|
2014-05-18 12:36:01 +02:00
|
|
|
Left = 451
|
|
|
|
Top = 22
|
2014-05-15 02:09:58 +02:00
|
|
|
Width = 320
|
|
|
|
Height = 320
|
|
|
|
OnAfterPaint = ocvw2AfterPaint
|
|
|
|
OnMouseDown = ocvw2MouseDown
|
|
|
|
OnMouseUp = ocvw2MouseUp
|
|
|
|
OnMouseMove = ocvw2MouseMove
|
|
|
|
end
|
|
|
|
object btn1: TButton
|
|
|
|
Left = 334
|
2014-05-18 12:36:01 +02:00
|
|
|
Top = 154
|
|
|
|
Width = 111
|
2014-05-15 02:09:58 +02:00
|
|
|
Height = 25
|
2014-05-18 12:36:01 +02:00
|
|
|
Caption = 'Get snapshot ->'
|
2014-05-15 02:09:58 +02:00
|
|
|
TabOrder = 2
|
|
|
|
OnClick = btn1Click
|
|
|
|
end
|
|
|
|
object btn2: TButton
|
|
|
|
Left = 334
|
2014-05-18 12:36:01 +02:00
|
|
|
Top = 194
|
|
|
|
Width = 111
|
2014-05-15 02:09:58 +02:00
|
|
|
Height = 25
|
2014-05-18 12:36:01 +02:00
|
|
|
Caption = '<- Match template'
|
2014-05-15 02:09:58 +02:00
|
|
|
Enabled = False
|
|
|
|
TabOrder = 3
|
|
|
|
OnClick = btn2Click
|
|
|
|
end
|
|
|
|
object ocvcmrsrc1: TocvCameraSource
|
|
|
|
Enabled = True
|
|
|
|
Resolution = r320x240
|
|
|
|
Left = 364
|
2014-05-18 12:36:01 +02:00
|
|
|
Top = 18
|
2014-05-15 02:09:58 +02:00
|
|
|
end
|
|
|
|
object ocvmgprtn1: TocvImageOperation
|
|
|
|
VideoSource = ocvcmrsrc1
|
|
|
|
OperationClassName = 'TocvMatchTemplate'
|
|
|
|
Operation.DrawRect.Thickness = 1
|
|
|
|
Operation.DrawRect.Offset.X = 0
|
|
|
|
Operation.DrawRect.Offset.Y = 0
|
|
|
|
Operations = <>
|
|
|
|
Left = 364
|
2014-05-18 12:36:01 +02:00
|
|
|
Top = 82
|
2014-05-15 02:09:58 +02:00
|
|
|
end
|
|
|
|
end
|