doum
6 天以前 2b287056e2f59518888d05a1bbc7e5a55fbd84d5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package com.example.datalibrary.model;
 
import com.baidu.idl.main.facesdk.model.BDFaceSDKCommon;
 
public class BDFaceImageConfig {
    public BDFaceSDKCommon.BDFaceImageType bdFaceImageType;
    public byte[] data; // 可见光YUV 数据流
    public int srcHeight; // 可见光YUV 数据流-高度
    public int srcWidth; // 可见光YUV 数据流-宽度
    public int direction ; // rgb角度
    public int mirror; // rgb镜像
    public BDFaceImageConfig(int srcHeight , int srcWidth ,
                             int direction , int mirror ,
                             BDFaceSDKCommon.BDFaceImageType bdFaceImageType){
        this.srcHeight = srcHeight;
        this.srcWidth = srcWidth;
        this.direction = direction;
        this.mirror = mirror;
        this.bdFaceImageType = bdFaceImageType;
    }
 
    public void setData(byte[] data) {
        this.data = data;
    }
 
}