Skip to content
No description, website, or topics provided.
JavaScript CSS HTML Python
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
face-rec
matic
.DS_Store
.gitignore
LICENSE
README.md

README.md

Face recognition and blockchain wallet for Public Transport

Youtube

https://www.youtube.com/watch?v=PUEF9bM5s2E

Project Description

The idea is to use face recognition and blockchain (especially matic) to have an automated payment systems for public transports. Imagine Tag based tollways for humans without the need for any hardware / physical cards. You can simply walk in, we'll scan the face and deduct the costs from your eth blockchain wallet.

How to Use

  1. Install all dependencies using pipenv install in the face-rec folder
  2. Install all node dependencies in the matic folder using npm install
  3. Start the python web server using python3 app.py inside the face-rec folder
  4. Register a face at localhost:5000/signup
  5. Test the product at localhost:5000/camera-in and then localhost:5000/camera-out

Libraries Used

facial recognition

  1. Dlib face recognition module
  2. openCV
  3. Flask server

Blockchain

  1. Web3.js
  2. maticJS
  3. NodeJS server

User story

Feature: Facial Recognition

  # The first example has two steps
  Scenario: User enters into X metro station
    Then the facial recognition platform looks for the user in database.
    Then An api is called for the transection of blockchain contract to init
    

  # The second example has three steps
  Scenario: User Exits from Y metro station
    Then The facial recognition looks for the user in database
    Then it calculates the fare for the distance travelled 
    Then An api is called for the deduction of fare from the smart contract
hackiiitD
You can’t perform that action at this time.