This commit is contained in:
恍兮惚兮 2024-11-12 21:44:21 +08:00
parent 9ca1c6370d
commit f19773372b

View File

@ -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());