更新 function.py
Gitea Actions Experiment Test / Experiment-Actions (push) Successful in 11s

This commit is contained in:
wzy
2024-10-11 20:14:59 +08:00
parent 2b14b9631a
commit 1e90b8a5d1
+1 -1
View File
@@ -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)