Detect objects in an image.
This class allows to analyze an image in order to detect objects. It stores a list of sppasCoords() for each detected object.
Example
Example
>>> f = sppasImageObjectDetection()
>>> f.load_model(filename1, filename2...)
>>> # Detect all the objects in an image
>>> f.detect(sppasImage(filename="image path"))
>>> # Get number of detected objects
>>> len(f)
>>> # Browse through the detected object coordinates:
>>> for c in f:
>>> print(c)
>>> # Get the detected object with the highest score
>>> f.get_best()
>>> # Get the 2 objects with the highest scores
>>> f.get_best(2)
>>> # Get detected objects with a confidence score greater than 0.9
>>> f.get_confidence(0.9)
Contrariwise to the base class, this class allows multiple models in order to launch multiple detections and to combine their results.