Detect objects in images
Detect defects in images and videos
Detect face masks in images
Detect objects in random images
Find objects in your images
Identify objects in images and return details
Detect objects in uploaded images
Upload images/videos to detect wildfires and smoke
Identify objects in an image
Detect objects in images and videos
Upload an image to detect objects
Identify labels in an image with a score threshold
Identify and label objects in images
Transformers.js is a powerful JavaScript library designed for object detection tasks. Built on top of popular transformer-based models, it simplifies the integration of advanced computer vision capabilities into web applications. With Transformers.js, developers can easily detect objects within images, leveraging cutting-edge AI models to achieve accurate results.
• Real-time Object Detection: Detect objects in images instantaneously with optimized performance. • Support for Multiple Models: Leverage pre-trained models like YOLO, SSD, and others for diverse detection needs. • Web Application Integration: Seamlessly integrate object detection into web apps using JavaScript. • API Access: Use RESTful APIs to process images remotely or locally. • Cross-Browser Compatibility: Compatible with modern web browsers for widespread accessibility. • Customizable Models: Fine-tune models for specific use cases to improve accuracy. • Image Format Support: Process images in various formats, including JPEG, PNG, and more.
npm install transformers.js
const { TransformerDetector } = require('transformers.js');
const detector = new TransformerDetector('yolov5s');
const image = document.getElementById('image');
detector.detect(image).then(results => {
console.log(results);
});
What browsers are supported by Transformers.js?
Transformers.js is designed to work with modern browsers, including Chrome, Firefox, Safari, and Edge.
Can I use Transformers.js offline?
Yes, Transformers.js can run locally without an internet connection, provided the models are loaded beforehand.
What models are supported for object detection?
Transformers.js supports popular models like YOLO, SSD, Faster R-CNN, and others. Visit the documentation for the full list.