mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-26 23:24:13 +08:00
..
This commit is contained in:
parent
9ca1c6370d
commit
f19773372b
@ -31,8 +31,6 @@ DECLARE_API bool wcocr_ocr(void *pobj, const char *u8path, void (*cb)(int, int,
|
|||||||
CWeChatOCR::result_t res;
|
CWeChatOCR::result_t res;
|
||||||
if (!obj->doOCR(u8path, &res))
|
if (!obj->doOCR(u8path, &res))
|
||||||
return false;
|
return false;
|
||||||
std::vector<std::wstring> rets;
|
|
||||||
std::vector<int> xs, ys, xs2, ys2;
|
|
||||||
for (auto &blk : res.ocr_response)
|
for (auto &blk : res.ocr_response)
|
||||||
{
|
{
|
||||||
cb(blk.left, blk.top, blk.right, blk.bottom, blk.text.c_str());
|
cb(blk.left, blk.top, blk.right, blk.bottom, blk.text.c_str());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user