2014 snapchat source code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
644 B

  1. //
  2. // SCCaptureMetadataObjectParser.h
  3. // Snapchat
  4. //
  5. // Created by Jiyang Zhu on 3/13/18.
  6. // Copyright © 2018 Snapchat, Inc. All rights reserved.
  7. //
  8. // This class offers class methods to parse AVMetadataObject.
  9. #import <AVFoundation/AVFoundation.h>
  10. @interface SCCaptureMetadataObjectParser : NSObject
  11. /**
  12. Parse face bounds from AVMetadataObject.
  13. @param metadataObjects An array of AVMetadataObject.
  14. @return A dictionary, value is faceBounds: CGRect, key is faceID: NSString.
  15. */
  16. - (NSDictionary<NSNumber *, NSValue *> *)parseFaceBoundsByFaceIDFromMetadataObjects:
  17. (NSArray<__kindof AVMetadataObject *> *)metadataObjects;
  18. @end