Face Recognition Door Lock with AWS Rekognition & Raspberry Pi3 it works with RPI3 using the camera module
Python2
Boto3
pip install boto3
Python3
Boto3
pip3 install boto3
Step 1 : Create a AWS S3 Bucket in that bucket create folders with the name of the students and add their images atleat 5-10
Step 4 : Complete the process you will get Accesss Key ID & Secret Access Key Copy both and add it in train.py and main.py
train.py
s3_client = boto3.client(
's3',
aws_access_key_id='',# add the aws access key
aws_secret_access_key=''# add the aws secret access key
)
collectionId='' #collection name
rek_client=boto3.client('rekognition',
aws_access_key_id='',# add the aws access key
aws_secret_access_key='',# add the aws secret access key
region_name='',)# add the region here
recognition.py
rek_client=boto3.client('rekognition',
aws_access_key_id='',# add the aws access key
aws_secret_access_key='',# add the aws secret access key
region_name='ap-south-1',)# add the region here
Both files
bucket = '' #S3 bucket name
recognition.py
directory = '' #folder name on your raspberry pi
First Run Train.py File on RPI
python train.py
Run main.py File on RPI ,connect the booton with GPIO 26
python main.py