This commit is contained in:
恍兮惚兮 2024-07-13 22:36:28 +08:00
parent b86f69da74
commit 20dda16bda

View File

@ -39,7 +39,7 @@ DECLARE char *wcocr_ocr(void *pobj, const char *u8path)
return 0;
std::vector<std::wstring> rets;
std::vector<int> xs, ys, xs2, ys2;
nlohmann::json js;
nlohmann::json js = std::vector<nlohmann::json>{};
for (auto &blk : res.ocr_response)
{
js.push_back({blk.left, blk.top, blk.right, blk.bottom, blk.text});