ddd409650db3bc49320375c60e083bdbbe341a71
In here we can put instructions on how to run this / any general info
ubuntu packages:
sudo apt-get install -y mediainfo
pip packages:
* pymediainfo
* PIL (should be there by default)
* ExifRead
* opencv-python
* datetime
* pytz
To run debug version of web server:
FLASK_APP=main FLASK_ENV=development flask run --host=192.168.0.2
to run prod version of web server:
gunicorn --bind="192.168.0.2:5000" --threads=2 --workers=2 main:app
Also have to run the job manager for jobs to work:
python3 pa_job_manager.py
To rebuild DB:
###BE CAREFUL this completely destroys the database contents and starts from
#scratch, when we get real data, we will instead cp a backup file not the
#tables.sql
( cd /srv/docker/config/ ; sudo docker-compose stop padb ; yes | sudo docker-compose rm padb ; sudo rm -rf /srv/docker/container/padb/data/ ; sudo cp /home/ddp/src/photoassistant/tables.sql /srv/docker/container/padb/docker-entrypoint-initdb.d/tables.sql ; sudo docker-compose up padb )
Description
PhotoAssistant - allows me to remove duplicate photos, more easily create folders to store common photos and uses python AI libraries to find faces and allows searching across all
Languages
Python
67.5%
HTML
22.1%
JavaScript
9.3%
Shell
0.7%
Dockerfile
0.4%