From 1e90b8a5d1724068f86d4fa7812f76e076289f0c Mon Sep 17 00:00:00 2001 From: wzy <675163717@qq.com> Date: Fri, 11 Oct 2024 20:14:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20function.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- function.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/function.py b/function.py index ec5c940..12891e2 100644 --- a/function.py +++ b/function.py @@ -107,7 +107,7 @@ def img_to_vector(filename): Returns: - np.array: 二值图像向量。 """ - with open(filename, 'r') as f: + with open(filename, 'r') as f: return np.array([int(char) for char in f.read().strip()]).reshape(1, -1)