CLI Documentation
General Usage
To use the LEDSA CLI, the general structure is as follows:
python -m ledsa [ARGUMENT] [OPTIONS]
Arguments
Data Extraction
Argument |
Description |
Options |
|---|---|---|
|
Create the data extraction configuration file. |
– |
|
Step 1: Analyze a reference image to find the LEDs and create a labeled plot with the search areas. |
– |
|
Step 2: Match the LEDs to the arrays according to the line edge indices in the config file. |
– |
|
Step 3: Analyse all images to extract pixel values inside the search areas and fit them to an LED model (SLOW!). |
|
|
Step 3: Analyse all images to extract pixel values and calculate the accumulated values inside the search areas (FAST!). |
Channel flags as for |
|
Restart step 3 if it was previously interrupted. Only the images that lack the result file of one of the selected channels are analysed, in all of these channels. The restart resumes in the mode of the interrupted run, with the LED fits after |
The channel flags of the interrupted run, as for |
Analysis
Argument |
Description |
Options |
|---|---|---|
|
Creates the analysis configuration file. |
– |
|
Computes the extinction coefficients of every quantity |
– |
|
Applies the color correction matrix before calculating the extinction coefficients. Use only if the reference property is not already color corrected. |
– |
|
Specifies the channels to which color correction gets applied. |
Can extend the list of channels, Multiple values allowed. |
Warning
Color Correction is in a test state and has not yet been sufficiently evaluated. The application may lead to incorrect results.
Stacked Multi-Camera Analysis
Argument |
Description |
Options |
|---|---|---|
|
Create a template |
|
|
Number of |
Default: 2 |
|
Run the stacked multi-camera extinction coefficient calculation using |
– |
Coordinates
Argument |
Description |
Options |
|---|---|---|
|
Calculate the 3D coordinates of the LEDs based on the calculated pixel positions and the physical edge coordinates of the LED arrays. |
– |
Testing
Argument |
Description |
Options |
|---|---|---|
|
Run the acceptance test suite. |
– |
|
Run the acceptance test suite in debug mode. |
– |
Demo
Argument |
Description |
Options |
|---|---|---|
|
Flag to indicate that the LEDSA demo should be run. |
Must be used with |
|
Create the directories |
|
|
Run the demo set up in the current working directory. Without a |
|
|
Number of cores the demo runs on. Only used together with |
Default: 1 |