From 20dda16bdac9fdde67ec60bdb5151185ef0f730e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <101191390+HIllya51@users.noreply.github.com> Date: Sat, 13 Jul 2024 22:36:28 +0800 Subject: [PATCH] fix --- plugins/wcocr/wcocr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/wcocr/wcocr.cpp b/plugins/wcocr/wcocr.cpp index 6a294133..9db65784 100644 --- a/plugins/wcocr/wcocr.cpp +++ b/plugins/wcocr/wcocr.cpp @@ -39,7 +39,7 @@ DECLARE char *wcocr_ocr(void *pobj, const char *u8path) return 0; std::vector rets; std::vector xs, ys, xs2, ys2; - nlohmann::json js; + nlohmann::json js = std::vector{}; for (auto &blk : res.ocr_response) { js.push_back({blk.left, blk.top, blk.right, blk.bottom, blk.text});