What this visualizer does
It runs MediaPipe ObjectDetector, draws labeled bounding boxes, and groups repeated detections by class and confidence.
Computer vision visualizer
Detect and label common objects in images or live webcam frames directly in your browser with MediaPipe.
EfficientDet Lite recognizes common COCO objects and runs locally in the browser.
It runs MediaPipe ObjectDetector, draws labeled bounding boxes, and groups repeated detections by class and confidence.
import mediapipe as mp
BaseOptions = mp.tasks.BaseOptions
ObjectDetector = mp.tasks.vision.ObjectDetector
ObjectDetectorOptions = mp.tasks.vision.ObjectDetectorOptions
options = ObjectDetectorOptions(
base_options=BaseOptions(model_asset_path="efficientdet_lite0.tflite"),
max_results=10,
score_threshold=0.5
)
with ObjectDetector.create_from_options(options) as detector:
image = mp.Image.create_from_file("scene.jpg")
result = detector.detect(image)
for detection in result.detections:
print(detection.categories[0].category_name)Confidence removes weak detections. Maximum results caps the list, while overlay controls independently show boxes, labels, and centers.
This general model recognizes common COCO categories. Specialized objects require a compatible custom-trained detector model.