Upload image to detect objects
Detect objects in images and highlight them
Identify objects using your webcam
Identify car damage in images
Run object detection on videos
Detect defects in images and videos
Detect face masks in images
Identify the top 3 objects in an image
Identify objects in images and return details
Ultralytics YOLOv8 Gradio Application for Testing 🚀
Detect objects in images
Stream webcam video and detect objects in real-time
Identify objects in your image
Transformers.js is a JavaScript library designed for object detection tasks. It allows developers to upload images and detect objects within them using advanced AI models. Built on top of modern JavaScript capabilities, Transformers.js provides an intuitive interface for integrating object detection into web applications.
• Cross-browser support: Works seamlessly across major web browsers. • Real-time object detection: Quickly identifies objects within uploaded images. • Customizable models: Supports various pre-trained models for different detection needs. • Asynchronous processing: Efficiently handles image processing without blocking the main thread. • Integration with popular frameworks: Compatible with React, Vue, and Angular. • Lightweight design: Optimized for performance with a small footprint.
npm install transformers.js
const Transformers = require('transformers.js');
const detector = new Transformers.Detector();
detector.loadModel('coco-ssd');
const img = document.getElementById('image');
detector.detect(img).then(results => {
// Handle detection results
});
detector.dispose();
What browsers are supported by Transformers.js?
Transformers.js supports modern browsers including Chrome, Firefox, Safari, and Edge.
Can I use Transformers.js with video inputs?
Yes, Transformers.js can process video streams by capturing frames and detecting objects in real-time.
How do I improve detection accuracy?
For better accuracy, use higher-resolution images and experiment with different pre-trained models suitable for your specific use case.