
- Lens Parameters: how a developer can customize a lens, such as setting the instruction, focus, and temporal parameters
- Lens Data Streams: how a developer gets real-time or pre-recorded data in/out of a lens.
Activity Monitor Lens
Monitors activity of humans or machines via live or pre-recorded video.
Machine State Lens
Estimates the operational state or condition of a machine via physical sensors.
Lens Parameters
Each Lens is defined via a lens config, which defines the key parameters of the lens. Every Lens has a unique lens ID which allows a developer to pass a single reference across the Newton Platform to load, run, and modify specific lenses. A Lens config can be written as a YAML file and passed to the Archetype Platform via the Lens APIs. An example of the Activity Monitor Lens config is shown below:Lens Data Streams
Each Lens supports processing of real-time or pre-recorded sensor data using a set of general input and output data streams. All Lenses support three categories of data streams:- Input Streams: used for streaming sensor data into a lens (e.g. streaming a pre-recorded video into a lens)
- Output Streams: used for streaming results out of a lens (e.g. sending inference results to an app via Server Side Events)
- Control Streams: used for managing a lens session (e.g. starting/stopping/modifying a lens)