A smart mirror is basically a mirror with a screen behind it. That screen can be an Android tablet or a computer monitor. The mirror is a two way glass which is partially reflective and partially transparent.When one side of the mirror is brightly lit and the other is dark, it allows viewing from the darkened side and the people on the bright end side see their own reflection. It can be powered by many devices such as a raspberry pi, your own unused laptop etc.It reduces the wastage of time where people getting ready for their office or for some other occasion who spent large time in front of mirror can do fruitful work such as getting to know today stocks prices, what kind of weather is going to be today, and Headlines of various kinds of news from different sources.
- Face Recognition based User Login
- Voice commands to control user interface and the information to be displayed
- Information like
- Weather at your location.
- Current time and date
- User's stock details
- Users's events
- News Headlines
- Business News, Technology News, World News, Sports News
- Calender
- Map of your current location
- Quotes
- Customised User Experience by providing information about things like Stocks that the user like to see everyday, what are his events today.
- Every User First Registers himself with register.py application where he would provide his username, password, firstname , lastname, dob and email. then a new user is created if username exist.
- After new user is created face dataset of user is generated and face identification model is built using microsoft face APIs
- user could provide details of the various stocks that he would like to view on a daily basis in add stocks tab.
- user could enter the events that would displayed on that particular day in add events tab.
- smartmirror application can be started by runnig smartmirror.py. on starting it would try to identify the user who is currently using the mirror by using a webcam placed at the top of the mirror.
- Then that person would be logged in and would display his list of stocks and events today along with their time.
- User can give voice commands for different information to be displayed at the bottom of the screen such as Sports news, Tech News etc as mentioned in the features.
- A quote would be displayed at the bottom along with weather at top left so that there is space provided in the middle which would help the person to see his reflection on the mirror along with the text.
Currently the project is in Python2.7 but you can use Python3 as per your choice. Install required python packages accordingly.
- opencv2
- cloudinary
- pyaudio2
- PyQt4
- feedparser
- MySQLdb
- speech_recognition
- googlefinance
git clone https://github.com/aishmittal/Smart-Mirror.git
After cloning add following folders in root
- dataset
- tmp
- Microsoft Cognitive Service
- Bing Speech Recognition
- Cloudinary
- Google Map
- An old unused laptop. A raspberry pi is better alternative for its short size, but its computing power is comparatively lesser as compared to a multicore processor which provides faster recognition and response.
- A webcam for Face and Voice Recognition
- Good Internet connection in order to send the data to our database and retrieve information about different things like weather, stocks etc.
The current implementation is prone to disturbances like noise from surrounding environment, when a person is giving commands to the mirror. As it is mostly used in a single person or small family environment such as our home, it is free from such kind of errors in those scenarios.
- The mirror acts like a personal assistant where it has control over all the devices at our house and women who spend most of the time in front of mirror can get their work done by giving voice commands.
- By adding touchscreen facility it improves user experience.
Feel free to post issues if you find any problem or contact me Aishwarya Mittal
©MIT License