Skip to content

添加权威人脸对比,ocr识别

Compare
Choose a tag to compare
@MJLblabla MJLblabla released this 17 Jan 03:23
· 42 commits to main since this release
e6f5a26

跟新内容 :1添加权威人脸对比,2ocr识别

权威人脸对比

public class QNAuthoritativeFaceComparer {

    //开始一次权威人脸
    static void run(QNTrack videoTrack, QNAuthoritativeFaceParam param, QNAuthoritativeFaceComparerCallback callback);

}

//权威人脸对比参数
class QNAuthoritativeFaceParam {
    String   realName;//真实名字
    String   idCard; //身份证号码
}

//权威人脸对比结果
class QNAuthoritativeFace {
    String sessionID; 
    int errorCode;
    String errorMsg;
    double similarity; //相似度
}

//权威人脸结果回调   
interface QNAuthoritativeFaceComparerCallback {
        void onResult(QNAuthoritativeFace authoritativeFace);
}

活体动作识别加权威人脸对比

class QNAuthorityActionFaceComparer{
    //开一次动作活体加权威人脸对比
    //videoTrack - 视频轨道;faceActionParam - 活体检测参数;authoritativeFaceParam - 权威人脸对比参数;
    static QNAuthorityActionFaceComparer start(QNTrack videoTrack, QNFaceActionLiveParams faceActionParam,QNAuthoritativeFaceParam authoritativeFaceParam) // 开始活体动作检测
    void commit(QNAuthorityActionFaceComparerCallback callback) // 动作结束提交获取识别结果
    void cancel() // 取消
}

//结果回调
interface QNAuthorityActionFaceComparerCallback{
     void onResult(QNFaceActionLive faceActLive,QNAuthoritativeFace authoritativeFace);
}

orc

class QNOCRDetector {

     //开始一次 ocr 识别
    static void run(QNTrack videoTrack, QNOCRDetectorCallback callback) 

}

interface QNOCRDetectorCallback {
        onResult(OCRDetect ocrDetect);
}

//orc结果
public class OCRDetect {

    int code;
    String message;
    List<Data> data;  

    static class Data {
        int line;                 //行数
        List<List<Integer>> bbox; //坐标
        String text;              //文本 
        double score;             //分数
    }
}