From 8abef5a19074b08f3814e72b5f5342f03004553c Mon Sep 17 00:00:00 2001 From: WenmuZhou <572459439@qq.com> Date: Fri, 22 Apr 2022 13:31:57 +0000 Subject: [PATCH] fix mkdir error --- deploy/cpp_infer/src/paddleocr.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/deploy/cpp_infer/src/paddleocr.cpp b/deploy/cpp_infer/src/paddleocr.cpp index 2ed9040c..e7b3777e 100644 --- a/deploy/cpp_infer/src/paddleocr.cpp +++ b/deploy/cpp_infer/src/paddleocr.cpp @@ -17,8 +17,6 @@ #include "auto_log/autolog.h" #include -#include - namespace PaddleOCR { PPOCR::PPOCR() { @@ -139,7 +137,7 @@ PPOCR::ocr(std::vector cv_all_img_names, bool det, bool rec, } } else { if (!Utility::PathExists(FLAGS_output) && FLAGS_det) { - mkdir(FLAGS_output.c_str(), 0777); + Utility::CreateDir(FLAGS_output); } for (int i = 0; i < cv_all_img_names.size(); ++i) { -- GitLab