Car Recognition and Segmentation

Obtain the coordinates of the silhouette of the vehicle in the image.

Car Recognition and Segmentation

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

Input
Output

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

Segment the Vehicle - Endpoint

POST https://alto.tchek.fr/apiV1/seg/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" ] }

{
  "id": "744ef615c35bf4aa",
  "status": 200,
  "data": {
    "detectionList": [
      {
        "id": "0",
        "imageStatus": "",
        "status": 200,
        "url": "https://tchek-images.s3.eu-west-3.amazonaws.com/swagger/segment/car_to_segment.jpg",
        "detections": {
          "carData": {
            "contour": [
              [
                [
                  0.31625,
                  0.31215
                ],
                [
                  0.315625,
                  0.313084
                ]
 
              ]
            ],
            "height": 0.583178,
            "width": 0.794375,
            "centerY": 0.603738,
            "centerX": 0.487812
          }
        }
      }
    ]
  }
}

Name
Type
Description

id

String

The id of the image

status

String

The status of the request

data

Array

See below

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

CarData array

Name
Type
Description

height

number

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

width

number

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

centerY

number

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

centerX

number

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

contour

Array

The X and Y coordinates (in pixels) of each point that outlines the car's contour in a polygonal shape.

Last updated

Was this helpful?