scoring_config.json 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879
  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": 1,
  153. "loss_area": 1
  154. },
  155. "back_weights": {
  156. "wear_area": 1,
  157. "loss_area": 1
  158. },
  159. "final_weights": {
  160. "front": 1.4,
  161. "back": 0.6
  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.8,
  314. "loss_area": 1.2
  315. },
  316. "back_weights": {
  317. "wear_area": 0.8,
  318. "loss_area": 1.2
  319. },
  320. "final_weights": {
  321. "front": 1.4,
  322. "back": 0.6
  323. }
  324. },
  325. "face": {
  326. "rules": {
  327. "wear_area": [
  328. {
  329. "min": 0,
  330. "max": 0.01,
  331. "deduction": -0.01
  332. },
  333. {
  334. "min": 0.01,
  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.5,
  346. "deduction": -0.25
  347. },
  348. {
  349. "min": 0.5,
  350. "max": 1,
  351. "deduction": -0.5
  352. },
  353. {
  354. "min": 1,
  355. "max": 1.5,
  356. "deduction": -0.75
  357. },
  358. {
  359. "min": 1.5,
  360. "max": 2,
  361. "deduction": -1
  362. },
  363. {
  364. "min": 2,
  365. "max": 2.5,
  366. "deduction": -1.5
  367. },
  368. {
  369. "min": 2.5,
  370. "max": 3,
  371. "deduction": -2
  372. },
  373. {
  374. "min": 3,
  375. "max": 4,
  376. "deduction": -2.5
  377. },
  378. {
  379. "min": 4,
  380. "max": 6,
  381. "deduction": -3
  382. },
  383. {
  384. "min": 6,
  385. "max": 8,
  386. "deduction": -3.5
  387. },
  388. {
  389. "min": 8,
  390. "max": 10,
  391. "deduction": -4
  392. },
  393. {
  394. "min": 10,
  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": 30,
  406. "deduction": -5.5
  407. },
  408. {
  409. "min": 30,
  410. "max": "inf",
  411. "deduction": -6
  412. }
  413. ],
  414. "pit_area": [
  415. {
  416. "min": 0,
  417. "max": 0.01,
  418. "deduction": -0.01
  419. },
  420. {
  421. "min": 0.01,
  422. "max": 0.05,
  423. "deduction": -0.05
  424. },
  425. {
  426. "min": 0.05,
  427. "max": 0.1,
  428. "deduction": -0.1
  429. },
  430. {
  431. "min": 0.1,
  432. "max": 0.5,
  433. "deduction": -0.25
  434. },
  435. {
  436. "min": 0.5,
  437. "max": 1,
  438. "deduction": -0.5
  439. },
  440. {
  441. "min": 1,
  442. "max": 1.5,
  443. "deduction": -0.75
  444. },
  445. {
  446. "min": 1.5,
  447. "max": 2,
  448. "deduction": -1
  449. },
  450. {
  451. "min": 2,
  452. "max": 2.5,
  453. "deduction": -1.5
  454. },
  455. {
  456. "min": 2.5,
  457. "max": 3,
  458. "deduction": -2
  459. },
  460. {
  461. "min": 3,
  462. "max": 4,
  463. "deduction": -2.5
  464. },
  465. {
  466. "min": 4,
  467. "max": 6,
  468. "deduction": -3
  469. },
  470. {
  471. "min": 6,
  472. "max": 8,
  473. "deduction": -3.5
  474. },
  475. {
  476. "min": 8,
  477. "max": 10,
  478. "deduction": -4
  479. },
  480. {
  481. "min": 10,
  482. "max": 15,
  483. "deduction": -4.5
  484. },
  485. {
  486. "min": 15,
  487. "max": 20,
  488. "deduction": -5
  489. },
  490. {
  491. "min": 20,
  492. "max": 30,
  493. "deduction": -5.5
  494. },
  495. {
  496. "min": 30,
  497. "max": "inf",
  498. "deduction": -6
  499. }
  500. ],
  501. "stain_area": [
  502. {
  503. "min": 0,
  504. "max": 0.01,
  505. "deduction": -0.01
  506. },
  507. {
  508. "min": 0.01,
  509. "max": 0.05,
  510. "deduction": -0.05
  511. },
  512. {
  513. "min": 0.05,
  514. "max": 0.1,
  515. "deduction": -0.1
  516. },
  517. {
  518. "min": 0.1,
  519. "max": 0.5,
  520. "deduction": -0.25
  521. },
  522. {
  523. "min": 0.5,
  524. "max": 1,
  525. "deduction": -0.5
  526. },
  527. {
  528. "min": 1,
  529. "max": 1.5,
  530. "deduction": -0.75
  531. },
  532. {
  533. "min": 1.5,
  534. "max": 2,
  535. "deduction": -1
  536. },
  537. {
  538. "min": 2,
  539. "max": 2.5,
  540. "deduction": -1.5
  541. },
  542. {
  543. "min": 2.5,
  544. "max": 3,
  545. "deduction": -2
  546. },
  547. {
  548. "min": 3,
  549. "max": 4,
  550. "deduction": -2.5
  551. },
  552. {
  553. "min": 4,
  554. "max": 6,
  555. "deduction": -3
  556. },
  557. {
  558. "min": 6,
  559. "max": 8,
  560. "deduction": -3.5
  561. },
  562. {
  563. "min": 8,
  564. "max": 10,
  565. "deduction": -4
  566. },
  567. {
  568. "min": 10,
  569. "max": 15,
  570. "deduction": -4.5
  571. },
  572. {
  573. "min": 15,
  574. "max": 20,
  575. "deduction": -5
  576. },
  577. {
  578. "min": 20,
  579. "max": 30,
  580. "deduction": -5.5
  581. },
  582. {
  583. "min": 30,
  584. "max": "inf",
  585. "deduction": -6
  586. }
  587. ],
  588. "scratch_length": [
  589. {
  590. "min": 0,
  591. "max": 1,
  592. "deduction": -0.1
  593. },
  594. {
  595. "min": 1,
  596. "max": 2,
  597. "deduction": -0.5
  598. },
  599. {
  600. "min": 2,
  601. "max": 5,
  602. "deduction": -1
  603. },
  604. {
  605. "min": 5,
  606. "max": 10,
  607. "deduction": -2
  608. },
  609. {
  610. "min": 10,
  611. "max": 20,
  612. "deduction": -3
  613. },
  614. {
  615. "min": 20,
  616. "max": 50,
  617. "deduction": -4
  618. },
  619. {
  620. "min": 50,
  621. "max": "inf",
  622. "deduction": -5
  623. }
  624. ]
  625. },
  626. "coefficients": {
  627. "wear_area": 0.5,
  628. "scratch_length": 1,
  629. "dent_area": 2,
  630. "stain_area": 1.2
  631. },
  632. "light_weights": {
  633. "ring_weight": 0.8,
  634. "coaxial_weight": 0.2
  635. },
  636. "final_weights": {
  637. "front": 1.5,
  638. "back": 0.5
  639. }
  640. },
  641. "centering": {
  642. "front": {
  643. "rules": [
  644. {
  645. "min": 0,
  646. "max": 52,
  647. "deduction": 0
  648. },
  649. {
  650. "min": 52,
  651. "max": 55,
  652. "deduction": -0.5
  653. },
  654. {
  655. "min": 55,
  656. "max": 60,
  657. "deduction": -1
  658. },
  659. {
  660. "min": 60,
  661. "max": 62.5,
  662. "deduction": -1.5
  663. },
  664. {
  665. "min": 62.5,
  666. "max": 65,
  667. "deduction": -2
  668. },
  669. {
  670. "min": 65,
  671. "max": 67.5,
  672. "deduction": -2.5
  673. },
  674. {
  675. "min": 67.5,
  676. "max": 70,
  677. "deduction": -3
  678. },
  679. {
  680. "min": 70,
  681. "max": 72.5,
  682. "deduction": -3.5
  683. },
  684. {
  685. "min": 72.5,
  686. "max": 75,
  687. "deduction": -4
  688. },
  689. {
  690. "min": 75,
  691. "max": 77.5,
  692. "deduction": -4.5
  693. },
  694. {
  695. "min": 77.5,
  696. "max": 80,
  697. "deduction": -5
  698. },
  699. {
  700. "min": 80,
  701. "max": 82.5,
  702. "deduction": -5.5
  703. },
  704. {
  705. "min": 82.5,
  706. "max": 85,
  707. "deduction": -6
  708. },
  709. {
  710. "min": 85,
  711. "max": 87.5,
  712. "deduction": -6.5
  713. },
  714. {
  715. "min": 87.5,
  716. "max": 90,
  717. "deduction": -7
  718. },
  719. {
  720. "min": 90,
  721. "max": 92.5,
  722. "deduction": -7.5
  723. },
  724. {
  725. "min": 92.5,
  726. "max": 95,
  727. "deduction": -8
  728. },
  729. {
  730. "min": 95,
  731. "max": 97.5,
  732. "deduction": -8.5
  733. },
  734. {
  735. "min": 97.5,
  736. "max": "inf",
  737. "deduction": -9
  738. }
  739. ],
  740. "coefficients": {
  741. "horizontal": 1.2,
  742. "vertical": 0.8
  743. }
  744. },
  745. "back": {
  746. "rules": [
  747. {
  748. "min": 0,
  749. "max": 60,
  750. "deduction": 0
  751. },
  752. {
  753. "min": 60,
  754. "max": 65,
  755. "deduction": -0.5
  756. },
  757. {
  758. "min": 65,
  759. "max": 70,
  760. "deduction": -1
  761. },
  762. {
  763. "min": 70,
  764. "max": 75,
  765. "deduction": -1.5
  766. },
  767. {
  768. "min": 75,
  769. "max": 85,
  770. "deduction": -2
  771. },
  772. {
  773. "min": 85,
  774. "max": 95,
  775. "deduction": -2.5
  776. },
  777. {
  778. "min": 95,
  779. "max": "inf",
  780. "deduction": -3
  781. }
  782. ],
  783. "coefficients": {
  784. "horizontal": 1.2,
  785. "vertical": 0.8
  786. }
  787. },
  788. "final_weights": {
  789. "front": 0.75,
  790. "back": 0.25
  791. }
  792. },
  793. "severity_level": {
  794. "wear": [
  795. {
  796. "name": "轻微",
  797. "value": 0.5
  798. },
  799. {
  800. "name": "一般",
  801. "value": 1
  802. },
  803. {
  804. "name": "严重",
  805. "value": 2
  806. }
  807. ],
  808. "loss": [
  809. {
  810. "name": "轻微",
  811. "value": 0.5
  812. },
  813. {
  814. "name": "一般",
  815. "value": 1
  816. },
  817. {
  818. "name": "严重",
  819. "value": 2
  820. }
  821. ],
  822. "pit": [
  823. {
  824. "name": "轻微",
  825. "value": 0.5
  826. },
  827. {
  828. "name": "一般",
  829. "value": 1
  830. },
  831. {
  832. "name": "严重",
  833. "value": 2
  834. }
  835. ],
  836. "stain": [
  837. {
  838. "name": "轻微",
  839. "value": 0.5
  840. },
  841. {
  842. "name": "一般",
  843. "value": 1
  844. },
  845. {
  846. "name": "严重",
  847. "value": 2
  848. }
  849. ],
  850. "scratch": [
  851. {
  852. "name": "轻微",
  853. "value": 0.5
  854. },
  855. {
  856. "name": "一般",
  857. "value": 1
  858. },
  859. {
  860. "name": "严重",
  861. "value": 2
  862. }
  863. ]
  864. },
  865. "card": {
  866. "PSA": {
  867. "face": 0.35,
  868. "corner": 0.3,
  869. "edge": 0.1,
  870. "center": 0.25
  871. },
  872. "BGS": {
  873. "face": 0.3,
  874. "corner": 0.25,
  875. "edge": 0.2,
  876. "center": 0.25
  877. }
  878. }
  879. }