__init__.pyi 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. __all__: list[str] = []
  2. import cv2.typing
  3. import typing as _typing
  4. from cv2.gapi.ie import detail as detail
  5. # Enumerations
  6. TraitAs_TENSOR: int
  7. TRAIT_AS_TENSOR: int
  8. TraitAs_IMAGE: int
  9. TRAIT_AS_IMAGE: int
  10. TraitAs = int
  11. """One of [TraitAs_TENSOR, TRAIT_AS_TENSOR, TraitAs_IMAGE, TRAIT_AS_IMAGE]"""
  12. Sync: int
  13. SYNC: int
  14. Async: int
  15. ASYNC: int
  16. InferMode = int
  17. """One of [Sync, SYNC, Async, ASYNC]"""
  18. # Classes
  19. class PyParams:
  20. # Functions
  21. @_typing.overload
  22. def __init__(self) -> None: ...
  23. @_typing.overload
  24. def __init__(self, tag: str, model: str, weights: str, device: str) -> None: ...
  25. @_typing.overload
  26. def __init__(self, tag: str, model: str, device: str) -> None: ...
  27. def constInput(self, layer_name: str, data: cv2.typing.MatLike, hint: TraitAs = ...) -> PyParams: ...
  28. def cfgNumRequests(self, nireq: int) -> PyParams: ...
  29. def cfgBatchSize(self, size: int) -> PyParams: ...
  30. # Functions
  31. @_typing.overload
  32. def params(tag: str, model: str, weights: str, device: str) -> PyParams: ...
  33. @_typing.overload
  34. def params(tag: str, model: str, device: str) -> PyParams: ...