In this part, you will start building your face recognition and detection system. Moreover, you will have the recognition results set sent to your Dynamo-db table. Let's start the fun!
If you are working on raspberry pi, then you have to install these system packages:
sudo apt-get install libhdf5-dev libhdf5-serial-dev libhdf5-100
sudo apt-get install libqtgui4 libqtwebkit4 libqt4-test python3-pyqt5
sudo apt-get install libatlas-base-dev
sudo apt-get install libjasper-dev
The system needs the "4.1.0" version of Open CV. To do so, you will use "pip" with the following command:
sudo pip install opencv-contrib-python==4.1.0.25
Let us check if pip has add Open CV to our python packages. for this, run the following in your Python shell:
>>> import cv2
>>> cv2.__version__
Dynamodb is non relation database offered by AWS. You will use DynamoDB to send the result's set of the recantation function. This part has three phases, a configuration of you AWS CLI, creation of the DynamoDB table, and set the most-fitting set of permissions to your user.
AWS requires that all incoming requests are cryptographically signed. Thus, we need to give the platform our credentials upon requesting its serves. The following will do the trick.
First install it by running:
sudo apt-get install awscli
After successfully installing it run this command:
aws configure
To fill your credentials, navegate to your AWS's dashboard by clicking here. Then follow the following:
on the second phase you will build your no-SQL table using AWS's dynamoDB service. To make any computational opration with the database, one must have the permission in order to do so. However, we will create the table first.
Before preceding, you must think of an identifier that is unique to your data set. For example, you have three cameras that will return different set of result of the faces that they have picked up. Therefore, your table will have three records, and every will have a "primary key" that is uniquely associated to every camera.
Previously, we have mentioned "user's permissions ". Now we will walk through the of setting up your credentials.