If you still didn't buy camera, rather go for real people counting camera. for example DS-2CD6825G0/C-IS
But if you already have series 7 camera which can count but its counting error margin is higher, can store data to its SD card, and you can fetch data using ISAPI POST requests and parse as you want it in any code you want it on any front you want.
Usually for real people counting camera it looks like this:
url we send POST to:
ip

ort/ISAPI/System/Video/inputs/channels/1/counting/search
xml body for DAILY(you get hourly intervals): / you can also ask for weekly/monthly/yearly
<?xml version: "1.0" encoding="UTF-8"?>
<CountingStatisticsDescription>
<reportType>daily</reportType>
<timeSpanList>
<timeSpan>
<startTime>2024-01-08T00:00:00</startTime>
<endTime>2024-01-08T23:59:59</endTime>
</timeSpan>
</timeSpanList>
<MinTimeInterval>day</MinTimeInterval>
<child>false</child>
</CountingStatisticsDescription>
Response is something like this for daily:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<CountingStatisticsResult version="2.0" xmlns="http://www.hikvision.com/ver20/XMLSchema">
<responseStatus>OK</responseStatus>
<responseStatusStrg>OK</responseStatusStrg>
<matchList>
<matchElement>
<timeSpan>
<startTime>2024-01-08T00:00:00</startTime>
<endTime>2024-01-08T00:59:59</endTime>
</timeSpan>
<enterCount>0</enterCount>
<exitCount>0</exitCount>
</matchElement>
<matchElement>
<timeSpan>
<startTime>2024-01-08T01:00:00</startTime>
<endTime>2024-01-08T01:59:59</endTime>
</timeSpan>
<enterCount>0</enterCount>
<exitCount>0</exitCount>
</matchElement>
<matchElement>
<timeSpan>
<startTime>2024-01-08T02:00:00</startTime>
<endTime>2024-01-08T02:59:59</endTime>
</timeSpan>
<enterCount>0</enterCount>
<exitCount>0</exitCount>
</matchElement>
<matchElement>
<timeSpan>
<startTime>2024-01-08T03:00:00</startTime>
<endTime>2024-01-08T03:59:59</endTime>
</timeSpan>
<enterCount>0</enterCount>
<exitCount>0</exitCount>
</matchElement>
<matchElement>
<timeSpan>
<startTime>2024-01-08T04:00:00</startTime>
<endTime>2024-01-08T04:59:59</endTime>
</timeSpan>
<enterCount>0</enterCount>
<exitCount>0</exitCount>
</matchElement>
<matchElement>
<timeSpan>
<startTime>2024-01-08T05:00:00</startTime>
<endTime>2024-01-08T05:59:59</endTime>
</timeSpan>
<enterCount>0</enterCount>
<exitCount>0</exitCount>
</matchElement>
<matchElement>
<timeSpan>
<startTime>2024-01-08T06:00:00</startTime>
<endTime>2024-01-08T06:59:59</endTime>
</timeSpan>
<enterCount>4</enterCount>
<exitCount>3</exitCount>
</matchElement>
<matchElement>
<timeSpan>
<startTime>2024-01-08T07:00:00</startTime>
<endTime>2024-01-08T07:59:59</endTime>
</timeSpan>
<enterCount>16</enterCount>
<exitCount>0</exitCount>
</matchElement>
<matchElement>
<timeSpan>
<startTime>2024-01-08T08:00:00</startTime>
<endTime>2024-01-08T08:59:59</endTime>
</timeSpan>
<enterCount>4</enterCount>
<exitCount>3</exitCount>
</matchElement>
<matchElement>
<timeSpan>
<startTime>2024-01-08T09:00:00</startTime>
<endTime>2024-01-08T09:59:59</endTime>
</timeSpan>
<enterCount>1</enterCount>
<exitCount>1</exitCount>
</matchElement>
<matchElement>
<timeSpan>
<startTime>2024-01-08T10:00:00</startTime>
<endTime>2024-01-08T10:59:59</endTime>
</timeSpan>
<enterCount>2</enterCount>
<exitCount>1</exitCount>
</matchElement>
<matchElement>
<timeSpan>
<startTime>2024-01-08T11:00:00</startTime>
<endTime>2024-01-08T11:59:59</endTime>
</timeSpan>
<enterCount>4</enterCount>
<exitCount>4</exitCount>
</matchElement>
<matchElement>
<timeSpan>
<startTime>2024-01-08T12:00:00</startTime>
<endTime>2024-01-08T12:59:59</endTime>
</timeSpan>
<enterCount>1</enterCount>
<exitCount>1</exitCount>
</matchElement>
<matchElement>
<timeSpan>
<startTime>2024-01-08T13:00:00</startTime>
<endTime>2024-01-08T13:59:59</endTime>
</timeSpan>
<enterCount>1</enterCount>
<exitCount>1</exitCount>
</matchElement>
<matchElement>
<timeSpan>
<startTime>2024-01-08T14:00:00</startTime>
<endTime>2024-01-08T14:59:59</endTime>
</timeSpan>
<enterCount>2</enterCount>
<exitCount>3</exitCount>
</matchElement>
<matchElement>
<timeSpan>
<startTime>2024-01-08T15:00:00</startTime>
<endTime>2024-01-08T15:59:59</endTime>
</timeSpan>
<enterCount>0</enterCount>
<exitCount>0</exitCount>
</matchElement>
<matchElement>
<timeSpan>
<startTime>2024-01-08T16:00:00</startTime>
<endTime>2024-01-08T16:59:59</endTime>
</timeSpan>
<enterCount>0</enterCount>
<exitCount>13</exitCount>
</matchElement>
<matchElement>
<timeSpan>
<startTime>2024-01-08T17:00:00</startTime>
<endTime>2024-01-08T17:59:59</endTime>
</timeSpan>
<enterCount>0</enterCount>
<exitCount>1</exitCount>
</matchElement>
<matchElement>
<timeSpan>
<startTime>2024-01-08T18:00:00</startTime>
<endTime>2024-01-08T18:59:59</endTime>
</timeSpan>
<enterCount>0</enterCount>
<exitCount>0</exitCount>
</matchElement>
<matchElement>
<timeSpan>
<startTime>2024-01-08T19:00:00</startTime>
<endTime>2024-01-08T19:59:59</endTime>
</timeSpan>
<enterCount>0</enterCount>
<exitCount>0</exitCount>
</matchElement>
<matchElement>
<timeSpan>
<startTime>2024-01-08T20:00:00</startTime>
<endTime>2024-01-08T20:59:59</endTime>
</timeSpan>
<enterCount>0</enterCount>
<exitCount>0</exitCount>
</matchElement>
<matchElement>
<timeSpan>
<startTime>2024-01-08T21:00:00</startTime>
<endTime>2024-01-08T21:59:59</endTime>
</timeSpan>
<enterCount>0</enterCount>
<exitCount>0</exitCount>
</matchElement>
<matchElement>
<timeSpan>
<startTime>2024-01-08T22:00:00</startTime>
<endTime>2024-01-08T22:59:59</endTime>
</timeSpan>
<enterCount>0</enterCount>
<exitCount>0</exitCount>
</matchElement>
<matchElement>
<timeSpan>
<startTime>2024-01-08T23:00:00</startTime>
<endTime>2024-01-08T23:59:59</endTime>
</timeSpan>
<enterCount>0</enterCount>
<exitCount>0</exitCount>
</matchElement>
</matchList>
</CountingStatisticsResult>
If you have any specific questions regarding how you would like to use it i might provide better answer.