__init__.pyi 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. __all__: list[str] = []
  2. import cv2
  3. import cv2.typing
  4. import typing as _typing
  5. # Classes
  6. class HfsSegment(cv2.Algorithm):
  7. # Functions
  8. def setSegEgbThresholdI(self, c: float) -> None: ...
  9. def getSegEgbThresholdI(self) -> float: ...
  10. def setMinRegionSizeI(self, n: int) -> None: ...
  11. def getMinRegionSizeI(self) -> int: ...
  12. def setSegEgbThresholdII(self, c: float) -> None: ...
  13. def getSegEgbThresholdII(self) -> float: ...
  14. def setMinRegionSizeII(self, n: int) -> None: ...
  15. def getMinRegionSizeII(self) -> int: ...
  16. def setSpatialWeight(self, w: float) -> None: ...
  17. def getSpatialWeight(self) -> float: ...
  18. def setSlicSpixelSize(self, n: int) -> None: ...
  19. def getSlicSpixelSize(self) -> int: ...
  20. def setNumSlicIter(self, n: int) -> None: ...
  21. def getNumSlicIter(self) -> int: ...
  22. @_typing.overload
  23. def performSegmentGpu(self, src: cv2.typing.MatLike, ifDraw: bool = ...) -> cv2.typing.MatLike: ...
  24. @_typing.overload
  25. def performSegmentGpu(self, src: cv2.UMat, ifDraw: bool = ...) -> cv2.typing.MatLike: ...
  26. @_typing.overload
  27. def performSegmentCpu(self, src: cv2.typing.MatLike, ifDraw: bool = ...) -> cv2.typing.MatLike: ...
  28. @_typing.overload
  29. def performSegmentCpu(self, src: cv2.UMat, ifDraw: bool = ...) -> cv2.typing.MatLike: ...
  30. @classmethod
  31. def create(cls, height: int, width: int, segEgbThresholdI: float = ..., minRegionSizeI: int = ..., segEgbThresholdII: float = ..., minRegionSizeII: int = ..., spatialWeight: float = ..., slicSpixelSize: int = ..., numSlicIter: int = ...) -> HfsSegment: ...