Identify objects in your images
Detect objects in images to help with cleanup
Remove objects from videos by selecting them
Remove clothes from images
Clean image EXIF
Remove the background from images
Create high-quality HD cutouts with just a text prompt
Remove background from images
Remove clothing from images
Remove background from images
Remove objects from images by pointing and clicking
Identify objects in your photos
Remove clothing from images
Transformers.js is a powerful JavaScript library designed to remove objects from photos and identify objects within images. It leverages advanced AI technology to seamlessly edit and enhance your visual content by eliminating unwanted elements or highlighting specific objects.
import Transformers from 'transformers.js';
const transformer = new Transformers();
identifyObjects()
method to detect objects in an image.const objects = await transformer.identifyObjects('path/to/image.jpg');
removeObjects()
method to eliminate identified objects from the image.const editedImage = await transformer.removeObjects('path/to/image.jpg', [1, 2]);
What is the maximum size of images I can process with Transformers.js?
Transformers.js can handle images of various sizes, but performance may vary depending on your hardware and browser capabilities. For best results, use images under 10MB.
Can I customize the object detection model?
Yes, you can customize the object detection model by training your own dataset or using pre-trained models. This allows you to tailor the library to your specific needs.
Which frameworks are supported by Transformers.js?
Transformers.js is designed to work with popular JavaScript frameworks such as React, Vue.js, and Angular. It can also be used with vanilla JavaScript projects.