Load objects from external package

It is possible to load pipeline step objects from external Python package.

To do so, simply prepend the package module where to find a class into the JSON configuration file. The exemple below shows how to load an external GazeMovementIdentifier:

{
        ...
        "gaze_movement_identifier": {
            "my_package.my_module.my_class": {
                "my_parameter": 0
            }
        }
}

Then, load your package from the Python script where the ArFrame is created.

import argaze

# Import your own package
import my_package

# Load ArFrame
with argaze.load('./configuration.json') as ar_frame:

    # Print gaze movement identifier type
    print(type(ar_frame.gaze_movement_identifier))

This logic would be the same for ScanPathAnalyzer, AOIMatcher, AOIScanPathAnalyzer or GazePositionCalibrator.