RFSMatchFacesSimilarityThresholdSplit
Objective-C
@interface RFSMatchFacesSimilarityThresholdSplit : NSObject
Swift
class MatchFacesSimilarityThresholdSplit : NSObject
RFSMatchFacesSimilarityThresholdSplit
is a result of a splits operation
Use splitPairs operation on matched faces pairs with similarityThreshold to split the results into matched and unmatched groups.
-
The threshold value of the similarity of faces used to make this result.
Declaration
Objective-C
@property (nonatomic, strong, nonnull) NSNumber *similarityThreshold;
Swift
var similarityThreshold: NSNumber { get set }
-
Matched pairs of faces with similarity is greater or equal than the value of
similarityThreshold
.Declaration
Objective-C
@property (nonatomic, strong, readonly, nonnull) NSArray<RFSMatchFacesComparedFacesPair *> *matchedFaces;
Swift
var matchedFaces: [RFSMatchFacesComparedFacesPair] { get }
-
Unmatched pairs of faces which similarity is less than the value of
similarityThreshold
.Declaration
Objective-C
@property (nonatomic, strong, readonly, nonnull) NSArray<RFSMatchFacesComparedFacesPair *> *unmatchedFaces;
Swift
var unmatchedFaces: [RFSMatchFacesComparedFacesPair] { get }
-
Unavailable
Not the designated initializer
Undocumented
Declaration
Objective-C
RFS_EMPTY_INIT_UNAVAILABLE
-
Unavailable
Not the designated initializer
Undocumented
Declaration
Objective-C
RFS_EMPTY_INIT_UNAVAILABLE
-
Undocumented
Declaration
Objective-C
- (instancetype)initWithSimilarityThreshold:(NSNumber *)similarityThreshold matchedFaces:(NSArray<RFSMatchFacesComparedFacesPair *> *)matchedFaces unmatchedFaces:(NSArray<RFSMatchFacesComparedFacesPair *> *)unmatchedFaces NS_DESIGNATED_INITIALIZER;
Swift
init(similarityThreshold: NSNumber, matchedFaces: [RFSMatchFacesComparedFacesPair], unmatchedFaces: [RFSMatchFacesComparedFacesPair])
-
Splits
pairs
pairs by givensimilarityThreshold
. If the similarity of faces is greater or equal than the threshold, faces will be stored to thematchedFaces
array, otherwise to theunmatchedFaces
one.Declaration
Objective-C
+ (nonnull RFSMatchFacesSimilarityThresholdSplit *) splitPairs: (nonnull NSArray<RFSMatchFacesComparedFacesPair *> *)pairs bySimilarityThreshold:(nonnull NSNumber *)similarityThreshold;
Swift
/*not inherited*/ init(pairs: [RFSMatchFacesComparedFacesPair], bySimilarityThreshold similarityThreshold: NSNumber)
Parameters
pairs
The input array of compared faces to split.
similarityThreshold
The threshold value of the similarity of faces.