Upload an image to detect objects
Generate an image using text, structure, and style guides
Prompt with Images in flux[dev]
Add invisible watermarks to images
Add a watermark to images and detect watermarks
Kolors Character to keep character developed with Flux
Generate images from text prompts
PHP and Python Compute Backend for WaveSun PV
Upload an image and prompt to generate edited images
Upload an image to detect objects
Apply visual effects to images
Generate a new image using a prompt and uploaded image
Modifies the render of your image, at any resolution, freely
Transformers.js is a JavaScript library designed to put a logo on an image by leveraging AI-powered object detection. It allows users to upload an image, detect objects within it, and then overlay a logo in a specific location. The library simplifies the process of image manipulation with AI-driven accuracy.
<script src="transformers.js"></script>
const image = new Image();
image.src = 'your-image.jpg';
const detections = await Transformers.detectObjects(image);
Transformers.overlayLogo(detections[0].bbox, 'logo.png');
What image formats are supported?
Transformers.js supports common image formats like JPG, PNG, and BMP.
Can I customize the logo size?
Yes, you can adjust the logo size by passing width and height parameters in the overlayLogo method.
How accurate is the object detection?
The detection accuracy depends on the complexity of the image but generally provides reliable results for common objects.