FacePositionInfo class Null safety

检测到的人脸信息。

Annotations
  • @JsonSerializable(explicitToJson: true)

Constructors

FacePositionInfo(int x, int y, int width, int height, int distance)
Constructs a FacePositionInfo
FacePositionInfo.fromJson(Map<String, dynamic> json)
factory

Properties

distance int
人脸距设备屏幕的距离 (cm)。
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
height int
人脸在画面中的高度 (px)。
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
width int
人脸在画面中的宽度 (px)。
read / write
x int
人脸在画面中的 x 坐标 (px)。以摄像头采集画面的左上角为原点,x 坐标为人脸左上角相对于原点的横向位移。
read / write
y int
人脸在画面中的 y 坐标 (px)。以摄像头采集画面的左上角为原点,y 坐标为人脸左上角相对原点的纵向位移。
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited