__init__.pyi 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. __all__: list[str] = []
  2. import cv2
  3. import cv2.typing
  4. import typing as _typing
  5. # Classes
  6. class BarcodeDetector(cv2.GraphicalCodeDetector):
  7. # Functions
  8. @_typing.overload
  9. def __init__(self) -> None: ...
  10. @_typing.overload
  11. def __init__(self, prototxt_path: str, model_path: str) -> None: ...
  12. @_typing.overload
  13. def decodeWithType(self, img: cv2.typing.MatLike, points: cv2.typing.MatLike) -> tuple[bool, _typing.Sequence[str], _typing.Sequence[str]]: ...
  14. @_typing.overload
  15. def decodeWithType(self, img: cv2.UMat, points: cv2.UMat) -> tuple[bool, _typing.Sequence[str], _typing.Sequence[str]]: ...
  16. @_typing.overload
  17. def detectAndDecodeWithType(self, img: cv2.typing.MatLike, points: cv2.typing.MatLike | None = ...) -> tuple[bool, _typing.Sequence[str], _typing.Sequence[str], cv2.typing.MatLike]: ...
  18. @_typing.overload
  19. def detectAndDecodeWithType(self, img: cv2.UMat, points: cv2.UMat | None = ...) -> tuple[bool, _typing.Sequence[str], _typing.Sequence[str], cv2.UMat]: ...
  20. def getDownsamplingThreshold(self) -> float: ...
  21. def setDownsamplingThreshold(self, thresh: float) -> BarcodeDetector: ...
  22. def getDetectorScales(self) -> _typing.Sequence[float]: ...
  23. def setDetectorScales(self, sizes: _typing.Sequence[float]) -> BarcodeDetector: ...
  24. def getGradientThreshold(self) -> float: ...
  25. def setGradientThreshold(self, thresh: float) -> BarcodeDetector: ...