LCDescriptorExtractorProtocol

Objective-C

@protocol LCDescriptorExtractorProtocol <NSObject>

Swift

protocol LCDescriptorExtractorProtocol : NSObjectProtocol

Interface of descriptor extractor.

  • Extracts descriptor from the best shot.

    Declaration

    Objective-C

    - (nonnull NSData *)extractDescriptorDataFromBestShot:
        (nonnull LCBestShot *)bestShot;

    Swift

    func extractDescriptorData(from bestShot: LCBestShot) -> Data

    Parameters

    bestShot

    Object of the best shot.

  • Extracts descriptor from the face detection.

    Declaration

    Objective-C

    - (nonnull NSData *)extractDescriptorDataFromFaceDetection:
        (nonnull LCFaceDetection *)faceDetection;

    Swift

    func extractDescriptorData(from faceDetection: LCFaceDetection) -> Data

    Parameters

    faceDetection

    Object of the face detection.

  • Compares best shot and face detection.

    Declaration

    Objective-C

    - (float)match:(nonnull LCBestShot *)bestShot
               and:(nonnull LCFaceDetection *)faceDetection;

    Swift

    func match(_ bestShot: LCBestShot, and faceDetection: LCFaceDetection) -> Float

    Return Value

    Returns comparison value from 0 to 1. The higher value is, the more similar descriptors are.

  • Compares two descriptors.

    Declaration

    Objective-C

    - (float)matchDescriptorsData:(nonnull NSData *)firstDescriptorData
                              and:(nonnull NSData *)secondDescriptorData;

    Swift

    func matchDescriptorsData(_ firstDescriptorData: Data, and secondDescriptorData: Data) -> Float

    Return Value

    Returns comparison value from 0 to 1. The higher value is, the more similar descriptors are.