AgoraFacePositionInfo
检测到的人脸信息。
Objective-C
NS_SWIFT_NAME(AgoraFacePositionInfo) __attribute__((visibility("default"))) @interface AgoraFacePositionInfo : NSObject
@property(assign, nonatomic) NSInteger x NS_SWIFT_NAME(x);
@property(assign, nonatomic) NSInteger y NS_SWIFT_NAME(y);
@property(assign, nonatomic) NSInteger width NS_SWIFT_NAME(width);
@property(assign, nonatomic) NSInteger height NS_SWIFT_NAME(height);
@property(assign, nonatomic) NSInteger distance NS_SWIFT_NAME(distance);
@end
用于描述人脸在本地视频中的位置信息,包括坐标、尺寸和与设备的距离。
x
人脸在本地视频中的 x 坐标(像素)。以采集视频左上角为原点,表示人脸左上角相对于原点的水平位置。
y
人脸在本地视频中的 y 坐标(像素)。以采集视频左上角为原点,表示人脸左上角相对于原点的垂直位置。
width
人脸在采集视频中的宽度(像素)。
height
人脸在采集视频中的高度(像素)。
distance
人脸与设备屏幕之间的距离(厘米)。