__init__.pyi 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. __all__: list[str] = []
  2. import cv2
  3. import cv2.typing
  4. import typing as _typing
  5. # Classes
  6. class DnnSuperResImpl:
  7. # Functions
  8. @classmethod
  9. def create(cls) -> DnnSuperResImpl: ...
  10. def readModel(self, path: str) -> None: ...
  11. def setModel(self, algo: str, scale: int) -> None: ...
  12. def setPreferableBackend(self, backendId: int) -> None: ...
  13. def setPreferableTarget(self, targetId: int) -> None: ...
  14. @_typing.overload
  15. def upsample(self, img: cv2.typing.MatLike, result: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
  16. @_typing.overload
  17. def upsample(self, img: cv2.UMat, result: cv2.UMat | None = ...) -> cv2.UMat: ...
  18. @_typing.overload
  19. def upsampleMultioutput(self, img: cv2.typing.MatLike, imgs_new: _typing.Sequence[cv2.typing.MatLike], scale_factors: _typing.Sequence[int], node_names: _typing.Sequence[str]) -> None: ...
  20. @_typing.overload
  21. def upsampleMultioutput(self, img: cv2.UMat, imgs_new: _typing.Sequence[cv2.typing.MatLike], scale_factors: _typing.Sequence[int], node_names: _typing.Sequence[str]) -> None: ...
  22. def getScale(self) -> int: ...
  23. def getAlgorithm(self) -> str: ...