-
Install packages
pip install flask waitress toml sqlalchemy
-
Put image files in
static/imgs
-
Edit config file
settings.toml
python app.py
Open localhost:5000 in a web browser.
python app.py --settings static/demo/settings.toml
# or below to use sqlite. still buggy
python app.py --settings static/demo/settings_sqlite.toml
Add --open
option to the command to open the web browser.
img_dir = 'imgs' # image containing directory
tag_dir = 'tags' # tag text files containing directory
# tag_dir = 'tags.sqlite3' # sqlite3 database filename
tags = ['Car','Bicycle','Tree','Table','Building','Sign'] # Possible tags
multilabel = true # allow multiple tags for a image
# multilabel = false # only one tag for a image
[server]
host = 'localhost'
port = 5000
threads = 10
Text files with newline-separated tags
Table named records
with the following columns.
key
: Image filenamedata
: comma-separated tags