This commit is contained in:
Yamozha
2021-04-02 02:24:13 +03:00
parent c23950b545
commit 7256d79e2c
31493 changed files with 3036630 additions and 0 deletions

View File

@ -0,0 +1,18 @@
require 'json'
package = JSON.parse(File.read(File.join(__dir__, '..', 'package.json')))
Pod::Spec.new do |s|
s.name = 'UMFaceDetectorInterface'
s.version = package['version']
s.summary = package['description']
s.description = package['description']
s.license = package['license']
s.author = package['author']
s.homepage = package['homepage']
s.platform = :ios, '10.0'
s.source = { git: 'https://github.com/expo/expo.git' }
s.source_files = 'UMFaceDetectorInterface/**/*.{h,m}'
s.preserve_paths = 'UMFaceDetectorInterface/**/*.{h,m}'
s.requires_arc = true
end

View File

@ -0,0 +1,20 @@
// Copyright © 2018 650 Industries. All rights reserved.
#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>
#import <UIKit/UIKit.h>
@protocol UMFaceDetectorManager
- (void)setSessionQueue:(dispatch_queue_t)sessionQueue;
- (void)setIsEnabled:(BOOL)enabled;
- (void)setOnFacesDetected:(void (^)(NSArray<NSDictionary *> *))onFacesDetected;
- (void)updateSettings:(NSDictionary *)settings;
- (void)updateMirrored:(BOOL) mirrored;
- (void)maybeStartFaceDetectionOnSession:(AVCaptureSession *)session withPreviewLayer:(AVCaptureVideoPreviewLayer *)previewLayer;
- (void)maybeStartFaceDetectionOnSession:(AVCaptureSession *)session withPreviewLayer:(AVCaptureVideoPreviewLayer *)previewLayer mirrored:(BOOL) mirrored;
- (void)stopFaceDetection;
@end

View File

@ -0,0 +1,9 @@
// Copyright © 2018 650 Industries. All rights reserved.
#import <UMFaceDetectorInterface/UMFaceDetectorManager.h>
@protocol UMFaceDetectorManagerProvider
- (id<UMFaceDetectorManager>)createFaceDetectorManager;
@end