Mika Scraper / ApplyFilterOutput
Interface: ApplyFilterOutput
Defined in: src/_other-scraper/face-filter.ts:23
Represents the output generated from applying an AI-powered image filter.
Properties
imageBuffer?
optional
imageBuffer:Buffer
|ArrayBufferLike
The binary data of the processed image. This property is returned when an image filter is successfully applied.
textResponse?
optional
textResponse:string
A textual representation or description related to the image processing result. This property may provide additional context or details about the filter application.
Example
Here is a TypeScript example demonstrating how to utilize the ApplyFilterOutput
interface:
import { ApplyFilterOutput } from './path/to/interface';
function handleFilterResult(result: ApplyFilterOutput) {
if (result.imageBuffer) {
// Process the image buffer
}
if (result.textResponse) {
console.log('Filter response:', result.textResponse);
}
}
Last updated on