pyorc.Video.get_frame#

Video.get_frame(n, method='grayscale', lens_corr=False)[source]#

Retrieve one frame. Frame will be corrected for lens distortion if lens parameters are given.

Parameters:
  • n – int, frame number to retrieve

  • method – str, can be “rgb”, “grayscale”, or “hsv”, default: “grayscale”

  • lens_corr – bool, optional, if set to True, lens parameters will be used to undistort image

Returns:

np.ndarray containing frame