Data Aggregator

Analyzes the data aggregator in a video stream. The event listener keeps getting the data in a JSON object as FaceAI keeps analyzing the data aggregator.


To analyze data aggregator in a video stream.

Method: EnxFaceAI.startDataAggregator(callback)


  • callback: Callback to know that the processing request has been accepted.

Event Listener

  • data-aggregator:This event notification is received repeatedly with the Data Aggregator Analysis report as a JSON object.

JSON Object: Received with Data Aggregator Analysis data.

{ output: {
aggregator: Number

Analysis Data Explanation

  • output : Data Aggregator Report
    • aggregator : Aggregated data over time.

Sample Code

// Start Data Aggregator
faceAI.startDataAggregator((res) => {
if (res.result === 0) {
window.addEventListener("data-aggregator", (evt) => {
console.log(evt.detail, "data-aggregator");