31-05-2021


                                  MODULE-3 

DATABASE

This Week we Established Database .We use FireBase which is a NOSQL Database .

We Used FireBase Because :

  • It provides User Authentication.
  • Provides Real-Time Cloud Storage.
  • Provides Flexible API for easy end developer Implementation.

Configuration of Database :

Once we create firebase , we get the credentials to acces the firebase features,without which we cannot work on it . The credential  is a json file which will be verified using certificate. All these are implemented using a python library provided by firebase called firebase_admin.
Below is the Code for Intializing Firebase.


User Authentication:

Every Enterprise using the product will be given a login credential. 
They can be authenticated from other accounts provided by google or other recognized organisations.
Therefore it is a fairly simple process for authentication. 
Below is an example.





Cloud Storage:

FireBase Provides Free Cloud Storage Where we can store our Data like Face encodings and Employee Details Securely.
Data can be Structured Easily with Collections and Documents. A Collection can contain Multiple documents and a Document can contain multiple Fields . Therefore It provides a proper hierarchy for storing related Data and Helps easily retrieve Data using Expressive Queries. 
An example of Data Heirarchy is shown Below.




Code Snippet:


The Above Code queries Image Data from Data Storage and converts them into numpy format.
The extracted Data is sent to the program for computations or recognition.

Comments

Popular posts from this blog

04-07-0021

Weekly Update: 10-05-2021