class_docstr: Reverse image pixels.
  
  Adapted from
  https://github.com/PaddlePaddle/PaddleOCR/blob/release%2F2.6/ppocr/data/imaug/rec_img_aug.py  # noqa
  
  Required Keys:
  
  - img
  
  Modified Keys:
  
  - img
class_docstr_tok: ["Reverse","image","pixels",".","Adapted","from","https",":","\/\/github.com\/PaddlePaddle\/PaddleOCR\/blob\/release","%","2F2.6\/ppocr\/data\/imaug\/rec_img_aug.py","#","noqa","Required","Keys",":","-","img","Modified","Keys",":","-","img"]
docstr: Transform function to reverse image pixels.
  
  Args:
      results (dict): Result dict from loading pipeline.
  
  Returns:
      dict: Reversed results.
docstr_tok: ["Transform","function","to","reverse","image","pixels",".","Args",":","results","(","dict",")",":","Result","dict","from","loading","pipeline",".","Returns",":","dict",":","Reversed","results","."]
code: def transform(self, results: Dict) -> Dict:
      """Transform function to reverse image pixels.
  
      Args:
          results (dict): Result dict from loading pipeline.
  
      Returns:
          dict: Reversed results.
      """
      results["img"] = 255.0 - results["img"].copy()
      return results
  
imports: import math
  import random
  from typing import Dict, List, Optional, Tuple
  import cv2
  import mmcv
  import numpy
  from mmcv.transforms.base import BaseTransform
  from mmcv.transforms.utils import cache_randomness
  from mmocr.registry import TRANSFORMS
label_desc: Use image node_id 1 for calling the ReversePixels obj's underlying member method code with example usage: obj.transform(results) and returns: results