Skip to content

A T206 computer vision Flask app built with Python, OpenCV3, HDF5 and Docker

Notifications You must be signed in to change notification settings

jdesilvio/T206-computer-vision

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A computer vision app for T206.io (GitHub repo)

Made with:

Setup

# Import NGINX image during initial setup
docker import - jdesilvio/nginx < nginx/rootfs.tar

# Build
docker-compose build &&
docker-compose up -d &&
docker exec t206cv_app_1 mkdir app/dbdata &&
docker cp ~/Desktop/dbdata/data.h5 t206cv_app_1:app/dbdata/data.h5

# Re-build from scratch
docker-compose stop &&
docker-compose rm -f --all &&
docker-compose pull &&
docker-compose build --no-cache &&
docker-compose up -d --force-recreate --remove-orphans

If errors appear...

And it sounds like a memory issue:

  • Create a swapfile
  • It could be that there is a bunch of junk in your docker-machine. Check the size of a file called disk.vmdk. If it's large and you are ok with deleting all images and containers and starting from scratch, run: docker-machine rm default

Setup without Docker Compose (keeping for reference)

docker build --rm --build-arg ACCESS_KEY='access key' --build-arg SECRET_KEY='secret key' -t t206cv-data .
docker build --rm -t t206cv .
docker run -d -t -v /app/dbdata --name data t206cv-data
docker run -p 80:5000 --volumes-from data --name app t206cv

About

A T206 computer vision Flask app built with Python, OpenCV3, HDF5 and Docker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published