In this and this the author explaining how to call OpenCV functions from C#.
How can I do this from Kotlin Native? Here how to make OpenCV C++ project