__init__.pyi 831 B

1234567891011121314151617181920212223
  1. __all__: list[str] = []
  2. import cv2
  3. import cv2.typing
  4. import typing as _typing
  5. # Classes
  6. class WeChatQRCode:
  7. # Functions
  8. def __init__(self, detector_prototxt_path: str = ..., detector_caffe_model_path: str = ..., super_resolution_prototxt_path: str = ..., super_resolution_caffe_model_path: str = ...) -> None: ...
  9. @_typing.overload
  10. def detectAndDecode(self, img: cv2.typing.MatLike, points: _typing.Sequence[cv2.typing.MatLike] | None = ...) -> tuple[_typing.Sequence[str], _typing.Sequence[cv2.typing.MatLike]]: ...
  11. @_typing.overload
  12. def detectAndDecode(self, img: cv2.UMat, points: _typing.Sequence[cv2.UMat] | None = ...) -> tuple[_typing.Sequence[str], _typing.Sequence[cv2.UMat]]: ...
  13. def setScaleFactor(self, _scalingFactor: float) -> None: ...
  14. def getScaleFactor(self) -> float: ...