添加对ocr值的异常过滤
This commit is contained in:
parent
739380d6fc
commit
035498c19b
@ -34,10 +34,10 @@ url_robot_task : "http://erpapi.concoai.com/robot/robot/setting/inspection/"
|
||||
image_save_path: "imagesDownload"
|
||||
image_save_path_ocr: "imagesOcr"
|
||||
|
||||
# det_model_dir: "ocrModel/PP-OCRv4_server_det_inference"
|
||||
det_model_dir: "ocrModel/PP-OCRv4_server_det_inference_20250616"
|
||||
# rec_model_dir: "ocrModel/rec_ppocr_v4_hgnet_kangda_inference"
|
||||
rec_model_dir: "ocrModel/rec_ppocr_v4_hgnet_kangda_inference_20250616"
|
||||
det_model_dir: "ocrModel/PP-OCRv4_server_det_inference"
|
||||
# det_model_dir: "ocrModel/PP-OCRv4_server_det_inference_20250616"
|
||||
rec_model_dir: "ocrModel/rec_ppocr_v4_hgnet_kangda_inference"
|
||||
# rec_model_dir: "ocrModel/rec_ppocr_v4_hgnet_kangda_inference_20250616"
|
||||
|
||||
temperature_range:
|
||||
start: -20.0
|
||||
|
||||
@ -403,6 +403,13 @@ class Kangda:
|
||||
if cn_pattern.match(value):
|
||||
status.append(TemperatureStatus.CN)
|
||||
|
||||
# ocr字符长度小于3
|
||||
elif len(value) < 3:
|
||||
status.append(TemperatureStatus.CN)
|
||||
# 图像中的日期编号
|
||||
elif value == "2025" or value == "2026" or value == "2027":
|
||||
status.append(TemperatureStatus.CN)
|
||||
|
||||
# 检查是否为正常数据
|
||||
elif temperature_pattern.match(value):
|
||||
# 处理温度数据
|
||||
|
||||
Loading…
Reference in New Issue
Block a user