converting to and fro from open cv mat #1083
prashant-saxena
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
nanobind 2.7.0
python 3.10.0
windows 10
Numpy ndarray to OpenCv Mat conversion: Code is getting compiled but I haven't tested it. Just posting for suggestion if something is wrongly done.
This is the code to convert mat to numpy is not at all getting compiled
Document says that gil must be released when calling this function
.def("mat_to_ndarray", &PyScene::mat_to_ndarray, nb::call_guard<nb::gil_scoped_release>())
Is this is sufficient?
Beta Was this translation helpful? Give feedback.
All reactions