|
@@ -703,6 +703,8 @@ int cutPaper(int pageNum, std::string strJsonPath, std::string strPaperPath, std
|
|
|
std::string id = row["id"].asString();
|
|
|
std::string info = row["queInfo"]["info"].asString();
|
|
|
std::string solution = row["queInfo"]["solution"].asString();
|
|
|
+ info = ConvertGB2312toUTF8(info.c_str());
|
|
|
+ solution = ConvertGB2312toUTF8(solution.c_str());
|
|
|
|
|
|
Json::Value ttbox = row["ttbox"];
|
|
|
Json::Value ansInfo = row["ansInfo"];
|
|
@@ -742,7 +744,7 @@ int cutPaper(int pageNum, std::string strJsonPath, std::string strPaperPath, std
|
|
|
for (auto& iter : vecTranslate)
|
|
|
{
|
|
|
cv::Rect rcOcr = std::get<0>(iter);
|
|
|
- std::string words = std::get<1>(iter);
|
|
|
+ std::string words = ConvertGB2312toUTF8(std::get<1>(iter).c_str());
|
|
|
if (math_iou(rc_ansInfo, rcOcr) > 0.5)
|
|
|
{
|
|
|
char szOcrJpgPath[MAX_PATH] = { 0 };
|