|
@@ -183,9 +183,10 @@ class DefectInferenceService:
|
|
|
return center_result
|
|
return center_result
|
|
|
elif inference_type == "face":
|
|
elif inference_type == "face":
|
|
|
area_json = processor.re_analyze_from_json(defect_json)
|
|
area_json = processor.re_analyze_from_json(defect_json)
|
|
|
|
|
+ face_json_result = formate_face_data(area_json)
|
|
|
logger.info("面缺陷面积计算结束")
|
|
logger.info("面缺陷面积计算结束")
|
|
|
|
|
|
|
|
- return area_json
|
|
|
|
|
|
|
+ return face_json_result
|
|
|
elif inference_type == "corner_edge":
|
|
elif inference_type == "corner_edge":
|
|
|
|
|
|
|
|
area_json: dict = processor.re_analyze_from_json(defect_json)
|
|
area_json: dict = processor.re_analyze_from_json(defect_json)
|