Jump to content

Metropolis Microservices/RidgeRun Services/Engagement Analytics: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 8: Line 8:
</noinclude>
</noinclude>


RidgeRun's display Microservice is designed to display video and information for people engagement. It shows a mosaic of videos made of a main (BEV) video and secondary camera streams. Additionally it can overlay a heatmap on top of the main video.
RidgeRun's Engagement Analytics Service is in charge of managing people engagement statistics. It reads detection/direction messages from Redis and based on the given configuration it calculates the person engagement and then posts statistics in both Redis and InfluxDB.
 
[[File:display-example.png|600px|center|thumb| Ridgerun's Display Service example]]


The following picture shows a basic diagram of the service
The following picture shows a basic diagram of the service


[[File:MicroservicesArchitecture-Display.png|800px|thumb|center]]
[[File:MicroservicesArchitecture-EngagementAnalytics.png|800px|thumb|center]]


The service can be configured using a configuration file or via REST API.
The service can be configured using a configuration file or via REST API.
Line 23: Line 21:


<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
DISPLAY=:1 xhost +local:docker
docker run -it --rm \
docker run \
-e DISPLAY=:1 \
--runtime nvidia \
-it \
--network host \
--network host \
-v /tmp/argus_socket:/tmp/argus_socket \
--volume <path to directory containing your configuration file>:/configs \
--name display-service \
-e INFLUXDB_TOKEN=<your influx db token> \
ridgerun/display-service:latest
--name engagement-analytics-service \
ridgerun/engagement-analytics-service:latest \
--host 0.0.0.0 \
--config-file /configs/<your configuration file name> \
--retry
</syntaxhighlight>
</syntaxhighlight>


This will run the Display service in localhost using port 5052
This will run the Engagement Analytics service in localhost using port 5053. Make the correct path to your configuration file and the proper configuration file name.
}}
}}


{{message|type=doc
{{message|type=doc
   |content=
   |content=
* [https://ridgerun.github.io/display-service/Service Documentation]
* [https://ridgerun.github.io/engagement-analytics-service/Service Documentation]
* [https://ridgerun.github.io/display-service/api.html Api Documentation]
* [https://ridgerun.github.io/engagement-analytics-service/api.html Api Documentation]
<br>
<br>
See [[Metropolis Microservices/Tools/API Usage|API Usage]] for an example of how to use the API documentation to control the service
See [[Metropolis Microservices/Tools/API Usage|API Usage]] for an example of how to use the API documentation to control the service
Cookies help us deliver our services. By using our services, you agree to our use of cookies.