Compare commits

...
2 Commits
Author SHA1 Message Date
UnknownObject 5528cec244 EasyOCR模型文件 2023-12-07 20:03:07 +08:00
UnknownObject d13561c25f 去掉了main()中的train() 2023-12-07 19:04:57 +08:00
3 changed files with 0 additions and 2 deletions
BIN
View File
Binary file not shown.
-2
View File
@@ -51,8 +51,6 @@ def train():
model.export('G:\\Users\\15819\\Desktop\\model01.pkl') # M20.02.pkl model.export('G:\\Users\\15819\\Desktop\\model01.pkl') # M20.02.pkl
def main(): def main():
train()
image_path = 'G:\\Users\\15819\\Desktop\\TrainSet\\SmallCar\\京M88888.jpg' image_path = 'G:\\Users\\15819\\Desktop\\TrainSet\\SmallCar\\京M88888.jpg'
pred_class, confidence = predict_image(image_path) pred_class, confidence = predict_image(image_path)
print(f"图片类别: {pred_class}, 置信度: {confidence}") print(f"图片类别: {pred_class}, 置信度: {confidence}")
BIN
View File
Binary file not shown.