This commit is contained in:
张良(004796)
2024-05-11 12:25:08 +08:00
parent 978df0ea95
commit f6ab2c535a
13 changed files with 374 additions and 5 deletions

View File

@@ -88,13 +88,15 @@ public class TencentAuthClient {
public static void main(String[] args) throws TencentCloudSDKException {
// createToken(null,null);
GetDetectInfoEnhancedResponse detectInfo = getDetectInfo("09792FA0-C269-401F-B8DB-E68B680E0728");
GetDetectInfoEnhancedResponse detectInfo = getDetectInfo("C454630F-0E21-4ABB-8575-3A4DA14B0BCF");
System.out.println(JSON.toJSONString(detectInfo));
base64ToVideo(detectInfo.getVideoData().getLivenessVideo(), "C:\\Users\\38320\\Desktop\\123\\123.mp4");
base64ToVideo(detectInfo.getIdCardData().getOcrFront(), "D:\\test\\front.jpg");
base64ToVideo(detectInfo.getIdCardData().getOcrBack(), "D:\\test\\back.jpg");
base64ToVideo(detectInfo.getBestFrame().getBestFrame(), "D:\\test\\best.jpg");
base64ToVideo(detectInfo.getVideoData().getLivenessVideo(), "D:\\test\\123.mp4");
}
public static void base64ToVideo(String base64, String targetPath) {
try {
//base解密