oreHGA / babewatch

Laravel Application using Machine Learning to ensure a 👶🏾 is secure

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

“GitHub

👶🏾 BabeWatch

BabeWatch is a Laravel application that uses Machine Learning algorithms to protect a baby. This is done by ensuring that only authorized people are allowed to move the baby from its location.

Tech

BabeWatch uses a number of APIs/Technologies to work properly:

  • PHP - General-purpose scripting language used for web development.
  • Laravel - The PHP Framework For Web Artisans
  • mySQL - Open-source relational database management system
  • Kairos - Facial recognition company. With face analysis algorithms that recognize & understand how people feel in video, photos & the real-world!
  • webcam.js - HTML5 Webcam Image Capture Library with Flash Fallback
  • Google Cloud Storage - Google Cloud Storage is unified object storage for developers and enterprises, from live applications data to cloud archival.
  • Twitter Bootstrap- great UI boilerplate for modern web apps
  • jQuery - Makes it much easier to use JavaScript on your website.

Note: The use of Google Cloud Storage was optional. You could store data on your local machine instead

Development

Want to contribute? Great! Babewatch uses Laravel v5.4+ for development.

Step 1: Clone the repository and change directory into it

$ git clone https://github.com/oreHGA/babewatch.git  && cd babewatch

Step 2: Create your env file

$ cp .env.example .env

Step 3: Generate a key

$ php artisan key:generate

Step 4: Create a database ( remember the values used )

$ mysql -u $username -p $password
mysql> CREATE DATABASE $dbname;
mysql> USE $dbname;

Step 5: Run Migrations

$ php artisan migrate

Step 6: Editing environment variables

Now you need to edit your environment variables in your .env file The following would need to be changed : Note : $database, $username, $password refer to the values you set when you were setting up your databasea earlier

DB_CONNECTION='database connection eg mysql'
DB_HOST='database host eg 127.0.0.1'
DB_PORT='3306'
DB_DATABASE=$database
DB_USERNAME=$username
DB_PASSWORD=$password

Kairos is free for personal use. Head to their website, register and create your application. Once this is done, you will be given app_id and app_key. Use these as the values for the variables below

KAIROS_APP_ID=$app_id
KAIROS_APP_KEY=$app_key
KAIROS_URL=https://api.kairos.com

(optional) Using Google Cloud Storage You will need to do a few things before performing the next step

  • Head to GCS Website
  • Go to the console link
  • Create a new project link, remember the project_id
  • Create a new storage bucket link, remember the bucket_name
  • Create google application credentials link, dowload the credentials - *.json and remember the path to the file
BUCKET_NAME=$bucket_name
GOOGLE_PROJECT_ID=$project_id
GOOGLE_APPLICATION_CREDENTIALS=$path-to-file/'credentials.json'
PUBLIC_GS_BASEURL=https://storage.googleapis.com/

Step 7: Install Dependecies

If you already have Laravel installed then you have composer setup on your development environment. If not go here to setup Laravel. Once that's done, run

$ composer install

And now you should be all set! Verify the deployment by navigating to your server address in your preferred browser.

127.0.0.1:8000

Once you're done, make a pull request and once it's reviewed it would be merged if it passes build.

Todos

  • Show a list of 'added friends' on dashboard
  • Deleting friends from 'added friends' list
  • Using Raspberry PIs cameras to perfom verification and send results to the main server

License

MIT

About

Laravel Application using Machine Learning to ensure a 👶🏾 is secure

License:MIT License


Languages

Language:PHP 86.6%Language:HTML 12.2%Language:Vue 0.6%Language:ApacheConf 0.5%