Front End Design
Usage:
- Run back-end inference
- Start front-end server
$ python3 front_end/image_upload/manage.py runserver
- Address for upload image: Image Upload
http://127.0.0.1:8000/image_app/image_upload
After successfully upload, it will redirect to another page to show information.
Address for display images: People Image
http://127.0.0.1:8000/image_app/people_images
ps: For remove all images,
$ cd front_end/image_upload/media/images
$ rm *
Then we need to rebuild the local database
$ rm front_end/image_upload/db.sqlite3
$ python3 front_end/image_upload/manage.py makemigrations
$ python3 front_end/image_upload/manage.py migrate
Comments
finished. But terrifying
TODO
- User manual needed
- Delete useless lines
- Store and display image locally
- Retrieve image from response
- Fixing bugs at back-end, re-test
- Transfer local data into Database
- Call API functions