Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for the Remaining Data Types #1

Open
aslakjohansen opened this issue Feb 7, 2018 · 1 comment
Open

Support for the Remaining Data Types #1

aslakjohansen opened this issue Feb 7, 2018 · 1 comment

Comments

@aslakjohansen
Copy link
Contributor

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
Copy link
Collaborator

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
]
]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants