scoring_config.json 18 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019
  1. {
  2. "base_score": 10,
  3. "corner": {
  4. "rules": {
  5. "wear_area": [
  6. {
  7. "min": 0,
  8. "max": 0.01,
  9. "deduction": -0.01
  10. },
  11. {
  12. "min": 0.01,
  13. "max": 0.05,
  14. "deduction": -0.1
  15. },
  16. {
  17. "min": 0.05,
  18. "max": 0.1,
  19. "deduction": -0.2
  20. },
  21. {
  22. "min": 0.1,
  23. "max": 0.25,
  24. "deduction": -0.5
  25. },
  26. {
  27. "min": 0.25,
  28. "max": 0.5,
  29. "deduction": -1
  30. },
  31. {
  32. "min": 0.5,
  33. "max": 0.75,
  34. "deduction": -1.5
  35. },
  36. {
  37. "min": 0.75,
  38. "max": 1,
  39. "deduction": -2
  40. },
  41. {
  42. "min": 1,
  43. "max": 1.5,
  44. "deduction": -2.5
  45. },
  46. {
  47. "min": 1.5,
  48. "max": 2,
  49. "deduction": -3
  50. },
  51. {
  52. "min": 2,
  53. "max": 2.5,
  54. "deduction": -3.5
  55. },
  56. {
  57. "min": 2.5,
  58. "max": 3,
  59. "deduction": -4
  60. },
  61. {
  62. "min": 3,
  63. "max": 3.5,
  64. "deduction": -4.5
  65. },
  66. {
  67. "min": 3.5,
  68. "max": 4,
  69. "deduction": -5
  70. },
  71. {
  72. "min": 4,
  73. "max": 5,
  74. "deduction": -5.5
  75. },
  76. {
  77. "min": 5,
  78. "max": 6,
  79. "deduction": -6
  80. },
  81. {
  82. "min": 6,
  83. "max": 7,
  84. "deduction": -6.5
  85. },
  86. {
  87. "min": 7,
  88. "max": "inf",
  89. "deduction": -7
  90. }
  91. ],
  92. "loss_area": [
  93. {
  94. "min": 0,
  95. "max": 0.01,
  96. "deduction": -0.01
  97. },
  98. {
  99. "min": 0.01,
  100. "max": 0.05,
  101. "deduction": -0.1
  102. },
  103. {
  104. "min": 0.05,
  105. "max": 0.1,
  106. "deduction": -0.2
  107. },
  108. {
  109. "min": 0.1,
  110. "max": 0.25,
  111. "deduction": -0.5
  112. },
  113. {
  114. "min": 0.25,
  115. "max": 0.5,
  116. "deduction": -1
  117. },
  118. {
  119. "min": 0.5,
  120. "max": 0.75,
  121. "deduction": -1.5
  122. },
  123. {
  124. "min": 0.75,
  125. "max": 1,
  126. "deduction": -2
  127. },
  128. {
  129. "min": 1,
  130. "max": 1.5,
  131. "deduction": -2.5
  132. },
  133. {
  134. "min": 1.5,
  135. "max": 2,
  136. "deduction": -3
  137. },
  138. {
  139. "min": 2,
  140. "max": 2.5,
  141. "deduction": -3.5
  142. },
  143. {
  144. "min": 2.5,
  145. "max": 3,
  146. "deduction": -4
  147. },
  148. {
  149. "min": 3,
  150. "max": 3.5,
  151. "deduction": -4.5
  152. },
  153. {
  154. "min": 3.5,
  155. "max": 4,
  156. "deduction": -5
  157. },
  158. {
  159. "min": 4,
  160. "max": 5,
  161. "deduction": -5.5
  162. },
  163. {
  164. "min": 5,
  165. "max": 6,
  166. "deduction": -6
  167. },
  168. {
  169. "min": 6,
  170. "max": 7,
  171. "deduction": -6.5
  172. },
  173. {
  174. "min": 7,
  175. "max": "inf",
  176. "deduction": -7
  177. }
  178. ],
  179. "pit_area": [
  180. {
  181. "min": 0,
  182. "max": 0.05,
  183. "deduction": -0.1
  184. },
  185. {
  186. "min": 0.05,
  187. "max": 0.1,
  188. "deduction": -0.5
  189. },
  190. {
  191. "min": 0.1,
  192. "max": 0.25,
  193. "deduction": -1.5
  194. },
  195. {
  196. "min": 0.25,
  197. "max": 0.5,
  198. "deduction": -3
  199. },
  200. {
  201. "min": 0.5,
  202. "max": "inf",
  203. "deduction": -5
  204. }
  205. ],
  206. "stain_area": [
  207. {
  208. "min": 0,
  209. "max": 0.05,
  210. "deduction": -0.1
  211. },
  212. {
  213. "min": 0.05,
  214. "max": 0.1,
  215. "deduction": -0.5
  216. },
  217. {
  218. "min": 0.1,
  219. "max": 0.25,
  220. "deduction": -1.5
  221. },
  222. {
  223. "min": 0.25,
  224. "max": 0.5,
  225. "deduction": -3
  226. },
  227. {
  228. "min": 0.5,
  229. "max": "inf",
  230. "deduction": -5
  231. }
  232. ],
  233. "scratch_length": [
  234. {
  235. "min": 0,
  236. "max": 1,
  237. "deduction": -0.1
  238. },
  239. {
  240. "min": 1,
  241. "max": 2,
  242. "deduction": -0.5
  243. },
  244. {
  245. "min": 2,
  246. "max": 5,
  247. "deduction": -1
  248. },
  249. {
  250. "min": 5,
  251. "max": 10,
  252. "deduction": -2
  253. },
  254. {
  255. "min": 10,
  256. "max": 20,
  257. "deduction": -3
  258. },
  259. {
  260. "min": 20,
  261. "max": 50,
  262. "deduction": -4
  263. },
  264. {
  265. "min": 50,
  266. "max": "inf",
  267. "deduction": -5
  268. }
  269. ]
  270. },
  271. "front_weights": {
  272. "wear_area": 1,
  273. "loss_area": 1
  274. },
  275. "back_weights": {
  276. "wear_area": 1,
  277. "loss_area": 1
  278. },
  279. "final_weights": {
  280. "front": 0.7,
  281. "back": 0.3
  282. }
  283. },
  284. "edge": {
  285. "rules": {
  286. "wear_area": [
  287. {
  288. "min": 0,
  289. "max": 0.05,
  290. "deduction": -0.1
  291. },
  292. {
  293. "min": 0.05,
  294. "max": 0.1,
  295. "deduction": -0.5
  296. },
  297. {
  298. "min": 0.1,
  299. "max": 0.25,
  300. "deduction": -1.5
  301. },
  302. {
  303. "min": 0.25,
  304. "max": 0.5,
  305. "deduction": -3
  306. },
  307. {
  308. "min": 0.5,
  309. "max": "inf",
  310. "deduction": -5
  311. }
  312. ],
  313. "loss_area": [
  314. {
  315. "min": 0,
  316. "max": 0.05,
  317. "deduction": -0.1
  318. },
  319. {
  320. "min": 0.05,
  321. "max": 0.1,
  322. "deduction": -0.5
  323. },
  324. {
  325. "min": 0.1,
  326. "max": 0.25,
  327. "deduction": -1.5
  328. },
  329. {
  330. "min": 0.25,
  331. "max": 0.5,
  332. "deduction": -3
  333. },
  334. {
  335. "min": 0.5,
  336. "max": "inf",
  337. "deduction": -5
  338. }
  339. ],
  340. "pit_area": [
  341. {
  342. "min": 0,
  343. "max": 0.05,
  344. "deduction": -0.1
  345. },
  346. {
  347. "min": 0.05,
  348. "max": 0.1,
  349. "deduction": -0.5
  350. },
  351. {
  352. "min": 0.1,
  353. "max": 0.25,
  354. "deduction": -1.5
  355. },
  356. {
  357. "min": 0.25,
  358. "max": 0.5,
  359. "deduction": -3
  360. },
  361. {
  362. "min": 0.5,
  363. "max": "inf",
  364. "deduction": -5
  365. }
  366. ],
  367. "stain_area": [
  368. {
  369. "min": 0,
  370. "max": 0.05,
  371. "deduction": -0.1
  372. },
  373. {
  374. "min": 0.05,
  375. "max": 0.1,
  376. "deduction": -0.5
  377. },
  378. {
  379. "min": 0.1,
  380. "max": 0.25,
  381. "deduction": -1.5
  382. },
  383. {
  384. "min": 0.25,
  385. "max": 0.5,
  386. "deduction": -3
  387. },
  388. {
  389. "min": 0.5,
  390. "max": "inf",
  391. "deduction": -5
  392. }
  393. ],
  394. "scratch_length": [
  395. {
  396. "min": 0,
  397. "max": 1,
  398. "deduction": -0.1
  399. },
  400. {
  401. "min": 1,
  402. "max": 2,
  403. "deduction": -0.5
  404. },
  405. {
  406. "min": 2,
  407. "max": 5,
  408. "deduction": -1
  409. },
  410. {
  411. "min": 5,
  412. "max": 10,
  413. "deduction": -2
  414. },
  415. {
  416. "min": 10,
  417. "max": 20,
  418. "deduction": -3
  419. },
  420. {
  421. "min": 20,
  422. "max": 50,
  423. "deduction": -4
  424. },
  425. {
  426. "min": 50,
  427. "max": "inf",
  428. "deduction": -5
  429. }
  430. ]
  431. },
  432. "front_weights": {
  433. "wear_area": 0.8,
  434. "loss_area": 1.2
  435. },
  436. "back_weights": {
  437. "wear_area": 0.8,
  438. "loss_area": 1.2
  439. },
  440. "final_weights": {
  441. "front": 0.7,
  442. "back": 0.3
  443. }
  444. },
  445. "face": {
  446. "rules": {
  447. "wear_area": [
  448. {
  449. "min": 0,
  450. "max": 0.01,
  451. "deduction": -0.01
  452. },
  453. {
  454. "min": 0.01,
  455. "max": 0.05,
  456. "deduction": -0.05
  457. },
  458. {
  459. "min": 0.05,
  460. "max": 0.1,
  461. "deduction": -0.1
  462. },
  463. {
  464. "min": 0.1,
  465. "max": 0.5,
  466. "deduction": -0.25
  467. },
  468. {
  469. "min": 0.5,
  470. "max": 1,
  471. "deduction": -0.5
  472. },
  473. {
  474. "min": 1,
  475. "max": 1.5,
  476. "deduction": -0.75
  477. },
  478. {
  479. "min": 1.5,
  480. "max": 2,
  481. "deduction": -1
  482. },
  483. {
  484. "min": 2,
  485. "max": 2.5,
  486. "deduction": -1.5
  487. },
  488. {
  489. "min": 2.5,
  490. "max": 3,
  491. "deduction": -2
  492. },
  493. {
  494. "min": 3,
  495. "max": 4,
  496. "deduction": -2.5
  497. },
  498. {
  499. "min": 4,
  500. "max": 6,
  501. "deduction": -3
  502. },
  503. {
  504. "min": 6,
  505. "max": 8,
  506. "deduction": -3.5
  507. },
  508. {
  509. "min": 8,
  510. "max": 10,
  511. "deduction": -4
  512. },
  513. {
  514. "min": 10,
  515. "max": 15,
  516. "deduction": -4.5
  517. },
  518. {
  519. "min": 15,
  520. "max": 20,
  521. "deduction": -5
  522. },
  523. {
  524. "min": 20,
  525. "max": 30,
  526. "deduction": -5.5
  527. },
  528. {
  529. "min": 30,
  530. "max": "inf",
  531. "deduction": -6
  532. }
  533. ],
  534. "pit_area": [
  535. {
  536. "min": 0,
  537. "max": 0.01,
  538. "deduction": -0.01
  539. },
  540. {
  541. "min": 0.01,
  542. "max": 0.05,
  543. "deduction": -0.05
  544. },
  545. {
  546. "min": 0.05,
  547. "max": 0.1,
  548. "deduction": -0.1
  549. },
  550. {
  551. "min": 0.1,
  552. "max": 0.5,
  553. "deduction": -0.25
  554. },
  555. {
  556. "min": 0.5,
  557. "max": 1,
  558. "deduction": -0.5
  559. },
  560. {
  561. "min": 1,
  562. "max": 1.5,
  563. "deduction": -0.75
  564. },
  565. {
  566. "min": 1.5,
  567. "max": 2,
  568. "deduction": -1
  569. },
  570. {
  571. "min": 2,
  572. "max": 2.5,
  573. "deduction": -1.5
  574. },
  575. {
  576. "min": 2.5,
  577. "max": 3,
  578. "deduction": -2
  579. },
  580. {
  581. "min": 3,
  582. "max": 4,
  583. "deduction": -2.5
  584. },
  585. {
  586. "min": 4,
  587. "max": 6,
  588. "deduction": -3
  589. },
  590. {
  591. "min": 6,
  592. "max": 8,
  593. "deduction": -3.5
  594. },
  595. {
  596. "min": 8,
  597. "max": 10,
  598. "deduction": -4
  599. },
  600. {
  601. "min": 10,
  602. "max": 15,
  603. "deduction": -4.5
  604. },
  605. {
  606. "min": 15,
  607. "max": 20,
  608. "deduction": -5
  609. },
  610. {
  611. "min": 20,
  612. "max": 30,
  613. "deduction": -5.5
  614. },
  615. {
  616. "min": 30,
  617. "max": "inf",
  618. "deduction": -6
  619. }
  620. ],
  621. "stain_area": [
  622. {
  623. "min": 0,
  624. "max": 0.01,
  625. "deduction": -0.01
  626. },
  627. {
  628. "min": 0.01,
  629. "max": 0.05,
  630. "deduction": -0.05
  631. },
  632. {
  633. "min": 0.05,
  634. "max": 0.1,
  635. "deduction": -0.1
  636. },
  637. {
  638. "min": 0.1,
  639. "max": 0.5,
  640. "deduction": -0.25
  641. },
  642. {
  643. "min": 0.5,
  644. "max": 1,
  645. "deduction": -0.5
  646. },
  647. {
  648. "min": 1,
  649. "max": 1.5,
  650. "deduction": -0.75
  651. },
  652. {
  653. "min": 1.5,
  654. "max": 2,
  655. "deduction": -1
  656. },
  657. {
  658. "min": 2,
  659. "max": 2.5,
  660. "deduction": -1.5
  661. },
  662. {
  663. "min": 2.5,
  664. "max": 3,
  665. "deduction": -2
  666. },
  667. {
  668. "min": 3,
  669. "max": 4,
  670. "deduction": -2.5
  671. },
  672. {
  673. "min": 4,
  674. "max": 6,
  675. "deduction": -3
  676. },
  677. {
  678. "min": 6,
  679. "max": 8,
  680. "deduction": -3.5
  681. },
  682. {
  683. "min": 8,
  684. "max": 10,
  685. "deduction": -4
  686. },
  687. {
  688. "min": 10,
  689. "max": 15,
  690. "deduction": -4.5
  691. },
  692. {
  693. "min": 15,
  694. "max": 20,
  695. "deduction": -5
  696. },
  697. {
  698. "min": 20,
  699. "max": 30,
  700. "deduction": -5.5
  701. },
  702. {
  703. "min": 30,
  704. "max": "inf",
  705. "deduction": -6
  706. }
  707. ],
  708. "scratch_length": [
  709. {
  710. "min": 0,
  711. "max": 0.1,
  712. "deduction": -0.1
  713. },
  714. {
  715. "min": 0.1,
  716. "max": 0.5,
  717. "deduction": -0.25
  718. },
  719. {
  720. "min": 0.5,
  721. "max": 1,
  722. "deduction": -0.5
  723. },
  724. {
  725. "min": 1,
  726. "max": 2.5,
  727. "deduction": -1
  728. },
  729. {
  730. "min": 2.5,
  731. "max": 5,
  732. "deduction": -1.5
  733. },
  734. {
  735. "min": 5,
  736. "max": 10,
  737. "deduction": -2
  738. },
  739. {
  740. "min": 10,
  741. "max": 20,
  742. "deduction": -2.5
  743. },
  744. {
  745. "min": 20,
  746. "max": 40,
  747. "deduction": -3
  748. },
  749. {
  750. "min": 40,
  751. "max": 60,
  752. "deduction": -3.5
  753. },
  754. {
  755. "min": 60,
  756. "max": 80,
  757. "deduction": -4
  758. },
  759. {
  760. "min": 80,
  761. "max": "inf",
  762. "deduction": -5
  763. }
  764. ]
  765. },
  766. "coefficients": {
  767. "wear_area": 0.5,
  768. "scratch_length": 1,
  769. "dent_area": 2,
  770. "stain_area": 1.2
  771. },
  772. "light_weights": {
  773. "ring_weight": 0.8,
  774. "coaxial_weight": 0.2
  775. },
  776. "final_weights": {
  777. "front": 0.75,
  778. "back": 0.25
  779. }
  780. },
  781. "centering": {
  782. "front": {
  783. "rules": [
  784. {
  785. "min": 0,
  786. "max": 52,
  787. "deduction": 0
  788. },
  789. {
  790. "min": 52,
  791. "max": 55,
  792. "deduction": -0.5
  793. },
  794. {
  795. "min": 55,
  796. "max": 60,
  797. "deduction": -1
  798. },
  799. {
  800. "min": 60,
  801. "max": 62.5,
  802. "deduction": -1.5
  803. },
  804. {
  805. "min": 62.5,
  806. "max": 65,
  807. "deduction": -2
  808. },
  809. {
  810. "min": 65,
  811. "max": 67.5,
  812. "deduction": -2.5
  813. },
  814. {
  815. "min": 67.5,
  816. "max": 70,
  817. "deduction": -3
  818. },
  819. {
  820. "min": 70,
  821. "max": 72.5,
  822. "deduction": -3.5
  823. },
  824. {
  825. "min": 72.5,
  826. "max": 75,
  827. "deduction": -4
  828. },
  829. {
  830. "min": 75,
  831. "max": 77.5,
  832. "deduction": -4.5
  833. },
  834. {
  835. "min": 77.5,
  836. "max": 80,
  837. "deduction": -5
  838. },
  839. {
  840. "min": 80,
  841. "max": 82.5,
  842. "deduction": -5.5
  843. },
  844. {
  845. "min": 82.5,
  846. "max": 85,
  847. "deduction": -6
  848. },
  849. {
  850. "min": 85,
  851. "max": 87.5,
  852. "deduction": -6.5
  853. },
  854. {
  855. "min": 87.5,
  856. "max": 90,
  857. "deduction": -7
  858. },
  859. {
  860. "min": 90,
  861. "max": 92.5,
  862. "deduction": -7.5
  863. },
  864. {
  865. "min": 92.5,
  866. "max": 95,
  867. "deduction": -8
  868. },
  869. {
  870. "min": 95,
  871. "max": 97.5,
  872. "deduction": -8.5
  873. },
  874. {
  875. "min": 97.5,
  876. "max": "inf",
  877. "deduction": -9
  878. }
  879. ],
  880. "coefficients": {
  881. "horizontal": 1.2,
  882. "vertical": 0.8
  883. }
  884. },
  885. "back": {
  886. "rules": [
  887. {
  888. "min": 0,
  889. "max": 60,
  890. "deduction": 0
  891. },
  892. {
  893. "min": 60,
  894. "max": 65,
  895. "deduction": -0.5
  896. },
  897. {
  898. "min": 65,
  899. "max": 70,
  900. "deduction": -1
  901. },
  902. {
  903. "min": 70,
  904. "max": 75,
  905. "deduction": -1.5
  906. },
  907. {
  908. "min": 75,
  909. "max": 85,
  910. "deduction": -2
  911. },
  912. {
  913. "min": 85,
  914. "max": 95,
  915. "deduction": -2.5
  916. },
  917. {
  918. "min": 95,
  919. "max": "inf",
  920. "deduction": -3
  921. }
  922. ],
  923. "coefficients": {
  924. "horizontal": 1.2,
  925. "vertical": 0.8
  926. }
  927. },
  928. "final_weights": {
  929. "front": 1.5,
  930. "back": 0.5
  931. }
  932. },
  933. "severity_level": {
  934. "wear": [
  935. {
  936. "name": "轻微",
  937. "value": 0.5
  938. },
  939. {
  940. "name": "一般",
  941. "value": 1
  942. },
  943. {
  944. "name": "严重",
  945. "value": 2
  946. }
  947. ],
  948. "loss": [
  949. {
  950. "name": "轻微",
  951. "value": 0.5
  952. },
  953. {
  954. "name": "一般",
  955. "value": 1
  956. },
  957. {
  958. "name": "严重",
  959. "value": 2
  960. }
  961. ],
  962. "pit": [
  963. {
  964. "name": "轻微",
  965. "value": 0.5
  966. },
  967. {
  968. "name": "一般",
  969. "value": 1
  970. },
  971. {
  972. "name": "严重",
  973. "value": 2
  974. }
  975. ],
  976. "stain": [
  977. {
  978. "name": "轻微",
  979. "value": 0.5
  980. },
  981. {
  982. "name": "一般",
  983. "value": 1
  984. },
  985. {
  986. "name": "严重",
  987. "value": 2
  988. }
  989. ],
  990. "scratch": [
  991. {
  992. "name": "轻微",
  993. "value": 0.5
  994. },
  995. {
  996. "name": "一般",
  997. "value": 1
  998. },
  999. {
  1000. "name": "严重",
  1001. "value": 2
  1002. }
  1003. ]
  1004. },
  1005. "card": {
  1006. "PSA": {
  1007. "face": 0.35,
  1008. "corner": 0.3,
  1009. "edge": 0.1,
  1010. "center": 0.25
  1011. },
  1012. "BGS": {
  1013. "face": 0.3,
  1014. "corner": 0.25,
  1015. "edge": 0.2,
  1016. "center": 0.25
  1017. }
  1018. }
  1019. }