imucal.calibration_gui.CalibrationGui#
- class imucal.calibration_gui.CalibrationGui(acc: ndarray, gyro: ndarray, expected_labels: Sequence[str], title: str | None = None, master: Frame | None = None, initial_figsize=(20, 10))[source]#
A Gui that can be used to label the different required sections of a calibration.
For details see the
manualstring.- Attributes:
- acc_list_markers
- expected_labels
- gyro_list_markers
- section_list
Notes
If the toolbar is not visible at the bottom of the GUI, try reducing the
initial_figsizeparameter, when creating the GUI.Examples
>>> # This will launch the GUI and block execution until closed >>> gui = CalibrationGui(acc, gyro, ["label1", "label2"]) >>> # While the GUI is open the sections are labeled. Once closed the next line is executed >>> labels = gui.section_list >>> labels["label1"] # First value is start, second value is end of region (12, 355) >>> labels["label2"] # First value is start, second value is end of region (500, 758)
- __init__(acc: ndarray, gyro: ndarray, expected_labels: Sequence[str], title: str | None = None, master: Frame | None = None, initial_figsize=(20, 10)) None[source]#
Launch new GUI instance.
- Parameters:
- acc
3D array containing all acceleration data
- gyro
3D array containing all gyroscope data
- expected_labels
List of all label names that should be labeled
- title
Title displayed in the titlebar of the GUI
- master
Parent window if GUI should be embedded in larger application