generated from LufsX/Experiment-kNN
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user