class_docstr: Load an image from ``results['img']``.
  
  Similar with :obj:`LoadImageFromFile`, but the image has been loaded as
  :obj:`np.ndarray` in ``results['img']``. Can be used when loading image
  from webcam.
  
  Required Keys:
  
  - img
  
  Modified Keys:
  
  - img
  - img_path
  - img_shape
  - ori_shape
  
  Args:
      to_float32 (bool): Whether to convert the loaded image to a float32
          numpy array. If set to False, the loaded image is an uint8 array.
          Defaults to False.
class_docstr_tok: ["Load","an","image","from","``","results","[","'img","'","]","``",".","Similar","with",":","obj",":","`","LoadImageFromFile","`",",","but","the","image","has","been","loaded","as",":","obj",":","`","np.ndarray","`","in","``","results","[","'img","'","]","``",".","Can","be","used","when","loading","image","from","webcam",".","Required","Keys",":","-","img","Modified","Keys",":","-","img","-","img_path","-","img_shape","-","ori_shape","Args",":","to_float32","(","bool",")",":","Whether","to","convert","the","loaded","image","to","a","float32","numpy","array",".","If","set","to","False",",","the","loaded","image","is","an","uint8","array",".","Defaults","to","False","."]
code: def __init__(self, **kwargs) -> None:
      super().__init__()
      self.from_file = TRANSFORMS.build(
          dict(type="LoadImageFromFile", **kwargs)
      )
      self.from_ndarray = TRANSFORMS.build(
          dict(type="mmdet.LoadImageFromNDArray", **kwargs)
      )
  
imports: from typing import Optional, Tuple, Union
  import mmcv
  import numpy
  import pycocotools.mask
  import torch
  from mmcv.transforms import BaseTransform
  from mmcv.transforms import LoadAnnotations
  from mmcv.transforms import LoadImageFromFile
  from mmengine.fileio import get
  from mmengine.structures import BaseDataElement
  from mmdet.registry import TRANSFORMS
  from mmdet.structures.bbox import get_box_type
  from mmdet.structures.bbox.box_type import autocast_box_type
  from mmdet.structures.mask import BitmapMasks, PolygonMasks
label_desc: Use image node_id 1 to create a new InferencerLoader object from inherited base classes: BaseTransform with example: obj = InferencerLoader()