Open-World Language-guided Visual representation for object detection
OwlV2
class is a wrapper around the pre-trained OWLv2 model from Hugging Face. It provides an interface for loading the model, detecting objects in an image based on a list of candidate classes, and returning the detections as bounding boxes.detect(self, image: Image.Image, classes: List[str]) -> Detections
: Detects objects in the given image
based on the provided list of classes
. Returns the detections as a Detections
object containing bounding box coordinates, confidence scores, and class IDs.