Filtering images#

Once all the requirements are installed, the application is ready to use. Fingerprint sample is located in res/examples, its name is Palec_P4.tif.

  • You will need to enter the virtual enviroment every time you want to use the application.

$ source .venv/bin/activate
  • The application requires input and output filenames including path from the root project directory, dpi and filter list as shown bellow.

(.venv)$ python3 src/main.py input_file output_file dpi filters

There are two ways to enter the filters:

  1. manually list all filter names and their parameters on the command line:

(.venv)$ python3 src/main.py res/examples/Palec_P4.tif res/examples/Palec_P4_from_cline.png 600 total_variation weight=0.15 median ksize=5
  1. load them from preset in a JSON configuration file, that can be used to tune and modify existing presets, or create new ones:

(.venv)$ python3 src/main.py res/examples/Palec_P4.tif res/examples/Palec_P4_from_preset.png 600 --config conf/conf.json git_example