DetectorBase¶
- class DetectorBase¶
Bases:
pybind11_object
Base class for object detection.
This class is a generic class that can be used to detect:
bar codes like QRcodes of Data matrices using vpDetectorQRCode and vpDetectorDataMatrixCode classes respectively. The example given in tutorial-barcode-detector.cpp shows how to detect one or more bar codes in an image. In tutorial-barcode-detector-live.cpp you will find an other example that shows how to use this class to detect bar codes in images acquired by a camera.
AprilTags using vpDetectorAprilTag class
faces using vpDetectorFace . An example is provided in tutorial-face-detector-live.cpp.
Methods
Return the bounding box of the ith object.
Return the center of gravity location of the ith object.
Overloaded function.
Return the number of objects that are detected.
Overloaded function.
Set detector timeout in milli-seconds.
Inherited Methods
Operators
__annotations__
__doc__
__module__
Attributes
__annotations__
- __init__(*args, **kwargs)¶
- getBBox(self, i: int) visp._visp.core.Rect ¶
Return the bounding box of the ith object.
- getCog(self, i: int) visp._visp.core.ImagePoint ¶
Return the center of gravity location of the ith object.
- getMessage(*args, **kwargs)¶
Overloaded function.
getMessage(self: visp._visp.detection.DetectorBase) -> list[str]
Returns the contained message of the ith object if there is one.
getMessage(self: visp._visp.detection.DetectorBase, i: int) -> str
Returns the contained message of the ith object if there is one.
- getPolygon(*args, **kwargs)¶
Overloaded function.
getPolygon(self: visp._visp.detection.DetectorBase) -> list[list[visp._visp.core.ImagePoint]]
Returns object container box as a vector of points.
getPolygon(self: visp._visp.detection.DetectorBase, i: int) -> list[visp._visp.core.ImagePoint]
Returns ith object container box as a vector of points.