An Elephant Identification and Counting System.
Elphas is currently used to count the number of elephants in an image or to classify an image based on the appearence of an elephant. Project was designed to facilitate the census of elephants in Sri Lanka.
To activate front-end, inside front-end execute
npm install
after the node modules are downloaded, execute
npm start
In the back-end you would find requirements.txt which includes all the required modules. To install those, in the back-end run
pip install -r requirements.txt
An Anaconda environment is preferred.
For Windows, as the server is written in app.py, run
set FLASK_APP=app.py
flask run
to start the server.
For linux or mac run
export FLASK_APP=app.py
flask run
to start the server.
At the moment, classsification of the images won't work as the weight files of the model are not present beacuse of their file size, and also the the dataset used to train the inception model is not available, you would find an empty directory inside retraining dir in back-end, if not make a directory 'dataset' inside retrain directory.
To get the classification working you'd need to run retrain.py script to retrain the model. To retrain the model, add two sub directories 'elephant' and 'non-elephant' inside dataset directory and your images which falls under the respective class, then run retrain.py script.