main-66 #5

Closed
spdis wants to merge 5 commits from main-66 into main
10 changed files with 7 additions and 7 deletions
Showing only changes of commit 88a80c225c - Show all commits

View File

@ -5,8 +5,4 @@
<orderEntry type="jdk" jdkName="cnm" jdkType="Python SDK" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
<component name="PyDocumentationSettings">
<option name="format" value="PLAIN" />
<option name="myDocStringFormat" value="Plain" />
</component>
</module>

View File

After

Width:  |  Height:  |  Size: 3.8 KiB

View File

After

Width:  |  Height:  |  Size: 3.0 KiB

View File

@ -333,8 +333,12 @@ def LPRNmodel_predict(image_array):
try:
# 使用OpenCV调整图像大小到模型要求的尺寸
image_array = cv2.resize(image_array, (128, 48))
image_array = cv2.resize(image_array, (94, 24))
print(f"666999图片尺寸: {image_array.shape}")
# 显示修正后的图像
cv2.imshow('Resized License Plate Image (94x24)', image_array)
cv2.waitKey(1) # 非阻塞显示,允许程序继续执行
# 预测车牌号
predicted_text, confidence = lpr_model.predict(image_array)

Binary file not shown.

View File

@ -761,7 +761,7 @@ class MainWindow(QMainWindow):
if self.current_recognition_method == "CRNN":
from CRNN_part.crnn_interface import LPRNmodel_predict
elif self.current_recognition_method == "LPRNET":
from LPRNET_part.lpr_interface import LPRNmodel_predict
from lightCRNN_part.lightcrnn_interface import LPRNmodel_predict
elif self.current_recognition_method == "OCR":
from OCR_part.ocr_interface import LPRNmodel_predict
@ -799,7 +799,7 @@ class MainWindow(QMainWindow):
from CRNN_part.crnn_interface import LPRNinitialize_model
LPRNinitialize_model()
elif method == "LPRNET":
from LPRNET_part.lpr_interface import LPRNinitialize_model
from lightCRNN_part.lightcrnn_interface import LPRNinitialize_model
LPRNinitialize_model()
elif method == "OCR":
from OCR_part.ocr_interface import LPRNinitialize_model