__init__.pyi 979 B

12345678910111213141516171819202122232425
  1. import cv2
  2. import cv2.typing
  3. import typing
  4. # Classes
  5. class BarcodeDetector(cv2.GraphicalCodeDetector):
  6. # Functions
  7. @typing.overload
  8. def __init__(self) -> None: ...
  9. @typing.overload
  10. def __init__(self, prototxt_path: str, model_path: str) -> None: ...
  11. @typing.overload
  12. def decodeWithType(self, img: cv2.typing.MatLike, points: cv2.typing.MatLike) -> tuple[bool, typing.Sequence[str], typing.Sequence[str]]: ...
  13. @typing.overload
  14. def decodeWithType(self, img: cv2.UMat, points: cv2.UMat) -> tuple[bool, typing.Sequence[str], typing.Sequence[str]]: ...
  15. @typing.overload
  16. def detectAndDecodeWithType(self, img: cv2.typing.MatLike, points: cv2.typing.MatLike | None = ...) -> tuple[bool, typing.Sequence[str], typing.Sequence[str], cv2.typing.MatLike]: ...
  17. @typing.overload
  18. def detectAndDecodeWithType(self, img: cv2.UMat, points: cv2.UMat | None = ...) -> tuple[bool, typing.Sequence[str], typing.Sequence[str], cv2.UMat]: ...