face

package
v0.0.0-...-cf68769 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AWSRekognitionAPI uses AWS Rekognition API that has, among other things, a facial detection API.
	AWSRekognitionAPI = "awsRekognition"
)
View Source
const (
	// GoogleCloudVisionAPI uses Google's Cloud Vision API that has, among other things, a facial detection API.
	GoogleCloudVisionAPI = "googleCloudVisionAPI"
)
View Source
const (
	// MicrosoftFaceAPI uses the Microsoft Face detection API
	MicrosoftFaceAPI = "microsoftFaceAPI"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSRekognitionDetector

type AWSRekognitionDetector struct{}

AWSRekognitionDetector provides facial detection using AWS's Rekognition API

func NewAWSRekognitionDetector

func NewAWSRekognitionDetector() *AWSRekognitionDetector

NewAWSRekognitionDetector returns a new AWS Rekognition based facial detector

func (*AWSRekognitionDetector) Detect

func (d *AWSRekognitionDetector) Detect(c echo.Context, cfg *config.Config, params map[string]string, img image.Image) ([]image.Rectangle, error)

Detect uses AWS Rekognition API to detect faces in images

type Detector

type Detector interface {
	Detect(c echo.Context, cfg *config.Config, params map[string]string, img image.Image) ([]image.Rectangle, error)
}

Detector provides a single interface to access various facial recognition APIs

func GetDetectorByName

func GetDetectorByName(name string) Detector

GetDetectorByName returns a detector by its name

type GoogleCloudVisionAPIDetector

type GoogleCloudVisionAPIDetector struct {
}

GoogleCloudVisionAPIDetector provides facial detection using Google's Vision API

func NewGoogleCloudVisionAPIDetector

func NewGoogleCloudVisionAPIDetector() *GoogleCloudVisionAPIDetector

NewGoogleCloudVisionAPIDetector returns a new Google Cloud Vision API detector

func (*GoogleCloudVisionAPIDetector) Detect

func (d *GoogleCloudVisionAPIDetector) Detect(c echo.Context, cfg *config.Config, params map[string]string, img image.Image) ([]image.Rectangle, error)

Detect finds faces using Google's Vision API

type MicrosoftFaceAPIDetector

type MicrosoftFaceAPIDetector struct {
}

MicrosoftFaceAPIDetector provides facial recognition using Microsoft Face API

func NewMicrosoftFaceAPIDetector

func NewMicrosoftFaceAPIDetector() *MicrosoftFaceAPIDetector

NewMicrosoftFaceAPIDetector returns a new face detector using Microsoft's Face API

func (*MicrosoftFaceAPIDetector) Detect

func (d *MicrosoftFaceAPIDetector) Detect(c echo.Context, cfg *config.Config, params map[string]string, img image.Image) ([]image.Rectangle, error)

Detect uses Microsoft Face API to detect faces in images

Jump to

Keyboard shortcuts

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