This projecte was fused with godot-gdextension-opencv, I will keep future updates there!
This is a GDExtension to interface godot projects with the OpenCV library. My long term objective is to fully support OpenCV library, but this is still very early stage, feel free to contact me if you want to contribute.
The extension is built to Demo/bin for quick testing, after building you may move the extension to your own project bin folder. (In the future we will setup autobuilds so you can download it directly)
- Godot 4.2.2 or later
- OpenCV 4.2.0 for the c++ language
- CMake v3.22+
- C++ Compiler with at least C++17 support (any recent compiler)
- (optional) ccache for faster rebuilds
- (optional) clang-format for linting and automatic code formatting (CI uses clang-format version 15)
Here's an example of how to build & install a release version (use the terminal to run the following commands in the parent directory of this repo):
sh build.bash
Or
cmake -B GDExtensionTemplate-build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=GDExtensionTemplate-install GDExtensionTemplate
cmake --build GDExtensionTemplate-build --parallel
cmake --install GDExtensionTemplate-build
cmake -B GDExtensionTemplate-build -G"Visual Studio 17 2022" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=GDExtensionTemplate-install GDExtensionTemplate
cmake --build GDExtensionTemplate-build --config Release
cmake --install GDExtensionTemplate-build
Be sure to switch between Debug and realease flags acording to your current needs.