Delphi-OpenCV/README.md

84 lines
2.6 KiB
Markdown
Raw Normal View History

###Delphi-OpenCV
* OpenCV version - 2.4.9<br>
* Development environment - Delphi XE2-XE6<br>
2014-05-18 11:22:27 +02:00
Requires installed [Visual C++ redistributable for Visual Studio 2013][2]<br>
2014-05-16 14:26:16 +02:00
2013-07-06 15:36:12 +02:00
#####Contributors:
2013-07-06 15:31:05 +02:00
```
Laentir Valetov (email: laex@bk.ru)
Mikhail Grigorev (email: sleuthhound@gmail.com)
2013-07-06 15:31:05 +02:00
```
2013-07-06 15:36:12 +02:00
####How to install:
Download the archive [link][1].<br>
Unzip it to a convenient directory, thus get the following directory structure.<br>
2013-06-10 06:36:45 +02:00
```
<PROJECT_ROOT> - Directory, such as "C:\OpenCV\"
<3rdParty>
<bin>
<component>
2013-06-10 06:36:45 +02:00
<include>
<opencv_classes>
2013-06-10 06:36:45 +02:00
<samples>
```
Add the search path for the modules of the project in Delphi IDE (Tools-Options-Delphi Options-Library-Library path)
2013-06-10 06:36:45 +02:00
```
<PROJECT_ROOT>\include
<PROJECT_ROOT>\include\calib3d
<PROJECT_ROOT>\include\core
<PROJECT_ROOT>\include\features2d
<PROJECT_ROOT>\include\highgui
<PROJECT_ROOT>\include\imgproc
<PROJECT_ROOT>\include\legacy
<PROJECT_ROOT>\include\ml
<PROJECT_ROOT>\include\nonfree
<PROJECT_ROOT>\include\objdetect
<PROJECT_ROOT>\include\video
<PROJECT_ROOT>\component
<PROJECT_ROOT>\Bin\FaceDetectXML
```
where ```<PROJECT_ROOT>``` directory, which was unzipped project.<br>
Additionally, you can specify the path to the library header files FFMPEG
```
<PROJECT_ROOT>\3rdParty\ffmpeg
<PROJECT_ROOT>\3rdParty\ffmpeg\ctypes
<PROJECT_ROOT>\3rdParty\ffmpeg\libavcodec
<PROJECT_ROOT>\3rdParty\ffmpeg\libavfilter
<PROJECT_ROOT>\3rdParty\ffmpeg\libavformat
<PROJECT_ROOT>\3rdParty\ffmpeg\libavutil
<PROJECT_ROOT>\3rdParty\ffmpeg\libswresample
<PROJECT_ROOT>\3rdParty\ffmpeg\libswscale
2013-06-10 06:36:45 +02:00
```
Examples of using FFMPEG library header files are in the
```
<PROJECT_ROOT>\samples\FFMpeg
```
Open in Delphi IDE and compile:<br>
Examples of the use of certain functions and procedures
```
<PROJECT_ROOT>\samples\LibDemo\LibDemo.groupproj
```
Examples of the use of video processing algorithms
```
<PROJECT_ROOT>\samples\MultiDemo\MultiDemo.groupproj
```
Examples of the use of video processing algorithms using VCL.Forms
```
<PROJECT_ROOT>\samples\VCLDemo\VCLDemo.groupproj
```
Examples of use of components.<br>
To install the components, open and install
```
<PROJECT_ROOT>\component\Delphi20\RAD Studio XE6.groupproj
```
When installing the components in your PATH variable must be available should the library "opencv_*.dll".
Must also be installed visual C++ redistributable for Visual Studio 2013 is available on the [link][2]<br>
Examples of the use of components - open:
```
<PROJECT_ROOT>\samples\Components\cCameraCapture\cCameraCapture.dproj
<PROJECT_ROOT>\samples\Components\cMatchTemplate\cMatchTemplate.dproj
```
[1]: https://github.com/Laex/Delphi-OpenCV/archive/master.zip
[2]: http://www.microsoft.com/ru-ru/download/details.aspx?id=40784