Hi,
I am trying to set up a python API for my own application and I have a previously working state with version 3.5.* and version 4.5.3, however the same code seems broken in 4.5.5.
I pass a numpy array through a shiboken wrapper to the pyopencv_to_safe function. Internally that is supposed to convert to a cv::Mat, but I get the exception
Exception thrown: read access violation.
opencv_ARRAY_API was nullptr.
in line 75 of cv2_convert.hpp
if( !PyArray_Check(o) )
I assume this is somehow using an uninitialized numpy API, because I can see that the former maintainer of the code base called PyInit_cv2(); directly. However that does not work anymore (or was a hack to begin with).
How do I properly configure the access to the array API?
I also put a message on stackoverflow, but it seems people only want to know the answer, but cannot help themselves…
Any pointers on how to find the solution myself would already be appreciated, but a solution would be even preferable!
Thanks in advance!