提交 8abef5a1 编写于 作者: 文幕地方's avatar 文幕地方

fix mkdir error

上级 93f5f473
...@@ -17,8 +17,6 @@ ...@@ -17,8 +17,6 @@
#include "auto_log/autolog.h" #include "auto_log/autolog.h"
#include <numeric> #include <numeric>
#include <sys/stat.h>
namespace PaddleOCR { namespace PaddleOCR {
PPOCR::PPOCR() { PPOCR::PPOCR() {
...@@ -139,7 +137,7 @@ PPOCR::ocr(std::vector<cv::String> cv_all_img_names, bool det, bool rec, ...@@ -139,7 +137,7 @@ PPOCR::ocr(std::vector<cv::String> cv_all_img_names, bool det, bool rec,
} }
} else { } else {
if (!Utility::PathExists(FLAGS_output) && FLAGS_det) { 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) { for (int i = 0; i < cv_all_img_names.size(); ++i) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册