Skip to content

Latest commit

 

History

History
33 lines (27 loc) · 1.95 KB

File metadata and controls

33 lines (27 loc) · 1.95 KB

LiteCCTV API

LiteCCTV API is Web API to help LiteCCTV Android Application features. This Web API will receive an image from LiteCCTV Android Application and will do analysis to get Face Images from the image. After that, this Web API will predict emotion of the Face Images.

Installation (Ubuntu 20.04)

  1. Update dependencies by using apt get update.
  2. Install virtual environment by pip3 install virtualenv
  3. Clone this repository by typing command git clone [git url].
  4. Set working directory to it.
  5. Create new virtual environment called env virtualenv env.
  6. Activate the virtual environment . env/bin/activate.
  7. Install python pip by using apt install python3-pip.
  8. Install django rest framework, OpenCV, Tensorflow 2 by using pip install djangorestframework opencv-python tensorflow.
  9. Run py manage.py runserver [server ip]

Library Used

  1. OpenCV for Face Recognition
  2. Tensorflow 2 for Emotional Prediction
  3. Django for Web Framework
  4. Django Rest Framework for Web API

Emotional Prediction Model

Model that this application use to predict emotion from face image is taken from Karan Sethi's Work

References

  1. Django Rest Framework Official Website
  2. Face Detection using OpenCV Python
  3. Tensorflow 2 Installation Manual
  4. Python 3.8
  5. Django Serializers Documentation