__init__.pyi 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. __all__: list[str] = []
  2. import cv2
  3. import cv2.typing
  4. import typing as _typing
  5. # Classes
  6. class Saliency(cv2.Algorithm):
  7. # Functions
  8. @_typing.overload
  9. def computeSaliency(self, image: cv2.typing.MatLike, saliencyMap: cv2.typing.MatLike | None = ...) -> tuple[bool, cv2.typing.MatLike]: ...
  10. @_typing.overload
  11. def computeSaliency(self, image: cv2.UMat, saliencyMap: cv2.UMat | None = ...) -> tuple[bool, cv2.UMat]: ...
  12. class StaticSaliency(Saliency):
  13. # Functions
  14. @_typing.overload
  15. def computeBinaryMap(self, _saliencyMap: cv2.typing.MatLike, _binaryMap: cv2.typing.MatLike | None = ...) -> tuple[bool, cv2.typing.MatLike]: ...
  16. @_typing.overload
  17. def computeBinaryMap(self, _saliencyMap: cv2.UMat, _binaryMap: cv2.UMat | None = ...) -> tuple[bool, cv2.UMat]: ...
  18. class MotionSaliency(Saliency):
  19. ...
  20. class Objectness(Saliency):
  21. ...
  22. class StaticSaliencySpectralResidual(StaticSaliency):
  23. # Functions
  24. @classmethod
  25. def create(cls) -> StaticSaliencySpectralResidual: ...
  26. @_typing.overload
  27. def computeSaliency(self, image: cv2.typing.MatLike, saliencyMap: cv2.typing.MatLike | None = ...) -> tuple[bool, cv2.typing.MatLike]: ...
  28. @_typing.overload
  29. def computeSaliency(self, image: cv2.UMat, saliencyMap: cv2.UMat | None = ...) -> tuple[bool, cv2.UMat]: ...
  30. def read(self, fn: cv2.FileNode) -> None: ...
  31. def write(self, fs: cv2.FileStorage) -> None: ...
  32. def getImageWidth(self) -> int: ...
  33. def setImageWidth(self, val: int) -> None: ...
  34. def getImageHeight(self) -> int: ...
  35. def setImageHeight(self, val: int) -> None: ...
  36. class StaticSaliencyFineGrained(StaticSaliency):
  37. # Functions
  38. @classmethod
  39. def create(cls) -> StaticSaliencyFineGrained: ...
  40. @_typing.overload
  41. def computeSaliency(self, image: cv2.typing.MatLike, saliencyMap: cv2.typing.MatLike | None = ...) -> tuple[bool, cv2.typing.MatLike]: ...
  42. @_typing.overload
  43. def computeSaliency(self, image: cv2.UMat, saliencyMap: cv2.UMat | None = ...) -> tuple[bool, cv2.UMat]: ...
  44. class MotionSaliencyBinWangApr2014(MotionSaliency):
  45. # Functions
  46. @classmethod
  47. def create(cls) -> MotionSaliencyBinWangApr2014: ...
  48. @_typing.overload
  49. def computeSaliency(self, image: cv2.typing.MatLike, saliencyMap: cv2.typing.MatLike | None = ...) -> tuple[bool, cv2.typing.MatLike]: ...
  50. @_typing.overload
  51. def computeSaliency(self, image: cv2.UMat, saliencyMap: cv2.UMat | None = ...) -> tuple[bool, cv2.UMat]: ...
  52. def setImagesize(self, W: int, H: int) -> None: ...
  53. def init(self) -> bool: ...
  54. def getImageWidth(self) -> int: ...
  55. def setImageWidth(self, val: int) -> None: ...
  56. def getImageHeight(self) -> int: ...
  57. def setImageHeight(self, val: int) -> None: ...
  58. class ObjectnessBING(Objectness):
  59. # Functions
  60. @classmethod
  61. def create(cls) -> ObjectnessBING: ...
  62. @_typing.overload
  63. def computeSaliency(self, image: cv2.typing.MatLike, saliencyMap: cv2.typing.MatLike | None = ...) -> tuple[bool, cv2.typing.MatLike]: ...
  64. @_typing.overload
  65. def computeSaliency(self, image: cv2.UMat, saliencyMap: cv2.UMat | None = ...) -> tuple[bool, cv2.UMat]: ...
  66. def getobjectnessValues(self) -> _typing.Sequence[float]: ...
  67. def setTrainingPath(self, trainingPath: str) -> None: ...
  68. def setBBResDir(self, resultsDir: str) -> None: ...
  69. def getBase(self) -> float: ...
  70. def setBase(self, val: float) -> None: ...
  71. def getNSS(self) -> int: ...
  72. def setNSS(self, val: int) -> None: ...
  73. def getW(self) -> int: ...
  74. def setW(self, val: int) -> None: ...