- Posts: 9
- Joined: Tue Aug 11, 2020 12:01 pm
- Real Name: Michael Banck
Our SDK also includes an IDeckLinkConversion Interface which can be used to convert the frame inside the capture application.
- High-level instructions detailing how to do this can be found in section 2.4.15 of the SDK manual.
- The detailed description of the IDeckLinkConversion interface can be found in section 2.5.44.
- The CaptureStills sample from the SDK demonstrates how to use this interface.
If you only need the individual still frames, I would recommend running CaptureStills to save the frames to disck as an image file and then opening these PNG files into your python script and converting these to a numPy array using numPy's 'asarray' method. You could use pillow to import the image.
- Code: Select all
from PIL import Image
from numpy import asarray
image = Image.open("frame1.png")
data = asarray(image)