优化涂抹错误分析的交互
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
import sys
|
||||||
from datetime import date
|
from datetime import date
|
||||||
|
|
||||||
import cv2
|
import cv2
|
||||||
@@ -71,9 +72,15 @@ if __name__ == '__main__':
|
|||||||
error_descript = str(e)
|
error_descript = str(e)
|
||||||
|
|
||||||
if error_descript == "未知错误":
|
if error_descript == "未知错误":
|
||||||
check_finish = input("是否完成(是/否):")
|
while True:
|
||||||
if check_finish == "是":
|
check_finish = input("是否完成(是/否):")
|
||||||
error_descript = input("错误描述:")
|
if check_finish == "是":
|
||||||
|
error_descript = input("错误描述:")
|
||||||
|
break
|
||||||
|
elif check_finish == "否":
|
||||||
|
sys.exit()
|
||||||
|
else:
|
||||||
|
print("无效输入!请输入“是”或者“否”")
|
||||||
|
|
||||||
session = MysqlSession()
|
session = MysqlSession()
|
||||||
update_error = (update(ZxIeOcrerror).where(ZxIeOcrerror.pk_phrec == ocr_error.pk_phrec).values(
|
update_error = (update(ZxIeOcrerror).where(ZxIeOcrerror.pk_phrec == ocr_error.pk_phrec).values(
|
||||||
|
|||||||
Reference in New Issue
Block a user