__init__.pyi 3.0 KB

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