- Install Pip - sudo apt install python3-pip
- git clone this respository
- create a virtual environment and activate it
- Install all the required dependencies and libraries - pip3 install -r requirements.txt
- Install dlib : $ sudo apt-get install build-essential cmake $ sudo apt-get install libgtk-3-dev $ sudo apt-get install libboost-all-dev
- sudo apt install postgresql
- It is necessary that you execute the commands below and create a user:
- sudo su - postgres
- postgres@ubuntu:~$ psql
- postgres=# create role with password '' createdb login;
- cd CureHone
- configure the inference_graph file path, video-file path and track-length in Config/Main_Config.ini file
- For running Object Detection on images present inside data directory, run : python3 Main_tf2.py
- For running Object Detection & Tracking on the configured video_path/camera path run : python3 Main_tf_video.py
- The database username and password must be set before running the web app.
- cd CureHona_WebApp/CureHona_WebApp
- open the settings.py file and change the username and password in "DATABASES".
- Specify the username and password that was set for the database.
- cd revisions
- createdb code19
- psql -d code19 -f 0001.sql
- cd CureHona_WebApp
- cd PPECompliance/Code/Config and configure the inference_graph path in Main_Config.ini file.
- python3 manage.py makemigrations
- python3 manage.py migrate
- python3 manage.py runserver
After running all the above mentioned commands, you will be able to access the webapp in your browser, Go to the url : http://127.0.0.1:8000 The webapp is created for easy demo purpose of object detector code, where a user can sign-in and upload multiple images to the server, where object detection will be done on them and resultant images with roi drawn will be saved and returned back to the user.



