Skip to content

Implement JSON format for sending the data for rpi/notif #5

@zEuS0390

Description

@zEuS0390

This is an example of JSON format for rpi/notif:

{
    "image": "<base64_encoded_string>",
    "camera": {
        "description": "A brief description about the device",
        "ip_address": "192.168.1.2",
        "name":  "Site A Device"
    },
    "timestamp": "11/21/22 12:19:53",
    "total_violations": 3,
    "total_violators": 1,
    "violators": [
        {
            "id": 2,
            "person_info": [
                {
                    "first_name": "Nick Frederick",
                    "job_title": "Contractor",
                    "last_name": "Smith",
                    "middle_name": "Bell",
                    "overlaps": [
                        2
                    ],
                    "person_id": 1
                }
            ],
            "violations": [
                {
                    "class_name": "no helmet",
                    "confidence": 0.852,
                    "id": 1,
                    "overlaps": [
                        2
                    ]
                },
                {
                    "class_name": "glasses",
                    "confidence": 0.6996,
                    "id": 3,
                    "overlaps": [
                        2
                    ]
                },
                {
                    "class_name": "no vest",
                    "confidence": 0.5462,
                    "id": 4,
                    "overlaps": [
                        2
                    ]
                }
            ]
        }
    ]
}

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions