TuSDKTSFaceHelper Class Reference
Inherits from | NSObject |
---|---|
Declared in | TuSDKTSFaceHelper.h |
+ featuresImageOptionsWithDevicePosition:orien:
获取输出图像方向选项
+ (NSDictionary *)featuresImageOptionsWithDevicePosition:(AVCaptureDevicePosition)position orien:(UIDeviceOrientation)orien
Parameters
position |
相机位置 |
---|---|
orien |
设备方向 |
Return Value
输出图像方向选项
Declared In
TuSDKTSFaceHelper.h
+ transforFaces:rect:rotation:
获取人像百分比信息
+ (NSArray<TuSDKTSFaceFeature*> *)transforFaces:(NSArray<CIFaceFeature*> *)faces rect:(CGRect)rect rotation:(LSQGPUImageRotationMode)rotation
Parameters
faces |
脸部信息 |
---|---|
rect |
图像区域 |
rotation |
旋转方向 |
Return Value
人像百分比信息
Declared In
TuSDKTSFaceHelper.h
+ transforAVFaces:rotation:
获取人像百分比信息
+ (NSArray<TuSDKTSFaceFeature*> *)transforAVFaces:(NSArray<AVMetadataFaceObject*> *)faces rotation:(LSQGPUImageRotationMode)rotation
Parameters
faces |
脸部信息 |
---|---|
rotation |
旋转方向 |
Return Value
人像百分比信息
Declared In
TuSDKTSFaceHelper.h
+ convertGPURotation:
转换方向模式
+ (UIImageOrientation)convertGPURotation:(LSQGPUImageRotationMode)rotation
Parameters
rotation |
GPUImage方向 |
---|
Return Value
图像方向
Declared In
TuSDKTSFaceHelper.h
+ getOriByGPURotation:
Get real orientation without mirror
+ (int)getOriByGPURotation:(LSQGPUImageRotationMode)rotation
Parameters
rotation |
rotation |
---|
Return Value
return value description
Declared In
TuSDKTSFaceHelper.h