# 启动 ```cmd python run_defect_score_server.py ``` ## 中文对照 ```json { "face": "面", "wear": "磨损", "scratch": "划痕", "stain": "污渍", "scuff": "磨痕", "impact": "撞击痕迹", "damaged": "损坏", "wear_and_impact": "磨损和撞击痕迹", "pit": "凹坑", "corner": "角", "wear_and_stain": "磨损和污渍", "inner_box": "内框", "outer_box": "外框" } ``` ### 缺陷类型 ```text 面缺陷: "1": "wear", "2": "scratch", "3": "stain", "4": "scuff", "5": "impact", "6": "damaged", "7": "wear_and_impact", "8": "pit" 边角缺陷: "1": "wear", "2": "wear_and_impact", "3": "damaged", "4": "impact", "5": "wear_and_stain" ``` ### 缺陷划分 ```text 边角 wear_area: 'wear', 'wear_and_impact', 'wear_and_stain' loss_area: 'impact', 'damaged' 面 wear_area: 'wear', 'wear_and_impact', 'damaged' scratch_length: 'scratch', 'scuff' pit_area: 'pit', 'impact' stain_area: 'stain' ``` ## 分数配置信息备注 ```text base_score: 基础分数 corner: 角 rule: 分数规则 wear_area:"磨损的扣分规则" loss_area: "缺失的扣分规则" front_weights: "正面的权重分配" wear_area:"-权重" loss_area:"-权重" back_weights: "背面的权重分配" ... ... final_weights: "最终权重分配" front: "正面权重" back: "背面权重" edge: 边 ...与 corner 类似 face: 面 rule: 分数规则 wear_area: 磨损 pit_area: 凹坑 stain_area: 污渍 scratch_length: 划痕长度(!注意只有它看长度, 其他的看面积) coefficients: 权重分配 ...这里是几种缺陷对应的权重 final_weights: "最终权重分配" ... centering: 居中 front: 正面 rules: 规则 coefficients: 权重分配 horizontal: 水平 vertical: 上下 back: 背面 ... final_weights: "最终权重分配" ... card: 卡片 PSA: 卡的类型, 默认用它 ...不同类型的权重最后分配 ``` ### 分数规则要求 规则为: min<=缺陷面积