__init__.pyi 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. __all__: list[str] = []
  2. import cv2
  3. import cv2.typing
  4. import typing as _typing
  5. # Classes
  6. class Plot2d(cv2.Algorithm):
  7. # Functions
  8. def setMinX(self, _plotMinX: float) -> None: ...
  9. def setMinY(self, _plotMinY: float) -> None: ...
  10. def setMaxX(self, _plotMaxX: float) -> None: ...
  11. def setMaxY(self, _plotMaxY: float) -> None: ...
  12. def setPlotLineWidth(self, _plotLineWidth: int) -> None: ...
  13. def setNeedPlotLine(self, _needPlotLine: bool) -> None: ...
  14. def setPlotLineColor(self, _plotLineColor: cv2.typing.Scalar) -> None: ...
  15. def setPlotBackgroundColor(self, _plotBackgroundColor: cv2.typing.Scalar) -> None: ...
  16. def setPlotAxisColor(self, _plotAxisColor: cv2.typing.Scalar) -> None: ...
  17. def setPlotGridColor(self, _plotGridColor: cv2.typing.Scalar) -> None: ...
  18. def setPlotTextColor(self, _plotTextColor: cv2.typing.Scalar) -> None: ...
  19. def setPlotSize(self, _plotSizeWidth: int, _plotSizeHeight: int) -> None: ...
  20. def setShowGrid(self, needShowGrid: bool) -> None: ...
  21. def setShowText(self, needShowText: bool) -> None: ...
  22. def setGridLinesNumber(self, gridLinesNumber: int) -> None: ...
  23. def setInvertOrientation(self, _invertOrientation: bool) -> None: ...
  24. def setPointIdxToPrint(self, pointIdx: int) -> None: ...
  25. @_typing.overload
  26. def render(self, _plotResult: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
  27. @_typing.overload
  28. def render(self, _plotResult: cv2.UMat | None = ...) -> cv2.UMat: ...
  29. @classmethod
  30. @_typing.overload
  31. def create(cls, data: cv2.typing.MatLike) -> Plot2d: ...
  32. @classmethod
  33. @_typing.overload
  34. def create(cls, data: cv2.UMat) -> Plot2d: ...
  35. @classmethod
  36. @_typing.overload
  37. def create(cls, dataX: cv2.typing.MatLike, dataY: cv2.typing.MatLike) -> Plot2d: ...
  38. @classmethod
  39. @_typing.overload
  40. def create(cls, dataX: cv2.UMat, dataY: cv2.UMat) -> Plot2d: ...