Version: 1.7.0

VayAnalyser

The VayAnalyser provides all the functionalities to communicate with our service. Create a VayAnalyser to configure a movement analysis session. When doing so, an event based VayListener can be passed. It is also possible to add a VayListener after creating the VayAnalyser by using the register method.

Analyse Images

To analyse an image with our movement analysis service, the PNG or JPEG encoded image is converted into an VayAnalyserInput. The AnalyserFactory provides a method createInput to create this required input format. For movement analysis, submit the VayAnalyserInput by calling the enqueue method. The method controls the rate of analysis of the images allowing the user to enqueue recorded images immediately. The AnalyserFactory further offers an option to attach the image capture time (timestamp) to each input. This will lead to a more accurate movement analysis and allows specific applications such as analysing a recorded video. We strongly recommend to set this parameter.

Please note that it is not guaranteed that every enqueued image will be analysed. The VayAnalyser internally optimises the frame rate for optimal latency and motion analysis.

Stop Analysis

Stop the analyser by calling the method stop. This method halts the enqueueing of images to be analysed.

Analyser Properties

Once the connection is established and onReady is called, the analyser contains information about the exercise (VayExercise) and session (VaySessionInformation). Check the Swiftdoc reference for more detailed information. Furthermore, we cache the last received pose for you, which you can access with VayAnalyser.lastPose.

results matching ""

    No results matching ""