|
visageSDK
|
Implements simple high-level Objective-C interface around VisageSDK::VisageFaceRecognition functionallity. More...
#import <VisageFaceRecognitionWrapper.h>
Inherits NSObject.
Instance Methods | |
| (bool) | - initRecognition: |
| Method for initializing the recognizer. More... | |
| (int) | - createGallery |
| Method which adds descriptors to VisageFaceRecognition gallery. More... | |
| (UIImage *) | - recognizeFace: |
| Method which performs face recognition on a given image. More... | |
Implements simple high-level Objective-C interface around VisageSDK::VisageFaceRecognition functionallity.
This makes connecting the iOS app GUI with visage|SDK features recognizer functionaly easier as primary programming language used in iOS apps is Objective-C while primary programming language used in visage|SDK is C++. The class is a subclass of NSObject and it uses Objective-C++ for implementation details.
Definition at line 23 of file VisageFaceRecognitionWrapper.h.
| - (int) createGallery |
Method which adds descriptors to VisageFaceRecognition gallery.
This method goes through all pre-loaded images in the Famous Actors/gallery/ folder and adds corresponding descriptor to VisageFaceRecognition gallery for each. Returns 0 if VisageFeaturesDetector object has not been initialized yet or if the Famous Actors/gallery/ folder is empty.
Definition at line 43 of file VisageFaceRecognitionWrapper.mm.
Referenced by initRecognition:.
| - (bool) initRecognition: | (VisageSDK::VisageFeaturesDetector*) | detector |
Method for initializing the recognizer.
This method creates a new VisageFaceRecognition object and calls method createGallery for loading VisageFaceRecognition gallery. Returns false if VisageFaceRecognition object cannot be initialized or if the gallery cannot be created.
Definition at line 15 of file VisageFaceRecognitionWrapper.mm.
References createGallery.
| - (UIImage *) recognizeFace: | (UIImage*) | uiImage |
Method which performs face recognition on a given image.
Performs face recognition on a given image and returns the image with the name of the recognized person or the person with the most similar face found in the VisageFaceRecognition gallery.
Definition at line 77 of file VisageFaceRecognitionWrapper.mm.
References VsImage::height, and VsImage::width.
1.8.15