vision

package
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 14, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasCat

func HasCat(imgB64 string, name string) (bool, error)
HasCat uses Google Cloud Vision API to check if the Base64 encoded image contains a cat. It also takes the name for logging purposes.

Note: The base64 must not contain the metadata. For example, do not send "data:image/jpeg;base64,<image>", but rather only <image>

func HasCatMultiple

func HasCatMultiple(imgsB64 []string, names []string) ([]bool, error)
HasCatMultiple uses Google Cloud Vision API to check if the Base64 encoded images contain a cat. It also takes the names for logging purposes.

This function returns an array of boolean in the same order as the provided image array Note: The base64 must not contain the metadata. For example, do not send "data:image/jpeg;base64,<image>", but rather only <image>

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL