Skip to content

Laex/Delphi-OpenCV-Class

Repository files navigation

Delphi binding for OpenCV

  • Experimental Delphi binding for OpenCV 4.7.0
  • Development environment - Delphi 10.4, 11
  • x64 platform only

Contributors:

Usage:

  1. Download the current state of the project as zip or as git
  2. Download OpenCV 4.7.0, run and unpack to the selected directory.
    The following DLLs are required to work properly
    From <opencv>\build\x64\vc16\bin\
  • opencv_videoio_ffmpeg470_64.dll - release
  • opencv_videoio_msmf470_64.dll - release
  • opencv_world470.dll - release
  • opencv_videoio_msmf470_64d.dll - debug
  • opencv_world470d.dll - debug
    From <project>\bin\
  • opencv_delphi470.dll - release
  • opencv_delphi470d.dll - debug

For the library to work properly, you need

  • place next to the executable file of your program. To run examples - in <project>\bin\
    or
  • copy to C:\Windows\System32\
  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
<project>\source\ and <project>\packages

To run demo examples

  1. Change path OpenCVRootPath in module CVResource.pas to path to unpacked OpenCV <opencv>. This is only needed to run examples from samples.
  2. Open <project>\samples\Samples.groupproj

To instal components

  1. For components, install the packages from
    <project>\packages\<Delphi Version>\CVClassGroup.groupproj
  2. Run demo from <project>\samples\Component\

Donate
PayPal USD
PayPal EUR
PayPal RUB
Yandex Money
Donatecoins