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.
Method
To analyze data aggregator in a video stream.
Method: EnxFaceAI.startDataAggregator(callback)
Parameter
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 Reportaggregator
: Aggregated data over time.
Sample Code
// Start Data AggregatorfaceAI.startDataAggregator((res) => {if (res.result === 0) {window.addEventListener("data-aggregator", (evt) => {console.log(evt.detail, "data-aggregator");});}});