Helmet Detection

Parameters

In postman, send a POST to localhost:4004/NFFS-HELM/v1/helmet-detection

{
  "additional_params": {
    "plate_bounding_box": {
      "top": 0.4375,
      "left": 0.4946,
      "width": 0.1429,
      "height": 0.0215
    },
  },
  "images": ["base64"]
}
Parameter NameDescription

plate_bounding_box

Bounding box variable from image (Optional)

image

image based on base64 format

Response

Success

{
  "job": {
    "id": "20221020043031051e70403920ef4166736e95205fdc6c8f2b6f6dd4b5d7bc4efd78606ef5ab20bca",
    "result": {
      "analytic_type": "HELMET_DETECTION_PIPELINE",
      "result": [
        {
          "helmet_detection": [
            {
              "helm": 1,
              "confidence": 0.7191246151924133,
              "bounding_box": {
                "top": 0.11127391457557678,
                "left": 0.6707842350006104,
                "width": 0.047774672508239746,
                "height": 0.10281848907470705
              }
            },
            {
              "helm": 0,
              "confidence": 0.4083919525146485,
              "bounding_box": {
                "top": 0.974684476852417,
                "left": 0.977452039718628,
                "width": 0.019530057907104492,
                "height": 0.02457857131958008
              }
            }
          ]
        }
      ],
      "status": "success"
    }
  },
  "message": "Helmet Detection Success",
  "ok": true
}

Error

{
  "job": {
    "id": "hex",
    "result": null
  },
  "message": "string",
  "ok": false
}

Last updated