sdu-cfei / xovis-driver

Driver for getting data from Xovis camera counters
BSD 2-Clause "Simplified" License
6 stars 0 forks source link

Support for the Remaining Data Types #1

Open aslakjohansen opened 6 years ago

aslakjohansen commented 6 years ago

The xovis cameras offers to push the following metrics:

  1. Line count data
  2. Zone occupancy
  3. Zone dwell time
  4. Zone dwell histogram
  5. Sensor status
  6. Validation recording

At the moment only 1. "Line count data" is supported, but there seems to be more to extract.

This should be implemented through a plugin system similar to that which is used for storage engines.

emilkolvigraun commented 6 years ago

Xovis cameras follow the same structure in all its data formats. The xovis driver follows the general structure to extract the information. [content -> elements -> element -> measurement] The solution for recognizing the different datatypes has been conducted with categorization; "Zone Dwell Time", "Line Count Data" and "Zone occupancy" now pushes data to a specific path, which setting is passed on with the json dumps.

{ "HandlerData": "Line Count Data", "ZoneModel:X:X:Name1": { "camera_metadata": { "data-type": "LINE", "element-id": 1, "element-name": "ZoneModel:X:X:Name1", "resolution": "ONE_MINUTE", "sensor-type": "SINGLE_SENSOR" }, "readings": [ [ 2435177830.0, 3 ] ] }