Giter Club home page Giter Club logo

babewatch's Introduction

“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

babewatch's People

Contributors

orehga avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.