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.
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
Want to contribute? Great! Babewatch uses Laravel v5.4+ for development.
$ git clone https://github.com/oreHGA/babewatch.git && cd babewatch
$ cp .env.example .env
$ php artisan key:generate
$ mysql -u $username -p $password
mysql> CREATE DATABASE $dbname;
mysql> USE $dbname;
$ php artisan migrate
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 thepath
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/
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.
- 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
MIT