fix ocr bug
Browse files
src/WeChatOcrCpp/WeChatOcrResult.cpp
CHANGED
|
@@ -234,7 +234,7 @@ std::string OcrResult::ToJson(std::string& pth_img) const {
|
|
| 234 |
const auto& oneResult = singleResult.OneResult[i];
|
| 235 |
nlohmann::ordered_json jsonOneResult;
|
| 236 |
|
| 237 |
-
if (oneResult.OneStrUtf8.empty() || std::regex_match(oneResult.OneStrUtf8, std::regex("^[\\s
|
| 238 |
continue;
|
| 239 |
}
|
| 240 |
|
|
|
|
| 234 |
const auto& oneResult = singleResult.OneResult[i];
|
| 235 |
nlohmann::ordered_json jsonOneResult;
|
| 236 |
|
| 237 |
+
if (oneResult.OneStrUtf8.empty()) { // || std::regex_match(oneResult.OneStrUtf8, std::regex("^[\\s]+$"))
|
| 238 |
continue;
|
| 239 |
}
|
| 240 |
|