video699.frame.image

This module implements a frame of a video represented by a NumPy matrix containing image data.

Module Contents

class video699.frame.image.ImageFrame(video, number, image)

Bases: video699.interface.FrameABC

A frame of a video represented by a NumPy matrix containing image data.

Parameters:
  • video (VideoABC) – The video containing the frame.
  • number (int) – The frame number, i.e. the position of the frame in the video. Frame indexing is one-based, i.e. the first frame has number 1.
  • image (array_like) – The image data of the frame as an OpenCV CV_8UC3 RGBA matrix, where the alpha channel (A) is currently unused and all pixels are fully opaque, i.e. they have the maximum alpha of 255.
video

VideoABC – The video containing the frame.

number

int – The frame number, i.e. the position of the frame in the video. Frame indexing is one-based, i.e. the first frame has number 1.

image

array_like – The image data of the frame as an OpenCV CV_8UC3 RGBA matrix, where the alpha channel (A) is currently unused and all pixels are fully opaque, i.e. they have the maximum alpha of 255.

width

int – The width of the image data.

height

int – The height of the image data.

datetime

aware datetime – The date, and time at which the frame was captured.

video
number
image