Agora Java API Reference for Android
io.agora.rtc.IRtcEngineEventHandler.AgoraFacePositionInfo Class Reference

Public Attributes

int x
 
int y
 
int width
 
int height
 
int distance
 

Detailed Description

The information of the detected human face.

Member Data Documentation

◆ x

int io.agora.rtc.IRtcEngineEventHandler.AgoraFacePositionInfo.x

The x coordinate (px) of the human face in the local view. Taking the top left corner of the view as the origin, the x coordinate represents the relative lateral displacement of the top left corner of the human face to the origin.

◆ y

int io.agora.rtc.IRtcEngineEventHandler.AgoraFacePositionInfo.y

The y coordinate (px) of the human face in the local view. Taking the top left corner of the view as the origin, the y coordinate represents the relative longitudinal displacement of the top left corner of the human face to the origin.

◆ width

int io.agora.rtc.IRtcEngineEventHandler.AgoraFacePositionInfo.width

The width (px) of the human face in the captured view.

◆ height

int io.agora.rtc.IRtcEngineEventHandler.AgoraFacePositionInfo.height

The height (px) of the human face in the captured view.

◆ distance

int io.agora.rtc.IRtcEngineEventHandler.AgoraFacePositionInfo.distance

The distance (cm) between the human face and the screen.