C++ conversion from NumPy array to Mat (OpenCV)
问题 I am writing a thin wrapper around ArUco augmented reality library (which is based on OpenCV). An interface I am trying to build is very simple: Python passes image to C++ code; C++ code detects markers and returns their locations and other info to Python as tuple of dicts. However, I couldn't figure out how to represent an image in Python to pass it to C++. For GUI and camera management I am going to use PyQt, so initially it is going to be QImage, but I can't simply pass it to OpenCV (or I