MCPcopy Create free account

hub / github.com/Kagami/go-face / functions

Functions53 in github.com/Kagami/go-face

↓ 5 callersMethodrecognize
(type_ int, imgData []byte, maxFaces int)
face.go:93
↓ 4 callersFunctiongetTPath
(fname string)
face_test.go:60
↓ 4 callersMethodrecognizeFile
(type_ int, imgPath string, maxFaces int)
face.go:156
↓ 3 callersMethodClassify
Classify returns class ID for the given descriptor. Negative index is returned if no match. Thread-safe.
face.go:243
↓ 3 callersMethodClose
Close frees resources taken by the Recognizer. Safe to call multiple times. Don't use Recognizer after close call.
face.go:258
↓ 3 callersFunctionrecognizeAndClassify
(fpath string, tolerance float32)
face_test.go:118
↓ 2 callersMethodRecognizeFile
Same as Recognize but accepts image path instead.
face.go:202
↓ 2 callersMethodRecognizeSingleFile
Same as RecognizeSingle but accepts image path instead.
face.go:211
↓ 2 callersMethodSetSamples
SetSamples sets known descriptors so you can classify the new ones. Thread-safe.
face.go:231
↓ 2 callersFunctionmakeError
makeError constructs Go error for passed error info.
error.go:29
↓ 1 callersMethodClassify
facerec.cc:124
↓ 1 callersMethodClassifyThreshold
Same as Classify but allows to specify max distance between faces to consider it a match. Start with 0.6 if not sure.
face.go:250
↓ 1 callersMethodConfig
facerec.cc:129
↓ 1 callersFunctionNewRecognizer
NewRecognizer returns a new recognizer interface. modelDir points to directory with shape_predictor_5_face_landmarks.dat and dlib_face_recognition_res
face.go:65
↓ 1 callersMethodRecognize
Recognize returns all faces found on the provided image, sorted from left to right. Empty list is returned if there are no faces, error is returned if
face.go:173
↓ 1 callersMethodRecognize
facerec.cc:79
↓ 1 callersMethodSetSamples
facerec.cc:118
↓ 1 callersFunctionclassify
classify.cc:5
↓ 1 callersFunctiongetIdolData
()
face_test.go:64
↓ 1 callersFunctiongetTrainData
(idata *IdolData)
face_test.go:90
↓ 1 callersFunctionjitter_image
facerec.cc:257
↓ 1 callersFunctionjpeg_loader_error_exit
jpeg_mem_loader.cc:13
↓ 1 callersFunctionload_mem_jpeg
From memory JPEG loader because dlib lacks one.
jpeg_mem_loader.cc:27
↓ 1 callersFunctionstr2descr
(s string)
face_test.go:82
MethodError
()
error.go:10
MethodError
()
error.go:17
MethodError
()
error.go:24
FunctionExample_basic
This example shows the basic usage of the package: create an recognizer, recognize faces, classify them using few known ones.
example_test.go:17
MethodFaceRec
facerec.cc:62
FunctionNew
New creates new face with the provided parameters.
face.go:54
FunctionNewRecognizerWithConfig
(modelDir string, size int, padding float32, jittering int)
face.go:81
FunctionNewWithShape
(r image.Rectangle, s []image.Point, d Descriptor)
face.go:58
MethodRecognizeCNN
(imgData []byte)
face.go:177
MethodRecognizeFileCNN
(imgPath string)
face.go:206
MethodRecognizeSingle
RecognizeSingle returns face if it's the only face on the image or nil otherwise. Only JPEG format is currently supported. Thread-safe.
face.go:183
MethodRecognizeSingleCNN
(imgData []byte)
face.go:192
MethodRecognizeSingleFileCNN
(imgPath string)
face.go:220
FunctionSquaredEuclideanDistance
(d1 Descriptor, d2 Descriptor)
face.go:45
FunctionTestClassifyThreshold
(t *testing.T)
face_test.go:214
FunctionTestClose
(t *testing.T)
face_test.go:231
FunctionTestEmptyClassify
(t *testing.T)
face_test.go:171
FunctionTestIdols
(t *testing.T)
face_test.go:179
FunctionTestImageLoadError
(t *testing.T)
face_test.go:150
FunctionTestInit
(t *testing.T)
face_test.go:142
FunctionTestNumFaces
(t *testing.T)
face_test.go:160
FunctionTestSerializationError
(t *testing.T)
face_test.go:132
Functionfacerec_classify
facerec.cc:240
Functionfacerec_config
facerec.cc:166
Functionfacerec_free
facerec.cc:246
Functionfacerec_init
facerec.cc:152
Functionfacerec_recognize
facerec.cc:171
Functionfacerec_set_samples
facerec.cc:223
Functionjpeg_loader_emit_message
jpeg_mem_loader.cc:20