Spaces:
Running on Zero
Running on Zero
|
Download docs/getting-started.md from muhammadpriv001/Object-Intelligence-Backend: direct link, hf CLI and curl.
- Browser
- Download file 1.64 kB
-
https://huggingface.co/spaces/muhammadpriv001/Object-Intelligence-Backend/resolve/main/docs/getting-started.md
- Command line
-
hf download hf://spaces/muhammadpriv001/Object-Intelligence-Backend/docs/getting-started.md
-
curl -L -o getting-started.md https://huggingface.co/spaces/muhammadpriv001/Object-Intelligence-Backend/resolve/main/docs/getting-started.md
1.64 kB
A newer version of the Gradio SDK is available: 6.29.1
Getting Started with Object Intelligence Platform
Welcome to the Open-World Object Intelligence Platform. This platform unifies three distinct computer vision paradigms into a single modular architecture:
- Known Object Detection (RT-DETR): Ultra-fast, predictable detection for standard trained classes (COCO).
- Open-Vocabulary Discovery (YOLO-World): Zero-shot visual concept detection driven by text prompts.
- Specific Object Recognition (Visual Embeddings): Teachable feature embeddings to recognize individual physical objects (e.g. My Cup).
π Quick Setup
1. Installation
Ensure Python 3.9+ is installed, then run:
pip install -r requirements.txt
2. Launching the Gradio Web Application & API
To start the Gradio interface locally or prepare for Hugging Face Spaces deployment:
python app.py
Open your browser at http://localhost:7860.
π¦ Python SDK Usage
from object_intelligence import ObjectDetector
import cv2
# Initialize unified detector
detector = ObjectDetector()
# Select mode: 'combined', 'known', 'open_vocabulary', 'specific'
detector.set_mode("combined")
# Enable Lock Mode if desired
detector.lock("My Cup")
# Read frame and run detection
frame = cv2.imread("test.jpg")
annotated_frame, detections = detector.detect_and_draw(frame)
# Save result
cv2.imwrite("output.jpg", annotated_frame)
π Lock Mode
Lock Mode filters all candidate detections across all pipelines, rendering ONLY bounding boxes that match your specified target string. All non-matching detections are suppressed before drawing.