We have our cameras feed into Milestone XProtect Management Client We want to be able to use the SDK and see if there is a way to count the number of people or objects who are in the camera range in any of the image feeds

Please get live feed as Jpeg using Jpeglivesource and please explore the sample medialiveviewer .

https://doc.developer.milestonesys.com/html/index.html?base=samples/medialiveviewer.html&tree=tree_search.html?search=medialiveviewer

Thank you for your reply. I am trying to capture events and I would like to know how we can count people with the help of these events. I would appreciate your guidance.

What are the events?

Please explain if you have developed an integration to count people. Please explain what you expect to see.

Maybe you could describe the business case and your equipment in more detail.

Our goal is to determine the number of people or objects who are in the camera field of vision at any point of time. For example, if we place the camera in a corridor, I would like to get the total number of people who are there in the corridor at any point of time. At this point, what we are able to do is to capture the motion events from a camera. Every time there is some movement in the camera we get an event. However we would like to take it one step forward and identify the number of distinct objects / people at any point of time. We have access to the Milestone VMS and SDK, however we are not sure how to be able to do a count of number of people or objects.

To determine the number of people in the field of vision of a camera you would have to have some video analytics.

Milestone XProtect (as the off the shelve product) has only motion detection, no other more advanced video analytics is built-in.

There are Milestone partners that can deliver on video analytics, you can see some of the integrations on Milestone marketplace https://www.milestonesys.com/community/marketplace/start-exploring/

If you want to develop your own video analytics integration you can do so with the help of the MIP SDK. The MIP SDK contains good methods for retrieving the video images for analysis. The first answer you got is outlining a way to do this. The MIP SDK does not contain actual video analytics code examples, you might be able to find resources for this in other forums.