Skip to content

Latest commit

 

History

History
41 lines (30 loc) · 1.14 KB

README.md

File metadata and controls

41 lines (30 loc) · 1.14 KB

Image Processing Workshop Operation Loader

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

File system structure

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
|

Local Installation

  • Run the commands:
cd operation_loader
pip install . --use-feature=in-tree-build

Usage

- 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.

Run test

python tester.py -p <path to a directory where a module is located> -f <function name in form module.func>