• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

josebetomex/FaceRecognition_Ethereum_protocol: Face Recognition Protocol, PoC, S ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

josebetomex/FaceRecognition_Ethereum_protocol

开源软件地址:

https://github.com/josebetomex/FaceRecognition_Ethereum_protocol

开源编程语言:

Jupyter Notebook 92.2%

开源软件介绍:

USE_IPFS_TO_STORE_BIOMETRIC_HASH

Face Re-Identification Protocol on Ethereum Blockchain

Blockchain Biometric match platform
Generate a BioHash and store on-chain to perform a Face Recognition, using
Smart Contracts & Machine Learning Models.

Solidity, Web3, IPFS & TensorFlow & Keras for Face Recognition protocol.

Requirements for ML Models

Python 3.6

Keras six>=1.9.0

TensorFlow > 1

numpy >=1.9.1

scipy >=0.14

h5py

pillow

pyyaml

matplotlib

Requirements for IPFS

You must need a IPFS Server running on the local Enviroment

How to install IPFS?

https://docs.ipfs.io/introduction/install/

Host 127.0.0.1 (Your Host IP)

Port 5001 (Your Port)

Requirements for SmartContract Example

Solidity 0.4.16

NodeJS > 6.0

Web3JS

How to train the Model?

Call BioHash.py from Miner Node

Method train_model()

Method train(pathDir="Folder path of the biometric data set)

Inside pathDir, will be storage all the Biometric dataset for the classifier.

Example structure:

pathDir/train/biohash{1 ... N}/picture{1 ... N}.jpg

pathDir/validation/biohash{1 ... N}/picture{1 ... N}.jpg

*** Pre-Trained Weights ***

model/vggface_tf_resnet50.h5

How to compare 2 Bio-Hashes ? V1 (Face Only)

Call BioHash.py from Miner Node

Method compare_biohash( hash1, hash2)

where hash1 & hash2 are the biohashes to compare

How to compare 2 Bio-Hashes ? V2 (Fingerprint & Face) "Comming Soon ..."

Method compare_biohash_multimodal( hash1, hash2)

where hash1 & hash2 are the biohashes to compare

Smart Contract Example

BioHashComparation.sol

Solidity implementation, How to call the Smart Contract to request a comparison using the BioHash

function validateHash(bytes32 _biohashOriginal, bytes32 _biohashToCompare)

Request a comparation on the Blockchainm,
The smart contract write OnChain the Request

updateBioHashComparationResult(bytes32 _biohashOriginal, bytes32 _biohashToCompare, bool isMatch)

The Miner update the result of the bio match on the Blockchain,
the smart contract write OnChain the result.

WEB3 JS Example, Call to the SmartContract using Web3JS

SmartContractAPI.js

Web3 example in how to request a call to the smart contract




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap