Image
Labeling
Google

Name

googleVision

Description

Uses Google Cloud Vision API to label an image.

Takes an image (base64 string) and returns an array of labels (string[]).

API Key

Uses the googleapis API key:

index.ts

const aigur = createClient({
apiKeys: {
googleapis: process.env.GOOGLE_API_KEY
}
})

Example

index.ts

import { googleImageLabeling } from '@aigur/client';
//...
flow.node(googleImageLabeling, () => ({
image: imageContent,
})) // --> {labels: ['label1', 'label2']}

Input

Property Type Required Description Default Value
image string (base64) Yes The image to label.

Output

Property Type
labels string[]