scoring_config.json 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754
  1. {
  2. "base_score": 10,
  3. "corner": {
  4. "rules": {
  5. "wear_area": [
  6. {
  7. "min": 0,
  8. "max": 0.01,
  9. "deduction": -0.1
  10. },
  11. {
  12. "min": 0.01,
  13. "max": 0.1,
  14. "deduction": -0.5
  15. },
  16. {
  17. "min": 0.1,
  18. "max": 0.25,
  19. "deduction": -1.5
  20. },
  21. {
  22. "min": 0.25,
  23. "max": 0.5,
  24. "deduction": -3
  25. },
  26. {
  27. "min": 0.5,
  28. "max": "inf",
  29. "deduction": -5
  30. }
  31. ],
  32. "loss_area": [
  33. {
  34. "min": 0,
  35. "max": 0.05,
  36. "deduction": -0.1
  37. },
  38. {
  39. "min": 0.05,
  40. "max": 0.1,
  41. "deduction": -0.5
  42. },
  43. {
  44. "min": 0.1,
  45. "max": 0.25,
  46. "deduction": -1.5
  47. },
  48. {
  49. "min": 0.25,
  50. "max": 0.5,
  51. "deduction": -3
  52. },
  53. {
  54. "min": 0.5,
  55. "max": "inf",
  56. "deduction": -5
  57. }
  58. ],
  59. "pit_area": [
  60. {
  61. "min": 0,
  62. "max": 0.05,
  63. "deduction": -0.1
  64. },
  65. {
  66. "min": 0.05,
  67. "max": 0.1,
  68. "deduction": -0.5
  69. },
  70. {
  71. "min": 0.1,
  72. "max": 0.25,
  73. "deduction": -1.5
  74. },
  75. {
  76. "min": 0.25,
  77. "max": 0.5,
  78. "deduction": -3
  79. },
  80. {
  81. "min": 0.5,
  82. "max": "inf",
  83. "deduction": -5
  84. }
  85. ],
  86. "stain_area": [
  87. {
  88. "min": 0,
  89. "max": 0.05,
  90. "deduction": -0.1
  91. },
  92. {
  93. "min": 0.05,
  94. "max": 0.1,
  95. "deduction": -0.5
  96. },
  97. {
  98. "min": 0.1,
  99. "max": 0.25,
  100. "deduction": -1.5
  101. },
  102. {
  103. "min": 0.25,
  104. "max": 0.5,
  105. "deduction": -3
  106. },
  107. {
  108. "min": 0.5,
  109. "max": "inf",
  110. "deduction": -5
  111. }
  112. ],
  113. "scratch_length": [
  114. {
  115. "min": 0,
  116. "max": 1,
  117. "deduction": -0.1
  118. },
  119. {
  120. "min": 1,
  121. "max": 2,
  122. "deduction": -0.5
  123. },
  124. {
  125. "min": 2,
  126. "max": 5,
  127. "deduction": -1
  128. },
  129. {
  130. "min": 5,
  131. "max": 10,
  132. "deduction": -2
  133. },
  134. {
  135. "min": 10,
  136. "max": 20,
  137. "deduction": -3
  138. },
  139. {
  140. "min": 20,
  141. "max": 50,
  142. "deduction": -4
  143. },
  144. {
  145. "min": 50,
  146. "max": "inf",
  147. "deduction": -5
  148. }
  149. ]
  150. },
  151. "front_weights": {
  152. "wear_area": 0.3,
  153. "loss_area": 0.7
  154. },
  155. "back_weights": {
  156. "wear_area": 0.3,
  157. "loss_area": 0.7
  158. },
  159. "final_weights": {
  160. "front": 0.7,
  161. "back": 0.3
  162. }
  163. },
  164. "edge": {
  165. "rules": {
  166. "wear_area": [
  167. {
  168. "min": 0,
  169. "max": 0.05,
  170. "deduction": -0.1
  171. },
  172. {
  173. "min": 0.05,
  174. "max": 0.1,
  175. "deduction": -0.5
  176. },
  177. {
  178. "min": 0.1,
  179. "max": 0.25,
  180. "deduction": -1.5
  181. },
  182. {
  183. "min": 0.25,
  184. "max": 0.5,
  185. "deduction": -3
  186. },
  187. {
  188. "min": 0.5,
  189. "max": "inf",
  190. "deduction": -5
  191. }
  192. ],
  193. "loss_area": [
  194. {
  195. "min": 0,
  196. "max": 0.05,
  197. "deduction": -0.1
  198. },
  199. {
  200. "min": 0.05,
  201. "max": 0.1,
  202. "deduction": -0.5
  203. },
  204. {
  205. "min": 0.1,
  206. "max": 0.25,
  207. "deduction": -1.5
  208. },
  209. {
  210. "min": 0.25,
  211. "max": 0.5,
  212. "deduction": -3
  213. },
  214. {
  215. "min": 0.5,
  216. "max": "inf",
  217. "deduction": -5
  218. }
  219. ],
  220. "pit_area": [
  221. {
  222. "min": 0,
  223. "max": 0.05,
  224. "deduction": -0.1
  225. },
  226. {
  227. "min": 0.05,
  228. "max": 0.1,
  229. "deduction": -0.5
  230. },
  231. {
  232. "min": 0.1,
  233. "max": 0.25,
  234. "deduction": -1.5
  235. },
  236. {
  237. "min": 0.25,
  238. "max": 0.5,
  239. "deduction": -3
  240. },
  241. {
  242. "min": 0.5,
  243. "max": "inf",
  244. "deduction": -5
  245. }
  246. ],
  247. "stain_area": [
  248. {
  249. "min": 0,
  250. "max": 0.05,
  251. "deduction": -0.1
  252. },
  253. {
  254. "min": 0.05,
  255. "max": 0.1,
  256. "deduction": -0.5
  257. },
  258. {
  259. "min": 0.1,
  260. "max": 0.25,
  261. "deduction": -1.5
  262. },
  263. {
  264. "min": 0.25,
  265. "max": 0.5,
  266. "deduction": -3
  267. },
  268. {
  269. "min": 0.5,
  270. "max": "inf",
  271. "deduction": -5
  272. }
  273. ],
  274. "scratch_length": [
  275. {
  276. "min": 0,
  277. "max": 1,
  278. "deduction": -0.1
  279. },
  280. {
  281. "min": 1,
  282. "max": 2,
  283. "deduction": -0.5
  284. },
  285. {
  286. "min": 2,
  287. "max": 5,
  288. "deduction": -1
  289. },
  290. {
  291. "min": 5,
  292. "max": 10,
  293. "deduction": -2
  294. },
  295. {
  296. "min": 10,
  297. "max": 20,
  298. "deduction": -3
  299. },
  300. {
  301. "min": 20,
  302. "max": 50,
  303. "deduction": -4
  304. },
  305. {
  306. "min": 50,
  307. "max": "inf",
  308. "deduction": -5
  309. }
  310. ]
  311. },
  312. "front_weights": {
  313. "wear_area": 0.4,
  314. "loss_area": 0.6
  315. },
  316. "back_weights": {
  317. "wear_area": 0.4,
  318. "loss_area": 0.6
  319. },
  320. "final_weights": {
  321. "front": 0.7,
  322. "back": 0.3
  323. }
  324. },
  325. "face": {
  326. "rules": {
  327. "wear_area": [
  328. {
  329. "min": 0,
  330. "max": 0.02,
  331. "deduction": "-0.01"
  332. },
  333. {
  334. "min": 0.02,
  335. "max": 0.05,
  336. "deduction": "-0.05"
  337. },
  338. {
  339. "min": 0.05,
  340. "max": 0.1,
  341. "deduction": "-0.1"
  342. },
  343. {
  344. "min": 0.1,
  345. "max": 0.2,
  346. "deduction": "-0.2"
  347. },
  348. {
  349. "min": 0.2,
  350. "max": 0.5,
  351. "deduction": "-0.3"
  352. },
  353. {
  354. "min": 0.5,
  355. "max": 1,
  356. "deduction": "-0.5"
  357. },
  358. {
  359. "min": 1,
  360. "max": 1.5,
  361. "deduction": "-1.0"
  362. },
  363. {
  364. "min": 1.5,
  365. "max": 2,
  366. "deduction": "-1.5"
  367. },
  368. {
  369. "min": 2,
  370. "max": 3,
  371. "deduction": "-2.0"
  372. },
  373. {
  374. "min": 3,
  375. "max": 5,
  376. "deduction": "-2.5"
  377. },
  378. {
  379. "min": 5,
  380. "max": 7.5,
  381. "deduction": "-3"
  382. },
  383. {
  384. "min": 7.5,
  385. "max": 10,
  386. "deduction": "-3.5"
  387. },
  388. {
  389. "min": 10,
  390. "max": 12.5,
  391. "deduction": "-4"
  392. },
  393. {
  394. "min": 12.5,
  395. "max": 15,
  396. "deduction": "-4.5"
  397. },
  398. {
  399. "min": 15,
  400. "max": 20,
  401. "deduction": "-5"
  402. },
  403. {
  404. "min": 20,
  405. "max": "inf",
  406. "deduction": "-6"
  407. }
  408. ],
  409. "pit_area": [
  410. {
  411. "min": 0,
  412. "max": 0.05,
  413. "deduction": -0.1
  414. },
  415. {
  416. "min": 0.05,
  417. "max": 0.1,
  418. "deduction": -0.5
  419. },
  420. {
  421. "min": 0.1,
  422. "max": 0.25,
  423. "deduction": -1.5
  424. },
  425. {
  426. "min": 0.25,
  427. "max": 0.5,
  428. "deduction": -3
  429. },
  430. {
  431. "min": 0.5,
  432. "max": "inf",
  433. "deduction": -5
  434. }
  435. ],
  436. "stain_area": [
  437. {
  438. "min": 0,
  439. "max": 0.05,
  440. "deduction": -0.1
  441. },
  442. {
  443. "min": 0.05,
  444. "max": 0.1,
  445. "deduction": -0.5
  446. },
  447. {
  448. "min": 0.1,
  449. "max": 0.25,
  450. "deduction": -1.5
  451. },
  452. {
  453. "min": 0.25,
  454. "max": 0.5,
  455. "deduction": -3
  456. },
  457. {
  458. "min": 0.5,
  459. "max": "inf",
  460. "deduction": -5
  461. }
  462. ],
  463. "scratch_length": [
  464. {
  465. "min": 0,
  466. "max": 1,
  467. "deduction": -0.1
  468. },
  469. {
  470. "min": 1,
  471. "max": 2,
  472. "deduction": -0.5
  473. },
  474. {
  475. "min": 2,
  476. "max": 5,
  477. "deduction": -1
  478. },
  479. {
  480. "min": 5,
  481. "max": 10,
  482. "deduction": -2
  483. },
  484. {
  485. "min": 10,
  486. "max": 20,
  487. "deduction": -3
  488. },
  489. {
  490. "min": 20,
  491. "max": 50,
  492. "deduction": -4
  493. },
  494. {
  495. "min": 50,
  496. "max": "inf",
  497. "deduction": -5
  498. }
  499. ]
  500. },
  501. "coefficients": {
  502. "wear_area": 1,
  503. "scratch_length": 1,
  504. "dent_area": 1,
  505. "stain_area": 1
  506. },
  507. "light_weights": {
  508. "ring_weight": 0.8,
  509. "coaxial_weight": 0.2
  510. },
  511. "final_weights": {
  512. "front": 0.75,
  513. "back": 0.25
  514. }
  515. },
  516. "centering": {
  517. "front": {
  518. "rules": [
  519. {
  520. "min": 0,
  521. "max": 52,
  522. "deduction": 0
  523. },
  524. {
  525. "min": 52,
  526. "max": 55,
  527. "deduction": -0.5
  528. },
  529. {
  530. "min": 55,
  531. "max": 60,
  532. "deduction": -1
  533. },
  534. {
  535. "min": 60,
  536. "max": 62.5,
  537. "deduction": -1.5
  538. },
  539. {
  540. "min": 62.5,
  541. "max": 65,
  542. "deduction": -2
  543. },
  544. {
  545. "min": 65,
  546. "max": 67.5,
  547. "deduction": -2.5
  548. },
  549. {
  550. "min": 67.5,
  551. "max": 70,
  552. "deduction": -3
  553. },
  554. {
  555. "min": 70,
  556. "max": 72.5,
  557. "deduction": -3.5
  558. },
  559. {
  560. "min": 72.5,
  561. "max": 75,
  562. "deduction": -4
  563. },
  564. {
  565. "min": 75,
  566. "max": 77.5,
  567. "deduction": -4.5
  568. },
  569. {
  570. "min": 77.5,
  571. "max": 80,
  572. "deduction": -5
  573. },
  574. {
  575. "min": 80,
  576. "max": 82.5,
  577. "deduction": -5.5
  578. },
  579. {
  580. "min": 82.5,
  581. "max": 85,
  582. "deduction": -6
  583. },
  584. {
  585. "min": 85,
  586. "max": 87.5,
  587. "deduction": -6.5
  588. },
  589. {
  590. "min": 87.5,
  591. "max": 90,
  592. "deduction": -7
  593. },
  594. {
  595. "min": 90,
  596. "max": 92.5,
  597. "deduction": -7.5
  598. },
  599. {
  600. "min": 92.5,
  601. "max": 95,
  602. "deduction": -8
  603. },
  604. {
  605. "min": 95,
  606. "max": 97.5,
  607. "deduction": -8.5
  608. },
  609. {
  610. "min": 97.5,
  611. "max": "inf",
  612. "deduction": -9
  613. }
  614. ],
  615. "coefficients": {
  616. "horizontal": 1.2,
  617. "vertical": 0.8
  618. }
  619. },
  620. "back": {
  621. "rules": [
  622. {
  623. "min": 0,
  624. "max": 60,
  625. "deduction": "0"
  626. },
  627. {
  628. "min": 60,
  629. "max": 65,
  630. "deduction": "-0.5"
  631. },
  632. {
  633. "min": 65,
  634. "max": 70,
  635. "deduction": "-1"
  636. },
  637. {
  638. "min": 70,
  639. "max": 75,
  640. "deduction": "-1.5"
  641. },
  642. {
  643. "min": 75,
  644. "max": 85,
  645. "deduction": "-2"
  646. },
  647. {
  648. "min": 85,
  649. "max": 95,
  650. "deduction": "-2.5"
  651. },
  652. {
  653. "min": 95,
  654. "max": "inf",
  655. "deduction": "-3"
  656. }
  657. ],
  658. "coefficients": {
  659. "horizontal": 1.2,
  660. "vertical": 0.8
  661. }
  662. },
  663. "final_weights": {
  664. "front": 0.75,
  665. "back": 0.25
  666. }
  667. },
  668. "severity_level": {
  669. "wear": [
  670. {
  671. "name": "轻微",
  672. "value": 0.5
  673. },
  674. {
  675. "name": "一般",
  676. "value": 1
  677. },
  678. {
  679. "name": "严重",
  680. "value": 2
  681. }
  682. ],
  683. "loss": [
  684. {
  685. "name": "轻微",
  686. "value": 0.5
  687. },
  688. {
  689. "name": "一般",
  690. "value": 1
  691. },
  692. {
  693. "name": "严重",
  694. "value": 2
  695. }
  696. ],
  697. "pit": [
  698. {
  699. "name": "轻微",
  700. "value": 0.5
  701. },
  702. {
  703. "name": "一般",
  704. "value": 1
  705. },
  706. {
  707. "name": "严重",
  708. "value": 2
  709. }
  710. ],
  711. "stain": [
  712. {
  713. "name": "轻微",
  714. "value": 0.5
  715. },
  716. {
  717. "name": "一般",
  718. "value": 1
  719. },
  720. {
  721. "name": "严重",
  722. "value": 2
  723. }
  724. ],
  725. "scratch": [
  726. {
  727. "name": "轻微",
  728. "value": 0.5
  729. },
  730. {
  731. "name": "一般",
  732. "value": 1
  733. },
  734. {
  735. "name": "严重",
  736. "value": 2
  737. }
  738. ]
  739. },
  740. "card": {
  741. "PSA": {
  742. "face": 0.35,
  743. "corner": 0.3,
  744. "edge": 0.1,
  745. "center": 0.25
  746. },
  747. "BGS": {
  748. "face": 0.3,
  749. "corner": 0.25,
  750. "edge": 0.2,
  751. "center": 0.25
  752. }
  753. }
  754. }