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
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 ¶
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
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
Click to show internal directories.
Click to hide internal directories.