mirror of
https://github.com/status-im/react-native-camera.git
synced 2025-02-25 02:15:13 +00:00
31 lines
814 B
C
31 lines
814 B
C
|
//
|
||
|
// RNFaceDetectorStub.h
|
||
|
// RCTCamera
|
||
|
//
|
||
|
// Created by Joao Guilherme Daros Fidelis on 24/01/18.
|
||
|
//
|
||
|
|
||
|
#import <Foundation/Foundation.h>
|
||
|
#import <AVFoundation/AVFoundation.h>
|
||
|
|
||
|
@protocol RNFaceDetectorDelegate
|
||
|
- (void)onFacesDetected:(NSArray<NSDictionary *> *)faces;
|
||
|
@end
|
||
|
|
||
|
@interface RNFaceDetectorManagerStub : NSObject
|
||
|
|
||
|
- (NSDictionary *)constantsToExport;
|
||
|
+ (NSDictionary *)constants;
|
||
|
|
||
|
- (instancetype)initWithSessionQueue:(dispatch_queue_t)sessionQueue delegate:(id <RNFaceDetectorDelegate>)delegate;
|
||
|
|
||
|
- (void)setIsEnabled:(id)json;
|
||
|
- (void)setLandmarksDetected:(id)json;
|
||
|
- (void)setClassificationsDetected:(id)json;
|
||
|
- (void)setMode:(id)json;
|
||
|
|
||
|
- (void)maybeStartFaceDetectionOnSession:(AVCaptureSession *)session withPreviewLayer:(AVCaptureVideoPreviewLayer *)previewLayer;
|
||
|
- (void)stopFaceDetection;
|
||
|
|
||
|
@end
|