__init__.pyi 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. __all__: list[str] = []
  2. import cv2
  3. import cv2.typing
  4. import typing as _typing
  5. # Classes
  6. class Text:
  7. text: str
  8. org: cv2.typing.Point
  9. ff: int
  10. fs: float
  11. color: cv2.typing.Scalar
  12. thick: int
  13. lt: int
  14. bottom_left_origin: bool
  15. # Functions
  16. @_typing.overload
  17. def __init__(self, text_: str, org_: cv2.typing.Point, ff_: int, fs_: float, color_: cv2.typing.Scalar, thick_: int = ..., lt_: int = ..., bottom_left_origin_: bool = ...) -> None: ...
  18. @_typing.overload
  19. def __init__(self) -> None: ...
  20. class Rect:
  21. rect: cv2.typing.Rect
  22. color: cv2.typing.Scalar
  23. thick: int
  24. lt: int
  25. shift: int
  26. # Functions
  27. @_typing.overload
  28. def __init__(self) -> None: ...
  29. @_typing.overload
  30. def __init__(self, rect_: cv2.typing.Rect2i, color_: cv2.typing.Scalar, thick_: int = ..., lt_: int = ..., shift_: int = ...) -> None: ...
  31. class Circle:
  32. center: cv2.typing.Point
  33. radius: int
  34. color: cv2.typing.Scalar
  35. thick: int
  36. lt: int
  37. shift: int
  38. # Functions
  39. @_typing.overload
  40. def __init__(self, center_: cv2.typing.Point, radius_: int, color_: cv2.typing.Scalar, thick_: int = ..., lt_: int = ..., shift_: int = ...) -> None: ...
  41. @_typing.overload
  42. def __init__(self) -> None: ...
  43. class Line:
  44. pt1: cv2.typing.Point
  45. pt2: cv2.typing.Point
  46. color: cv2.typing.Scalar
  47. thick: int
  48. lt: int
  49. shift: int
  50. # Functions
  51. @_typing.overload
  52. def __init__(self, pt1_: cv2.typing.Point, pt2_: cv2.typing.Point, color_: cv2.typing.Scalar, thick_: int = ..., lt_: int = ..., shift_: int = ...) -> None: ...
  53. @_typing.overload
  54. def __init__(self) -> None: ...
  55. class Mosaic:
  56. mos: cv2.typing.Rect
  57. cellSz: int
  58. decim: int
  59. # Functions
  60. @_typing.overload
  61. def __init__(self) -> None: ...
  62. @_typing.overload
  63. def __init__(self, mos_: cv2.typing.Rect2i, cellSz_: int, decim_: int) -> None: ...
  64. class Image:
  65. org: cv2.typing.Point
  66. img: cv2.typing.MatLike
  67. alpha: cv2.typing.MatLike
  68. # Functions
  69. @_typing.overload
  70. def __init__(self, org_: cv2.typing.Point, img_: cv2.typing.MatLike, alpha_: cv2.typing.MatLike) -> None: ...
  71. @_typing.overload
  72. def __init__(self) -> None: ...
  73. class Poly:
  74. points: _typing.Sequence[cv2.typing.Point]
  75. color: cv2.typing.Scalar
  76. thick: int
  77. lt: int
  78. shift: int
  79. # Functions
  80. @_typing.overload
  81. def __init__(self, points_: _typing.Sequence[cv2.typing.Point], color_: cv2.typing.Scalar, thick_: int = ..., lt_: int = ..., shift_: int = ...) -> None: ...
  82. @_typing.overload
  83. def __init__(self) -> None: ...
  84. # Functions
  85. @_typing.overload
  86. def render(bgr: cv2.typing.MatLike, prims: _typing.Sequence[cv2.typing.Prim], args: _typing.Sequence[cv2.GCompileArg] = ...) -> None: ...
  87. @_typing.overload
  88. def render(y_plane: cv2.typing.MatLike, uv_plane: cv2.typing.MatLike, prims: _typing.Sequence[cv2.typing.Prim], args: _typing.Sequence[cv2.GCompileArg] = ...) -> None: ...
  89. def render3ch(src: cv2.GMat, prims: cv2.GArrayT) -> cv2.GMat: ...
  90. def renderNV12(y: cv2.GMat, uv: cv2.GMat, prims: cv2.GArrayT) -> tuple[cv2.GMat, cv2.GMat]: ...