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.
61 stars 19 forks source link

Image to Opencv #1

Closed ElliotHYLee closed 5 years ago

ElliotHYLee commented 5 years ago

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.

ElliotHYLee commented 5 years ago

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

volkov-maxim commented 3 years ago
# Getting the image data as a numpy array

image_data = image_result.GetNDArray()