MNN/tools/cv
xiaying 7fde7c7079 MNN:Sync: Sync Internal 3.2.4 2025-09-22 23:05:26 +08:00
..
benchmark MNN:Sync: Sync Internal 2.9.5 2024-09-12 12:57:57 +08:00
imgs [MNN:Sync] Sync internal gitlab 2022-06-24 18:30:05 +08:00
include/cv add function ellipse to cv/imgproc/draw 2025-01-27 14:39:41 +00:00
source [MNN:Sync] Sync internal: 2025-05-23 15:24:18 +08:00
test support filled rectangle with thickness<0 2025-03-11 08:57:30 +00:00
CMakeLists.txt MNN:Sync: Sync Internal 3.2.4 2025-09-22 23:05:26 +08:00
README.md [MNN:Sync] Sync internal gitlab 2022-06-24 18:30:05 +08:00

README.md

MNN cv

MNN cv is a warpper of MNN's expr functions and some cv functions, which provides the APIs like OpenCV.

Usage

Compile MNN with cv, using below command:

cmake -DMNN_BUILD_OPENCV=ON .. && make -j8

Macros

MNN_IMGPROC_COLOR

MNN_IMGPROC_COLOR default is ON, this macro control the color function like: cvtColor.

MNN_IMGPROC_GEOMETRIC

MNN_IMGPROC_GEOMETRIC default is ON, this macro control the geometric function like: resize.

MNN_IMGPROC_DRAW

MNN_IMGPROC_DRAW default is ON, this macro control the draw function like: line.

MNN_IMGPROC_FILTER

MNN_IMGPROC_FILTER default is ON, this macro control the filter function like: blur.

MNN_IMGPROC_MISCELLANEOUS

MNN_IMGPROC_MISCELLANEOUS default is ON, this macro control the miscellaneous function like: threshold.

MNN_IMGPROC_STRUCTRAL

MNN_IMGPROC_STRUCTRAL default is ON, this macro control the structral function like: findContours.

MNN_IMGCODECS

MNN_IMGCODECS default is OFF, this macro control the imgcodecs function like: imread.

MNN_OPENCV_TEST

MNN_OPENCV_TEST default is OFF, this macro control the unit test.

MNN_OPENCV_BENCH

MNN_OPENCV_BENCH default is OFF, this macro control the benchmark of MNN cv with OpenCV.