If you're looking for an API, here is a sample code in NodeJS to help you out.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
const axios = require('axios');
const api_key = "YOUR API KEY";
const url = "https://api.segmind.com/workflows/67a326c2d52cfa65374963ab-v4";
const data = {
input_image: "publicly accessible image link",
Threshold: "the user input string"
};
axios.post(url, data, {
headers: {
'x-api-key': api_key,
'Content-Type': 'application/json'
}
}).then((response) => {
console.log(response.data);
});
1
2
3
4
5
{
"poll_url": "<base_url>/requests/<some_request_id>",
"request_id": "some_request_id",
"status": "QUEUED"
}
You can poll the above link to get the status and output of your request.
1
2
3
{
"output_image": "image in URL Format"
}
To keep track of your credit usage, you can inspect the response headers of each API call. The x-remaining-credits property will indicate the number of remaining credits in your account. Ensure you monitor this value to avoid any disruptions in your API usage.
Automatic Text Removal from Images is a powerful workflow designed to efficiently eliminate unwanted text elements from various types of images. This process is particularly effective when dealing with images containing large text, making it an invaluable tool for photographers, graphic designers, and content creators who need to clean up or repurpose visual content.
The workflow typically involves several steps, each contributing to the accurate detection and removal of text without compromising the underlying image quality. Here's an overview of the process:
Image Input: The workflow begins by importing the image containing unwanted text.
Text Detection: Advanced algorithms analyze the image to identify areas containing text. These algorithms are particularly adept at recognizing large text, which is why the workflow excels in such scenarios.
Text Segmentation: Once detected, the text areas are segmented from the rest of the image. This step is crucial for ensuring that only the text is removed without affecting surrounding elements.
Background Analysis: The software examines the areas surrounding the text to understand the image's background patterns, colors, and textures.
Text Removal: Using the information gathered from the background analysis, the text is removed. This step often involves intelligent inpainting techniques to seamlessly fill the space previously occupied by the text.
Image Reconstruction: The final step involves reconstructing the image, ensuring that the areas where text was removed blend naturally with the rest of the image.
This workflow is particularly useful in various scenarios, such as:
Cleaning up stock photos that contain watermarks or unwanted text overlays
Removing outdated information from infographics or promotional materials
Eliminating subtitles or captions from screenshots or video frames
Preparing images for reuse in different contexts where existing text is not relevant
While the Automatic Text Removal workflow is highly effective, it's important to note that results may vary depending on the complexity of the image and the nature of the text being removed. Images with very intricate backgrounds or where text is deeply integrated into the visual elements may require additional manual touch-ups for optimal results.
To achieve the best outcomes, users should ensure they are working with high-resolution images and that the text to be removed is clearly visible and distinct from the background. This workflow is typically more successful with images containing large, bold text rather than small or decorative fonts.
Automatic Mask Generator is a powerful tool that automates the creation of precise masks for inpainting
LaMA Object Removal- AI Magic Eraser
AI-Powered Image Super-Resolution, upscaling and Image enhancement producing stunning, high-quality results using artificial intelligence