I have added a GrabNumPyImage() method to the Camera class. This method returns an image as a NumPy array, which can be used by OpenCV, SciPy, and many other libraries. The method has an optional argument called "format", whose value is a string. Valid values are 'bgr' (for 24 bpp BGR, which is the default value, since OpenCV normally uses BGR), 'rgb' (for 24 bpp RGB), or 'gray' (for 8 bpp monochrome).
I have also added an example showing the use of GrabNumPyImage in a simple OpenCV GUI.
I have added a GrabNumPyImage() method to the Camera class. This method returns an image as a NumPy array, which can be used by OpenCV, SciPy, and many other libraries. The method has an optional argument called "format", whose value is a string. Valid values are 'bgr' (for 24 bpp BGR, which is the default value, since OpenCV normally uses BGR), 'rgb' (for 24 bpp RGB), or 'gray' (for 8 bpp monochrome).
I have also added an example showing the use of GrabNumPyImage in a simple OpenCV GUI.
Tested with a Grasshopper3 GS3-U3-23S6M.