Laentir Valetov

Delphi binding for OpenCV

Repo Size GitHub Contributors Issues GitHub pull requests commit activity LICENSE

Contributors:

The following DLLs are required to work properly

For the library to work properly, you need

[!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)

  1. 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

To run demo examples


  1. 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.
  2. Open <delphi-opencv>\samples\Samples.groupproj

To instal components


  1. For components, install the packages from <delphi-opencv>\packages\<Delphi Version>\CVClassGroup.groupproj
  2. Run demo from <delphi-opencv>\samples\Samples.groupproj