Car Parts Recognition and Segmentation

Car Parts Recognition and Segmentation

You can now submit one or more images of a vehicle, and obtain the coordinates of all the car body parts detected in the image.

Input
Output

Output image is for illustrative purposes only. The part masks must be drawn using the polygon coordinates provided in the JSON.

Car Part Recognition

Segment the parts of a vehicle - Endpoint

POST https://alto.tchek.fr/apiV1/part/image

Request Body

Name
Type
Description

urls

Array

List of file URLs. Example: { "urls": [ "https://tchek-images.s3.eu-west-3.amazonaws.com/swagger/segment/car_to_segment.jpg" ] }

Please note that, for readability purposes, we have only kept a few contour points for each part.

{
  "id": "c8b4d37c5fcbb6b7",
  "status": 200,
  "data": {
    "vehicle": {
      "region": "es",
      "immat": "6975LTB"
    },
    "detectionList": [
      {
        "id": "0",
        "imageStatus": "",
        "status": 200,
        "url": "https://tchek-images.s3.eu-west-3.amazonaws.com/swagger/segment/car_to_segment.jpg",
        "detections": {
          "partsData": [
            {
              "type": "CPT",
              "centerX": 0.636875,
              "centerY": 0.531308,
              "width": 0.43875,
              "height": 0.157944,
              "contour": [
                [
                  0.4175,
                  0.484112
                ],
                [
                  0.4175,
                  0.502804
                ]
              ]
            },
            {
              "contour": [
                [
                  0.281875,
                  0.333645
                ],
                [
                  0.27375,
                  0.348598
                ]
              ],
              "height": 0.417757,
              "width": 0.150625,
              "centerY": 0.541589,
              "centerX": 0.312813,
              "type": "PRTAVD"
            },
            {
              "type": "PRCAV",
              "centerX": 0.676875,
              "centerY": 0.703738,
              "width": 0.42125,
              "height": 0.256075,
              "contour": [
                [
                  0.46625,
                  0.575701
                ],
                [
                  0.4675,
                  0.590654
                ]
              ]
            },
            {
              "type": "ROUAVD",
              "wheelType": "Jante_AL",
              "width": 0.155,
              "centerX": 0.46625,
              "centerY": 0.741121,
              "height": 0.308411,
              "contour": [
                [
                  0.4425,
                  0.586916
                ],
                [
                  0.43375,
                  0.6
                ]
              ]
            },
            {
              "contour": [
                [
                  0.3475,
                  0.33271
                ],
                [
                  0.3475,
                  0.347664
                ]
              ],
              "height": 0.126168,
              "width": 0.32875,
              "centerY": 0.395794,
              "centerX": 0.511875,
              "type": "PRBAV"
            },
            {
              "contour": [
                [
                  0.175625,
                  0.423364
                ],
                [
                  0.166875,
                  0.437383
                ]
              ],
              "height": 0.365421,
              "width": 0.13,
              "centerY": 0.522897,
              "centerX": 0.205625,
              "type": "PRTARD"
            },
            {
              "contour": [
                [
                  0.87125,
                  0.769159
                ],
                [
                  0.865625,
                  0.769159
                ]
              ],
              "height": 0.104673,
              "width": 0.2825,
              "centerY": 0.753271,
              "centerX": 0.730625,
              "type": "CLRAV"
            },
            {
              "contour": [
                [
                  0.42375,
                  0.641121
                ],
                [
                  0.415,
                  0.654206
                ]
              ],
              "height": 0.219626,
              "centerY": 0.75,
              "centerX": 0.4525,
              "width": 0.11125,
              "wheelType": "Jante_AL",
              "type": "ROUAVD"
            },
            {
              "type": "ROUARD",
              "wheelType": "Jante_AL",
              "width": 0.075,
              "centerX": 0.135625,
              "centerY": 0.648598,
              "height": 0.209346,
              "contour": [
                [
                  0.119375,
                  0.54486
                ],
                [
                  0.110625,
                  0.558879
                ]
              ]
            },
            {
              "type": "PHRAVD",
              "centerX": 0.600312,
              "centerY": 0.611682,
              "width": 0.180625,
              "height": 0.071963,
              "contour": [
                [
                  0.51,
                  0.575701
                ],
                [
                  0.51,
                  0.583178
                ]
              ]
            },
            {
              "type": "AILARD",
              "centerX": 0.13625,
              "centerY": 0.500467,
              "width": 0.07875,
              "height": 0.223364,
              "contour": [
                [
                  0.175,
                  0.388785
                ],
                [
                  0.1625,
                  0.388785
                ]
              ]
            },
            {
              "type": "ROUARD",
              "wheelType": "Jante_AL",
              "width": 0.048125,
              "centerX": 0.126563,
              "centerY": 0.652804,
              "height": 0.165421,
              "contour": [
                [
                  0.11,
                  0.570093
                ],
                [
                  0.113125,
                  0.57757
                ]
              ]
            },
            {
              "type": "PLIAV",
              "centerX": 0.786875,
              "centerY": 0.680374,
              "width": 0.10125,
              "height": 0.065421,
              "contour": [
                [
                  0.836875,
                  0.647664
                ],
                [
                  0.824375,
                  0.647664
                ]
              ]
            },
            {
              "type": "VTRAVD",
              "centerX": 0.312813,
              "centerY": 0.4,
              "width": 0.086875,
              "height": 0.106542,
              "contour": [
                [
                  0.269375,
                  0.450467
                ],
                [
                  0.281875,
                  0.451402
                ]
              ]
            },
            {
              "type": "VTRARD",
              "centerX": 0.231562,
              "centerY": 0.399065,
              "width": 0.074375,
              "height": 0.095327,
              "contour": [
                [
                  0.268125,
                  0.351402
                ],
                [
                  0.255625,
                  0.351402
                ]
              ]
            },
            {
              "type": "BDCD",
              "centerX": 0.266562,
              "centerY": 0.731308,
              "width": 0.203125,
              "height": 0.090654,
              "contour": [
                [
                  0.165,
                  0.685981
                ],
                [
                  0.17,
                  0.702804
                ]
              ]
            },
            {
              "contour": [
                [
                  0.294375,
                  0.421495
                ],
                [
                  0.294375,
                  0.440187
                ]
              ],
              "height": 0.056075,
              "width": 0.078125,
              "centerY": 0.442991,
              "centerX": 0.332812,
              "type": "RTRD"
            },
            {
              "contour": [
                [
                  0.860625,
                  0.562617
                ],
                [
                  0.855,
                  0.566355
                ]
              ],
              "height": 0.064486,
              "width": 0.030625,
              "centerY": 0.59486,
              "centerX": 0.859688,
              "type": "PHRAVG"
            },
            {
              "contour": [
                [
                  0.204375,
                  0.368224
                ],
                [
                  0.191875,
                  0.368224
                ]
              ],
              "height": 0.061682,
              "width": 0.025625,
              "centerY": 0.399065,
              "centerX": 0.192188,
              "type": "VTRARD"
            },
            {
              "contour": [
                [
                  0.753125,
                  0.575701
                ],
                [
                  0.7525,
                  0.592523
                ]
              ],
              "height": 0.023364,
              "width": 0.04125,
              "centerY": 0.587383,
              "centerX": 0.773125,
              "type": "INS"
            },
            {
              "contour": [
                [
                  0.24625,
                  0.500935
                ],
                [
                  0.24625,
                  0.517757
                ],
                [
                  0.25875,
                  0.516822
                ],
                [
                  0.27,
                  0.515888
                ],
                [
                  0.268125,
                  0.500935
                ]
              ],
              "height": 0.017757,
              "width": 0.024375,
              "centerY": 0.509813,
              "centerX": 0.258438,
              "type": "PGNAVD"
            },
            {
              "contour": [
                [
                  0.174375,
                  0.482243
                ],
                [
                  0.161875,
                  0.482243
                ],
                [
                  0.15375,
                  0.482243
                ],
                [
                  0.153125,
                  0.492523
                ],
                [
                  0.165625,
                  0.494393
                ],
                [
                  0.174375,
                  0.495327
                ]
              ],
              "height": 0.014953,
              "width": 0.021875,
              "centerY": 0.488785,
              "centerX": 0.164062,
              "type": "PGNARD"
            }
          ]
        }
      }
    ]
  }
}

Name
Type
Description

id

String

The id

status

Object

Status of the image

data

Array

See Vehicle and detectionList arrays below

Vehicle array

Name
Type
Description

region

String

The country code of the detected license plate.

immat

String

The license plate number

detectionList array

Name
Type
Description

id

String

The id of the image

status

Number

The status of the image. 200: ok 400: error 500: internal server error

imageStatus

String

If the status is anything other than 200, this field explains the issue with the image.

url

String

The URL of the image

detections

Array

See PartsData array below

PartsData array

Name
Type
Description

type

string

The car part code. See Nomenclature

height

number

Height of the bounding box drawn around the car part (in %)

width

number

Width of the bounding box drawn around the car part (in %)

centerY

number

Center Y of the bounding box drawn around the car part (in %)

centerX

number

Center X of the bounding box drawn around the car part (in %)

contour

Array

The X Y coordinates (in pixels) of each point of the polygon that draws the contour of the car part.

Last updated

Was this helpful?