Git Product home page Git Product logo

exam_face_detection's Introduction

Face Detection During Exam

This project is a Chrome extension frontend with a backend server created using NodeJS with Express, a Flask app using OpenCV to detect faces and objects, an admin dashboard created using React, and MongoDB used as backend.

Chrome Extension Frontend

The Chrome extension frontend is built using HTML, CSS, and JavaScript. There is a manifest.json file that includes a background.js file as the service worker and scriptContent.js file as the script content.

Note

There are some issues with the Chrome extension that may prevent it from working correctly. As an alternative, I have created a simple webpage that can be used to achieve the same functionality. You can access the webpage by following the below steps.

If you still want to try the Chrome extension, please note that it may not work as expected. I am working on resolving the issues and will update the extension as soon as possible.

Due to some technical limitations with the Chrome browser, the service worker and media devices functionality is not working as intended. This may cause the extension to not work properly on some devices or browsers. Therefore, instead of the extension, a simple webpage has been created to showcase the main functionality.

Run the Chrome extension

cd frontend/chrome-extension
python -m http.server 5501

Open Your Web browser and type

http://localhost:5501/

This will load the index.html file in your browser. You can then interact with your HTML, CSS, and JS code as you normally would.

Once you are done, you can stop the server by pressing Ctrl + C in your terminal/command prompt.

There are screenshots of the UI attached for reference.

Admin Dashboard

The admin dashboard is built using React and can be started by running the following command in the terminal:

cd frontend/dashboard
npm intsall
npm start

The UI of the dashboard is intuitive and easy to use. Screenshots of the UI are attached for reference.

Backend Server

The backend server is built using NodeJS and Express. I have used Cloudinary to store images. Cloudinary is a cloud service that provides storage facility. To install the dependencies, run the following command in the terminal:

cd backend
npm install
npm start

A .env file is required to run the server. The file should contain the following credentials:

MONGOURI=mongodb+srv://sample:[email protected]/user
PORT=5000
CLOUD_NAME=Cloud_File
API_KEY=123456789321645
API_SECRET=randomText

Make sure to place the .env file in the backend folder.

Flask App

The Flask app uses OpenCV to detect faces and objects, and there is just one post request. The NodeJS server calls the Flask app.

To get started :

cd flaskBackend
pip install opencv-python
pip install Flask
pip install numpy

Now download the files and save it in the flaskBackend Folder :

  1. coco.names
  2. yolov3.cfg
  3. yolov3.weights

Run the python file :

python app.py

exam_face_detection's People

Contributors

anirbansikder avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.