跳到主要内容

DocumentDetectorStep

用户将执行的文档采集流程通过一个 DocumentRecognitionStep(SDK 中提供)类型对象的数组来定义,其中每个元素是用户执行的采集步骤之一。

DocumentSteps = new DocumentRecognitionStep[]{
new DocumentRecognitionStep(Document.cnh_front),
new DocumentRecognitionStep(Document.cnh_back)
};

上面实现了一个流程,将首先从用户处采集其驾照正面(cnh_front),在验证采集到高质量照片后,采集驾照背面。

DocumentRecognitionStep 对象可以取以下值:

public enum Document {
cnh, // 巴西完整驾驶证
cnh_front, // 巴西驾驶证正面(照片面)
cnh_back, // 巴西驾驶证背面(签名面)
cnh_digital, // 巴西数字驾驶证的 PDF
rg_front, // 巴西身份证正面(照片面)
rg_back, // 巴西身份证背面(数据面)
proof_of_address, // 居住证明
other // 其他身份证件
}