mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 00:24:13 +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;
|
||||
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});
|
||||
|
Loading…
x
Reference in New Issue
Block a user