class_docstr: Basic Reader Class
class_docstr_tok: ["Basic","Reader","Class"]
code: def transform_to_gray(self, data):
      r, g, b = data[..., 0], data[..., 1], data[..., 2]
      data = (0.2989 * r + 0.5870 * g + 0.1140 * b) / 255
      return data
  
imports: import cvtransforms
  import face_alignment
  import numpy
  import skimage.transform
  import skvideo.io
  import torch
  from models import pretrained
label_desc: Use image node_id 3 for calling the VideoReader obj's underlying member method code with example usage: obj.transform_to_gray(data) and returns: data