An example FTC Robot Controller project for running C++ OpenCV code through EasyOpenCV
Currently based on FTC Robot Controller SDK v8.0
-
Ensure that you have version
21.3.6528147
of the side-by-side Android NDK installed -
Fork this repo and clone your fork into a parent directory of your choice
-
Also clone OpenCV-Repackaged into the same parent directory as you cloned this project. This is necessary because the build scripts in this project reference files that are in OpenCV-Repackaged.
Please note you will need to take care that the version of OpenCV-Repackaged you have checked out matches with the version of OpenCV-Repackaged used by the version of EasyOpenCV that you are using.
Alternatively, you may copy the native headers and native library (for linking) into the project and edit the
Teamcode/CMakeLists.txt
build script accordingly. -
Take a look at the
NativePipeline.java
,NativePipelineExample.java
, andnative_pipeline.cpp
files in the TeamCode module. Build the project and deploy to your Android device, you're ready to go!