BBAAIEngineAdapterProtocol.h 592 Bytes
//
//  BBAAIEngineAdapterProtocol.h
//  BBAMNP
//
//  Created by baidu on 2020/4/29.
//  Copyright © 2020 Baidu. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreVideo/CoreVideo.h>

@protocol BBAAIEngineAdapterProtocol <NSObject>

@optional

- (BOOL)loadModel:(NSString *)modelPath;
- (void)predict:(CVImageBufferRef)imageBufferRef;
- (void)predictWithBuffers:(NSArray<id> *)buffers completion:(void (^)(NSError *error, NSArray *result))completion;
/**
*  识别关键点
*/
- (NSArray *)landmarks;

/**
 *  识别内容分类
 */
- (int)type;

- (BOOL)hasHand;

@end