mirror of
https://github.com/status-im/react-native-camera.git
synced 2025-02-25 02:15:13 +00:00
36 lines
1.1 KiB
C
36 lines
1.1 KiB
C
|
//
|
||
|
// RNFaceDetectorUtils.h
|
||
|
// RCTCamera
|
||
|
//
|
||
|
// Created by Joao Guilherme Daros Fidelis on 21/01/18.
|
||
|
//
|
||
|
|
||
|
#import <UIKit/UIKit.h>
|
||
|
#import <CoreMedia/CoreMedia.h>
|
||
|
#import <Foundation/Foundation.h>
|
||
|
#import <AVFoundation/AVFoundation.h>
|
||
|
#import <GoogleMVDataOutput/GoogleMVDataOutput.h>
|
||
|
|
||
|
typedef NS_ENUM(NSInteger, RNFaceDetectionMode) {
|
||
|
RNFaceDetectionFastMode = GMVDetectorFaceFastMode,
|
||
|
RNFaceDetectionAccurateMode = GMVDetectorFaceAccurateMode
|
||
|
};
|
||
|
|
||
|
typedef NS_ENUM(NSInteger, RNFaceDetectionLandmarks) {
|
||
|
RNFaceDetectAllLandmarks = GMVDetectorFaceLandmarkAll,
|
||
|
RNFaceDetectNoLandmarks = GMVDetectorFaceLandmarkNone
|
||
|
};
|
||
|
|
||
|
typedef NS_ENUM(NSInteger, RNFaceDetectionClassifications) {
|
||
|
RNFaceRunAllClassifications = GMVDetectorFaceClassificationAll,
|
||
|
RNFaceRunNoClassifications = GMVDetectorFaceClassificationNone
|
||
|
};
|
||
|
|
||
|
@interface RNFaceDetectorUtils : NSObject
|
||
|
|
||
|
+ (NSDictionary *)constantsToExport;
|
||
|
|
||
|
+ (CGAffineTransform)transformFromDeviceOutput:(GMVDataOutput *)dataOutput toInterfaceVideoOrientation:(AVCaptureVideoOrientation)interfaceVideoOrientation;
|
||
|
|
||
|
@end
|