It is a part of the Image Processing Workshop project. The package loads an operation (function) from a module that implement an image-processing algorthms without additional coding
Anywhere in a file system:
|
|__ /modules/ __ Python scripts that implemented sets of simple image-processing operations
| |
| |__init__.py - the 'modules' package declaration
|
This package:
|__ /operation_loader/ The package files
|
- Run the commands:
cd operation_loader
pip install . --use-feature=in-tree-build
- In a script:
- import operation_loader;
- set system path to all modules that will be used: operation_loader.set_sytem_path(path);
- load a function from a module: f = operation_loader.get(module.func)
- use the loaded fuction in the script without additional coding.
python tester.py -p <path to a directory where a module is located> -f <function name in form module.func>