今天在项目中集成银行卡识别的时候,由于之前项目中用到了身份证识别,所以相关的配置都是OK的,当调用银行卡识别时,报了com.baidu.ocr.sdk.exception.OCRError: [216101] param image not exist这个错误,经过排查,发现是我改动了demo里的
public class FileUtil {
public static File getSaveFile(Context context) {
File file = new File(context.getFilesDir(), "pic.jpg");
return file;
}
}
这个方法,我是在 "pic.jpg"这个参数前面加了个自定义的名字(type+ "pic.jpg"),于是我把type删了,重新运行就欧克了。