Giter VIP home page Giter VIP logo

ai-smart-mirror's Introduction

AI-Smart-Mirror

Smart Mirror with a smart AI ๐Ÿค–

Watch the video on how to make it here: https://youtu.be/ejnE6DM-hqU

Setup Guide

Magic Mirror

Download the stable version of Node.js: https://nodejs.org/en/

Clone the latest MagicMirror code from: https://github.com/MichMich/MagicMirror

Navigate inside the MagicMirror folder

cd MagicMirror

Install MagicMirror dependencies

sudo npm install

Verify it starts

npm start

Navigate out of the MagicMirror folder

cd ..

Clone this repository (AI Smart Mirror)

git clone [email protected]:HackerHouseYT/AI-Smart-Mirror.git

Copy the folders in AI-Smart-Mirror/magic_mirror to MagicMirror/modules

Copy the config.js file in AI-Smart-Mirror/magic_mirror to MagicMirror/config

AI

Make sure Ruby is installed: https://www.ruby-lang.org/en/documentation/installation/

Install Homebrew: http://brew.sh/

Navigate to the AI-Smart-Mirror folder

cd AI-Smart-Mirror

Install ffmpeg

brew install ffmpeg

Use setup.sh to create a virtual environment and install dependencies

sudo ./setup.sh

Activate the virual evironment

source hhsmartmirror/bin/activate

Replace wit.ai and darksky.net tokens in the bot.py file

Make sure MagicMirror is running, then start the AI

python bot.py

Setup Facial Recognition

Refer to this guide: https://www.learnopencv.com/install-opencv-3-on-yosemite-osx-10-10-x/

Install openCV with

brew tap homebrew/science
brew install opencv

Open a new terminal tab with command+t

Check the version with

cd /usr/local/Cellar/opencv
ls

Return to the tab with AI-Smart-Mirror

Deactivate the virtual environment

deactivate

Navigate to the site-packages folder in the virtual environment

cd hhsmartmirror/lib/python2.7/site-packages

Link the cv.py and cv2.so files and replace $VERSION with the version you found

ln -s /usr/local/Cellar/opencv/$VERSION/lib/python2.7/site-packages/cv.py cv.py
ln -s /usr/local/Cellar/opencv/$VERSION/lib/python2.7/site-packages/cv2.so cv2.s

Check that the files are there

ls

Return the the AI-Smart-Mirror directory

cd ../../../..

Reactivate the virtual evironment

source hhsmartmirror/bin/activate

Start the app

python bot.py

ai-smart-mirror's People

Contributors

atainter avatar

Watchers

 avatar  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.