web

package
v0.0.0-...-2ad892a Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: GPL-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compare

func Compare(w http.ResponseWriter, r *http.Request)

func GetPerson

func GetPerson(w http.ResponseWriter, r *http.Request)

func ListPersons

func ListPersons(w http.ResponseWriter, r *http.Request)

func Training

func Training(w http.ResponseWriter, r *http.Request)

Types

type FaceRecognitionResponse

type FaceRecognitionResponse struct {
	Error            string     `json:"error,omitempty"`
	User             model.User `json:"user"`
	Average          string     `json:"average"`
	FaceDetected     []string   `json:"faces_detected"`
	PersonRecognized string     `json:"person_recognized"`
	Distance         float64    `json:"distance"`
}

type LibraryResponse

type LibraryResponse struct {
	Error   string           `json:"error,omitempty"`
	Persons []PersonResponse `json:"persons"`
}

func NewLibraryResponse

func NewLibraryResponse() *LibraryResponse

type PersonResponse

type PersonResponse struct {
	FirstName string   `json:"first_name"`
	LastName  string   `json:"last_name"`
	Faces     []string `json:"faces"`
}

Jump to

Keyboard shortcuts

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