numpy-opencv-converter
numpy-opencv-converter copied to clipboard
OpenCV <=> NumPy Converter using Boost::Python
Updated for Opencv3. Needed to add an argument UMatUsageFlags usage_flags for the allocate and deallocate functions. Another Idea would be to introduce the OPENCV3/2 pre-processor flag directly from CMake
After these changes, I am able to build the converter under Mac OS X 10.10.3. The addition to `np_opencv_converter.cpp` was needed, as I was otherwise getting an [ImportError](https://www.google.com/search?client=safari&rls=en&q=ImportError:+dynamic+module+does+not+define+init+function+%28initnp_opencv_converter%29&ie=UTF-8&oe=UTF-8#rls=en&q=ImportError:+dynamic+module+does+not+define+init+function) when attempting...