From 1147bd3a81ba79a413fcd1357d67f4cbecbed89f Mon Sep 17 00:00:00 2001 From: WenmuZhou Date: Thu, 27 Aug 2020 15:10:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0use=5Fzero=5Fcopy=5Frun?= =?UTF-8?q?=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- paddleocr.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/paddleocr.py b/paddleocr.py index 65bca7ae..d3d73cb1 100644 --- a/paddleocr.py +++ b/paddleocr.py @@ -129,6 +129,7 @@ def parse_args(): parser.add_argument("--det", type=str2bool, default=True) parser.add_argument("--rec", type=str2bool, default=True) + parser.add_argument("--use_zero_copy_run", type=bool, default=False) return parser.parse_args() @@ -209,4 +210,4 @@ def main(): print(img_path) result = ocr_engine.ocr(img_path, det=args.det, rec=args.rec) for line in result: - print(line) + print(line) \ No newline at end of file