Skip to content

Latest commit

 

History

History
116 lines (109 loc) · 2.87 KB

JSON.md

File metadata and controls

116 lines (109 loc) · 2.87 KB

Here is a sample of JSON output when nothing is detected:

    {
        "timestamp": "2024-02-12T16:03:45.484Z",
        "video_rate": 33.3, 
        "drpai_rate": 2.5, 
        "detections": []
    }

Here is a sample of JSON output when the filters are on:

    {
        "timestamp": "2024-02-12T16:03:45.484Z",
        "video_rate": 25.0, 
        "drpai_rate": 5.4, 
        "filters": {
          "classes": [
            {
              "class": "bottle",
              "color": "0000ff"
            },
            {
              "class": "person",
              "color": "ff0000"
            }
          ],
          "region": {
            "left": 450,
            "top": 350,
            "width": 100,
            "height": 100
          }
        },
        "detections": []
    }

Here is a sample of JSON output of Yolo models when the tracking is off:

    {
        "timestamp": "2024-02-12T16:03:45.484Z",
        "video_rate": 32.3, 
        "drpai_rate": 2.5, 
        "detections": [
            { 
                "class": "person", 
                "probability": 0.91, 
                "box": {
                    "center_x": 425, 
                    "center_y": 325, 
                    "width": 297, 
                    "height": 282
                }
            },
            {
                "class": "wine glass", 
                "probability": 0.52, 
                "box": {
                    "center_x": 87, 
                    "center_y": 133, 
                    "width": 122, 
                    "height": 172
                }
            }
        ]
    }

Here is a sample of JSON output of Yolo models when the tracking is on:

    {
        "timestamp": "2024-02-12T16:03:45.484Z",
        "video_rate": 32.3, 
        "drpai_rate": 2.5, 
        "detections": [
            {
                "id": 2, 
                "seen_first": "2023-12-22T23:20:56.484Z", 
                "seen_last": "2023-12-22T23:21:46.484Z", 
                "class": "person", 
                "probability": 0.91, 
                "box": {
                    "center_x": 425, 
                    "center_y": 325, 
                    "width": 297, 
                    "height": 282
                }
            },
            {
                "id": 5, 
                "seen_first": "2023-12-22T23:25:53.484Z", 
                "seen_last": "2023-12-22T23:26:07.484Z", 
                "class": "wine glass", 
                "probability": 0.52, 
                "box": {
                    "center_x": 87, 
                    "center_y": 133, 
                    "width": 122, 
                    "height": 172
                }
            }
        ],
        "track_history": {
            "minutes": 60,
            "total_count": 6,
            "person": 2,
            "wine_glass": 3,
            "chair": 1
        }
    }