Download OpenAPI specification:Download
The document describes the available requests and request fields of LUNA CARS API.
/version
- Getting LUNA CARS API version.
/classify
- Attributes recognition of one pair of vehicle and LP.
/bulk_classify
- Attributes recognition of several pairs of vehicle and LP.
/detector
- Vehicle and LP detection.
/redetector
- Vehicle and LP redetection.
/classifiers
- Getting available classifiers of Vehicle and LP.
This method recognizes LP and vehicle attributes in one image
Content-Type | string Value: "application/json" Content type is |
photo_ts | string Vehicle photo in Base64 format |
photo_grz | string LP photo in Base64 format |
object (classifiersList) Array of classifiers which would be called during request. Empty classifier array enables all classification routines |
{- "photo_ts": "Vehicle image in Base64 format",
- "photo_grz": "LP image in Base64 format",
- "classifiers": [
- "car_brand_model_v1",
- "vehicle_type",
- "vehicle_color",
- "vehicle_emergency_type",
- "special_transport_type",
- "public_transport_type",
- "vehicle_descriptor_v2",
- "vehicle_descriptor",
- "license_plate_ags_v1",
- "vehicle_axles",
- "grz_all_countries",
- "rus_plate_recognition_v2",
- "eu_cis_recognition_v1",
- "grz_uk_sing_recognition_v1",
- "grz_country_recognition",
- "emirate_recognition_v1"
]
}
{- "results": [
- {
- "brand": "Mercedes",
- "classifier": "car_brand_model_v1",
- "model": "CLS-Klasse",
- "score": 0.9999687671661377
}, - {
- "classifier": "vehicle_type",
- "ts_type_ai": "B_light",
- "ts_type_ai_score": 1
}, - {
- "classifier": "vehicle_color",
- "vehicle_color": "yellow",
- "vehicle_color_score": 0.9996469020843506
}, - {
- "classifier": "vehicle_emergency_type",
- "ts_type_ai": "not_emergency",
- "ts_type_ai_score": 0.9999997615814209
}, - {
- "classifier": "special_transport_type",
- "score": 0.9999994039535522,
- "type": "other_non_special"
}, - {
- "classifier": "public_transport_type",
- "score": 0.7600748538970947,
- "type": "other"
}, - {
- "classifier": "vehicle_descriptor_v2",
- "vehicle_descriptor": "oX45O..."
}, - {
- "classifier": "vehicle_axles",
- "aggregatedScore": 0.9006090760231018,
- "detections": [
- {
- "height": 106.99884033203125,
- "score": 0.9082876443862915,
- "width": 76.34241485595703,
- "x": 16.489608764648438,
- "y": 160.47573852539062
}, - {
- "height": 111.4052734375,
- "score": 0.8929305076599121,
- "width": 88.79512023925781,
- "x": 248.66099548339844,
- "y": 219.72064208984375
}
], - "numberOfWheelAxles": 2
}, - {
- "classifier": "license_plate_ags_v1",
- "score": 0.9805
}, - {
- "classifier": "grz_all_countries",
- "country": "RUS",
- "country_score": 0.9718532562255859,
- "features": [
- {
- "score": 0.9376475811004639,
- "type": "rus_spec_type",
- "value": "machines&moto"
}, - {
- "score": 0.08053085952997208,
- "type": "rus_region_number",
- "value": "77"
}
], - "regno_ai_score": 5.30332670223288e-7,
- "symbol_scores": [
- 0.11789270490407944,
- 0.11788763850927353,
- 0.11077699065208435,
- 0.1256401389837265,
- 0.3086765706539154,
- 0.11029332131147385,
- 0.3616010546684265,
- 0.2227063775062561
], - "symbols": [
- "0",
- "0",
- "4",
- "0",
- "А",
- "А",
- "7",
- "7"
]
}, - {
- "classifier": "rus_plate_recognition_v2",
- "features": [
- {
- "score": 0.9376475811004639,
- "type": "rus_spec_type",
- "value": "machines&moto"
}, - {
- "score": 0.08053085952997208,
- "type": "rus_region_number",
- "value": "77"
}
], - "regno_ai_score": 5.30332670223288e-7,
- "symbol_scores": [
- 0.11789270490407944,
- 0.11788763850927353,
- 0.11077699065208435,
- 0.1256401389837265,
- 0.3086765706539154,
- 0.11029332131147385,
- 0.3616010546684265,
- 0.2227063775062561
], - "symbols": [
- "0",
- "0",
- "4",
- "0",
- "А",
- "А",
- "7",
- "7"
]
}, - {
- "classifier": "eu_cis_recognition_v1",
- "regno_ai": {
- "length_scores": [
- 0,
- 0,
- 0,
- 0,
- 0,
- 1,
- 0,
- 0,
- 0,
- 0,
- 0
], - "scores": [
- 0.16531085968017578,
- 0.06867694854736328,
- 0.11586161702871323,
- 0.09084680676460266,
- 0.08482807874679565
], - "symbols": [
- "1",
- "7",
- "4",
- "0",
- "0"
]
}, - "regno_ai_score": 0.0000015711158312115003
}, - {
- "classifier": "grz_uk_sing_recognition_v1",
- "regno_ai": {
- "length_scores": [
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 1
], - "scores": [
- 0.9754948616027832,
- 0.9950047135353088,
- 0.9736678600311279,
- 0.9100750088691711,
- 0.8511158227920532,
- 0.9778057336807251,
- 0.9981971383094788,
- 0.999923825263977,
- 0.9999967813491821
], - "symbols": [
- "S",
- "K",
- "5",
- "8",
- "9",
- " ",
- " ",
- " ",
- " "
]
}, - "regno_ai_score": 0.7144325375556946
}, - {
- "classifier": "grz_country_recognition",
- "country": "RUS",
- "country_score": 0.9718532562255859
}, - {
- "classifier": "emirate_recognition_v1",
- "features": [
- {
- "score": 0.999993085861206,
- "type": "emirate_name",
- "value": "SHARJAH"
}
], - "regno_ai_score": 0.9982012510299683,
- "symbol_scores": [
- 0.9989792108535767,
- 0.9998021721839905,
- 0.999907374382019,
- 0.9999147653579712,
- 0.9996598958969116,
- 0.9999368190765381
], - "symbols": [
- "2",
- "1",
- "4",
- "5",
- "6",
- "7"
]
}
]
}
This method recognize attributes of several vehicles and LPs
Content-Type | string Value: "application/json" Content type is |
object (photos) An Array of JSON objects containing vehicle and LP images. Sending up to 100 pairs of vehicle and LP images is supported | |
object (classifiersList) Array of classifiers which would be called during request. Empty classifier array enables all classification routines |
{- "photos": [
- {
- "photo_ts": "Vehicle image in Base64 format",
- "photo_grz": "LP image in Base64 format"
}, - {
- "photo_ts": "Vehicle image in Base64 format",
- "photo_grz": "LP image in Base64 format"
}
], - "classifiers": [
- "car_brand_model_v2"
]
}
{- "results": [
- {
- "recognition_results": [
- {
- "brand": "Mercedes",
- "classifier": "car_brand_model_v2",
- "model": "CLS-Klasse",
- "score": 0.9999687671661377
}
]
}, - {
- "recognition_results": [
- {
- "brand": "BMW",
- "classifier": "car_brand_model_v2",
- "model": "3-Series",
- "score": 0.9234273443272218
}
]
}
]
}
This method returns vehicle and LP coordinates
Content-Type | string Value: "application/json" Content type is |
photo | string Vehicle and LP photo in Base64 format |
object (detectors) Detector selection | |
max_detection_count | int Maximum number of vehicles to recognize on an image |
{- "photo": "An image containing a vehicle and a GRZ in Base64 format",
- "detectors": [
- "car",
- "grz"
], - "max_detection_count": 10
}
{- "results": [
- {
- "detections": [
- {
- "x": 299,
- "y": 4,
- "width": 202,
- "height": 198,
- "score": 0.99878
}, - {
- "x": 769,
- "y": 424,
- "width": 301,
- "height": 242,
- "score": 0.9631
}
], - "detector": "car"
}, - {
- "detections": [
- {
- "x": 895,
- "y": 584,
- "width": 73,
- "height": 27,
- "score": 0.7581
}, - {
- "x": 339,
- "y": 415,
- "width": 79,
- "height": 28,
- "score": 0.72786
}
], - "detector": "grz"
}
]
}
This method returns BBox coordinates of the vehicle found within specified frame area
Content-Type | string Value: "application/json" Content type is |
photo | string Vehicle photo in Base64 format |
object (redetectors) Detector selection | |
object (for_redetections) Frame area (coordinates) where the vehicle should be detected |
{- "photo": "An image containing a vehicle in Base64 format",
- "redetectors": [
- "car",
- "other_redetector"
], - "detections": [
- {
- "x": 227,
- "y": 256,
- "width": 269,
- "height": 188
}
]
}
{- "results": [
- {
- "detections": [
- {
- "x": 299,
- "y": 4,
- "width": 202,
- "height": 198,
- "score": 0.99878
}
], - "redetector": "car"
}, - {
- "redetector": "other_redetector",
- "error": "unknown redetector"
}
]
}
This method returns the list of classifiers of Vehicles and LP
{- "grz_classifiers": [
- "grz_uk_sing_recognition_v1",
- "emirate_recognition_v1",
- "grz_all_countries",
- "rus_plate_recognition_v2",
- "eu_cis_recognition_v1",
- "grz_country_recognition",
- "license_plate_ags_v1"
], - "vehicle_classifiers": [
- "car_brand_model_v1",
- "vehicle_type",
- "vehicle_emergency_type",
- "vehicle_color",
- "special_transport_type",
- "public_transport_type",
- "vehicle_descriptor",
- "vehicle_descriptor_v2",
- "vehicle_axles",
- "car_brand_model_v2"
]
}