Agora Java API Reference for Android
Public Attributes | List of all members
io.agora.rtc2.IRtcEngineEventHandler.AgoraFacePositionInfo Class Reference

The information of the detected human face. More...

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.rtc2.IRtcEngineEventHandler.AgoraFacePositionInfo.x

The x-coordinate (px) of the human face in the local video. The horizontal position relative to the origin, where the upper left corner of the captured video is the origin, and the x-coordinate is the upper left corner of the watermark.

◆ y

int io.agora.rtc2.IRtcEngineEventHandler.AgoraFacePositionInfo.y

The y-coordinate (px) of the human face in the local video. Taking the top left corner of the captured video 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.rtc2.IRtcEngineEventHandler.AgoraFacePositionInfo.width

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

◆ height

int io.agora.rtc2.IRtcEngineEventHandler.AgoraFacePositionInfo.height

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

◆ distance

int io.agora.rtc2.IRtcEngineEventHandler.AgoraFacePositionInfo.distance

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