Integration between third party software and XProtect LPR

Hello! How are you?

I want to integrate the monitoring of events/alarms generated by the XProtect LPR functionality and display them in my software. I saw a component called EventViewerLPR in the forum, but I can’t find the documentation for it. Can you show me where I can find this documentation?

Best regards…

João Pedro

I think it must be the Alarm and Event Viewer sample, as it show cases alarms, analytics events, general events and LPR event. The sample have changed name and content if what you found was a very old post.

https://doc.developer.milestonesys.com/html/index.html?base=samples/componentsamples/alarmeventviewer/readme.html&tree=tree_2.html

https://github.com/milestonesys

Thanks for your reply Bo!

I saw a documentation that possible use WebSockets to get events:

Milestone XProtect Events and Status WS API Reference (milestonesys.com)

Did you think that could be a good way to catch LPR Events generated by XProtect LPR?

Because I prefere in this case to catch events by WebScoket besides a component integration.

Att…

João Pedro

I think you should see it for yourself, please explore the samples.

https://doc.developer.milestonesys.com/html/index.html?base=samples/componentsamples/eventandstateviewer/readme.html&tree=tree_2.html

https://doc.developer.milestonesys.com/html/index.html?base=samples/protocolsamples/eventsandstatewebsocketapipython/readme.html&tree=tree_3.html

https://github.com/milestonesys

Sorry, I don’t explain correctly my idea.

I want to know if is it possible to receive LPR Events with WebSocket integration?

Hello,

Appereantely the events from LPR come in WebSocket integration, I needed make a filter to receive it.

lpr_event = “322b1e5f-7ee4-423e-8df4-10e27bfd3036”

This correspondent event are “Unlisted license plate (Match lists)”, this is what I need. Now I need to get the information about the plate and the image of event. I wil try get it in the “data” parameter of event.

One problem that I got, sometimes I try to reconnect to establish the websocket integration, but I receive Internal Server Error (500). When this happen I need to stop the Event Viewer Service of Milestone, to make another connection. Did you know why this happen?

I’m using the example “EventsAndStateWebSocketApiPython” from “mipsdk-samples-protocol”.

Best Regards,

João Pedro

Hello,

I got the Plate Number correctly now, but I yet need the snapshot of LPR Event, could be a URL or a base64 image. What are the possible ways to get that?

If is it possible I want to manage all in the “EventsAndStateWebSocketApiPython” just making some adjusts in the code, but the ideia is continuing using python.

Best Regards,

João Pedro

Hi João,

Thank you for the updates. Snapshot is only available when provided by the LPR engine, which is not always the case. When you cannot get any images on an event, then you need to get the recorded image (if available) using the ImageServer API. That is a possible way to get a image from LPR events.

Hello Rie, how are you?

How can I see if the LPR Engine is generating snapshots? We are using XProtect LPR.

I don’t find an sample about ImageServer API. I only found this reference:

MIP SDK Documentation (milestonesys.com)

You are reffered to that?

Regarding the 1st question, it is not SDK question rather product related. So, I have consulted Milestone Technical Support. They said:

LPR engine does not generate any snapshots, but it detects plates based on provided training that includes snapshots upload.

(The inner details of this process is done by the 3rd party and we cannot look further than that.)

The second question, please explore TCP Video viewer sample, it might be helpful.

https://doc.developer.milestonesys.com/html/index.html?base=samples/protocolsamples/tcpvideoviewer/readme.html&tree=tree_3.html