Image to Opencv
ElliotHYLee opened this issue · comments
Hongyun Lee (Elliot) commented
Is there PySpin API doc? I wonder how I can extract the image data from the image object so I can use the image data as numpy or cv2.
Hongyun Lee (Elliot) commented
I found that image.GetData() would return 1D array.
Volkov Maxim commented
# Getting the image data as a numpy array
image_data = image_result.GetNDArray()