Upload an image to detect objects
Detect objects in images and get bounding boxes
Identify objects in images using a password-protected service
Detect and measure areas of objects in images
Detect objects in images and get details
Find objects in images
Identify benthic supercategories in images
State-of-the-art Zero-shot Object Detection
Detect and segment objects in images
Ultralytics YOLO11 Gradio Application for Testing
Identify objects in images and return details
Run object detection on videos
Identify the top 3 objects in an image
Transformers.js is a JavaScript library designed for object detection tasks. It allows developers to easily integrate transformer-based models into their web applications to detect objects within images. The library simplifies the process of uploading images and receiving detection results, making it a powerful tool for building AI-driven applications.
• Transformer Model Support: Utilizes state-of-the-art transformer models for accurate object detection.
• Real-Time Detection: Enables real-time object detection in images.
• Image Upload Capability: Supports image uploads for processing.
• Multiple Object Detection: Detects and identifies multiple objects within a single image.
• Customizable Thresholds: Allows users to set confidence thresholds for detections.
• Web Framework Integration: Designed to work seamlessly with popular web frameworks.
npm install transformers.js
import Transform from 'transformers.js';
const transformer = new Transform({ model: 'detr-resnet-50' });
const image = new Image();
image.src = 'path/to/your/image.jpg';
transformer.detect(image).then(results => {
console.log(results);
});
What models does Transformers.js support?
Transformers.js supports a variety of transformer-based models, including DETR, Deformable DETR, and others. For a full list, refer to the official documentation.
Can I customize the detection thresholds?
Yes, you can set custom confidence thresholds during model initialization to filter detection results based on your requirements.
Where can I find more documentation or support?
Visit the official Transformers.js repository or community forums for detailed documentation, examples, and troubleshooting guides.