Upload an image to detect objects
Upload an image to detect objects
Stream webcam video and detect objects in real-time
Ultralytics YOLO11 Gradio Application for Testing
Find objects in images using text descriptions
Identify objects using your webcam
Identify objects in images with Transformers.js
Detect and measure areas of objects in images
Identify objects in images using text queries
Detect objects in uploaded images
Identify objects in images
RC Race Vision YOLO11 Gradio Application for Testing
Detect objects in your images
Transformers.js is a JavaScript library designed for object detection tasks. It allows developers to easily integrate AI-powered object detection into web applications. By leveraging modern AI models, Transformers.js enables users to upload an image and detect objects within it, making it a powerful tool for applications that require visual analysis.
• Object Detection: Detect objects within images with high accuracy.
• Multiple Object Identification: Identify and label multiple objects in a single image.
• Confidence Scores: Provides confidence scores for each detected object.
• Client-Side Processing: Runs entirely in the browser, ensuring privacy and quick responses.
• Lightweight: Optimized for web use, ensuring minimal impact on page load times.
detectObjects method to analyze the uploaded image.// Example usage:
const imgInput = document.getElementById('imageInput');
const resultsDiv = document.getElementById('results');
imgInput.addEventListener('change', async (e) => {
const image = e.target.files[0];
const detectionResults = await detectObjects(image);
displayResults(detectionResults);
});
function displayResults(results) {
let output = '';
results.forEach((result) => {
output += `<div>Detected: ${result.label} (${result.confidence.toFixed(2)} confidence)</div>`;
});
resultsDiv.innerHTML = output;
}
What browsers are supported by Transformers.js?
Transformers.js is designed to work with modern browsers that support WebGL and modern JavaScript features.
Can I customize the object detection models?
Yes, you can customize the models by adjusting parameters or using different pre-trained models to suit your specific use case.
Is Transformers.js free to use?
Yes, Transformers.js is available under an open-source license, making it free to use for both personal and commercial projects.