Hive's People Counting API determines the number of different people visible within an image or video. The model classifies each input image or video using six different categories, with each category corresponding to the number of unique people present in that input. It returns one classification per frame (an image input is treated as a video with one frame).
The model's six classes are as follows:
0
(no people are present in the frame)1
(one person is present in the frame)2
(two people are present in the frame)3
(three people are present in the frame)4
(four people are present in the frame)5+
(five or more people are present in the frame)
{
"output":[
{
"time":0,
"num_people":3,
"media_link":"https://website.com/media-file.mp4",
"subtask_no":1
},
{
"time":0.9676333333333333,
"num_people":3,
"media_link":"https://website.com/media-file.mp4",
"subtask_no":2
},
{
"time":1.9686333333333335,
"num_people":3,
"media_link":"https://website.com/media-file.mp4",
"subtask_no":3
},
{
"time":2.9696333333333333,
"num_people":3,
"media_link":"https://website.com/media-file.mp4",
"subtask_no":4
},
{
"time":3.9706333333333332,
"num_people":4,
"media_link":"https://website.com/media-file.mp4",
"subtask_no":5
},
{
"time":4.971633333333333,
"num_people":1,
"media_link":"https://website.com/media-file.mp4",
"subtask_no":6
},
{
"time":5.9726333333333335,
"num_people":1,
"media_link":"https://website.com/media-file.mp4",
"subtask_no":7
},
{
"time":6.973633333333334,
"num_people":1,
"media_link":"https://website.com/media-file.mp4",
"subtask_no":8
},
{
"time":7.974633333333333,
"num_people":3,
"media_link":"https://website.com/media-file.mp4",
"subtask_no":9
},
{
"time":8.975633333333333,
"num_people":3,
"media_link":"https://website.com/media-file.mp4",
"subtask_no":10
},
{
"time":9.976633333333334,
"num_people":3,
"media_link":"https://website.com/media-file.mp4",
"subtask_no":11
},
{
"time":10.977633333333333,
"num_people":3,
"media_link":"https://website.com/media-file.mp4",
"subtask_no":12
},
{
"time":11.978633333333333,
"num_people":3,
"media_link":"https://website.com/media-file.mp4",
"subtask_no":13
},
{
"time":12.979633333333334,
"num_people":3,
"media_link":"https://website.com/media-file.mp4",
"subtask_no":14
},
{
"time":13.980633333333333,
"num_people":3,
"media_link":"https://website.com/media-file.mp4",
"subtask_no":15
},
{
"time":14.981633333333333,
"num_people":2,
"media_link":"https://website.com/media-file.mp4",
"subtask_no":16
}
]
}