well, opencv_contrib
could be a start.
I don’t know how that works. perhaps open an issue first, show the code and what it does. then likely you will receive guidance on expected documentation, file structure, coding style, expected APIs, maybe test cases, how to get automatically generated python bindings, …