diff --git a/BaiduAIFaceDetection b/BaiduAIFaceDetection deleted file mode 100644 index 87e5b8d..0000000 Binary files a/BaiduAIFaceDetection and /dev/null differ diff --git a/BaiduAIFaceDetection.c b/BaiduAIFaceDetection.c index 4af1877..7890b83 100644 --- a/BaiduAIFaceDetection.c +++ b/BaiduAIFaceDetection.c @@ -106,6 +106,7 @@ size_t faceMatch_callback(void *ptr, size_t size, size_t nmemb, void *stream) int post_faceMatch(char *access_token, char *file) { + char base64_file[sizeof(file) + 9]; char *getbase64(char *photoname); int is_success; char url[270] = { 0 }; @@ -148,6 +149,14 @@ int post_faceMatch(char *access_token, char *file) is_success = 1; } + + // 清理文件 + bzero(base64_file, sizeof(file) + 9); + strcpy(base64_file, file); + strcat(base64_file, "_base64"); + //printf("%s\n", base64_file); + remove(base64_file); + return is_success; } diff --git a/BaiduAIFaceDetection.o b/BaiduAIFaceDetection.o deleted file mode 100644 index fcbbccc..0000000 Binary files a/BaiduAIFaceDetection.o and /dev/null differ