2013-09-12 12:50:55 +02:00
|
|
|
object MainForm: TMainForm
|
|
|
|
Left = 0
|
|
|
|
Top = 0
|
|
|
|
BorderIcons = [biSystemMenu, biMinimize]
|
|
|
|
BorderStyle = bsSingle
|
|
|
|
Caption = 'OpenCV - Component demo'
|
2014-05-18 12:36:01 +02:00
|
|
|
ClientHeight = 669
|
|
|
|
ClientWidth = 624
|
2013-09-12 12:50:55 +02:00
|
|
|
Color = clBtnFace
|
|
|
|
Font.Charset = DEFAULT_CHARSET
|
|
|
|
Font.Color = clWindowText
|
|
|
|
Font.Height = -11
|
|
|
|
Font.Name = 'Tahoma'
|
|
|
|
Font.Style = []
|
|
|
|
OldCreateOrder = False
|
|
|
|
Position = poScreenCenter
|
|
|
|
OnCreate = FormCreate
|
|
|
|
PixelsPerInch = 96
|
|
|
|
TextHeight = 13
|
|
|
|
object lbl1: TLabel
|
2014-05-11 02:42:34 +02:00
|
|
|
Left = 8
|
2014-05-18 12:36:01 +02:00
|
|
|
Top = 338
|
2013-09-12 12:50:55 +02:00
|
|
|
Width = 79
|
|
|
|
Height = 13
|
|
|
|
Caption = 'Image operation'
|
|
|
|
end
|
|
|
|
object cbb1: TComboBox
|
2014-05-11 02:42:34 +02:00
|
|
|
Left = 93
|
2014-05-18 12:36:01 +02:00
|
|
|
Top = 335
|
2013-09-12 12:50:55 +02:00
|
|
|
Width = 145
|
|
|
|
Height = 21
|
|
|
|
Style = csDropDownList
|
2014-05-06 21:13:57 +02:00
|
|
|
TabOrder = 0
|
2013-09-12 12:50:55 +02:00
|
|
|
OnChange = cbb1Change
|
|
|
|
Items.Strings = (
|
|
|
|
'None'
|
|
|
|
'Convert to grayscale'
|
|
|
|
'Canny'
|
2014-05-06 21:13:57 +02:00
|
|
|
'Smooth'
|
|
|
|
'Erode'
|
|
|
|
'Dilate'
|
|
|
|
'Laplace'
|
2014-05-07 13:14:32 +02:00
|
|
|
'Sobel'
|
|
|
|
'Threshold')
|
2013-09-12 12:50:55 +02:00
|
|
|
end
|
|
|
|
object chk1: TCheckBox
|
2014-05-11 02:42:34 +02:00
|
|
|
Left = 8
|
2014-05-18 12:36:01 +02:00
|
|
|
Top = 5
|
|
|
|
Width = 117
|
2013-09-12 12:50:55 +02:00
|
|
|
Height = 17
|
|
|
|
Caption = 'Camera enabled'
|
2013-12-02 19:39:13 +01:00
|
|
|
Checked = True
|
|
|
|
State = cbChecked
|
2014-05-07 13:14:32 +02:00
|
|
|
TabOrder = 1
|
2013-09-12 12:50:55 +02:00
|
|
|
OnClick = chk1Click
|
|
|
|
end
|
|
|
|
object ocvw1: TocvView
|
2013-12-02 19:39:13 +01:00
|
|
|
Left = 8
|
2014-05-18 12:36:01 +02:00
|
|
|
Top = 28
|
|
|
|
Width = 300
|
|
|
|
Height = 300
|
2014-05-11 02:42:34 +02:00
|
|
|
VideoSource = ocvcmrsrc1
|
2013-12-02 19:39:13 +01:00
|
|
|
end
|
|
|
|
object ocvw2: TocvView
|
|
|
|
Left = 8
|
2014-05-18 12:36:01 +02:00
|
|
|
Top = 358
|
|
|
|
Width = 300
|
|
|
|
Height = 300
|
2014-02-24 20:18:30 +01:00
|
|
|
VideoSource = ocvmgprtn1
|
2013-09-12 12:50:55 +02:00
|
|
|
end
|
2014-05-11 02:42:34 +02:00
|
|
|
object ocvw3: TocvView
|
|
|
|
Left = 316
|
2014-05-18 12:36:01 +02:00
|
|
|
Top = 358
|
|
|
|
Width = 300
|
|
|
|
Height = 300
|
2014-05-11 02:42:34 +02:00
|
|
|
VideoSource = ocvflsrc1
|
|
|
|
end
|
|
|
|
object ocvw4: TocvView
|
|
|
|
Left = 316
|
2014-05-18 12:36:01 +02:00
|
|
|
Top = 28
|
|
|
|
Width = 300
|
|
|
|
Height = 300
|
2014-05-11 02:42:34 +02:00
|
|
|
VideoSource = ocvpcmsrc1
|
2013-09-12 12:50:55 +02:00
|
|
|
end
|
2014-05-18 12:36:01 +02:00
|
|
|
object chk2: TCheckBox
|
|
|
|
Left = 314
|
|
|
|
Top = 5
|
|
|
|
Width = 129
|
|
|
|
Height = 17
|
|
|
|
Caption = 'IP Camera enabled'
|
|
|
|
TabOrder = 6
|
|
|
|
OnClick = chk2Click
|
|
|
|
end
|
|
|
|
object chk3: TCheckBox
|
|
|
|
Left = 314
|
|
|
|
Top = 338
|
|
|
|
Width = 187
|
|
|
|
Height = 17
|
|
|
|
Caption = 'File source'
|
|
|
|
TabOrder = 7
|
|
|
|
OnClick = chk3Click
|
|
|
|
end
|
2013-09-12 12:50:55 +02:00
|
|
|
object ocvmgprtn1: TocvImageOperation
|
2014-05-11 02:42:34 +02:00
|
|
|
VideoSource = ocvcmrsrc1
|
2014-05-18 12:36:01 +02:00
|
|
|
OperationClassName = 'TocvHaarCascade'
|
|
|
|
Operation.HaarCascade = hcLeftEye2Splits
|
2014-05-11 15:15:21 +02:00
|
|
|
Operation.Equalize = True
|
|
|
|
Operation.Scale = 1.300000000000000000
|
|
|
|
Operation.MinNeighbors = 3
|
|
|
|
Operation.MinSize.X = 30
|
|
|
|
Operation.MinSize.Y = 30
|
|
|
|
Operation.MaxSize.X = 0
|
|
|
|
Operation.MaxSize.Y = 0
|
2014-05-18 12:36:01 +02:00
|
|
|
Operation.DrawHaarCascade.Thickness = 3
|
|
|
|
Operation.DrawHaarCascade.Offset.X = 0
|
|
|
|
Operation.DrawHaarCascade.Offset.Y = 0
|
|
|
|
Operation.DrawHaarCascade.Color = clRed
|
|
|
|
Operation.CascadeFlags = [HAAR_DO_CANNY_PRUNING, HAAR_SCALE_IMAGE, HAAR_FIND_BIGGEST_OBJECT]
|
|
|
|
Operation.NotifyOnlyWhenFound = False
|
2014-05-11 02:42:34 +02:00
|
|
|
Operations = <
|
|
|
|
item
|
|
|
|
OperationClassName = 'TocvContoursOperation'
|
|
|
|
Operation.OperationClassName = 'TocvThresholdOperation'
|
|
|
|
Operation.Preprocessing.MaxValue = 255.000000000000000000
|
|
|
|
Operation.Preprocessing.ThresholdType = THRESH_BINARY_INV
|
|
|
|
Operation.Preprocessing.Threshold = 128.000000000000000000
|
|
|
|
Operation.Offset.X = 0
|
|
|
|
Operation.Offset.Y = 0
|
|
|
|
Operation.MinArea = 100
|
2014-05-11 15:15:21 +02:00
|
|
|
Operation.ContourDraw.Enabled = False
|
2014-05-11 02:42:34 +02:00
|
|
|
Operation.ContourDraw.Thickness = 1
|
2014-05-11 15:15:21 +02:00
|
|
|
Operation.ContourDraw.LineType = LT_FILLED
|
2014-05-11 02:42:34 +02:00
|
|
|
Operation.ContourDraw.Offset.X = 0
|
|
|
|
Operation.ContourDraw.Offset.Y = 0
|
2014-05-11 15:15:21 +02:00
|
|
|
Operation.ContourDraw.ExternalColor = clBlack
|
|
|
|
Operation.ContourDraw.HoleColor = clBlack
|
2014-05-18 12:36:01 +02:00
|
|
|
Operation.ContourDraw.MaxLevel = 0
|
2014-05-11 02:42:34 +02:00
|
|
|
Operation.ApproxPoly.Eps = 3.000000000000000000
|
|
|
|
end
|
|
|
|
item
|
|
|
|
OperationClassName = 'TocvNoneOperation'
|
|
|
|
end>
|
|
|
|
OperationsEnabled = False
|
2014-05-18 12:36:01 +02:00
|
|
|
Left = 36
|
|
|
|
Top = 392
|
2014-05-11 02:42:34 +02:00
|
|
|
end
|
|
|
|
object ocvflsrc1: TocvFileSource
|
|
|
|
Delay = 120
|
|
|
|
FileName = '.\Resource\768x576.avi'
|
2014-05-18 12:36:01 +02:00
|
|
|
Left = 372
|
|
|
|
Top = 396
|
2014-05-11 02:42:34 +02:00
|
|
|
end
|
|
|
|
object ocvcmrsrc1: TocvCameraSource
|
|
|
|
Enabled = True
|
2014-05-18 12:36:01 +02:00
|
|
|
Resolution = r960x544
|
2014-05-11 02:42:34 +02:00
|
|
|
Left = 32
|
2014-05-18 12:36:01 +02:00
|
|
|
Top = 40
|
2014-05-11 02:42:34 +02:00
|
|
|
end
|
|
|
|
object ocvpcmsrc1: TocvIPCamSource
|
|
|
|
UserName = 'admin'
|
|
|
|
Password = 'admin'
|
|
|
|
IP = '10.1.1.202'
|
|
|
|
Postfix = 'cam/realmonitor?channel=1&subtype=0'
|
|
|
|
Left = 336
|
2014-05-18 12:36:01 +02:00
|
|
|
Top = 44
|
2013-09-16 13:49:10 +02:00
|
|
|
end
|
2013-09-12 12:50:55 +02:00
|
|
|
end
|