Sample project of running OpenCV C++ code in a flutter app processing real-time camera frames.
OpenCV C++ in Flutter using Isolate for background processing
Can be found here