- Experimental Delphi binding for OpenCV 4.10.0
- Development environment - Delphi 10.4, 11, 12
- x64 platform only
- Laentir Valetov (email: [email protected])
- 10% - core. Core functionality
- 50% - imgproc. Image Processing
- 100% - imgcodecs. Image file reading and writing
- videoio. Video I/O
- 100% - highgui. High-level GUI
- 10% - video. Video Analysis
- 0% - calib3d. Camera Calibration and 3D Reconstruction
- 1% - features2d. 2D Features Framework
- 10% - objdetect. Object Detection
- 1% - dnn. Deep Neural Network module
- 0% - ml. Machine Learning
- 5% - flann. Clustering and Search in Multi-Dimensional Spaces
- 10% - photo. Computational Photography
- 30% - stitching. Images stitching
- 0% - gapi. Graph API
- Download the current state of the project in zip format or via git
- Download OpenCV 4.10.0, run and unpack to the selected directory (for example in
<opencv>
).
The following DLLs are required to work properly
-
from
<opencv>\build\x64\vc16\bin\
or from<delphi-opencv>\redist\opencv_delphi4100.zip
- opencv_videoio_ffmpeg4100_64.dll -
release
- opencv_videoio_msmf4100_64.dll -
release
- opencv_videoio_msmf4100_64d.dll -
debug
- opencv_world4100.dll -
release
- opencv_world4100d.dll -
debug
- opencv_videoio_ffmpeg4100_64.dll -
-
from
redist\opencv_delphi4100.zip
**- opencv_delphi4100.dll -
release
- opencv_delphi4100d.dll -
debug
- opencv_delphi4100.dll -
For the library to work properly, you need
- place next to the executable file of your program (examples of usage from
<delphi-opencv>\samples
are compiled into<delphi-opencv>\bin
)
or - to use in any projects for the x64 platform, you need to copy the
dll
files toC:\Windows\System32\
.
Warning
You may not have the Microsoft runtime libraries installed on your computer, which are required for OpenCV to work. Take advantage of the advice (source):
"The lack of these DLLs can be fixed by installing "Microsoft Visual C++ 2015 - 2022 Redistributable". Probably the application that is showing this error depends on it installed. Download and install both the x86 and x64 versions"
Important
You can check the availability of the required libraries (dll) for running projects using the CheckCVDep.exe utility (<delphi-opencv>\cvCheckDep
)
- Set Delphi environment setting
Add the Library path for the modules of the project in Delphi IDE:
Tools-Options
-> Language-Delphi-Library-"Windows 64-bit"-Library path
add path <delphi-opencv>\source\
and <delphi-opencv>\packages
- Change the path in the
OpenCVRootPath
variable in the<delphi-opencv>\source\CVResource.pas
module to the path to the unpacked OpenCV 4.10.0 library. This is only needed to run examples from samples. - Open
<delphi-opencv>\samples\Samples.groupproj
- For components, install the packages from
<delphi-opencv>\packages\<Delphi Version>\CVClassGroup.groupproj
- Run demo from
<delphi-opencv>\samples\Samples.groupproj