class_docstr: OpenVINO implementation for the inference.
  
  Args:
      path (str | Path): Path to the openvino onnx, xml or bin file.
      metadata (str | Path | dict, optional): Path to metadata file or a dict object defining the
          metadata. Defaults to None.
      device (str | None, optional): Device to run the inference on. Defaults to "CPU".
      task (TaskType | None, optional): Task type. Defaults to None.
class_docstr_tok: ["OpenVINO","implementation","for","the","inference",".","Args",":","path","(","str","|","Path",")",":","Path","to","the","openvino","onnx",",","xml","or","bin","file",".","metadata","(","str","|","Path","|","dict",",","optional",")",":","Path","to","metadata","file","or","a","dict","object","defining","the","metadata",".","Defaults","to","None",".","device","(","str","|","None",",","optional",")",":","Device","to","run","the","inference","on",".","Defaults","to","``","CPU","''",".","task","(","TaskType","|","None",",","optional",")",":","Task","type",".","Defaults","to","None","."]
code: def __init__(
      self,
      path: str | Path | tuple[bytes, bytes],
      metadata: str | Path | dict | None = None,
      device: str | None = "CPU",
      task: str | None = None,
      config: dict | None = None,
  ) -> None:
      self.device = device
  
      self.config = config
      self.input_blob, self.output_blob, self.model = self.load_model(
          path
      )
      self.metadata = super()._load_metadata(metadata)
  
      self.task = (
          TaskType(task) if task else TaskType(self.metadata["task"])
      )
  
file_path: anomalib/src/anomalib/deploy/inferencers/openvino_inferencer.py
imports: from __future__ import annotations
  import logging
  from importlib.util import find_spec
  from pathlib import Path
  from typing import Any
  import albumentations
  import cv2
  import numpy
  from omegaconf import DictConfig
  from anomalib.data import TaskType
  from .base_inferencer import Inferencer
label_desc: Use image node_id 1 to create a new OpenVINOInferencer object from inherited base classes: Inferencer with example: obj = OpenVINOInferencer(path, metadata, device, task, config)