Hi,
I want to snapshot of the moment of camera motion detection using the SDK. It can be jpg or base64. I’ll use it to send it to the service. How do I create this in a mip plugin? Is there a code sample you can share?
Thanks.
Hi,
I want to snapshot of the moment of camera motion detection using the SDK. It can be jpg or base64. I’ll use it to send it to the service. How do I create this in a mip plugin? Is there a code sample you can share?
Thanks.
If you explore the Alarm and Event Viewer sample you can see how it is possible for you to subscribe to the events and detect when motion detection events happen.
I have extended the sample with functionality that will on event fetch a picture from the camera. Please explore this sample -
http://download.milestonesys.com/MIPSDK/Samples/AlarmEventPictures.zip
A word of caution; if the setup is that no recording is performed on the camera you might not get an image. The sample does not work on motion detection but I hope you will find it simple to change the functionality of the sample to achieve what you need.
The original sample, and my extended version, are both standalone and not plugins, I have a feeling that this is the better choice. Extraction of video is not supported in Event Server plugins (to avoid scalability issues) and a Smart Client or Management Client plugin with this functionality does not seem practical, I hope you will agree.
@Bo Ellegård Andersen (Milestone Systems) can you please elaborate why in your opinion having this in Smart or Management Client is not practical? If the background Windows services for these two programs are always running, then why can’t Smart Client just extract the video and send it to the external server (over HTTP for example) by itself?
Thanks.
I will take this opportunity to clarify my view..
The Smart Client is the choice for a user to view video from the XProtect VMS. So if you want to capture the motion detection events and the picture on the camera in order to present it to the Smart Client user, then a Smart Client plugin is the way to go.
If the purpose is not to present the data to the user immediately but to communicate the data to another system or something similar I think developing a standalone application or service is the better choice.
My thinking is: Why would you ask a user to use the Smart Client when the purpose is to do something he will not see in the client UI?
The Management Client is designed with the purpose of setting up the system, for monitoring live events or similar I do not think it is the right client.
I hope this makes sense.