Detect objects in images
Detect objects in uploaded images
Identify objects in images
Identify objects in an image
Generic YOLO Models Trained on COCO
Identify objects in images using text queries
Find and highlight trash in images
Upload an image to detect objects
Detect objects in images using drag-and-drop
Upload images/videos to detect wildfires and smoke
Detect objects in images using 🤗 Transformers.js
Analyze images and videos to detect objects
Detect objects in images and return coordinates
Transformers.js is a JavaScript library designed for object detection tasks. It allows developers to integrate state-of-the-art object detection models into web applications with ease. The library is lightweight and browser-friendly, making it suitable for a variety of use cases, from simple web apps to complex enterprise solutions.
• Lightweight and Browser-Friendly: Optimized for use in web browsers.
• Support for Multiple Models: Compatible with popular object detection models.
• WebGL Acceleration: Leverages WebGL for fast inference and improved performance.
• Customizable Configuration: Allows tuning of model parameters for specific use cases.
• Simple API: Easy-to-use interface for integrating object detection into applications.
npm install transformers.js
import {ObjectDetector} from 'transformers.js';
const detector = new ObjectDetector();
await detector.loadModel('model_name');
const predictions = await detector.detect(image);
What browsers are supported by Transformers.js?
Transformers.js supports modern browsers that have WebGL support, including Chrome, Firefox, and Edge.
How do I improve detection accuracy?
You can improve accuracy by using higher-resolution models or fine-tuning the model for your specific use case.
Can I use Transformers.js for real-time detection?
Yes, Transformers.js is optimized for real-time detection, especially when using WebGL acceleration. However, performance may vary depending on the device and model complexity.