Detect watermarks in an image
Detect Watermarks transformation allows users to determine whether an image is watermarked.
The result of Detect Watermark is a JSON, as shown below:
{
"data": {
"attributes": {
"watermark": false
}
}
}
The JSON key is explained in the below table:
Property | Description |
---|---|
watermark | A boolean value indicating whether or not the image contains a watermark. |
note
Instead of getting the output in a traditional CDN URL, you will get a JSON output from the Context API while the CDN URL will return the original image without any modifications.
- Input Image
- Context API Response
- URL
- React
<PixelBinImage url="https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/original/images/transformation/hand_holding_glasses.jpeg" />
{
"attributes": {
"watermark": true
}
}
Params
Detect (detect_text
)
Detect Watermarks
also works if the watermark in the image is in text format.
The default value is false
.
- Input Image
- Context API Response (detect_text=true)
- URL
- React
<PixelBinImage url="https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/original/images/transformation/remove_watermark.jpeg" />
{
"attributes": {
"watermark": true
}
}