mirror of
https://github.com/Laex/Delphi-OpenCV.git
synced 2024-11-15 07:45:53 +01:00
OpenCV 2.9.11
Signed-off-by: Laentir Valetov <laex@bk.ru>
This commit is contained in:
parent
8a4a8eebfd
commit
4535bd63ca
@ -18,6 +18,9 @@
|
||||
<Projects Include="cFMXCameracapture\cFMXCameraCapture.dproj">
|
||||
<Dependencies/>
|
||||
</Projects>
|
||||
<Projects Include="cObjectColorTracking\cObjectColorTracking.dproj">
|
||||
<Dependencies/>
|
||||
</Projects>
|
||||
</ItemGroup>
|
||||
<ProjectExtensions>
|
||||
<Borland.Personality>Default.Personality.12</Borland.Personality>
|
||||
@ -71,14 +74,23 @@
|
||||
<Target Name="cFMXCameraCapture:Make">
|
||||
<MSBuild Projects="cFMXCameracapture\cFMXCameraCapture.dproj" Targets="Make"/>
|
||||
</Target>
|
||||
<Target Name="cObjectColorTracking">
|
||||
<MSBuild Projects="cObjectColorTracking\cObjectColorTracking.dproj"/>
|
||||
</Target>
|
||||
<Target Name="cObjectColorTracking:Clean">
|
||||
<MSBuild Projects="cObjectColorTracking\cObjectColorTracking.dproj" Targets="Clean"/>
|
||||
</Target>
|
||||
<Target Name="cObjectColorTracking:Make">
|
||||
<MSBuild Projects="cObjectColorTracking\cObjectColorTracking.dproj" Targets="Make"/>
|
||||
</Target>
|
||||
<Target Name="Build">
|
||||
<CallTarget Targets="cCameraCapture;cMatchTemplate;cFFmpegIPCamSource;cVideoWriter;cFMXCameraCapture"/>
|
||||
<CallTarget Targets="cCameraCapture;cMatchTemplate;cFFmpegIPCamSource;cVideoWriter;cFMXCameraCapture;cObjectColorTracking"/>
|
||||
</Target>
|
||||
<Target Name="Clean">
|
||||
<CallTarget Targets="cCameraCapture:Clean;cMatchTemplate:Clean;cFFmpegIPCamSource:Clean;cVideoWriter:Clean;cFMXCameraCapture:Clean"/>
|
||||
<CallTarget Targets="cCameraCapture:Clean;cMatchTemplate:Clean;cFFmpegIPCamSource:Clean;cVideoWriter:Clean;cFMXCameraCapture:Clean;cObjectColorTracking:Clean"/>
|
||||
</Target>
|
||||
<Target Name="Make">
|
||||
<CallTarget Targets="cCameraCapture:Make;cMatchTemplate:Make;cFFmpegIPCamSource:Make;cVideoWriter:Make;cFMXCameraCapture:Make"/>
|
||||
<CallTarget Targets="cCameraCapture:Make;cMatchTemplate:Make;cFFmpegIPCamSource:Make;cVideoWriter:Make;cFMXCameraCapture:Make;cObjectColorTracking:Make"/>
|
||||
</Target>
|
||||
<Import Project="$(BDS)\Bin\CodeGear.Group.Targets" Condition="Exists('$(BDS)\Bin\CodeGear.Group.Targets')"/>
|
||||
</Project>
|
||||
|
@ -1,7 +1,7 @@
|
||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<ProjectGuid>{32F0B620-F9A6-4081-8E87-C89FF09CAD04}</ProjectGuid>
|
||||
<ProjectVersion>16.0</ProjectVersion>
|
||||
<ProjectVersion>16.1</ProjectVersion>
|
||||
<FrameworkType>VCL</FrameworkType>
|
||||
<MainSource>cCameraCapture.dpr</MainSource>
|
||||
<Base>True</Base>
|
||||
@ -199,3 +199,11 @@
|
||||
<Import Project="$(BDS)\Bin\CodeGear.Delphi.Targets" Condition="Exists('$(BDS)\Bin\CodeGear.Delphi.Targets')"/>
|
||||
<Import Project="$(APPDATA)\Embarcadero\$(BDSAPPDATABASEDIR)\$(PRODUCTVERSION)\UserTools.proj" Condition="Exists('$(APPDATA)\Embarcadero\$(BDSAPPDATABASEDIR)\$(PRODUCTVERSION)\UserTools.proj')"/>
|
||||
</Project>
|
||||
|
||||
<!-- EurekaLog First Line
|
||||
[Exception Log]
|
||||
EurekaLog Version=7007
|
||||
Activate=0
|
||||
DeleteMapAfterCompile=1
|
||||
Encrypt Password=""
|
||||
EurekaLog Last Line -->
|
||||
|
Binary file not shown.
@ -1,7 +1,7 @@
|
||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<ProjectGuid>{08BFF34B-6FF9-468C-9AB2-3F76BBC9E351}</ProjectGuid>
|
||||
<ProjectVersion>16.0</ProjectVersion>
|
||||
<ProjectVersion>16.1</ProjectVersion>
|
||||
<FrameworkType>VCL</FrameworkType>
|
||||
<MainSource>cFFmpegIPCamSource.dpr</MainSource>
|
||||
<Base>True</Base>
|
||||
@ -150,3 +150,11 @@
|
||||
<Import Project="$(BDS)\Bin\CodeGear.Delphi.Targets" Condition="Exists('$(BDS)\Bin\CodeGear.Delphi.Targets')"/>
|
||||
<Import Project="$(APPDATA)\Embarcadero\$(BDSAPPDATABASEDIR)\$(PRODUCTVERSION)\UserTools.proj" Condition="Exists('$(APPDATA)\Embarcadero\$(BDSAPPDATABASEDIR)\$(PRODUCTVERSION)\UserTools.proj')"/>
|
||||
</Project>
|
||||
|
||||
<!-- EurekaLog First Line
|
||||
[Exception Log]
|
||||
EurekaLog Version=7007
|
||||
Activate=0
|
||||
DeleteMapAfterCompile=1
|
||||
Encrypt Password=""
|
||||
EurekaLog Last Line -->
|
||||
|
Binary file not shown.
@ -1,7 +1,7 @@
|
||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<ProjectGuid>{DF744E81-26D1-44A1-826E-85DC20070C2F}</ProjectGuid>
|
||||
<ProjectVersion>16.0</ProjectVersion>
|
||||
<ProjectVersion>16.1</ProjectVersion>
|
||||
<FrameworkType>FMX</FrameworkType>
|
||||
<MainSource>cFMXCameraCapture.dpr</MainSource>
|
||||
<Base>True</Base>
|
||||
@ -123,6 +123,11 @@
|
||||
<VerInfo_Keys>package=com.embarcadero.$(MSBuildProjectName);label=$(MSBuildProjectName);versionCode=1;versionName=1.0.0;persistent=False;restoreAnyVersion=False;installLocation=preferExternal;largeHeap=False;theme=TitleBar;hardwareAccelerated=true</VerInfo_Keys>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Base_iOSDevice)'!=''">
|
||||
<iPhone_AppIcon180>$(BDS)\bin\Artwork\iOS\iPhone\FM_ApplicationIcon_180x180.png</iPhone_AppIcon180>
|
||||
<iPhone_AppIcon87>$(BDS)\bin\Artwork\iOS\iPhone\FM_ApplicationIcon_87x87.png</iPhone_AppIcon87>
|
||||
<iPhone_Launch2208>$(BDS)\bin\Artwork\iOS\iPhone\FM_LaunchImage_2208x1242.png</iPhone_Launch2208>
|
||||
<iPhone_Launch1242>$(BDS)\bin\Artwork\iOS\iPhone\FM_LaunchImage_1242x2208.png</iPhone_Launch1242>
|
||||
<iPhone_Launch750>$(BDS)\bin\Artwork\iOS\iPhone\FM_LaunchImage_750x1334.png</iPhone_Launch750>
|
||||
<iPad_Setting29>$(BDS)\bin\Artwork\iOS\iPad\FM_SettingIcon_29x29.png</iPad_Setting29>
|
||||
<VerInfo_BundleId>$(MSBuildProjectName)</VerInfo_BundleId>
|
||||
<VerInfo_IncludeVerInfo>true</VerInfo_IncludeVerInfo>
|
||||
@ -160,6 +165,11 @@
|
||||
<iPad_SpotLight50>$(BDS)\bin\Artwork\iOS\iPad\FM_SpotlightSearchIcon_50x50.png</iPad_SpotLight50>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Base_iOSSimulator)'!=''">
|
||||
<iPhone_AppIcon87>$(BDS)\bin\Artwork\iOS\iPhone\FM_ApplicationIcon_87x87.png</iPhone_AppIcon87>
|
||||
<iPhone_Launch2208>$(BDS)\bin\Artwork\iOS\iPhone\FM_LaunchImage_2208x1242.png</iPhone_Launch2208>
|
||||
<iPhone_Launch1242>$(BDS)\bin\Artwork\iOS\iPhone\FM_LaunchImage_1242x2208.png</iPhone_Launch1242>
|
||||
<iPhone_Launch750>$(BDS)\bin\Artwork\iOS\iPhone\FM_LaunchImage_750x1334.png</iPhone_Launch750>
|
||||
<iPhone_AppIcon180>$(BDS)\bin\Artwork\iOS\iPhone\FM_ApplicationIcon_180x180.png</iPhone_AppIcon180>
|
||||
<iPad_AppIcon144>$(BDS)\bin\Artwork\iOS\iPad\FM_ApplicationIcon_144x144.png</iPad_AppIcon144>
|
||||
<iPad_Setting29>$(BDS)\bin\Artwork\iOS\iPad\FM_SettingIcon_29x29.png</iPad_Setting29>
|
||||
<iPad_Launch768x1024>$(BDS)\bin\Artwork\iOS\iPad\FM_LaunchImagePortrait_768x1024.png</iPad_Launch768x1024>
|
||||
@ -375,7 +385,7 @@
|
||||
</DeployClass>
|
||||
<DeployClass Name="ProjectOSXEntitlements">
|
||||
<Platform Name="OSX32">
|
||||
<RemoteDir>Contents</RemoteDir>
|
||||
<RemoteDir>../</RemoteDir>
|
||||
<Operation>1</Operation>
|
||||
</Platform>
|
||||
</DeployClass>
|
||||
@ -461,6 +471,7 @@
|
||||
</DeployClass>
|
||||
<DeployClass Name="ProjectiOSEntitlements">
|
||||
<Platform Name="iOSDevice">
|
||||
<RemoteDir>../</RemoteDir>
|
||||
<Operation>1</Operation>
|
||||
</Platform>
|
||||
</DeployClass>
|
||||
@ -640,3 +651,11 @@
|
||||
<Import Project="$(APPDATA)\Embarcadero\$(BDSAPPDATABASEDIR)\$(PRODUCTVERSION)\UserTools.proj" Condition="Exists('$(APPDATA)\Embarcadero\$(BDSAPPDATABASEDIR)\$(PRODUCTVERSION)\UserTools.proj')"/>
|
||||
<Import Project="$(MSBuildProjectName).deployproj" Condition="Exists('$(MSBuildProjectName).deployproj')"/>
|
||||
</Project>
|
||||
|
||||
<!-- EurekaLog First Line
|
||||
[Exception Log]
|
||||
EurekaLog Version=7007
|
||||
Activate=0
|
||||
DeleteMapAfterCompile=1
|
||||
Encrypt Password=""
|
||||
EurekaLog Last Line -->
|
||||
|
Binary file not shown.
@ -1,7 +1,7 @@
|
||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<ProjectGuid>{37904A06-4ABD-411B-8C02-CCC73D6B4098}</ProjectGuid>
|
||||
<ProjectVersion>16.0</ProjectVersion>
|
||||
<ProjectVersion>16.1</ProjectVersion>
|
||||
<FrameworkType>VCL</FrameworkType>
|
||||
<MainSource>cMatchTemplate.dpr</MainSource>
|
||||
<Base>True</Base>
|
||||
@ -166,3 +166,11 @@
|
||||
<Import Project="$(BDS)\Bin\CodeGear.Delphi.Targets" Condition="Exists('$(BDS)\Bin\CodeGear.Delphi.Targets')"/>
|
||||
<Import Project="$(APPDATA)\Embarcadero\$(BDSAPPDATABASEDIR)\$(PRODUCTVERSION)\UserTools.proj" Condition="Exists('$(APPDATA)\Embarcadero\$(BDSAPPDATABASEDIR)\$(PRODUCTVERSION)\UserTools.proj')"/>
|
||||
</Project>
|
||||
|
||||
<!-- EurekaLog First Line
|
||||
[Exception Log]
|
||||
EurekaLog Version=7007
|
||||
Activate=0
|
||||
DeleteMapAfterCompile=1
|
||||
Encrypt Password=""
|
||||
EurekaLog Last Line -->
|
||||
|
Binary file not shown.
@ -29,7 +29,7 @@ object Form1: TForm1
|
||||
Top = 371
|
||||
Width = 292
|
||||
Height = 34
|
||||
TabOrder = 0
|
||||
TabOrder = 5
|
||||
inherited lbl1: TLabel
|
||||
Caption = 'H max:'
|
||||
end
|
||||
@ -43,7 +43,7 @@ object Form1: TForm1
|
||||
Top = 334
|
||||
Width = 292
|
||||
Height = 34
|
||||
TabOrder = 1
|
||||
TabOrder = 4
|
||||
inherited lbl1: TLabel
|
||||
Caption = 'V min:'
|
||||
end
|
||||
@ -56,7 +56,7 @@ object Form1: TForm1
|
||||
Top = 408
|
||||
Width = 292
|
||||
Height = 34
|
||||
TabOrder = 2
|
||||
TabOrder = 7
|
||||
inherited lbl1: TLabel
|
||||
Caption = 'S min:'
|
||||
end
|
||||
@ -83,7 +83,7 @@ object Form1: TForm1
|
||||
Top = 445
|
||||
Width = 292
|
||||
Height = 34
|
||||
TabOrder = 4
|
||||
TabOrder = 9
|
||||
inherited lbl1: TLabel
|
||||
Caption = 'S max:'
|
||||
end
|
||||
@ -96,7 +96,7 @@ object Form1: TForm1
|
||||
Top = 371
|
||||
Width = 292
|
||||
Height = 34
|
||||
TabOrder = 5
|
||||
TabOrder = 6
|
||||
inherited lbl1: TLabel
|
||||
Caption = 'V max:'
|
||||
end
|
||||
@ -121,14 +121,14 @@ object Form1: TForm1
|
||||
BorderStyle = bsSingle
|
||||
Caption = 'Selected color'
|
||||
ParentBackground = False
|
||||
TabOrder = 8
|
||||
TabOrder = 11
|
||||
end
|
||||
inline frm22: TFrame2
|
||||
Left = 299
|
||||
Top = 408
|
||||
Width = 292
|
||||
Height = 34
|
||||
TabOrder = 9
|
||||
TabOrder = 8
|
||||
inherited lbl1: TLabel
|
||||
Caption = 'Range'
|
||||
end
|
||||
@ -157,7 +157,8 @@ object Form1: TForm1
|
||||
Width = 97
|
||||
Height = 17
|
||||
Caption = 'Mask'
|
||||
TabOrder = 11
|
||||
Enabled = False
|
||||
TabOrder = 0
|
||||
end
|
||||
object ocvcmrsrc1: TocvCameraSource
|
||||
Enabled = True
|
||||
|
@ -90,6 +90,7 @@ begin
|
||||
yy := Trunc(O.Image.Height * Y / O.Height);
|
||||
SelectedPixel := O.Image.Pixel[xx, yy];
|
||||
UpdateTrack;
|
||||
chk1.Enabled:=True;
|
||||
end;
|
||||
|
||||
procedure TForm1.UpdateTrack;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<ProjectGuid>{15F13174-963C-4D40-A658-9AF254D2590C}</ProjectGuid>
|
||||
<ProjectVersion>16.0</ProjectVersion>
|
||||
<ProjectVersion>16.1</ProjectVersion>
|
||||
<FrameworkType>VCL</FrameworkType>
|
||||
<MainSource>cVideoWriter.dpr</MainSource>
|
||||
<Base>True</Base>
|
||||
@ -127,3 +127,11 @@
|
||||
<Import Project="$(BDS)\Bin\CodeGear.Delphi.Targets" Condition="Exists('$(BDS)\Bin\CodeGear.Delphi.Targets')"/>
|
||||
<Import Project="$(APPDATA)\Embarcadero\$(BDSAPPDATABASEDIR)\$(PRODUCTVERSION)\UserTools.proj" Condition="Exists('$(APPDATA)\Embarcadero\$(BDSAPPDATABASEDIR)\$(PRODUCTVERSION)\UserTools.proj')"/>
|
||||
</Project>
|
||||
|
||||
<!-- EurekaLog First Line
|
||||
[Exception Log]
|
||||
EurekaLog Version=7007
|
||||
Activate=0
|
||||
DeleteMapAfterCompile=1
|
||||
Encrypt Password=""
|
||||
EurekaLog Last Line -->
|
||||
|
Binary file not shown.
@ -1,26 +1,27 @@
|
||||
// *****************************************************************
|
||||
// Delphi-OpenCV Demo
|
||||
// Copyright (C) 2013 Project Delphi-OpenCV
|
||||
// ****************************************************************
|
||||
// Contributor:
|
||||
// Laentir Valetov
|
||||
// email:laex@bk.ru
|
||||
// ****************************************************************
|
||||
// You may retrieve the latest version of this file at the GitHub,
|
||||
// located at git://github.com/Laex/Delphi-OpenCV.git
|
||||
// ****************************************************************
|
||||
// The contents of this file are used with permission, subject to
|
||||
// the Mozilla Public License Version 1.1 (the "License"); you may
|
||||
// not use this file except in compliance with the License. You may
|
||||
// obtain a copy of the License at
|
||||
// http://www.mozilla.org/MPL/MPL-1_1Final.html
|
||||
//
|
||||
// Software distributed under the License is distributed on an
|
||||
// "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
// implied. See the License for the specific language governing
|
||||
// rights and limitations under the License.
|
||||
// *******************************************************************
|
||||
(*
|
||||
*****************************************************************
|
||||
Delphi-OpenCV Demo
|
||||
Copyright (C) 2013 Project Delphi-OpenCV
|
||||
****************************************************************
|
||||
Contributor:
|
||||
Laentir Valetov
|
||||
email:laex@bk.ru
|
||||
****************************************************************
|
||||
You may retrieve the latest version of this file at the GitHub,
|
||||
located at git://github.com/Laex/Delphi-OpenCV.git
|
||||
****************************************************************
|
||||
The contents of this file are used with permission, subject to
|
||||
the Mozilla Public License Version 1.1 (the "License"); you may
|
||||
not use this file except in compliance with the License. You may
|
||||
obtain a copy of the License at
|
||||
http://www.mozilla.org/MPL/MPL-1_1Final.html
|
||||
|
||||
Software distributed under the License is distributed on an
|
||||
"AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
implied. See the License for the specific language governing
|
||||
rights and limitations under the License.
|
||||
*******************************************************************
|
||||
*)
|
||||
program cv_Canny;
|
||||
|
||||
{$APPTYPE CONSOLE}
|
||||
|
@ -7,7 +7,7 @@
|
||||
<TargetedPlatforms>3</TargetedPlatforms>
|
||||
<AppType>Console</AppType>
|
||||
<FrameworkType>None</FrameworkType>
|
||||
<ProjectVersion>16.0</ProjectVersion>
|
||||
<ProjectVersion>16.1</ProjectVersion>
|
||||
<Platform Condition="'$(Platform)'==''">Win32</Platform>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Config)'=='Base' or '$(Base)'!=''">
|
||||
@ -76,7 +76,6 @@
|
||||
<DCC_Define>DEBUG;$(DCC_Define)</DCC_Define>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Cfg_2_Win32)'!=''">
|
||||
<Manifest_File>None</Manifest_File>
|
||||
<VerInfo_Keys>CompanyName=;FileDescription=;FileVersion=1.0.0.0;InternalName=;LegalCopyright=;LegalTrademarks=;OriginalFilename=;ProductName=;ProductVersion=1.0.0.0;Comments=</VerInfo_Keys>
|
||||
<VerInfo_Locale>1033</VerInfo_Locale>
|
||||
</PropertyGroup>
|
||||
@ -139,6 +138,9 @@
|
||||
<VersionInfoKeys Name="CFBundleAllowMixedLocalizations"/>
|
||||
<VersionInfoKeys Name="CFBundleExecutable"/>
|
||||
</VersionInfoKeys>
|
||||
<Excluded_Packages>
|
||||
<Excluded_Packages Name="$(BDSBIN)\dclofficexp210.bpl">Microsoft Office XP Sample Automation Server Wrapper Components</Excluded_Packages>
|
||||
</Excluded_Packages>
|
||||
</Delphi.Personality>
|
||||
<Platforms>
|
||||
<Platform value="OSX32">False</Platform>
|
||||
@ -151,3 +153,11 @@
|
||||
<Import Project="$(BDS)\Bin\CodeGear.Delphi.Targets" Condition="Exists('$(BDS)\Bin\CodeGear.Delphi.Targets')"/>
|
||||
<Import Project="$(APPDATA)\Embarcadero\$(BDSAPPDATABASEDIR)\$(PRODUCTVERSION)\UserTools.proj" Condition="Exists('$(APPDATA)\Embarcadero\$(BDSAPPDATABASEDIR)\$(PRODUCTVERSION)\UserTools.proj')"/>
|
||||
</Project>
|
||||
|
||||
<!-- EurekaLog First Line
|
||||
[Exception Log]
|
||||
EurekaLog Version=7007
|
||||
Activate=0
|
||||
DeleteMapAfterCompile=1
|
||||
Encrypt Password=""
|
||||
EurekaLog Last Line -->
|
||||
|
@ -1,25 +1,27 @@
|
||||
// *****************************************************************
|
||||
// Delphi-OpenCV Demo
|
||||
// Copyright (C) 2013 Project Delphi-OpenCV
|
||||
// ****************************************************************
|
||||
// Contributor:
|
||||
// Laentir Valetov
|
||||
// email:laex@bk.ru
|
||||
// ****************************************************************
|
||||
// You may retrieve the latest version of this file at the GitHub,
|
||||
// located at git://github.com/Laex/Delphi-OpenCV.git
|
||||
// ****************************************************************
|
||||
// The contents of this file are used with permission, subject to
|
||||
// the Mozilla Public License Version 1.1 (the "License"); you may
|
||||
// not use this file except in compliance with the License. You may
|
||||
// obtain a copy of the License at
|
||||
// http://www.mozilla.org/MPL/MPL-1_1Final.html
|
||||
//
|
||||
// Software distributed under the License is distributed on an
|
||||
// "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
// implied. See the License for the specific language governing
|
||||
// rights and limitations under the License.
|
||||
// *******************************************************************
|
||||
(*
|
||||
*****************************************************************
|
||||
Delphi-OpenCV Demo
|
||||
Copyright (C) 2013 Project Delphi-OpenCV
|
||||
****************************************************************
|
||||
Contributor:
|
||||
Laentir Valetov
|
||||
email:laex@bk.ru
|
||||
****************************************************************
|
||||
You may retrieve the latest version of this file at the GitHub,
|
||||
located at git://github.com/Laex/Delphi-OpenCV.git
|
||||
****************************************************************
|
||||
The contents of this file are used with permission, subject to
|
||||
the Mozilla Public License Version 1.1 (the "License"); you may
|
||||
not use this file except in compliance with the License. You may
|
||||
obtain a copy of the License at
|
||||
http://www.mozilla.org/MPL/MPL-1_1Final.html
|
||||
|
||||
Software distributed under the License is distributed on an
|
||||
"AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
implied. See the License for the specific language governing
|
||||
rights and limitations under the License.
|
||||
*******************************************************************
|
||||
*)
|
||||
|
||||
program cv_CodeBook;
|
||||
|
||||
|
@ -7,7 +7,7 @@
|
||||
<TargetedPlatforms>3</TargetedPlatforms>
|
||||
<AppType>Console</AppType>
|
||||
<FrameworkType>None</FrameworkType>
|
||||
<ProjectVersion>16.0</ProjectVersion>
|
||||
<ProjectVersion>16.1</ProjectVersion>
|
||||
<Platform Condition="'$(Platform)'==''">Win32</Platform>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Config)'=='Base' or '$(Base)'!=''">
|
||||
@ -151,3 +151,11 @@
|
||||
<Import Project="$(BDS)\Bin\CodeGear.Delphi.Targets" Condition="Exists('$(BDS)\Bin\CodeGear.Delphi.Targets')"/>
|
||||
<Import Project="$(APPDATA)\Embarcadero\$(BDSAPPDATABASEDIR)\$(PRODUCTVERSION)\UserTools.proj" Condition="Exists('$(APPDATA)\Embarcadero\$(BDSAPPDATABASEDIR)\$(PRODUCTVERSION)\UserTools.proj')"/>
|
||||
</Project>
|
||||
|
||||
<!-- EurekaLog First Line
|
||||
[Exception Log]
|
||||
EurekaLog Version=7007
|
||||
Activate=0
|
||||
DeleteMapAfterCompile=1
|
||||
Encrypt Password=""
|
||||
EurekaLog Last Line -->
|
||||
|
@ -1,26 +1,27 @@
|
||||
// *****************************************************************
|
||||
// Delphi-OpenCV Demo
|
||||
// Copyright (C) 2013 Project Delphi-OpenCV
|
||||
// ****************************************************************
|
||||
// Contributor:
|
||||
// Laentir Valetov
|
||||
// email:laex@bk.ru
|
||||
// ****************************************************************
|
||||
// You may retrieve the latest version of this file at the GitHub,
|
||||
// located at git://github.com/Laex/Delphi-OpenCV.git
|
||||
// ****************************************************************
|
||||
// The contents of this file are used with permission, subject to
|
||||
// the Mozilla Public License Version 1.1 (the "License"); you may
|
||||
// not use this file except in compliance with the License. You may
|
||||
// obtain a copy of the License at
|
||||
// http://www.mozilla.org/MPL/MPL-1_1Final.html
|
||||
//
|
||||
// Software distributed under the License is distributed on an
|
||||
// "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
// implied. See the License for the specific language governing
|
||||
// rights and limitations under the License.
|
||||
// *******************************************************************
|
||||
(*
|
||||
*****************************************************************
|
||||
Delphi-OpenCV Demo
|
||||
Copyright (C) 2013 Project Delphi-OpenCV
|
||||
****************************************************************
|
||||
Contributor:
|
||||
Laentir Valetov
|
||||
email:laex@bk.ru
|
||||
****************************************************************
|
||||
You may retrieve the latest version of this file at the GitHub,
|
||||
located at git://github.com/Laex/Delphi-OpenCV.git
|
||||
****************************************************************
|
||||
The contents of this file are used with permission, subject to
|
||||
the Mozilla Public License Version 1.1 (the "License"); you may
|
||||
not use this file except in compliance with the License. You may
|
||||
obtain a copy of the License at
|
||||
http://www.mozilla.org/MPL/MPL-1_1Final.html
|
||||
|
||||
Software distributed under the License is distributed on an
|
||||
"AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
implied. See the License for the specific language governing
|
||||
rights and limitations under the License.
|
||||
*******************************************************************
|
||||
*)
|
||||
program cv_FloodFill;
|
||||
|
||||
{$APPTYPE CONSOLE}
|
||||
|
@ -7,7 +7,7 @@
|
||||
<TargetedPlatforms>3</TargetedPlatforms>
|
||||
<AppType>Console</AppType>
|
||||
<FrameworkType>None</FrameworkType>
|
||||
<ProjectVersion>16.0</ProjectVersion>
|
||||
<ProjectVersion>16.1</ProjectVersion>
|
||||
<Platform Condition="'$(Platform)'==''">Win32</Platform>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Config)'=='Base' or '$(Base)'!=''">
|
||||
@ -151,3 +151,11 @@
|
||||
<Import Project="$(BDS)\Bin\CodeGear.Delphi.Targets" Condition="Exists('$(BDS)\Bin\CodeGear.Delphi.Targets')"/>
|
||||
<Import Project="$(APPDATA)\Embarcadero\$(BDSAPPDATABASEDIR)\$(PRODUCTVERSION)\UserTools.proj" Condition="Exists('$(APPDATA)\Embarcadero\$(BDSAPPDATABASEDIR)\$(PRODUCTVERSION)\UserTools.proj')"/>
|
||||
</Project>
|
||||
|
||||
<!-- EurekaLog First Line
|
||||
[Exception Log]
|
||||
EurekaLog Version=7007
|
||||
Activate=0
|
||||
DeleteMapAfterCompile=1
|
||||
Encrypt Password=""
|
||||
EurekaLog Last Line -->
|
||||
|
@ -1,6 +1,21 @@
|
||||
{$IFNDEF OPENCV_INC}
|
||||
{$DEFINE OPENCV_INC}
|
||||
|
||||
{$IFDEF DEBUG}
|
||||
{$A8,B-,C+,D+,E-,F-,G+,H+,I+,J+,K-,L+,M-,N+,O-,P+,Q+,R+,S-,T-,U-,V+,W+,X+,Y+,Z1}
|
||||
{$ELSE}
|
||||
{$A8,B-,C-,D-,E-,F-,G+,H+,I+,J+,K-,L-,M-,N+,O+,P+,Q-,R-,S-,T-,U-,V+,W-,X+,Y-,Z1}
|
||||
{$ENDIF}
|
||||
|
||||
{$POINTERMATH ON}
|
||||
|
||||
{$WARN SYMBOL_DEPRECATED OFF}
|
||||
{$WARN SYMBOL_PLATFORM OFF}
|
||||
{$WARN UNIT_PLATFORM OFF}
|
||||
{$WARN UNSAFE_TYPE OFF}
|
||||
{$WARN UNSAFE_CODE OFF}
|
||||
{$WARN UNSAFE_CAST OFF}
|
||||
|
||||
(*
|
||||
- Development environment directives
|
||||
|
||||
|
@ -468,3 +468,11 @@
|
||||
<Import Project="$(APPDATA)\Embarcadero\$(BDSAPPDATABASEDIR)\$(PRODUCTVERSION)\UserTools.proj" Condition="Exists('$(APPDATA)\Embarcadero\$(BDSAPPDATABASEDIR)\$(PRODUCTVERSION)\UserTools.proj')"/>
|
||||
<Import Project="$(MSBuildProjectName).deployproj" Condition="Exists('$(MSBuildProjectName).deployproj')"/>
|
||||
</Project>
|
||||
|
||||
<!-- EurekaLog First Line
|
||||
[Exception Log]
|
||||
EurekaLog Version=7007
|
||||
Activate=0
|
||||
DeleteMapAfterCompile=1
|
||||
Encrypt Password=""
|
||||
EurekaLog Last Line -->
|
||||
|
@ -483,3 +483,11 @@
|
||||
<Import Project="$(APPDATA)\Embarcadero\$(BDSAPPDATABASEDIR)\$(PRODUCTVERSION)\UserTools.proj" Condition="Exists('$(APPDATA)\Embarcadero\$(BDSAPPDATABASEDIR)\$(PRODUCTVERSION)\UserTools.proj')"/>
|
||||
<Import Project="$(MSBuildProjectName).deployproj" Condition="Exists('$(MSBuildProjectName).deployproj')"/>
|
||||
</Project>
|
||||
|
||||
<!-- EurekaLog First Line
|
||||
[Exception Log]
|
||||
EurekaLog Version=7007
|
||||
Activate=0
|
||||
DeleteMapAfterCompile=1
|
||||
Encrypt Password=""
|
||||
EurekaLog Last Line -->
|
||||
|
@ -449,3 +449,11 @@
|
||||
<Import Project="$(APPDATA)\Embarcadero\$(BDSAPPDATABASEDIR)\$(PRODUCTVERSION)\UserTools.proj" Condition="Exists('$(APPDATA)\Embarcadero\$(BDSAPPDATABASEDIR)\$(PRODUCTVERSION)\UserTools.proj')"/>
|
||||
<Import Project="$(MSBuildProjectName).deployproj" Condition="Exists('$(MSBuildProjectName).deployproj')"/>
|
||||
</Project>
|
||||
|
||||
<!-- EurekaLog First Line
|
||||
[Exception Log]
|
||||
EurekaLog Version=7007
|
||||
Activate=0
|
||||
DeleteMapAfterCompile=1
|
||||
Encrypt Password=""
|
||||
EurekaLog Last Line -->
|
||||
|
@ -1,65 +1,55 @@
|
||||
// **************************************************************************************************
|
||||
// Project Delphi-OpenCV
|
||||
// **************************************************************************************************
|
||||
// Contributor:
|
||||
// Laentir Valetov
|
||||
// email:laex@bk.ru
|
||||
// Mikhail Grigorev
|
||||
// email:sleuthound@gmail.com
|
||||
// **************************************************************************************************
|
||||
// You may retrieve the latest version of this file at the GitHub,
|
||||
// located at git://github.com/Laex/Delphi-OpenCV.git
|
||||
// **************************************************************************************************
|
||||
// License:
|
||||
// The contents of this file are subject to the Mozilla Public License Version 1.1 (the "License");
|
||||
// you may not use this file except in compliance with the License. You may obtain a copy of the
|
||||
// License at http://www.mozilla.org/MPL/
|
||||
//
|
||||
// Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF
|
||||
// ANY KIND, either express or implied. See the License for the specific language governing rights
|
||||
// and limitations under the License.
|
||||
//
|
||||
// Alternatively, the contents of this file may be used under the terms of the
|
||||
// GNU Lesser General Public License (the "LGPL License"), in which case the
|
||||
// provisions of the LGPL License are applicable instead of those above.
|
||||
// If you wish to allow use of your version of this file only under the terms
|
||||
// of the LGPL License and not to allow others to use your version of this file
|
||||
// under the MPL, indicate your decision by deleting the provisions above and
|
||||
// replace them with the notice and other provisions required by the LGPL
|
||||
// License. If you do not delete the provisions above, a recipient may use
|
||||
// your version of this file under either the MPL or the LGPL License.
|
||||
//
|
||||
// For more information about the LGPL: http://www.gnu.org/copyleft/lesser.html
|
||||
// **************************************************************************************************
|
||||
// Warning: Using Delphi XE3 syntax!
|
||||
// **************************************************************************************************
|
||||
// The Initial Developer of the Original Code:
|
||||
// OpenCV: open source computer vision library
|
||||
// Homepage: http://ocv.org
|
||||
// Online docs: http://docs.ocv.org
|
||||
// Q&A forum: http://answers.ocv.org
|
||||
// Dev zone: http://code.ocv.org
|
||||
// **************************************************************************************************
|
||||
// Original file:
|
||||
// opencv\modules\calib3d\include\opencv2\calib3d\calib3d_c.h
|
||||
// *************************************************************************************************
|
||||
(*
|
||||
**************************************************************************************************
|
||||
Project Delphi-OpenCV
|
||||
**************************************************************************************************
|
||||
Contributor:
|
||||
Laentir Valetov
|
||||
email:laex@bk.ru
|
||||
Mikhail Grigorev
|
||||
email:sleuthound@gmail.com
|
||||
**************************************************************************************************
|
||||
You may retrieve the latest version of this file at the GitHub,
|
||||
located at git://github.com/Laex/Delphi-OpenCV.git
|
||||
**************************************************************************************************
|
||||
License:
|
||||
The contents of this file are subject to the Mozilla Public License Version 1.1 (the "License");
|
||||
you may not use this file except in compliance with the License. You may obtain a copy of the
|
||||
License at http://www.mozilla.org/MPL/
|
||||
|
||||
Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF
|
||||
ANY KIND, either express or implied. See the License for the specific language governing rights
|
||||
and limitations under the License.
|
||||
|
||||
Alternatively, the contents of this file may be used under the terms of the
|
||||
GNU Lesser General Public License (the "LGPL License"), in which case the
|
||||
provisions of the LGPL License are applicable instead of those above.
|
||||
If you wish to allow use of your version of this file only under the terms
|
||||
of the LGPL License and not to allow others to use your version of this file
|
||||
under the MPL, indicate your decision by deleting the provisions above and
|
||||
replace them with the notice and other provisions required by the LGPL
|
||||
License. If you do not delete the provisions above, a recipient may use
|
||||
your version of this file under either the MPL or the LGPL License.
|
||||
|
||||
For more information about the LGPL: http://www.gnu.org/copyleft/lesser.html
|
||||
**************************************************************************************************
|
||||
Warning: Using Delphi XE3 syntax!
|
||||
**************************************************************************************************
|
||||
The Initial Developer of the Original Code:
|
||||
OpenCV: open source computer vision library
|
||||
Homepage: http://ocv.org
|
||||
Online docs: http://docs.ocv.org
|
||||
Q&A forum: http://answers.ocv.org
|
||||
Dev zone: http://code.ocv.org
|
||||
**************************************************************************************************
|
||||
Original file:
|
||||
opencv\modules\calib3d\include\opencv2\calib3d\calib3d_c.h
|
||||
*************************************************************************************************
|
||||
*)
|
||||
|
||||
//
|
||||
{$I OpenCV.inc}
|
||||
//
|
||||
{$IFDEF DEBUG}
|
||||
{$A8,B-,C+,D+,E-,F-,G+,H+,I+,J-,K-,L+,M-,N+,O-,P+,Q+,R+,S-,T-,U-,V+,W+,X+,Y+,Z1}
|
||||
{$ELSE}
|
||||
{$A8,B-,C-,D-,E-,F-,G+,H+,I+,J-,K-,L-,M-,N+,O+,P+,Q-,R-,S-,T-,U-,V+,W-,X+,Y-,Z1}
|
||||
{$ENDIF}
|
||||
{$WARN SYMBOL_DEPRECATED OFF}
|
||||
{$WARN SYMBOL_PLATFORM OFF}
|
||||
{$WARN UNIT_PLATFORM OFF}
|
||||
{$WARN UNSAFE_TYPE OFF}
|
||||
{$WARN UNSAFE_CODE OFF}
|
||||
{$WARN UNSAFE_CAST OFF}
|
||||
unit ocv.calib3d_c;
|
||||
|
||||
{$I OpenCV.inc}
|
||||
|
||||
interface
|
||||
|
||||
uses
|
||||
@ -93,8 +83,8 @@ function cvCreatePOSITObject(points: pCvPoint3D32f; point_count: Integer): PCvPO
|
||||
double focal_length, CvTermCriteria criteria,
|
||||
float* rotation_matrix, float* translation_vector);
|
||||
*)
|
||||
procedure cvPOSIT(posit_object: PCvPOSITObject; imagePoints: pCvPoint2D32f; focal_length: double;
|
||||
criteria: TCvTermCriteria; rotation_matrix: TCvMatr32f; translation_vector: TCvVect32f); cdecl;
|
||||
procedure cvPOSIT(posit_object: PCvPOSITObject; imagePoints: pCvPoint2D32f; focal_length: double; criteria: TCvTermCriteria;
|
||||
rotation_matrix: TCvMatr32f; translation_vector: TCvVect32f); cdecl;
|
||||
(* Releases CvPOSITObject structure
|
||||
CVAPI(void) cvReleasePOSITObject( CvPOSITObject** posit_object );
|
||||
*)
|
||||
@ -121,8 +111,8 @@ const
|
||||
CV_FM_RANSAC = CV_RANSAC;
|
||||
|
||||
CV_ITERATIVE = 0;
|
||||
CV_EPNP = 1; // F.Moreno-Noguer, V.Lepetit and P.Fua "EPnP: Efficient Perspective-n-Point Camera Pose Estimation"
|
||||
CV_P3P = 2;
|
||||
CV_EPNP = 1; // F.Moreno-Noguer, V.Lepetit and P.Fua "EPnP: Efficient Perspective-n-Point Camera Pose Estimation"
|
||||
CV_P3P = 2;
|
||||
// X.S. Gao, X.-R. Hou, J. Tang, H.-F. Chang; "Complete Solution Classification for the Perspective-Three-Point Problem"
|
||||
|
||||
(*
|
||||
@ -132,8 +122,8 @@ const
|
||||
double param1 CV_DEFAULT(3.), double param2 CV_DEFAULT(0.99),
|
||||
CvMat* status CV_DEFAULT(NULL) );
|
||||
*)
|
||||
function cvFindFundamentalMat(const points1: pCvMat; const points2: pCvMat; fundamental_matrix: pCvMat;
|
||||
method: Integer = CV_FM_RANSAC; param1: double = 3; param2: double = 0.99; status: pCvMat = nil): Integer; cdecl;
|
||||
function cvFindFundamentalMat(const points1: pCvMat; const points2: pCvMat; fundamental_matrix: pCvMat; method: Integer = CV_FM_RANSAC;
|
||||
param1: double = 3; param2: double = 0.99; status: pCvMat = nil): Integer; cdecl;
|
||||
|
||||
(*
|
||||
For each input point on one of images
|
||||
@ -146,17 +136,26 @@ function cvFindFundamentalMat(const points1: pCvMat; const points2: pCvMat; fund
|
||||
CvMat* correspondent_lines );
|
||||
*)
|
||||
|
||||
(* Triangulation functions
|
||||
procedure cvComputeCorrespondEpilines(const points: pCvMat; which_image: Integer; const fundamental_matrix: pCvMat;
|
||||
correspondent_lines: pCvMat); cdecl;
|
||||
|
||||
(*
|
||||
Triangulation functions
|
||||
|
||||
CVAPI(void) cvTriangulatePoints(CvMat* projMatr1, CvMat* projMatr2,
|
||||
CvMat* projPoints1, CvMat* projPoints2,
|
||||
CvMat* points4D);
|
||||
*)
|
||||
|
||||
procedure cvTriangulatePoints(projMatr1: pCvMat; projMatr2: pCvMat; projPoints1: pCvMat; projPoints2: pCvMat; points4D: pCvMat); cdecl;
|
||||
|
||||
(*
|
||||
CVAPI(void) cvCorrectMatches(CvMat* F, CvMat* points1, CvMat* points2,
|
||||
CvMat* new_points1, CvMat* new_points2);
|
||||
*)
|
||||
|
||||
procedure cvCorrectMatches(F: pCvMat; points1: pCvMat; points2: pCvMat; new_points1: pCvMat; new_points2: pCvMat); cdecl;
|
||||
|
||||
(*
|
||||
Computes the optimal new camera matrix according to the free scaling parameter alpha:
|
||||
alpha=0 - only valid pixels will be retained in the undistorted image
|
||||
@ -171,6 +170,10 @@ function cvFindFundamentalMat(const points1: pCvMat; const points2: pCvMat; fund
|
||||
int center_principal_point CV_DEFAULT(0));
|
||||
*)
|
||||
|
||||
procedure cvGetOptimalNewCameraMatrix(const camera_matrix: pCvMat; const dist_coeffs: pCvMat; image_size: TCvSize; alpha: double;
|
||||
new_camera_matrix: pCvMat; new_imag_size: TCvSize { = CV_DEFAULT(cvSize(0,0))) }; valid_pixel_ROI: PCvRect = nil;
|
||||
center_principal_point: Integer = 0); cdecl;
|
||||
|
||||
(*
|
||||
Converts rotation vector to rotation matrix or vice versa
|
||||
|
||||
@ -194,6 +197,7 @@ function cvFindHomography(const src_points: pCvMat; const dst_points: pCvMat; ho
|
||||
|
||||
(*
|
||||
Computes RQ decomposition for 3x3 matrices
|
||||
|
||||
CVAPI(void) cvRQDecomp3x3( const CvMat *matrixM, CvMat *matrixR, CvMat *matrixQ,
|
||||
CvMat *matrixQx CV_DEFAULT(NULL),
|
||||
CvMat *matrixQy CV_DEFAULT(NULL),
|
||||
@ -201,6 +205,9 @@ function cvFindHomography(const src_points: pCvMat; const dst_points: pCvMat; ho
|
||||
CvPoint3D64f *eulerAngles CV_DEFAULT(NULL));
|
||||
*)
|
||||
|
||||
procedure cvRQDecomp3x3(const matrixM: pCvMat; matrixR: pCvMat; matrixQ: pCvMat; matrixQx: pCvMat = nil; matrixQy: pCvMat = nil;
|
||||
matrixQz: pCvMat = nil; eulerAngles: PCvPoint3D64f = nil); cdecl;
|
||||
|
||||
(*
|
||||
Computes projection matrix decomposition
|
||||
|
||||
@ -212,12 +219,17 @@ function cvFindHomography(const src_points: pCvMat; const dst_points: pCvMat; ho
|
||||
CvPoint3D64f *eulerAngles CV_DEFAULT(NULL));
|
||||
*)
|
||||
|
||||
procedure cvDecomposeProjectionMatrix(const projMatr: pCvMat; calibMatr: pCvMat; rotMatr: pCvMat; posVect: pCvMat; rotMatrX: pCvMat = nil;
|
||||
rotMatrY: pCvMat = nil; rotMatrZ: pCvMat = nil; eulerAngles: PCvPoint3D64f = nil); cdecl;
|
||||
|
||||
(*
|
||||
Computes d(AB)/dA and d(AB)/dB
|
||||
|
||||
CVAPI(void) cvCalcMatMulDeriv( const CvMat* A, const CvMat* B, CvMat* dABdA, CvMat* dABdB );
|
||||
*)
|
||||
|
||||
procedure cvCalcMatMulDeriv(const A: pCvMat; const B: pCvMat; dABdA: pCvMat; dABdB: pCvMat); cdecl;
|
||||
|
||||
(*
|
||||
Computes r3 = rodrigues(rodrigues(r2)*rodrigues(r1)),
|
||||
t3 = rodrigues(r2)*t1 + t2 and the respective derivatives
|
||||
@ -231,6 +243,10 @@ function cvFindHomography(const src_points: pCvMat; const dst_points: pCvMat; ho
|
||||
CvMat* dt3dr2 CV_DEFAULT(0), CvMat* dt3dt2 CV_DEFAULT(0) );
|
||||
*)
|
||||
|
||||
procedure cvComposeRT(const _rvec1: pCvMat; const _tvec1: pCvMat; const _rvec2: pCvMat; const _tvec2: pCvMat; _rvec3: pCvMat;
|
||||
_tvec3: pCvMat; dr3dr1: pCvMat = nil; dr3dt1: pCvMat = nil; dr3dr2: pCvMat = nil; dr3dt2: pCvMat = nil; dt3dr1: pCvMat = nil;
|
||||
dt3dt1: pCvMat = nil; dt3dr2: pCvMat = nil; dt3dt2: pCvMat = nil); cdecl;
|
||||
|
||||
(*
|
||||
Projects object points to the view plane using
|
||||
the specified extrinsic and intrinsic camera parameters
|
||||
@ -244,52 +260,61 @@ function cvFindHomography(const src_points: pCvMat; const dst_points: pCvMat; ho
|
||||
double aspect_ratio CV_DEFAULT(0));
|
||||
*)
|
||||
procedure cvProjectPoints2(const object_points: pCvMat; const rotation_vector: pCvMat; const translation_vector: pCvMat;
|
||||
const camera_matrix: pCvMat; const distortion_coeffs: pCvMat; image_points: pCvMat; dpdrot: pCvMat = nil;
|
||||
dpdt: pCvMat = nil; dpdf: pCvMat = nil; dpdc: pCvMat = nil; dpddist: pCvMat = nil; aspect_ratio: double = 0); cdecl;
|
||||
const camera_matrix: pCvMat; const distortion_coeffs: pCvMat; image_points: pCvMat; dpdrot: pCvMat = nil; dpdt: pCvMat = nil;
|
||||
dpdf: pCvMat = nil; dpdc: pCvMat = nil; dpddist: pCvMat = nil; aspect_ratio: double = 0); cdecl;
|
||||
|
||||
// * Finds extrinsic camera parameters from
|
||||
// a few known corresponding point pairs and intrinsic parameters *)
|
||||
// CVAPI(void) cvFindExtrinsicCameraParams2( const CvMat* object_points,
|
||||
// const CvMat* image_points,
|
||||
// const CvMat* camera_matrix,
|
||||
// const CvMat* distortion_coeffs,
|
||||
// CvMat* rotation_vector,
|
||||
// CvMat* translation_vector,
|
||||
// int use_extrinsic_guess CV_DEFAULT(0) );
|
||||
procedure cvFindExtrinsicCameraParams2(const object_points: pCvMat; const image_points: pCvMat;
|
||||
const camera_matrix: pCvMat; const distortion_coeffs: pCvMat; rotation_vector: pCvMat; translation_vector: pCvMat;
|
||||
use_extrinsic_guess: Integer = 0); cdecl;
|
||||
(* Finds extrinsic camera parameters from
|
||||
a few known corresponding point pairs and intrinsic parameters
|
||||
|
||||
CVAPI(void) cvFindExtrinsicCameraParams2( const CvMat* object_points,
|
||||
const CvMat* image_points,
|
||||
const CvMat* camera_matrix,
|
||||
const CvMat* distortion_coeffs,
|
||||
CvMat* rotation_vector,
|
||||
CvMat* translation_vector,
|
||||
int use_extrinsic_guess CV_DEFAULT(0) );
|
||||
*)
|
||||
procedure cvFindExtrinsicCameraParams2(const object_points: pCvMat; const image_points: pCvMat; const camera_matrix: pCvMat;
|
||||
const distortion_coeffs: pCvMat; rotation_vector: pCvMat; translation_vector: pCvMat; use_extrinsic_guess: Integer = 0); cdecl;
|
||||
|
||||
(* Computes initial estimate of the intrinsic camera parameters
|
||||
// in case of planar calibration target (e.g. chessboard) *)
|
||||
// CVAPI(void) cvInitIntrinsicParams2D( const CvMat* object_points,
|
||||
// const CvMat* image_points,
|
||||
// const CvMat* npoints, CvSize image_size,
|
||||
// CvMat* camera_matrix,
|
||||
// double aspect_ratio CV_DEFAULT(1.) );
|
||||
//
|
||||
// #define CV_CALIB_CB_ADAPTIVE_THRESH 1
|
||||
// #define CV_CALIB_CB_NORMALIZE_IMAGE 2
|
||||
// #define CV_CALIB_CB_FILTER_QUADS 4
|
||||
// #define CV_CALIB_CB_FAST_CHECK 8
|
||||
//
|
||||
in case of planar calibration target (e.g. chessboard)
|
||||
|
||||
{ // Performs a fast check if a chessboard is in the input image. This is a workaround to
|
||||
// a problem of cvFindChessboardCorners being slow on images with no chessboard
|
||||
// - src: input image
|
||||
// - size: chessboard size
|
||||
// Returns 1 if a chessboard can be in this image and findChessboardCorners should be called,
|
||||
// 0 if there is no chessboard, -1 in case of error
|
||||
CVAPI(int) cvCheckChessboard(IplImage* src, CvSize size);
|
||||
}
|
||||
CVAPI(void) cvInitIntrinsicParams2D( const CvMat* object_points,
|
||||
const CvMat* image_points,
|
||||
const CvMat* npoints, CvSize image_size,
|
||||
CvMat* camera_matrix,
|
||||
double aspect_ratio CV_DEFAULT(1.) );
|
||||
*)
|
||||
const
|
||||
CV_CALIB_CB_ADAPTIVE_THRESH = 1;
|
||||
CV_CALIB_CB_NORMALIZE_IMAGE = 2;
|
||||
CV_CALIB_CB_FILTER_QUADS = 4;
|
||||
CV_CALIB_CB_FAST_CHECK = 8;
|
||||
|
||||
(* Performs a fast check if a chessboard is in the input image. This is a workaround to
|
||||
a problem of cvFindChessboardCorners being slow on images with no chessboard
|
||||
- src: input image
|
||||
- size: chessboard size
|
||||
Returns 1 if a chessboard can be in this image and findChessboardCorners should be called,
|
||||
0 if there is no chessboard, -1 in case of error
|
||||
|
||||
CVAPI(int) cvCheckChessboard(IplImage* src, CvSize size);
|
||||
*)
|
||||
function cvCheckChessboard(const image: pCvArr; size: TCvSize): Integer; cdecl;
|
||||
|
||||
(*
|
||||
Detects corners on a chessboard calibration pattern
|
||||
|
||||
// /* Detects corners on a chessboard calibration pattern *)
|
||||
// CVAPI(int) cvFindChessboardCorners( const void* image, CvSize pattern_size,
|
||||
// CvPoint2D32f* corners,
|
||||
// int* corner_count CV_DEFAULT(NULL),
|
||||
// int flags CV_DEFAULT(CV_CALIB_CB_ADAPTIVE_THRESH+CV_CALIB_CB_NORMALIZE_IMAGE) );
|
||||
CVAPI(int) cvFindChessboardCorners(
|
||||
const void* image,
|
||||
CvSize pattern_size,
|
||||
CvPoint2D32f* corners,
|
||||
int* corner_count CV_DEFAULT(NULL),
|
||||
int flags CV_DEFAULT(CV_CALIB_CB_ADAPTIVE_THRESH+CV_CALIB_CB_NORMALIZE_IMAGE) );
|
||||
*)
|
||||
function cvFindChessboardCorners(const image: Pointer; pattern_size: TCvSize; corners: pCvPoint2D32f; corner_count: pInteger = nil;
|
||||
flags: Integer = CV_CALIB_CB_ADAPTIVE_THRESH + CV_CALIB_CB_NORMALIZE_IMAGE): Integer; cdecl;
|
||||
|
||||
const
|
||||
CV_CALIB_USE_INTRINSIC_GUESS = 1;
|
||||
@ -362,6 +387,11 @@ function cvCalibrateCamera2(
|
||||
CvPoint2D64f *principal_point CV_DEFAULT(NULL),
|
||||
double *pixel_aspect_ratio CV_DEFAULT(NULL));
|
||||
*)
|
||||
|
||||
procedure cvCalibrationMatrixValues(const camera_matrix: pCvMat; image_size: TCvSize; aperture_width: double = 0;
|
||||
aperture_height: double = 0; fovx: PDouble = nil; fovy: PDouble = nil; focal_length: PDouble = nil; principal_point: PCvPoint2D64f = nil;
|
||||
pixel_aspect_ratio: PDouble = nil); cdecl;
|
||||
|
||||
const
|
||||
CV_CALIB_FIX_INTRINSIC = 256;
|
||||
CV_CALIB_SAME_FOCAL_LENGTH = 512;
|
||||
@ -380,9 +410,9 @@ const
|
||||
CV_TERMCRIT_ITER+CV_TERMCRIT_EPS,30,1e-6)),
|
||||
int flags CV_DEFAULT(CV_CALIB_FIX_INTRINSIC));
|
||||
*)
|
||||
function cvStereoCalibrate(const object_points: pCvMat; const image_points1: pCvMat; const image_points2: pCvMat;
|
||||
const npoints: pCvMat; camera_matrix1: pCvMat; dist_coeffs1: pCvMat; camera_matrix2: pCvMat; dist_coeffs2: pCvMat;
|
||||
image_size: TCvSize; R: pCvMat; T: pCvMat; E: pCvMat { = nil }; F: pCvMat { = nil };
|
||||
function cvStereoCalibrate(const object_points: pCvMat; const image_points1: pCvMat; const image_points2: pCvMat; const npoints: pCvMat;
|
||||
camera_matrix1: pCvMat; dist_coeffs1: pCvMat; camera_matrix2: pCvMat; dist_coeffs2: pCvMat; image_size: TCvSize; R: pCvMat; T: pCvMat;
|
||||
E: pCvMat { = nil }; F: pCvMat { = nil };
|
||||
term_crit: TCvTermCriteria { = CV_DEFAULT(cvTermCriteria(CV_TERMCRIT_ITER + CV_TERMCRIT_EPS, 30, 1E-6)) };
|
||||
flags: Integer { = CV_DEFAULT(CV_CALIB_FIX_INTRINSIC) } ): double; cdecl;
|
||||
|
||||
@ -405,10 +435,9 @@ const
|
||||
CvRect* valid_pix_ROI2 CV_DEFAULT(0));
|
||||
*)
|
||||
procedure cvStereoRectify(const camera_matrix1: pCvMat; const camera_matrix2: pCvMat; const dist_coeffs1: pCvMat;
|
||||
const dist_coeffs2: pCvMat; image_size: TCvSize; const R: pCvMat; const T: pCvMat; R1: pCvMat; R2: pCvMat; P1: pCvMat;
|
||||
P2: pCvMat; Q: pCvMat { = nil }; flags: Integer { = CV_CALIB_ZERO_DISPARITY }; alpha: double { = -1 };
|
||||
new_image_size: TCvSize { =CV_DEFAULT(cvSize(0,0)) }; valid_pix_ROI1: pCvRect { =nil };
|
||||
valid_pix_ROI2: pCvRect { =nil } ); cdecl;
|
||||
const dist_coeffs2: pCvMat; image_size: TCvSize; const R: pCvMat; const T: pCvMat; R1: pCvMat; R2: pCvMat; P1: pCvMat; P2: pCvMat;
|
||||
Q: pCvMat { = nil }; flags: Integer { = CV_CALIB_ZERO_DISPARITY }; alpha: double { = -1 };
|
||||
new_image_size: TCvSize { =CV_DEFAULT(cvSize(0,0)) }; valid_pix_ROI1: PCvRect { =nil }; valid_pix_ROI2: PCvRect { =nil } ); cdecl;
|
||||
|
||||
(*
|
||||
Computes rectification transformations for uncalibrated pair of images using a set
|
||||
@ -419,8 +448,8 @@ procedure cvStereoRectify(const camera_matrix1: pCvMat; const camera_matrix2: pC
|
||||
CvMat* H1, CvMat* H2,
|
||||
double threshold CV_DEFAULT(5));
|
||||
*)
|
||||
function cvStereoRectifyUncalibrated(const points1: pCvMat; const points2: pCvMat; const F: pCvMat; img_size: TCvSize;
|
||||
H1: pCvMat; H2: pCvMat; threshold: double = 5): Integer; cdecl;
|
||||
function cvStereoRectifyUncalibrated(const points1: pCvMat; const points2: pCvMat; const F: pCvMat; img_size: TCvSize; H1: pCvMat;
|
||||
H2: pCvMat; threshold: double = 5): Integer; cdecl;
|
||||
|
||||
(* stereo correspondence parameters and functions *)
|
||||
const
|
||||
@ -508,24 +537,36 @@ const
|
||||
CVAPI(CvStereoBMState* ) cvCreateStereoBMState(int preset CV_DEFAULT(CV_STEREO_BM_BASIC),
|
||||
int numberOfDisparities CV_DEFAULT(0));
|
||||
*)
|
||||
function cvCreateStereoBMState(preset: Integer = CV_STEREO_BM_BASIC; numberOfDisparities: Integer = 0)
|
||||
: pCvStereoBMState; cdecl;
|
||||
function cvCreateStereoBMState(preset: Integer = CV_STEREO_BM_BASIC; numberOfDisparities: Integer = 0): pCvStereoBMState; cdecl;
|
||||
|
||||
// CVAPI(void) cvReleaseStereoBMState( CvStereoBMState** state );
|
||||
//
|
||||
// CVAPI(void) cvFindStereoCorrespondenceBM( const CvArr* left, const CvArr* right,
|
||||
// CvArr* disparity, CvStereoBMState* state );
|
||||
(*
|
||||
CVAPI(void) cvReleaseStereoBMState( CvStereoBMState** state );
|
||||
*)
|
||||
|
||||
procedure cvReleaseStereoBMState(Var state: pCvStereoBMState); cdecl;
|
||||
|
||||
(*
|
||||
CVAPI(void) cvFindStereoCorrespondenceBM( const CvArr* left, const CvArr* right,
|
||||
CvArr* disparity, CvStereoBMState* state );
|
||||
*)
|
||||
|
||||
procedure cvFindStereoCorrespondenceBM(const left: pCvArr; const right: pCvArr; disparity: pCvArr; state: pCvStereoBMState); cdecl;
|
||||
|
||||
(*
|
||||
CVAPI(CvRect) cvGetValidDisparityROI( CvRect roi1, CvRect roi2, int minDisparity,
|
||||
int numberOfDisparities, int SADWindowSize );
|
||||
*)
|
||||
function cvGetValidDisparityROI(roi1: TCvRect; roi2: TCvRect; minDisparity: Integer; numberOfDisparities: Integer;
|
||||
SADWindowSize: Integer): TCvRect; cdecl;
|
||||
function cvGetValidDisparityROI(roi1: TCvRect; roi2: TCvRect; minDisparity: Integer; numberOfDisparities: Integer; SADWindowSize: Integer)
|
||||
: TCvRect; cdecl;
|
||||
|
||||
// CVAPI(void) cvValidateDisparity( CvArr* disparity, const CvArr* cost,
|
||||
// int minDisparity, int numberOfDisparities,
|
||||
// int disp12MaxDiff CV_DEFAULT(1) );
|
||||
(*
|
||||
CVAPI(void) cvValidateDisparity( CvArr* disparity, const CvArr* cost,
|
||||
int minDisparity, int numberOfDisparities,
|
||||
int disp12MaxDiff CV_DEFAULT(1) );
|
||||
*)
|
||||
|
||||
procedure cvValidateDisparity(disparity: pCvArr; const cost: pCvArr; minDisparity: Integer; numberOfDisparities: Integer;
|
||||
disp12MaxDiff: Integer = 1); cdecl;
|
||||
|
||||
(*
|
||||
Reprojects the computed disparity image to the 3D space using the specified 4x4 matrix
|
||||
@ -543,26 +584,6 @@ procedure cvReprojectImageTo3D(
|
||||
{ } const Q: pCvMat;
|
||||
{ } handleMissingValues: Integer = 0); cdecl;
|
||||
|
||||
Const
|
||||
CV_CALIB_CB_ADAPTIVE_THRESH = 1;
|
||||
CV_CALIB_CB_NORMALIZE_IMAGE = 2;
|
||||
CV_CALIB_CB_FILTER_QUADS = 4;
|
||||
CV_CALIB_CB_FAST_CHECK = 8;
|
||||
|
||||
(*
|
||||
Detects corners on a chessboard calibration pattern
|
||||
|
||||
CVAPI(int) cvFindChessboardCorners(
|
||||
const void* image,
|
||||
CvSize pattern_size,
|
||||
CvPoint2D32f* corners,
|
||||
int* corner_count CV_DEFAULT(NULL),
|
||||
int flags CV_DEFAULT(CV_CALIB_CB_ADAPTIVE_THRESH+CV_CALIB_CB_NORMALIZE_IMAGE) );
|
||||
*)
|
||||
function cvFindChessboardCorners(const image: Pointer; pattern_size: TCvSize; corners: pCvPoint2D32f;
|
||||
corner_count: pInteger = nil; flags: Integer = CV_CALIB_CB_ADAPTIVE_THRESH + CV_CALIB_CB_NORMALIZE_IMAGE)
|
||||
: Integer; cdecl;
|
||||
|
||||
implementation
|
||||
|
||||
uses ocv.lib;
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -44,23 +44,10 @@
|
||||
*************************************************************************************************
|
||||
*)
|
||||
|
||||
//
|
||||
{$I OpenCV.inc}
|
||||
//
|
||||
|
||||
{$IFDEF DEBUG}
|
||||
{$A8,B-,C+,D+,E-,F-,G+,H+,I+,J-,K-,L+,M-,N+,O-,P+,Q+,R+,S-,T-,U-,V+,W+,X+,Y+,Z1}
|
||||
{$ELSE}
|
||||
{$A8,B-,C-,D-,E-,F-,G+,H+,I+,J-,K-,L-,M-,N+,O+,P+,Q-,R-,S-,T-,U-,V+,W-,X+,Y-,Z1}
|
||||
{$ENDIF}
|
||||
{$WARN SYMBOL_DEPRECATED OFF}
|
||||
{$WARN SYMBOL_PLATFORM OFF}
|
||||
{$WARN UNIT_PLATFORM OFF}
|
||||
{$WARN UNSAFE_TYPE OFF}
|
||||
{$WARN UNSAFE_CODE OFF}
|
||||
{$WARN UNSAFE_CAST OFF}
|
||||
unit ocv.contrib;
|
||||
|
||||
{$I OpenCV.inc}
|
||||
|
||||
interface
|
||||
|
||||
uses
|
||||
|
@ -43,22 +43,10 @@
|
||||
**************************************************************************************************
|
||||
*)
|
||||
|
||||
//
|
||||
{$I OpenCV.inc}
|
||||
//
|
||||
{$IFDEF DEBUG}
|
||||
{$A8,B-,C+,D+,E-,F-,G+,H+,I+,J-,K-,L+,M-,N+,O-,P+,Q+,R+,S-,T-,U-,V+,W+,X+,Y+,Z1}
|
||||
{$ELSE}
|
||||
{$A8,B-,C-,D-,E-,F-,G+,H+,I+,J-,K-,L-,M-,N+,O+,P+,Q-,R-,S-,T-,U-,V+,W-,X+,Y-,Z1}
|
||||
{$ENDIF}
|
||||
{$WARN SYMBOL_DEPRECATED OFF}
|
||||
{$WARN SYMBOL_PLATFORM OFF}
|
||||
{$WARN UNIT_PLATFORM OFF}
|
||||
{$WARN UNSAFE_TYPE OFF}
|
||||
{$WARN UNSAFE_CODE OFF}
|
||||
{$WARN UNSAFE_CAST OFF}
|
||||
unit ocv.core;
|
||||
|
||||
{$I OpenCV.inc}
|
||||
|
||||
interface
|
||||
|
||||
uses
|
||||
@ -138,7 +126,7 @@ Type
|
||||
end;
|
||||
|
||||
TccvVectorOfPoint2i = TccvVectorOfPoint<TccvPoint2i>;
|
||||
TccvVectorOfPoint = TccvVectorOfPoint2i;
|
||||
TccvVectorOfPoint = TccvVectorOfPoint2i;
|
||||
|
||||
TccvVectorOfVectorOfPoint<T> = class
|
||||
public
|
||||
@ -182,18 +170,17 @@ Type
|
||||
procedure Free; reintroduce;
|
||||
end;
|
||||
|
||||
function Scalar(const v0: double = 0; const v1: double = 0; const v2: double = 0; const v3: double = 0)
|
||||
function Scalar(const v0: double = 0; const v1: double = 0; const v2: double = 0; const v3: double = 0): TccvScalar; overload;
|
||||
function Scalar(const S: TccvScalar; const v0: double = 0; const v1: double = 0; const v2: double = 0; const v3: double = 0)
|
||||
: TccvScalar; overload;
|
||||
function Scalar(const S: TccvScalar; const v0: double = 0; const v1: double = 0; const v2: double = 0;
|
||||
const v3: double = 0): TccvScalar; overload;
|
||||
|
||||
(* ! draws the circle outline or a solid circle in the image
|
||||
|
||||
CV_EXPORTS_W void circle(CV_IN_OUT Mat& img, Point center, int radius,
|
||||
const Scalar& color, int thickness=1,int lineType=8, int shift=0);
|
||||
*)
|
||||
procedure circle(img: TccvMat; center: TccvPoint; radius: integer; const color: TccvScalar; thickness: integer = 1;
|
||||
lineType: integer = 8; shift: integer = 0); stdcall;
|
||||
procedure circle(img: TccvMat; center: TccvPoint; radius: integer; const color: TccvScalar; thickness: integer = 1; lineType: integer = 8;
|
||||
shift: integer = 0); stdcall;
|
||||
|
||||
// ! draws the line segment (pt1, pt2) in the image
|
||||
// CV_EXPORTS_W void line(CV_IN_OUT Mat& img, Point pt1, Point pt2, const Scalar& color,
|
||||
@ -251,14 +238,13 @@ procedure ReleaseVectorOfVectorOfPoint2i(ex: TccvVectorOfVectorOfPoint2i); stdca
|
||||
|
||||
procedure MSER(m: TccvMat; var ex: TccvVectorOfVectorOfPoint2i); stdcall; external opencv_classes_lib;
|
||||
|
||||
function Scalar(const v0: double = 0; const v1: double = 0; const v2: double = 0; const v3: double = 0)
|
||||
: TccvScalar; overload;
|
||||
function Scalar(const v0: double = 0; const v1: double = 0; const v2: double = 0; const v3: double = 0): TccvScalar; overload;
|
||||
begin
|
||||
Result := TccvScalar.Create(v0, v1, v2, v3);
|
||||
end;
|
||||
|
||||
function Scalar(const S: TccvScalar; const v0: double = 0; const v1: double = 0; const v2: double = 0;
|
||||
const v3: double = 0): TccvScalar; overload;
|
||||
function Scalar(const S: TccvScalar; const v0: double = 0; const v1: double = 0; const v2: double = 0; const v3: double = 0)
|
||||
: TccvScalar; overload;
|
||||
begin
|
||||
S[0] := v0;
|
||||
S[1] := v1;
|
||||
|
@ -46,25 +46,10 @@
|
||||
*************************************************************************************************
|
||||
*)
|
||||
|
||||
//
|
||||
{$I OpenCV.inc}
|
||||
//
|
||||
{$IFDEF DEBUG}
|
||||
{$A8,B-,C+,D+,E-,F-,G+,H+,I+,J+,K-,L+,M-,N+,O-,P+,Q+,R+,S-,T-,U-,V+,W+,X+,Y+,Z1}
|
||||
{$ELSE}
|
||||
{$A8,B-,C-,D-,E-,F-,G+,H+,I+,J+,K-,L-,M-,N+,O+,P+,Q-,R-,S-,T-,U-,V+,W-,X+,Y-,Z1}
|
||||
{$ENDIF}
|
||||
{$WARN SYMBOL_DEPRECATED OFF}
|
||||
{$WARN SYMBOL_PLATFORM OFF}
|
||||
{$WARN UNIT_PLATFORM OFF}
|
||||
{$WARN UNSAFE_TYPE OFF}
|
||||
{$WARN UNSAFE_CODE OFF}
|
||||
{$WARN UNSAFE_CAST OFF}
|
||||
{$IFDEF DELPHI2009_UP}
|
||||
{$POINTERMATH ON}
|
||||
{$ENDIF}
|
||||
unit ocv.core.types_c;
|
||||
|
||||
{$I OpenCV.inc}
|
||||
|
||||
interface
|
||||
|
||||
uses
|
||||
@ -135,6 +120,7 @@ procedure strcat(var str1: pCVChar; const str2: pCVChar);
|
||||
type
|
||||
uchar = Byte;
|
||||
{$EXTERNALSYM uchar}
|
||||
puchar=PByte;
|
||||
ushort = Word;
|
||||
{$EXTERNALSYM ushort}
|
||||
schar = ShortInt;
|
||||
|
@ -46,21 +46,10 @@
|
||||
*************************************************************************************************
|
||||
*)
|
||||
|
||||
{$I OpenCV.inc}
|
||||
//
|
||||
{$IFDEF DEBUG}
|
||||
{$A8,B-,C+,D+,E-,F-,G+,H+,I+,J-,K-,L+,M-,N+,O-,P+,Q+,R+,S-,T-,U-,V+,W+,X+,Y+,Z1}
|
||||
{$ELSE}
|
||||
{$A8,B-,C-,D-,E-,F-,G+,H+,I+,J-,K-,L-,M-,N+,O+,P+,Q-,R-,S-,T-,U-,V+,W-,X+,Y-,Z1}
|
||||
{$ENDIF}
|
||||
{$WARN SYMBOL_DEPRECATED OFF}
|
||||
{$WARN SYMBOL_PLATFORM OFF}
|
||||
{$WARN UNIT_PLATFORM OFF}
|
||||
{$WARN UNSAFE_TYPE OFF}
|
||||
{$WARN UNSAFE_CODE OFF}
|
||||
{$WARN UNSAFE_CAST OFF}
|
||||
unit ocv.core_c;
|
||||
|
||||
{$I OpenCV.inc}
|
||||
|
||||
interface
|
||||
|
||||
uses
|
||||
|
@ -46,22 +46,10 @@
|
||||
*************************************************************************************************
|
||||
*)
|
||||
|
||||
//
|
||||
{$I OpenCV.inc}
|
||||
//
|
||||
{$IFDEF DEBUG}
|
||||
{$A8,B-,C+,D+,E-,F-,G+,H+,I+,J-,K-,L+,M-,N+,O-,P+,Q+,R+,S-,T-,U-,V+,W+,X+,Y+,Z1}
|
||||
{$ELSE}
|
||||
{$A8,B-,C-,D-,E-,F-,G+,H+,I+,J-,K-,L-,M-,N+,O+,P+,Q-,R-,S-,T-,U-,V+,W-,X+,Y-,Z1}
|
||||
{$ENDIF}
|
||||
{$WARN SYMBOL_DEPRECATED OFF}
|
||||
{$WARN SYMBOL_PLATFORM OFF}
|
||||
{$WARN UNIT_PLATFORM OFF}
|
||||
{$WARN UNSAFE_TYPE OFF}
|
||||
{$WARN UNSAFE_CODE OFF}
|
||||
{$WARN UNSAFE_CAST OFF}
|
||||
unit ocv.highgui_c;
|
||||
|
||||
{$I OpenCV.inc}
|
||||
|
||||
interface
|
||||
|
||||
uses
|
||||
@ -87,9 +75,9 @@ const
|
||||
(*
|
||||
CVAPI(CvFont) cvFontQt(const char* nameFont, int pointSize CV_DEFAULT(-1), CvScalar color CV_DEFAULT(cvScalarAll(0)), int weight CV_DEFAULT(CV_FONT_NORMAL), int style CV_DEFAULT(CV_STYLE_NORMAL), int spacing CV_DEFAULT(0));
|
||||
*)
|
||||
function cvFontQt(const nameFont: pCvChar; pointSize: Integer { = -1 };
|
||||
color: TCvScalar { = CV_DEFAULT(cvScalarAll(0)) }; weight: Integer { = CV_DEFAULT(CV_FONT_NORMAL) };
|
||||
style: Integer { = CV_DEFAULT(CV_STYLE_NORMAL) }; spacing: Integer { = CV_DEFAULT(0) } ): TCvFont; cdecl;
|
||||
function cvFontQt(const nameFont: pCvChar; pointSize: Integer { = -1 }; color: TCvScalar { = CV_DEFAULT(cvScalarAll(0)) };
|
||||
weight: Integer { = CV_DEFAULT(CV_FONT_NORMAL) }; style: Integer { = CV_DEFAULT(CV_STYLE_NORMAL) }; spacing: Integer { = CV_DEFAULT(0) } )
|
||||
: TCvFont; cdecl;
|
||||
|
||||
(*
|
||||
CVAPI(void) cvAddText(const CvArr* img, const char* text, CvPoint org, CvFont *arg2);
|
||||
@ -116,7 +104,7 @@ Type
|
||||
(* int (*pt2Func)(int argc, char *argv[]) *)
|
||||
TArgvArray = array [0 .. 0] of pCvChar;
|
||||
pArgvArray = ^TArgvArray;
|
||||
Tpt2Func = function(argc: Integer; argv: pArgvArray): Integer; cdecl;
|
||||
Tpt2Func = function(argc: Integer; argv: pArgvArray): Integer; cdecl;
|
||||
(*
|
||||
CVAPI(int) cvStartLoop(int (*pt2Func)(int argc, char *argv[]), int argc, char* argv[]);
|
||||
*)
|
||||
@ -444,334 +432,172 @@ procedure cvReleaseCapture(Var capture: pCvCapture); cdecl;
|
||||
// every feature can have only one mode turned on at a time;
|
||||
const
|
||||
CV_CAP_PROP_DC1394_OFF = -4;
|
||||
|
||||
// turn the feature off (not controlled manually nor automatically)
|
||||
|
||||
CV_CAP_PROP_DC1394_MODE_MANUAL = -3;
|
||||
|
||||
// set automatically when a value of the feature is set by the user
|
||||
|
||||
CV_CAP_PROP_DC1394_MODE_AUTO = -2;
|
||||
|
||||
CV_CAP_PROP_DC1394_MODE_AUTO = -2;
|
||||
CV_CAP_PROP_DC1394_MODE_ONE_PUSH_AUTO = -1;
|
||||
|
||||
CV_CAP_PROP_POS_MSEC = 0;
|
||||
|
||||
CV_CAP_PROP_POS_FRAMES = 1;
|
||||
|
||||
CV_CAP_PROP_POS_AVI_RATIO = 2;
|
||||
|
||||
CV_CAP_PROP_FRAME_WIDTH = 3;
|
||||
|
||||
CV_CAP_PROP_FRAME_HEIGHT = 4;
|
||||
|
||||
CV_CAP_PROP_FPS = 5;
|
||||
|
||||
CV_CAP_PROP_FOURCC = 6;
|
||||
|
||||
CV_CAP_PROP_FRAME_COUNT = 7;
|
||||
|
||||
CV_CAP_PROP_FORMAT = 8;
|
||||
|
||||
CV_CAP_PROP_MODE = 9;
|
||||
|
||||
CV_CAP_PROP_BRIGHTNESS = 10;
|
||||
|
||||
CV_CAP_PROP_CONTRAST = 11;
|
||||
|
||||
CV_CAP_PROP_SATURATION = 12;
|
||||
|
||||
CV_CAP_PROP_HUE = 13;
|
||||
|
||||
CV_CAP_PROP_GAIN = 14;
|
||||
|
||||
CV_CAP_PROP_EXPOSURE = 15;
|
||||
|
||||
CV_CAP_PROP_CONVERT_RGB = 16;
|
||||
|
||||
CV_CAP_PROP_WHITE_BALANCE_BLUE_U = 17;
|
||||
|
||||
CV_CAP_PROP_RECTIFICATION = 18;
|
||||
|
||||
CV_CAP_PROP_MONOCROME = 19;
|
||||
|
||||
CV_CAP_PROP_SHARPNESS = 20;
|
||||
|
||||
CV_CAP_PROP_AUTO_EXPOSURE = 21; // exposure control done by camera;
|
||||
|
||||
CV_CAP_PROP_POS_MSEC = 0;
|
||||
CV_CAP_PROP_POS_FRAMES = 1;
|
||||
CV_CAP_PROP_POS_AVI_RATIO = 2;
|
||||
CV_CAP_PROP_FRAME_WIDTH = 3;
|
||||
CV_CAP_PROP_FRAME_HEIGHT = 4;
|
||||
CV_CAP_PROP_FPS = 5;
|
||||
CV_CAP_PROP_FOURCC = 6;
|
||||
CV_CAP_PROP_FRAME_COUNT = 7;
|
||||
CV_CAP_PROP_FORMAT = 8;
|
||||
CV_CAP_PROP_MODE = 9;
|
||||
CV_CAP_PROP_BRIGHTNESS = 10;
|
||||
CV_CAP_PROP_CONTRAST = 11;
|
||||
CV_CAP_PROP_SATURATION = 12;
|
||||
CV_CAP_PROP_HUE = 13;
|
||||
CV_CAP_PROP_GAIN = 14;
|
||||
CV_CAP_PROP_EXPOSURE = 15;
|
||||
CV_CAP_PROP_CONVERT_RGB = 16;
|
||||
CV_CAP_PROP_WHITE_BALANCE_BLUE_U = 17;
|
||||
CV_CAP_PROP_RECTIFICATION = 18;
|
||||
CV_CAP_PROP_MONOCROME = 19;
|
||||
CV_CAP_PROP_SHARPNESS = 20;
|
||||
CV_CAP_PROP_AUTO_EXPOSURE = 21; // exposure control done by camera;
|
||||
// user can adjust refernce level;
|
||||
// using this feature;
|
||||
|
||||
CV_CAP_PROP_GAMMA = 22;
|
||||
|
||||
CV_CAP_PROP_TEMPERATURE = 23;
|
||||
|
||||
CV_CAP_PROP_TRIGGER = 24;
|
||||
|
||||
CV_CAP_PROP_TRIGGER_DELAY = 25;
|
||||
|
||||
CV_CAP_PROP_WHITE_BALANCE_RED_V = 26;
|
||||
|
||||
CV_CAP_PROP_ZOOM = 27;
|
||||
|
||||
CV_CAP_PROP_FOCUS = 28;
|
||||
|
||||
CV_CAP_PROP_GUID = 29;
|
||||
|
||||
CV_CAP_PROP_ISO_SPEED = 30;
|
||||
|
||||
CV_CAP_PROP_MAX_DC1394 = 31;
|
||||
|
||||
CV_CAP_PROP_BACKLIGHT = 32;
|
||||
|
||||
CV_CAP_PROP_PAN = 33;
|
||||
|
||||
CV_CAP_PROP_TILT = 34;
|
||||
|
||||
CV_CAP_PROP_ROLL = 35;
|
||||
|
||||
CV_CAP_PROP_IRIS = 36;
|
||||
|
||||
CV_CAP_PROP_SETTINGS = 37;
|
||||
|
||||
CV_CAP_PROP_AUTOGRAB = 1024; // property for highgui class CvCapture_Android only
|
||||
|
||||
CV_CAP_PROP_GAMMA = 22;
|
||||
CV_CAP_PROP_TEMPERATURE = 23;
|
||||
CV_CAP_PROP_TRIGGER = 24;
|
||||
CV_CAP_PROP_TRIGGER_DELAY = 25;
|
||||
CV_CAP_PROP_WHITE_BALANCE_RED_V = 26;
|
||||
CV_CAP_PROP_ZOOM = 27;
|
||||
CV_CAP_PROP_FOCUS = 28;
|
||||
CV_CAP_PROP_GUID = 29;
|
||||
CV_CAP_PROP_ISO_SPEED = 30;
|
||||
CV_CAP_PROP_MAX_DC1394 = 31;
|
||||
CV_CAP_PROP_BACKLIGHT = 32;
|
||||
CV_CAP_PROP_PAN = 33;
|
||||
CV_CAP_PROP_TILT = 34;
|
||||
CV_CAP_PROP_ROLL = 35;
|
||||
CV_CAP_PROP_IRIS = 36;
|
||||
CV_CAP_PROP_SETTINGS = 37;
|
||||
CV_CAP_PROP_AUTOGRAB = 1024; // property for highgui class CvCapture_Android only
|
||||
CV_CAP_PROP_SUPPORTED_PREVIEW_SIZES_STRING = 1025;
|
||||
|
||||
// readonly; tricky property; returns cpnst char* indeed
|
||||
|
||||
CV_CAP_PROP_PREVIEW_FORMAT = 1026; // readonly; tricky property; returns cpnst char* indeed
|
||||
|
||||
// OpenNI map generators;
|
||||
|
||||
CV_CAP_OPENNI_DEPTH_GENERATOR = 1 shl 31;
|
||||
|
||||
CV_CAP_OPENNI_IMAGE_GENERATOR = 1 shl 30;
|
||||
|
||||
CV_CAP_OPENNI_GENERATORS_MASK = CV_CAP_OPENNI_DEPTH_GENERATOR + CV_CAP_OPENNI_IMAGE_GENERATOR;
|
||||
|
||||
// Properties of cameras available through OpenNI interfaces;
|
||||
|
||||
CV_CAP_PROP_OPENNI_OUTPUT_MODE = 100;
|
||||
|
||||
CV_CAP_PROP_OPENNI_OUTPUT_MODE = 100;
|
||||
CV_CAP_PROP_OPENNI_FRAME_MAX_DEPTH = 101; // in mm
|
||||
|
||||
CV_CAP_PROP_OPENNI_BASELINE = 102; // in mm
|
||||
|
||||
CV_CAP_PROP_OPENNI_FOCAL_LENGTH = 103; // in pixels
|
||||
|
||||
CV_CAP_PROP_OPENNI_REGISTRATION = 104; // flag
|
||||
|
||||
CV_CAP_PROP_OPENNI_BASELINE = 102; // in mm
|
||||
CV_CAP_PROP_OPENNI_FOCAL_LENGTH = 103; // in pixels
|
||||
CV_CAP_PROP_OPENNI_REGISTRATION = 104; // flag
|
||||
CV_CAP_PROP_OPENNI_REGISTRATION_ON = CV_CAP_PROP_OPENNI_REGISTRATION;
|
||||
|
||||
// flag that synchronizes the remapping depth map to image map
|
||||
// by changing depth generator's view point (if the flag is "on") or;
|
||||
// sets this view point to its normal one (if the flag is "off").;
|
||||
|
||||
CV_CAP_PROP_OPENNI_APPROX_FRAME_SYNC = 105;
|
||||
|
||||
CV_CAP_PROP_OPENNI_MAX_BUFFER_SIZE = 106;
|
||||
|
||||
CV_CAP_PROP_OPENNI_CIRCLE_BUFFER = 107;
|
||||
|
||||
CV_CAP_PROP_OPENNI_MAX_TIME_DURATION = 108;
|
||||
|
||||
CV_CAP_PROP_OPENNI_GENERATOR_PRESENT = 109;
|
||||
|
||||
CV_CAP_OPENNI_IMAGE_GENERATOR_PRESENT = CV_CAP_OPENNI_IMAGE_GENERATOR + CV_CAP_PROP_OPENNI_GENERATOR_PRESENT;
|
||||
|
||||
CV_CAP_OPENNI_IMAGE_GENERATOR_OUTPUT_MODE = CV_CAP_OPENNI_IMAGE_GENERATOR + CV_CAP_PROP_OPENNI_OUTPUT_MODE;
|
||||
|
||||
CV_CAP_OPENNI_DEPTH_GENERATOR_BASELINE = CV_CAP_OPENNI_DEPTH_GENERATOR + CV_CAP_PROP_OPENNI_BASELINE;
|
||||
|
||||
CV_CAP_OPENNI_DEPTH_GENERATOR_FOCAL_LENGTH = CV_CAP_OPENNI_DEPTH_GENERATOR + CV_CAP_PROP_OPENNI_FOCAL_LENGTH;
|
||||
|
||||
CV_CAP_OPENNI_DEPTH_GENERATOR_REGISTRATION = CV_CAP_OPENNI_DEPTH_GENERATOR + CV_CAP_PROP_OPENNI_REGISTRATION;
|
||||
|
||||
CV_CAP_PROP_OPENNI_APPROX_FRAME_SYNC = 105;
|
||||
CV_CAP_PROP_OPENNI_MAX_BUFFER_SIZE = 106;
|
||||
CV_CAP_PROP_OPENNI_CIRCLE_BUFFER = 107;
|
||||
CV_CAP_PROP_OPENNI_MAX_TIME_DURATION = 108;
|
||||
CV_CAP_PROP_OPENNI_GENERATOR_PRESENT = 109;
|
||||
CV_CAP_OPENNI_IMAGE_GENERATOR_PRESENT = CV_CAP_OPENNI_IMAGE_GENERATOR + CV_CAP_PROP_OPENNI_GENERATOR_PRESENT;
|
||||
CV_CAP_OPENNI_IMAGE_GENERATOR_OUTPUT_MODE = CV_CAP_OPENNI_IMAGE_GENERATOR + CV_CAP_PROP_OPENNI_OUTPUT_MODE;
|
||||
CV_CAP_OPENNI_DEPTH_GENERATOR_BASELINE = CV_CAP_OPENNI_DEPTH_GENERATOR + CV_CAP_PROP_OPENNI_BASELINE;
|
||||
CV_CAP_OPENNI_DEPTH_GENERATOR_FOCAL_LENGTH = CV_CAP_OPENNI_DEPTH_GENERATOR + CV_CAP_PROP_OPENNI_FOCAL_LENGTH;
|
||||
CV_CAP_OPENNI_DEPTH_GENERATOR_REGISTRATION = CV_CAP_OPENNI_DEPTH_GENERATOR + CV_CAP_PROP_OPENNI_REGISTRATION;
|
||||
CV_CAP_OPENNI_DEPTH_GENERATOR_REGISTRATION_ON = CV_CAP_OPENNI_DEPTH_GENERATOR_REGISTRATION;
|
||||
|
||||
// Properties of cameras available through GStreamer interface;
|
||||
|
||||
CV_CAP_GSTREAMER_QUEUE_LENGTH = 200; // default is 1
|
||||
|
||||
CV_CAP_PROP_PVAPI_MULTICASTIP = 300;
|
||||
|
||||
// ip for anable multicast master mode. 0 for disable multicast
|
||||
// Properties of cameras available through XIMEA SDK interface;
|
||||
|
||||
CV_CAP_PROP_XI_DOWNSAMPLING = 400; // Change image resolution by binning or skipping.
|
||||
|
||||
CV_CAP_PROP_XI_DATA_FORMAT = 401; // Output data format.
|
||||
|
||||
CV_CAP_PROP_XI_OFFSET_X = 402;
|
||||
|
||||
CV_CAP_PROP_XI_DATA_FORMAT = 401; // Output data format.
|
||||
CV_CAP_PROP_XI_OFFSET_X = 402;
|
||||
// Horizontal offset from the origin to the area of interest (in pixels).
|
||||
|
||||
CV_CAP_PROP_XI_OFFSET_Y = 403;
|
||||
|
||||
// Vertical offset from the origin to the area of interest (in pixels).
|
||||
|
||||
CV_CAP_PROP_XI_TRG_SOURCE = 404; // Defines source of trigger.
|
||||
|
||||
CV_CAP_PROP_XI_TRG_SOURCE = 404; // Defines source of trigger.
|
||||
CV_CAP_PROP_XI_TRG_SOFTWARE = 405;
|
||||
|
||||
// Generates an internal trigger. PRM_TRG_SOURCE must be set to TRG_SOFTWARE.
|
||||
|
||||
CV_CAP_PROP_XI_GPI_SELECTOR = 406; // Selects general purpose input
|
||||
|
||||
CV_CAP_PROP_XI_GPI_MODE = 407; // Set general purpose input mode
|
||||
|
||||
CV_CAP_PROP_XI_GPI_LEVEL = 408; // Get general purpose level
|
||||
|
||||
CV_CAP_PROP_XI_GPI_MODE = 407; // Set general purpose input mode
|
||||
CV_CAP_PROP_XI_GPI_LEVEL = 408; // Get general purpose level
|
||||
CV_CAP_PROP_XI_GPO_SELECTOR = 409; // Selects general purpose output
|
||||
|
||||
CV_CAP_PROP_XI_GPO_MODE = 410; // Set general purpose output mode
|
||||
|
||||
CV_CAP_PROP_XI_GPO_MODE = 410; // Set general purpose output mode
|
||||
CV_CAP_PROP_XI_LED_SELECTOR = 411; // Selects camera signalling LED
|
||||
|
||||
CV_CAP_PROP_XI_LED_MODE = 412; // Define camera signalling LED functionality
|
||||
|
||||
CV_CAP_PROP_XI_MANUAL_WB = 413; // Calculates White Balance(must be called during acquisition)
|
||||
|
||||
CV_CAP_PROP_XI_AUTO_WB = 414; // Automatic white balance
|
||||
|
||||
CV_CAP_PROP_XI_AEAG = 415; // Automatic exposure/gain
|
||||
|
||||
CV_CAP_PROP_XI_LED_MODE = 412; // Define camera signalling LED functionality
|
||||
CV_CAP_PROP_XI_MANUAL_WB = 413; // Calculates White Balance(must be called during acquisition)
|
||||
CV_CAP_PROP_XI_AUTO_WB = 414; // Automatic white balance
|
||||
CV_CAP_PROP_XI_AEAG = 415; // Automatic exposure/gain
|
||||
CV_CAP_PROP_XI_EXP_PRIORITY = 416; // Exposure priority (0.5 - exposure 50%; gain 50%).
|
||||
|
||||
CV_CAP_PROP_XI_AE_MAX_LIMIT = 417;
|
||||
|
||||
// Maximum limit of exposure in AEAG procedure CV_CAP_PROP_XI_AG_MAX_LIMIT = 418; // Maximum limit of gain in AEAG procedure
|
||||
|
||||
CV_CAP_PROP_XI_AEAG_LEVEL = 419;
|
||||
|
||||
// Average intensity of output signal AEAG should achieve(in %)
|
||||
|
||||
CV_CAP_PROP_XI_TIMEOUT = 420; // Image capture timeout in milliseconds
|
||||
|
||||
// Properties for Android cameras;
|
||||
|
||||
CV_CAP_PROP_ANDROID_FLASH_MODE = 8001;
|
||||
|
||||
CV_CAP_PROP_ANDROID_FOCUS_MODE = 8002;
|
||||
|
||||
CV_CAP_PROP_ANDROID_WHITE_BALANCE = 8003;
|
||||
|
||||
CV_CAP_PROP_ANDROID_ANTIBANDING = 8004;
|
||||
|
||||
CV_CAP_PROP_ANDROID_FOCAL_LENGTH = 8005;
|
||||
|
||||
CV_CAP_PROP_ANDROID_FOCUS_DISTANCE_NEAR = 8006;
|
||||
|
||||
CV_CAP_PROP_ANDROID_FLASH_MODE = 8001;
|
||||
CV_CAP_PROP_ANDROID_FOCUS_MODE = 8002;
|
||||
CV_CAP_PROP_ANDROID_WHITE_BALANCE = 8003;
|
||||
CV_CAP_PROP_ANDROID_ANTIBANDING = 8004;
|
||||
CV_CAP_PROP_ANDROID_FOCAL_LENGTH = 8005;
|
||||
CV_CAP_PROP_ANDROID_FOCUS_DISTANCE_NEAR = 8006;
|
||||
CV_CAP_PROP_ANDROID_FOCUS_DISTANCE_OPTIMAL = 8007;
|
||||
|
||||
CV_CAP_PROP_ANDROID_FOCUS_DISTANCE_FAR = 8008;
|
||||
|
||||
CV_CAP_PROP_ANDROID_FOCUS_DISTANCE_FAR = 8008;
|
||||
// Properties of cameras available through AVFOUNDATION interface;
|
||||
|
||||
CV_CAP_PROP_IOS_DEVICE_FOCUS = 9001;
|
||||
|
||||
CV_CAP_PROP_IOS_DEVICE_EXPOSURE = 9002;
|
||||
|
||||
CV_CAP_PROP_IOS_DEVICE_FLASH = 9003;
|
||||
|
||||
CV_CAP_PROP_IOS_DEVICE_FOCUS = 9001;
|
||||
CV_CAP_PROP_IOS_DEVICE_EXPOSURE = 9002;
|
||||
CV_CAP_PROP_IOS_DEVICE_FLASH = 9003;
|
||||
CV_CAP_PROP_IOS_DEVICE_WHITEBALANCE = 9004;
|
||||
|
||||
CV_CAP_PROP_IOS_DEVICE_TORCH = 9005;
|
||||
|
||||
CV_CAP_PROP_IOS_DEVICE_TORCH = 9005;
|
||||
// Data given from depth generator.;
|
||||
|
||||
CV_CAP_OPENNI_DEPTH_MAP = 0; // Depth values in mm (CV_16UC1)
|
||||
|
||||
CV_CAP_OPENNI_POINT_CLOUD_MAP = 1; // XYZ in meters (CV_32FC3)
|
||||
|
||||
CV_CAP_OPENNI_DISPARITY_MAP = 2; // Disparity in pixels (CV_8UC1)
|
||||
|
||||
CV_CAP_OPENNI_DEPTH_MAP = 0; // Depth values in mm (CV_16UC1)
|
||||
CV_CAP_OPENNI_POINT_CLOUD_MAP = 1; // XYZ in meters (CV_32FC3)
|
||||
CV_CAP_OPENNI_DISPARITY_MAP = 2; // Disparity in pixels (CV_8UC1)
|
||||
CV_CAP_OPENNI_DISPARITY_MAP_32F = 3; // Disparity in pixels (CV_32FC1)
|
||||
|
||||
CV_CAP_OPENNI_VALID_DEPTH_MASK = 4; // CV_8UC1
|
||||
|
||||
CV_CAP_OPENNI_VALID_DEPTH_MASK = 4; // CV_8UC1
|
||||
// Data given from RGB image generator.;
|
||||
|
||||
CV_CAP_OPENNI_BGR_IMAGE = 5;
|
||||
|
||||
CV_CAP_OPENNI_BGR_IMAGE = 5;
|
||||
CV_CAP_OPENNI_GRAY_IMAGE = 6;
|
||||
|
||||
// Supported output modes of OpenNI image generator
|
||||
|
||||
CV_CAP_OPENNI_VGA_30HZ = 0;
|
||||
|
||||
CV_CAP_OPENNI_VGA_30HZ = 0;
|
||||
CV_CAP_OPENNI_SXGA_15HZ = 1;
|
||||
|
||||
CV_CAP_OPENNI_SXGA_30HZ = 2;
|
||||
|
||||
// supported by Android camera output formats
|
||||
|
||||
CV_CAP_ANDROID_COLOR_FRAME_BGR = 0; // BGR
|
||||
|
||||
CV_CAP_ANDROID_COLOR_FRAME = CV_CAP_ANDROID_COLOR_FRAME_BGR;
|
||||
|
||||
CV_CAP_ANDROID_GREY_FRAME = 1; // Y
|
||||
|
||||
CV_CAP_ANDROID_COLOR_FRAME_RGB = 2;
|
||||
|
||||
CV_CAP_ANDROID_COLOR_FRAME_BGR = 0; // BGR
|
||||
CV_CAP_ANDROID_COLOR_FRAME = CV_CAP_ANDROID_COLOR_FRAME_BGR;
|
||||
CV_CAP_ANDROID_GREY_FRAME = 1; // Y
|
||||
CV_CAP_ANDROID_COLOR_FRAME_RGB = 2;
|
||||
CV_CAP_ANDROID_COLOR_FRAME_BGRA = 3;
|
||||
|
||||
CV_CAP_ANDROID_COLOR_FRAME_RGBA = 4;
|
||||
|
||||
// supported Android camera flash modes
|
||||
|
||||
CV_CAP_ANDROID_FLASH_MODE_AUTO = 0;
|
||||
|
||||
CV_CAP_ANDROID_FLASH_MODE_OFF = 0;
|
||||
|
||||
CV_CAP_ANDROID_FLASH_MODE_ON = 1;
|
||||
|
||||
CV_CAP_ANDROID_FLASH_MODE_AUTO = 0;
|
||||
CV_CAP_ANDROID_FLASH_MODE_OFF = 0;
|
||||
CV_CAP_ANDROID_FLASH_MODE_ON = 1;
|
||||
CV_CAP_ANDROID_FLASH_MODE_RED_EYE = 2;
|
||||
|
||||
CV_CAP_ANDROID_FLASH_MODE_TORCH = 3;
|
||||
|
||||
CV_CAP_ANDROID_FLASH_MODE_TORCH = 3;
|
||||
// supported Android camera focus modes
|
||||
|
||||
CV_CAP_ANDROID_FOCUS_MODE_AUTO = 0;
|
||||
|
||||
CV_CAP_ANDROID_FOCUS_MODE_AUTO = 0;
|
||||
CV_CAP_ANDROID_FOCUS_MODE_CONTINUOUS_VIDEO = 0;
|
||||
|
||||
CV_CAP_ANDROID_FOCUS_MODE_EDOF = 1;
|
||||
|
||||
CV_CAP_ANDROID_FOCUS_MODE_FIXED = 2;
|
||||
|
||||
CV_CAP_ANDROID_FOCUS_MODE_INFINITY = 3;
|
||||
|
||||
CV_CAP_ANDROID_FOCUS_MODE_MACRO = 4;
|
||||
|
||||
CV_CAP_ANDROID_FOCUS_MODE_EDOF = 1;
|
||||
CV_CAP_ANDROID_FOCUS_MODE_FIXED = 2;
|
||||
CV_CAP_ANDROID_FOCUS_MODE_INFINITY = 3;
|
||||
CV_CAP_ANDROID_FOCUS_MODE_MACRO = 4;
|
||||
// supported Android camera white balance modes
|
||||
|
||||
CV_CAP_ANDROID_WHITE_BALANCE_AUTO = 0;
|
||||
|
||||
CV_CAP_ANDROID_WHITE_BALANCE_CLOUDY_DAYLIGHT = 0;
|
||||
|
||||
CV_CAP_ANDROID_WHITE_BALANCE_DAYLIGHT = 1;
|
||||
|
||||
CV_CAP_ANDROID_WHITE_BALANCE_FLUORESCENT = 2;
|
||||
|
||||
CV_CAP_ANDROID_WHITE_BALANCE_INCANDESCENT = 3;
|
||||
|
||||
CV_CAP_ANDROID_WHITE_BALANCE_SHADE = 4;
|
||||
|
||||
CV_CAP_ANDROID_WHITE_BALANCE_TWILIGHT = 5;
|
||||
|
||||
CV_CAP_ANDROID_WHITE_BALANCE_AUTO = 0;
|
||||
CV_CAP_ANDROID_WHITE_BALANCE_CLOUDY_DAYLIGHT = 0;
|
||||
CV_CAP_ANDROID_WHITE_BALANCE_DAYLIGHT = 1;
|
||||
CV_CAP_ANDROID_WHITE_BALANCE_FLUORESCENT = 2;
|
||||
CV_CAP_ANDROID_WHITE_BALANCE_INCANDESCENT = 3;
|
||||
CV_CAP_ANDROID_WHITE_BALANCE_SHADE = 4;
|
||||
CV_CAP_ANDROID_WHITE_BALANCE_TWILIGHT = 5;
|
||||
CV_CAP_ANDROID_WHITE_BALANCE_WARM_FLUORESCENT = 6;
|
||||
|
||||
// supported Android camera antibanding modes
|
||||
|
||||
CV_CAP_ANDROID_ANTIBANDING_50HZ = 0;
|
||||
|
||||
CV_CAP_ANDROID_ANTIBANDING_60HZ = 0;
|
||||
|
||||
CV_CAP_ANDROID_ANTIBANDING_AUTO = 1;
|
||||
|
||||
CV_CAP_ANDROID_ANTIBANDING_OFF = 2;
|
||||
CV_CAP_ANDROID_ANTIBANDING_OFF = 2;
|
||||
|
||||
(* retrieve or set capture properties *)
|
||||
function cvGetCaptureProperty(capture: pCvCapture; property_id: Integer): Double; cdecl;
|
||||
@ -785,8 +611,8 @@ function cvGetCaptureDomain(capture: pCvCapture): Integer; cdecl;
|
||||
|
||||
type
|
||||
(* "black box" video file writer structure *)
|
||||
TCvVideoWriter = Integer;
|
||||
pCvVideoWriter = ^TCvVideoWriter;
|
||||
TCvVideoWriter = Integer;
|
||||
pCvVideoWriter = ^TCvVideoWriter;
|
||||
ppCvVideoWriter = ^pCvVideoWriter;
|
||||
//
|
||||
// CV_INLINE
|
||||
@ -811,8 +637,8 @@ const
|
||||
double fps, CvSize frame_size,
|
||||
int is_color CV_DEFAULT(1));
|
||||
}
|
||||
function cvCreateVideoWriter(const filename: pCvChar; fourcc: Integer; fps: Double; frame_size: TCvSize;
|
||||
is_color: Integer = 1): pCvVideoWriter; cdecl;
|
||||
function cvCreateVideoWriter(const filename: pCvChar; fourcc: Integer; fps: Double; frame_size: TCvSize; is_color: Integer = 1)
|
||||
: pCvVideoWriter; cdecl;
|
||||
|
||||
function CV_FOURCC(const c1, c2, c3, c4: CVChar): Integer; {$IFDEF USE_INLINE}inline; {$ENDIF}
|
||||
// CVAPI(CvVideoWriter*) cvCreateImageSequenceWriter( const char* filename,
|
||||
@ -913,8 +739,7 @@ function cvWriteFrame; external highgui_lib;
|
||||
procedure cvReleaseVideoWriter; external highgui_lib;
|
||||
procedure cvSetMouseCallback; external highgui_lib;
|
||||
procedure cvConvertImage(const src: pCvArr; dst: pCvArr; flags: Integer = 0); cdecl; overload; external highgui_lib;
|
||||
procedure cvConvertImage(const src: pIplImage; dst: pIplImage; flags: Integer = 0); cdecl; overload;
|
||||
external highgui_lib;
|
||||
procedure cvConvertImage(const src: pIplImage; dst: pIplImage; flags: Integer = 0); cdecl; overload; external highgui_lib;
|
||||
procedure cvMoveWindow; external highgui_lib;
|
||||
|
||||
function CV_FOURCC(const c1, c2, c3, c4: CVChar): Integer; {$IFDEF USE_INLINE}inline; {$ENDIF}
|
||||
|
@ -41,7 +41,7 @@ const
|
||||
|
||||
CV_VERSION_EPOCH = '2';
|
||||
CV_VERSION_MAJOR = '4';
|
||||
CV_VERSION_MINOR = '9';
|
||||
CV_VERSION_MINOR = '11';
|
||||
CV_VERSION_REVISION = '0';
|
||||
|
||||
CV_VERSION = CV_VERSION_EPOCH + '.' + CV_VERSION_MAJOR + '.' + CV_VERSION_MINOR + '.' + CV_VERSION_REVISION;
|
||||
|
Loading…
Reference in New Issue
Block a user