init
This commit is contained in:
@@ -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解密
|
||||
|
||||
Reference in New Issue
Block a user