Create config.json
Browse files- config.json +104 -0
config.json
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"//": "Configuration file for indian-id-validator models, mapping document types to detection models and class names",
|
| 3 |
+
"models": {
|
| 4 |
+
"id_classifier": {
|
| 5 |
+
"type": "classification",
|
| 6 |
+
"path": "models/id_classifier.pt",
|
| 7 |
+
"classes": {
|
| 8 |
+
"0": "aadhar_back",
|
| 9 |
+
"1": "aadhar_front",
|
| 10 |
+
"2": "driving_license_back",
|
| 11 |
+
"3": "driving_license_front",
|
| 12 |
+
"4": "pan_card_front",
|
| 13 |
+
"5": "passport",
|
| 14 |
+
"6": "voter_id"
|
| 15 |
+
}
|
| 16 |
+
},
|
| 17 |
+
"aadhaar": {
|
| 18 |
+
"type": "detection",
|
| 19 |
+
"path": "models/aadhaar.pt",
|
| 20 |
+
"classes": [
|
| 21 |
+
"Aadhaar_Number",
|
| 22 |
+
"Aadhaar_DOB",
|
| 23 |
+
"Aadhaar_Gender",
|
| 24 |
+
"Aadhaar_Name",
|
| 25 |
+
"Aadhaar_Address"
|
| 26 |
+
]
|
| 27 |
+
},
|
| 28 |
+
"pan_card": {
|
| 29 |
+
"type": "detection",
|
| 30 |
+
"path": "models/pan_card.pt",
|
| 31 |
+
"classes": [
|
| 32 |
+
"PAN",
|
| 33 |
+
"Name",
|
| 34 |
+
"Father's Name",
|
| 35 |
+
"DOB",
|
| 36 |
+
"Pan Card"
|
| 37 |
+
]
|
| 38 |
+
},
|
| 39 |
+
"passport": {
|
| 40 |
+
"type": "detection",
|
| 41 |
+
"path": "models/passport.pt",
|
| 42 |
+
"classes": [
|
| 43 |
+
"Address",
|
| 44 |
+
"Code",
|
| 45 |
+
"DOB",
|
| 46 |
+
"DOI",
|
| 47 |
+
"EXP",
|
| 48 |
+
"Gender",
|
| 49 |
+
"MRZ1",
|
| 50 |
+
"MRZ2",
|
| 51 |
+
"Name",
|
| 52 |
+
"Nationality",
|
| 53 |
+
"Nation",
|
| 54 |
+
"POI"
|
| 55 |
+
]
|
| 56 |
+
},
|
| 57 |
+
"voter_id": {
|
| 58 |
+
"type": "detection",
|
| 59 |
+
"path": "models/voter_id.pt",
|
| 60 |
+
"classes": [
|
| 61 |
+
"Address",
|
| 62 |
+
"Age",
|
| 63 |
+
"DOB",
|
| 64 |
+
"Card Voter ID 1 Back",
|
| 65 |
+
"Card Voter ID 2 Front",
|
| 66 |
+
"Card Voter ID 2 Back",
|
| 67 |
+
"Card Voter ID 1 Front",
|
| 68 |
+
"Date of Issue",
|
| 69 |
+
"Election",
|
| 70 |
+
"Father",
|
| 71 |
+
"Gender",
|
| 72 |
+
"Name",
|
| 73 |
+
"Point",
|
| 74 |
+
"Portrait",
|
| 75 |
+
"Symbol",
|
| 76 |
+
"Voter ID"
|
| 77 |
+
]
|
| 78 |
+
},
|
| 79 |
+
"driving_license": {
|
| 80 |
+
"type": "detection",
|
| 81 |
+
"path": "models/driving_license.pt",
|
| 82 |
+
"classes": [
|
| 83 |
+
"Address",
|
| 84 |
+
"Blood Group",
|
| 85 |
+
"DL No",
|
| 86 |
+
"DOB",
|
| 87 |
+
"Name",
|
| 88 |
+
"Relation With",
|
| 89 |
+
"RTO",
|
| 90 |
+
"State",
|
| 91 |
+
"Vehicle Type"
|
| 92 |
+
]
|
| 93 |
+
}
|
| 94 |
+
},
|
| 95 |
+
"doc_type_to_model": {
|
| 96 |
+
"aadhar_front": "aadhaar",
|
| 97 |
+
"aadhar_back": "aadhaar",
|
| 98 |
+
"pan_card_front": "pan_card",
|
| 99 |
+
"passport": "passport",
|
| 100 |
+
"voter_id": "voter_id",
|
| 101 |
+
"driving_license_front": "driving_license",
|
| 102 |
+
"driving_license_back": "driving_license"
|
| 103 |
+
}
|
| 104 |
+
}
|