mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2025-01-01 10:04:12 +08:00
fix
This commit is contained in:
parent
b86f69da74
commit
20dda16bda
@ -39,7 +39,7 @@ DECLARE char *wcocr_ocr(void *pobj, const char *u8path)
|
|||||||
return 0;
|
return 0;
|
||||||
std::vector<std::wstring> rets;
|
std::vector<std::wstring> rets;
|
||||||
std::vector<int> xs, ys, xs2, ys2;
|
std::vector<int> xs, ys, xs2, ys2;
|
||||||
nlohmann::json js;
|
nlohmann::json js = std::vector<nlohmann::json>{};
|
||||||
for (auto &blk : res.ocr_response)
|
for (auto &blk : res.ocr_response)
|
||||||
{
|
{
|
||||||
js.push_back({blk.left, blk.top, blk.right, blk.bottom, blk.text});
|
js.push_back({blk.left, blk.top, blk.right, blk.bottom, blk.text});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user