initial
This commit is contained in:
93
venv/lib/python3.12/site-packages/cv2/legacy/__init__.pyi
Normal file
93
venv/lib/python3.12/site-packages/cv2/legacy/__init__.pyi
Normal file
@@ -0,0 +1,93 @@
|
||||
__all__: list[str] = []
|
||||
|
||||
import cv2
|
||||
import cv2.typing
|
||||
import typing as _typing
|
||||
|
||||
|
||||
# Classes
|
||||
class Tracker(cv2.Algorithm):
|
||||
# Functions
|
||||
@_typing.overload
|
||||
def init(self, image: cv2.typing.MatLike, boundingBox: cv2.typing.Rect2d) -> bool: ...
|
||||
@_typing.overload
|
||||
def init(self, image: cv2.UMat, boundingBox: cv2.typing.Rect2d) -> bool: ...
|
||||
|
||||
@_typing.overload
|
||||
def update(self, image: cv2.typing.MatLike) -> tuple[bool, cv2.typing.Rect2d]: ...
|
||||
@_typing.overload
|
||||
def update(self, image: cv2.UMat) -> tuple[bool, cv2.typing.Rect2d]: ...
|
||||
|
||||
|
||||
class TrackerMIL(Tracker):
|
||||
# Functions
|
||||
@classmethod
|
||||
def create(cls) -> TrackerMIL: ...
|
||||
|
||||
|
||||
class TrackerBoosting(Tracker):
|
||||
# Functions
|
||||
@classmethod
|
||||
def create(cls) -> TrackerBoosting: ...
|
||||
|
||||
|
||||
class TrackerMedianFlow(Tracker):
|
||||
# Functions
|
||||
@classmethod
|
||||
def create(cls) -> TrackerMedianFlow: ...
|
||||
|
||||
|
||||
class TrackerTLD(Tracker):
|
||||
# Functions
|
||||
@classmethod
|
||||
def create(cls) -> TrackerTLD: ...
|
||||
|
||||
|
||||
class TrackerKCF(Tracker):
|
||||
# Functions
|
||||
@classmethod
|
||||
def create(cls) -> TrackerKCF: ...
|
||||
|
||||
|
||||
class TrackerMOSSE(Tracker):
|
||||
# Functions
|
||||
@classmethod
|
||||
def create(cls) -> TrackerMOSSE: ...
|
||||
|
||||
|
||||
class MultiTracker(cv2.Algorithm):
|
||||
# Functions
|
||||
def __init__(self) -> None: ...
|
||||
|
||||
@_typing.overload
|
||||
def add(self, newTracker: Tracker, image: cv2.typing.MatLike, boundingBox: cv2.typing.Rect2d) -> bool: ...
|
||||
@_typing.overload
|
||||
def add(self, newTracker: Tracker, image: cv2.UMat, boundingBox: cv2.typing.Rect2d) -> bool: ...
|
||||
|
||||
@_typing.overload
|
||||
def update(self, image: cv2.typing.MatLike) -> tuple[bool, _typing.Sequence[cv2.typing.Rect2d]]: ...
|
||||
@_typing.overload
|
||||
def update(self, image: cv2.UMat) -> tuple[bool, _typing.Sequence[cv2.typing.Rect2d]]: ...
|
||||
|
||||
def getObjects(self) -> _typing.Sequence[cv2.typing.Rect2d]: ...
|
||||
|
||||
@classmethod
|
||||
def create(cls) -> MultiTracker: ...
|
||||
|
||||
|
||||
class TrackerCSRT(Tracker):
|
||||
# Functions
|
||||
@classmethod
|
||||
def create(cls) -> TrackerCSRT: ...
|
||||
|
||||
@_typing.overload
|
||||
def setInitialMask(self, mask: cv2.typing.MatLike) -> None: ...
|
||||
@_typing.overload
|
||||
def setInitialMask(self, mask: cv2.UMat) -> None: ...
|
||||
|
||||
|
||||
|
||||
# Functions
|
||||
def upgradeTrackingAPI(legacy_tracker: Tracker) -> Tracker: ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user