docstr: Yield images from the ImageResource.
  
  Parameters
  ----------
  colorspace : str, int
      The colorspace to convert into after loading and before returning
      the image. If None (default) keep grayscale images as is, convert
      images with an alpha channel to ``RGBA`` and all other images to
      ``RGB``. If int, interpret ``colorspace`` as one of OpenCVs
      `conversion flags
      <https://docs.opencv.org/4.x/d8/d01/group__imgproc__color__conversions.html>`_
      and use it for conversion. If str, convert the image into the given
      colorspace. Possible string values are: ``"RGB"``, ``"BGR"``,
      ``"RGBA"``, ``"BGRA"``, ``"GRAY"``, ``"HSV"``, or ``"LAB"``.
  flags : int
      The OpenCV flag(s) to pass to the reader. Refer to the `OpenCV docs
      <https://docs.opencv.org/4.x/d4/da8/group__imgcodecs.html#ga288b8b3da0892bd651fce07b3bbd3a56>`_
      for details.
  
  Yields
  ------
  ndimage : np.ndarray
      The decoded image as a numpy array.
docstr_tok: ["Yield","images","from","the","ImageResource",".","Parameters","--","--","--","--","--","colorspace",":","str",",","int","The","colorspace","to","convert","into","after","loading","and","before","returning","the","image",".","If","None","(","default",")","keep","grayscale","images","as","is",",","convert","images","with","an","alpha","channel","to","``","RGBA","``","and","all","other","images","to","``","RGB","``",".","If","int",",","interpret","``","colorspace","``","as","one","of","OpenCVs","`","conversion","flags","<","https",":","\/\/docs.opencv.org\/4.x\/d8\/d01\/group__imgproc__color__conversions.html",">","`","_","and","use","it","for","conversion",".","If","str",",","convert","the","image","into","the","given","colorspace",".","Possible","string","values","are",":","``","``","RGB","''","``",",","``","``","BGR","''","``",",","``","``","RGBA","''","``",",","``","``","BGRA","''","``",",","``","``","GRAY","''","``",",","``","``","HSV","''","``",",","or","``","``","LAB","''","``",".","flags",":","int","The","OpenCV","flag","(","s",")","to","pass","to","the","reader",".","Refer","to","the","`","OpenCV","docs","<","https",":","\/\/docs.opencv.org\/4.x\/d4\/da8\/group__imgcodecs.html","#","ga288b8b3da0892bd651fce07b3bbd3a56",">","`","_","for","details",".","Yields","--","--","--","ndimage",":","np.ndarray","The","decoded","image","as","a","numpy","array","."]
code: def iter(
      self,
      colorspace: Union[int, str] = None,
      flags: int = cv2.IMREAD_COLOR,
  ) -> np.ndarray:
      """Yield images from the ImageResource.
  
      Parameters
      ----------
      colorspace : str, int
          The colorspace to convert into after loading and before returning
          the image. If None (default) keep grayscale images as is, convert
          images with an alpha channel to ``RGBA`` and all other images to
          ``RGB``. If int, interpret ``colorspace`` as one of OpenCVs
          `conversion flags
          <https://docs.opencv.org/4.x/d8/d01/group__imgproc__color__conversions.html>`_
          and use it for conversion. If str, convert the image into the given
          colorspace. Possible string values are: ``"RGB"``, ``"BGR"``,
          ``"RGBA"``, ``"BGRA"``, ``"GRAY"``, ``"HSV"``, or ``"LAB"``.
      flags : int
          The OpenCV flag(s) to pass to the reader. Refer to the `OpenCV docs
          <https://docs.opencv.org/4.x/d4/da8/group__imgcodecs.html#ga288b8b3da0892bd651fce07b3bbd3a56>`_
          for details.
  
      Yields
      ------
      ndimage : np.ndarray
          The decoded image as a numpy array.
  
      """
      for idx in range(cv2.imcount(self.file_handle)):
          yield self.read(index=idx, flags=flags, colorspace=colorspace)
  
file_path: imageio/imageio/plugins/opencv.py
imports: import warnings
  from pathlib import Path
  from typing import Any, Dict, List, Optional, Union
  import cv2
  import numpy
  from ..core import Request
  from ..core.request import URI_BYTES, InitializationError, IOMode
  from ..core.v3_plugin_api import ImageProperties, PluginV3
  from ..typing import ArrayLike
label_desc: Use image node_id 3 for calling the OpenCVPlugin obj's underlying member method code with example usage: obj.iter(colorspace, flags) without return types