nimble00 / PTGREY-cameras-with-python

These files explain how to use 'ptgrey' cameras with python. I felt the need to make this because there is not even an introductory code (to take a picture using ptgrey cameras) available on internet. take_a_photo.py is the basic code people usually need but I have added links to a few possibly helpful websites.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Image to Opencv

ElliotHYLee opened this issue · comments

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.

I found that image.GetData() would return 1D array.

# Getting the image data as a numpy array

image_data = image_result.GetNDArray()