Skip to content

Latest commit

 

History

History

backend_2

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

gearStalk- backend-2 for datapirates1

Metadata format

// For a video of 1 second
{
    "_id": "ObjectId",
    "video_id": "video_id",
    "timestamp": "timestamp",
    "metadata": [
        {
            "frame_sec": 0, // 0 seconds
            "persons": [
                {
                    "box": [x,y,w,h],
                    "labels": [], // Length of labels and colors should be same
                    "colors": [_,_] // top 2 colors in the image,
                },
                {
                    "box": [x,y,w,h],
                    "labels": [],
                    "colors": [_,_] // top 2 colors in the image,
                }
            ]
        },
            {
            "frame_sec": 0.5, // 0.5 seconds
            "persons": [
                {
                    "box": [x,y,w,h],
                    "labels": [], // Length of labels and colors should be same
                    "colors": [_,_] // top 2 colors in the image,
                },
                {
                    "box": [x,y,w,h],
                    "labels": [],
                    "colors": [_,_] // top 2 colors in the image,
                }
            ]
        },
            {
            "frame_sec": 1, // 1 second
            "persons": [
                {
                    "box": [x,y,w,h],
                    "labels": [], // Length of labels and colors should be same
                    "colors": [_,_] // top 2 colors in the image,
                },
                {
                    "box": [x,y,w,h],
                    "labels": [],
                    "colors": [_,_] // top 2 colors in the image,
                }
            ]
        }
    ]
}