Skip to content

Latest commit

 

History

History
45 lines (33 loc) · 2.11 KB

README.md

File metadata and controls

45 lines (33 loc) · 2.11 KB

Augusti Toolset

This is a temporary repository to keep the scripts for the augusti seminar.

Data file

You'll need a current data file with the annotation metadata. You can download it with your augusti.freizo.org login. In the following examples it is assumed that the file is named 'annos.tsv' and resides in the same folder as the following scripts.

fragment_downloader.py

This script allows a user to download images (or any files for that matter) which are listed in a comma separated file. The script allows to define a condition column and value which determines if a line in the csv file gets downloaded. The user can choose to ignore the first line and set an output directory for the downloaded images which will be created if it does not exist. File names are numbered by default but a user can set the filename-column to derive the filename from. Note: Column index starts at 0.

Example: python fragment_downloader.py -i0 data.csv 3

--> Downloads the urls saved in column 3 of the file 'data.csv' starting from the second line.

Example: python fragment_downloader.py --delimiter ; --condition-column 4 --condition-value foo data.csv 3

--> Downloads the urls saved in column 3 of the file 'data.csv' if the column 4 contains the value 'foo'. The file is delimited by semicolons.

Example: python fragment_downloader.py -h

--> Prints a detailed help text.

stacked_bars_textannos.py

This script creates a stacked bargraph (see file 'stacked.html') with the Bokeh library.

Usage: python stacked_bars_textannos.py

Use the downloaded images with Orange

Intro into Orange Image Analytics