https://github.com/nemanjarogic/face-recognition
Face Recognition is web application which you can use to recognize multiple faces for specified photo. Application is developed using React, Redux, Node, Express as well as a PostgreSQL database.
https://github.com/nemanjarogic/face-recognition
express nodejs postgresql react redux
Last synced: 2 months ago
JSON representation
Face Recognition is web application which you can use to recognize multiple faces for specified photo. Application is developed using React, Redux, Node, Express as well as a PostgreSQL database.
- Host: GitHub
- URL: https://github.com/nemanjarogic/face-recognition
- Owner: nemanjarogic
- Created: 2019-10-12T15:03:32.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-11T01:52:13.000Z (over 2 years ago)
- Last Synced: 2024-12-27T17:33:07.903Z (4 months ago)
- Topics: express, nodejs, postgresql, react, redux
- Language: JavaScript
- Homepage:
- Size: 2.47 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Face Recognition
Face Recognition is web application which you can use to recognize multiple faces for specified photo. Application is developed using React, Redux, Node, Express as well as a PostgreSQL database.
## Features
- Sign up and login (supported validation, JWT and password hashing)
- Detect multiple faces in submitted photo
- Keep track for number of submitted photo and number of recognized faces for every user
- Save and reuse recognized faces from user profile
- Custom URL shortener for saved recognitions
## How to run
Make sure that Node.js and NPM are installed
**Prerequisite**
1. Create face-recognition [PostgreSQL](https://www.postgresql.org/) database
2. Initialize tables in database using scripts in server/db/scripts folder
3. Download [nginx](https://nginx.org/) to map short URL to original URL
4. Open yor `nginx.config` file from nginx/config and add bolded lines
server {
listen 80;
server_name localhost;
location ~* "^/[0-9a-z@]{5,15}$" {
rewrite ^/(.*)$ http://localhost:3001/redirect-original-photo/$1 redirect;
}
}
5. Start nginx
6. Register to [Clarafai](https://www.clarifai.com/) to obtain API key for face recognition
7. Add `.env` file in /server and update configuration
PORT=3001
DB_USER=postgresql_user
DB_PASSWORD=postgresql_password
DB_NAME=postgresql_db_name
CLARIFAI_API_KEY=clarafai_api_key_from_step_5
BASE_SHORT_URL=http://localhost/
JWT_SECRET_KEY=jwt_secret_key
**Run**
1. Install the dependencies using `npm install`
2. Run `npm start`