__init__.pyi 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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 getImageWidth(self) -> int: ...
  32. def setImageWidth(self, val: int) -> None: ...
  33. def getImageHeight(self) -> int: ...
  34. def setImageHeight(self, val: int) -> None: ...
  35. class StaticSaliencyFineGrained(StaticSaliency):
  36. # Functions
  37. @classmethod
  38. def create(cls) -> StaticSaliencyFineGrained: ...
  39. @_typing.overload
  40. def computeSaliency(self, image: cv2.typing.MatLike, saliencyMap: cv2.typing.MatLike | None = ...) -> tuple[bool, cv2.typing.MatLike]: ...
  41. @_typing.overload
  42. def computeSaliency(self, image: cv2.UMat, saliencyMap: cv2.UMat | None = ...) -> tuple[bool, cv2.UMat]: ...
  43. class MotionSaliencyBinWangApr2014(MotionSaliency):
  44. # Functions
  45. @classmethod
  46. def create(cls) -> MotionSaliencyBinWangApr2014: ...
  47. @_typing.overload
  48. def computeSaliency(self, image: cv2.typing.MatLike, saliencyMap: cv2.typing.MatLike | None = ...) -> tuple[bool, cv2.typing.MatLike]: ...
  49. @_typing.overload
  50. def computeSaliency(self, image: cv2.UMat, saliencyMap: cv2.UMat | None = ...) -> tuple[bool, cv2.UMat]: ...
  51. def setImagesize(self, W: int, H: int) -> None: ...
  52. def init(self) -> bool: ...
  53. def getImageWidth(self) -> int: ...
  54. def setImageWidth(self, val: int) -> None: ...
  55. def getImageHeight(self) -> int: ...
  56. def setImageHeight(self, val: int) -> None: ...
  57. class ObjectnessBING(Objectness):
  58. # Functions
  59. @classmethod
  60. def create(cls) -> ObjectnessBING: ...
  61. @_typing.overload
  62. def computeSaliency(self, image: cv2.typing.MatLike, saliencyMap: cv2.typing.MatLike | None = ...) -> tuple[bool, cv2.typing.MatLike]: ...
  63. @_typing.overload
  64. def computeSaliency(self, image: cv2.UMat, saliencyMap: cv2.UMat | None = ...) -> tuple[bool, cv2.UMat]: ...
  65. def read(self) -> None: ...
  66. def write(self) -> None: ...
  67. def getobjectnessValues(self) -> _typing.Sequence[float]: ...
  68. def setTrainingPath(self, trainingPath: str) -> None: ...
  69. def setBBResDir(self, resultsDir: str) -> None: ...
  70. def getBase(self) -> float: ...
  71. def setBase(self, val: float) -> None: ...
  72. def getNSS(self) -> int: ...
  73. def setNSS(self, val: int) -> None: ...
  74. def getW(self) -> int: ...
  75. def setW(self, val: int) -> None: ...