Coder Social home page Coder Social logo

canokaue / immunolynk Goto Github PK

View Code? Open in Web Editor NEW
18.0 4.0 7.0 203.75 MB

[Lumiata COVID-19 Winner] COVID Immunity testing results registered to the Blockchain for healthcare safety.

Home Page: https://canokaue.github.io/ImmunoLynk/

License: MIT License

Shell 0.08% PowerShell 0.02% Python 99.60% C 0.12% JavaScript 0.08% CSS 0.08% Dockerfile 0.01% HTML 0.01% Xonsh 0.01%
covid-19 immune-testing blockchain ipfs-blockchain infura python3 flask-server http-api trustless healthcare-service

immunolynk's Introduction

ImmunoLynk: COVID19 Immunity Testing Results on the Blockchain

Lumiata COVID-19 Global AI Hackathon Winner!

Covidathon 2nd Place.

This is a simple but effective implementation of a blockchain-based descentralized test results validator.

The project is divided into the sections bellow.

Immuno Lynk backend (server)

Server built on Flask using an HTTP API. All requests are handled then sent to an IPFS Blockchain instance running on AWS EC2. Infura's API was used to connect to a public IPFS node and register the data permanently or temporarily (depends on the PIN variable in server.py).

For production, a private node implementation example is provided in the /private_ipfs_node folder, courtesy of dfile.app.

The endpoins are:

Image upload

Endpoint:

http://ec2-3-15-190-197.us-east-2.compute.amazonaws.com/image

Response:

{
    "Hash": "Qme9vV3FULEMiggF3i3fecvD8JQ5ysiAoZhyuTQDFkViWR",
    "Size": "9940",
    "id": "milos",
    "link": "https://ipfs.infura.io:5001/api/v0/cat?arg=Qme9vV3FULEMiggF3i3fecvD8JQ5ysiAoZhyuTQDFkViWR",
    "timestamp": "2020-04-05 13:16:16.393551",
    "type": "IMG"
}

Data upload

Endpoint:

http://ec2-3-15-190-197.us-east-2.compute.amazonaws.com/json

Response:

{
    "Hash": "Qme9vV3FULEMiggF3i3fecvD8JQ5ysiAoZhyuTQDFkViWR",
    "Size": "9940",
    "id": "milos",
    "is_immune": true,
    "link": "https://ipfs.infura.io:5001/api/v0/cat?arg=Qme9vV3FULEMiggF3i3fecvD8JQ5ysiAoZhyuTQDFkViWR",
    "scan_hash": "6c8whrnwr8w9eb6wb8erw",
    "timestamp": "2020-04-05 13:16:16.393551",
    "type": "IMG",
    "user_name": "Lon"
}

Immuno Lynk frontend (app)

App built using React components through expo.io that reads QR Code, automatically takes a snapshot of the test and send's to backend server.

We also have an analytical dashboard webapp.

Code is available at Excellence Ilesamni's repo.

Result recognition network (Deep Learning Model)

Model built using Keras and OpenCV2 to detect stripes on the image and determine the test results automatically from the uploaded and processes image.

Full code found in Veeresh Shringar's repo.

A very simple legacy implementation done at the MIT Hackathon is located at result_recognition_old/, though it's not used anymore.

Blockchain database alternative

Since images are uploaded in a two-part process (image uploaded as multiform then image data uploaded as raw json), a more cost effective alternative was also tested using BigchainDB to store the metadata.

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.