diff --git a/cpp/wcocr/wcocr.cpp b/cpp/wcocr/wcocr.cpp index 05f74bc4..d4c2e2db 100644 --- a/cpp/wcocr/wcocr.cpp +++ b/cpp/wcocr/wcocr.cpp @@ -31,8 +31,6 @@ DECLARE_API bool wcocr_ocr(void *pobj, const char *u8path, void (*cb)(int, int, CWeChatOCR::result_t res; if (!obj->doOCR(u8path, &res)) return false; - std::vector rets; - std::vector xs, ys, xs2, ys2; for (auto &blk : res.ocr_response) { cb(blk.left, blk.top, blk.right, blk.bottom, blk.text.c_str());