Module Documentation¶
(autogenerated by util_doc.py)
-
Lines: 52
Docstring:
Helper module; provides useful functions for running python code in background or in parallel.
-
Lines: 44
Docstring:
This script renames image files, such that the cell comes first.
-
Lines: 244
Docstring:
Important
Command line interface.
-
Lines: 97
Docstring:
This script is used to filter log file by timestamps
-
Lines: 4
Docstring:
Define the version number of chimcla. Nothing else.
-
Lines: 88
Docstring:
This module is probably obsolete (and not included in the chimcla command line interface (see
cli.py))Convert images to jpg (originally we used .png) and resize width to 1000px.
uses
asyncioto allow for parallel processing → speedup“0f” comes from some internal versioning which enumerated the necessary processing steps
-
Lines: 319
Docstring:
This module contains several preprocessing steps which were distributed over multiple scripts in earlier versions.
Contains class
Stage1Preprocessorwith method pipeline(self, fpath):self.step01_mogrify_1000jpg(iic)
self.step02_empty_slot_detection(iic)
self.step03_cropping(iic)
self.step04_shading_correction(iic)
-
Lines: 722
Docstring:
This Module is a (yet incomplete) rewrite of the historically grown module stage_2a_bar_selection. It should eventually replace it. Currently it is only used in the tests.
-
Lines: 2749
Docstring:
Important
Historically grown and messy module for bar selection (or “separation”)
contains:
class
CavityCarrierImageAnalyzer(“FormenTrägerBildAnalyzer”)class
ExtendedSqliteDict
-
Lines: 146
Docstring:
Command line interface script for functionality from stage_2a_bar_selection.
Main feature: run the time-consuming tasks in parallel (using asyncio_tools)
Not yet included in chimcla.cli
Maybe obsolete?
stage_2c_hist_based_anomaly_detection
Lines: 23
Docstring:
Very short wrapper for
HistEvaluation.find_critical_cells()
stage_3a_hist_based_classification
Lines: 191
Docstring:
This script creates histogram style plots for every unusual cell (without considering the area (=number of affected pixels))
uses
asyncio_toolsto spawn multiple workersnot so important (maybe obsolete?)
stage_3b_hist_area_based_classification
Lines: 207
Docstring:
This script creates histogram style plots for every unusual cell (also considering the area)
uses asyncio_tools to spawn multiple workers
Not yet included in chimcla.cli.py
-
Lines: 248
Docstring:
This program creates copies or symlinks of files to enable simple sorting wrt. one numeric feature (s-value).
Also contains
create_json_data(...)Not yet included in
chimcla.cli.
stage_3d_create_experimental_data
Lines: 488
Docstring:
This file serves for
creating images for Romys Chocolate Experiment (as discussed in Nov. 2023)
creating data (images and numerical) for history evaluation
stage_3e_create_experimental_data_csv
Lines: 227
Docstring:
Script to generate csv data files for Romys Chocolate experiments (late 2024/early 2024)”
-
Lines: 112
Docstring:
Important:
This module contains general utility functions used in other chimcla modules.
ImageInfoContainer
TODO: code from other (util) modules might be ported to here to improve code architecture
-
Lines: 118
Docstring:
Module to prepare and execute the generation of documentation (via sphinx).
used by some
chimcla ...commands.
-
Lines: 164
Docstring:
This Module contains classes and functions for the Lot Preparation step of the processing pipeline.
used by cli.py.
-
Lines: 29
Docstring:
Contains two image short related utility functions.
Currently only used in stage_2a1_bar_selection_new.py.
TODO: merge into util.py?
-
Lines: 59
Docstring:
Helper script to copy images into different class directories based on a hardcoded csv file (e.g. containing the result of manual labeling).
Not yet included in cli.py.
util_step_history_from_logfile
Lines: 712
Docstring:
This script is used to evaluate the logfile to create the step history images.
example call: python step_history_from_logfile.py -l ~/mnt/XAI-DIA-gl/Carsten/logs/classifier-2023-07-10_since_2023-06-26.log
Not yet included in cli.py.