You are on page 1of 10

SUBMITTED TO

Dr. Md. Motaharul Islam


Associate Professor
Department of Computer Science and Engineering

SUBMITTED BY

Alim Aldin Rohan- 17101202

Afia Fairose Abedin- 17101360

Syed Saad-Ul-Kabir- 17101363

Sabila Al Jannat- 17101302

Galib Abrar Talukdar- 17101118

XXX-X-XXXX-XXXX-X/XX/$XX.00 ©20XX IEEE


A mirror that don't just reflect, it informs.

1st Afia Fairose Abedin 2nd Alim Aldin Rohan 3rd Syed Saad-Ul-Kabir
Computer science and engineering, Computer science and engineering, Computer science and engineering,
Brac university Brac university Brac university
Chittagong, Bangladesh Chittagong, Bangladesh Chittagong, Bangladesh
afiaabedin@gmail.com alim.aldin.rohan@gmail.com saad.hereafter@gmail.com
4th Sabila Al Jannat 5th Galib Talukdar
Computer science and engineering, Computer science and engineering,
Brac university Brac university
Dhaka, Bangladesh Dhaka, Bangladesh
sabila.al.jannat@gmail.com

Abstract— Time is what we want most, but what we use worst. mirror which displays relevant information’s to the user such as
-William Penn. weather, news, Crypto Currency Market, prayer time etc. For

Our lives are getting faster and maintaining a time schedule is example, students like us are always struggling with a busy

being difficult now a days. From schools to offices and meetings, schedule and have little or no time to go through news updates.

being on time is the most challenging issue now. Though Suppose, there is a fire outrage or a blockage of road due to heavy

advancement in technologies like smartphones have helped us a lot rain and since we are not accustomed to reading news, we have no

to speed up our lives yet there is no end of objects that could be idea about the incident. Here is where our smart mirror comes in

made “smarter,” for our own comfort and betterment. Every day play, while preparing oneself to go out the news notification will

we spent at least 15 to 20 minutes in front of the mirror and so we pop on the screen and we will be notified about the occurrences

planned to make this time also productive and efficient to the outside. Moreover, we have thought in a religious aspect too that

person using the mirror. In the proposed idea we present a Smart often we miss our prayer times due to work so what if we set a

Mirror with various features to make sure that every minute of the customize prayer reminder which will display on the assigned time

user is utilized properly. The prototype of this mirror is powered and we will be able to pray on time. From airports to hospitals all

and controlled by Raspberry Pi 3 and all the final output in form of the places have systems for displaying information for the

real time data feeds are displayed on a monitor attached with one convenience of people and we have tried to propose the same

way mirror. The smart mirror is a development effort to augment concept in our homes. Heads will be up and hands will be free, a

the mirror with proper embedded intelligence for offering new addition to advancement of home automation.

enhanced features such as weather of the city, latest updates of As being students, we constantly have presentations and practicing
news and headlines and local time corresponding to the location. in front of the mirror is the best way to improve speech deliveries.
The data feeds use web service-based communication to extract Now what if we have a time display on the mirror that can help us
data packets available through various APIs offered by websites. to check the time it takes us for delivering the speech. That is how
we stormed the idea of smart mirror. Subconsciously, we have a
tendency of looking into mirror and that’s why advancing the
I. Introduction mirror with features will be beneficial for everyone. Constantly
This research project has been implemented in the context of time checking phone is distracting and having a device that will cut off
where we are getting habituated with more and more digitalization. the time consumption of looking into phone for general
The Internet has evolved our lives by connecting us more easily to information’s might result fruitful innovation. Furthermore,
information and other people in the virtual world. Usually, the sole implementing smart mirror using Raspberry Pi requires least
purpose of the mirror is for personal grooming oneself, decoration number of resources and effort to generate information’s from
and architecture. Hence, we have decided to break the stereotype APIs.
and add intelligence to our traditional mirrors for personal
Initially, we started with gathering our hardware and equipment
betterment. Our current focus of innovation is to provide more
like raspberry pi-mirror, wooden frame, display etc. One group
information, but less interaction to get it. It is a wall hanging
worked on the research paper while other one worked on learning ready for the day. The mirror is able to detect the presence of
about the pi. We merged our learnings and ideas and came up with human using Passive Infrared sensors and Wi-Fi connectivity.
this smart mirror. Finally, we completed our entire report and This framework also introduces speech activated music player
prototype. which plays the music when the user gives a command.

The remainder of this paper is organized as follows. Section II In this article [6], the authors describe the arrangement of a
briefly comments on related works. This is followed by the voice-controlled wall mirror with functionalities like voice
description of the smart mirror including the design and commands, face recognition etc.
architecture of the proposed Smart Mirror in Section V.
In this article [7], the authors describe the design of a mirror
Conclusion and some thoughts on future work are presented at last.
that provides a natural means of interaction through which the
end-user can control the household smart appliances and
access customized services.
II. Related Works
In this article [1], the authors presented the design and
implementation of a multi-user smart mirror system created to In this article [8], the authors considered the difficulties of serving
upgrade wellness and healthier lifestyle in the work documents like tax return forms, budget reports, regulatory laws
environment through credible strategies. With the help of RFID etc. through Web services, with the goal of completing the user’s
reader, the interactive mirror recognizes different users request in optimized time. The authors proposed a peer-to-peer
through their personal corporate ID card, which allows them to mirror system which is basically a Smart Mirror System which
access to their personalized user-interface. collects information and data from peers.

In this article [2], the authors introduced a magic mirror table In this article [9], the authors proposed a mirror table that analyzes
which emphasizes family environment more that work the expressions of the users using a camera. If the user is in
efficiency. The awareness of social emotions between family negative emotion, the system speaks positive sentences and plays
members is an important step for designing intelligent service the favorite music to alleviate the user’s emotion. This mirror also
on the smart home system. serves as a calendar for event reminding.

In this article [3], the authors proposed a device which is


constructed from a reflective glass, LCD monitor, a Raspberry
In this article [10], the researchers describe proposed an idea of
Pi 3, a camera and a platform IoT oriented cloud computing,
Smart Mirror using the concept of smart home-based Internet of
where the information is acquired to show in the mirror,
Things (IoT). Sonus technology is used in building the interaction
through the consumption of web services. The mirror allows
between Human and system. To acquire the system’s response
the user photos to access the mirror using authentication with
user’s need to provide instructions to the system orally. Sonus can
facial recognition and user information to predict the news also have listening function offline for a customized hot word like
related to the profile. Alexa, Google Now, and Series. After the detection of hot word, it

In this article [4], the authors proposed a smart mirror system will be streamed to the user’s speech recognition cloud service and
as a consequence the results will be received as well. Smart Mirror
which can display an extended 3D representation of the end-
system helps the user to manage the daily activities at ease and
user with makeup features. Through the process the end-user
solve many problems regarding house chores.
can try the different makeup applications in the smart mirror
without affecting the real face appearance. 3D face
construction, IR based face tracking and OpenGL material
In this article [11], the authors opine that in order to satisfy
extensive rendering approach are incorporated by the system
consumers’ needs towards intelligent life the Smart Mirror, which
to deliver the extended make-up face.
is based on home automation system plays an important role.
In this article [5], the authors presented the development of an Home appliances control, information acquisition, environmental
innovating appliances that optimizes the time while getting
monitoring, entertainment and remote operation are the series of In this article [17], the researchers developed an intelligent mirror
intelligent experiences provided by the system. system that includes the weather information, time, user
information, and camera image taken from web services.
In this article [12], the researchers emphasize on the people facing
serious difficulties in deciding which clothes to wear for which In this article [18], resarces proposed a smart mirror that plays a
events. After buying the clothes, the clothes are digitalized and the huge role in advanced home automation. By the help of mobile
digitalized image can be captured from the homepage of the applications user profile is created which is then displayed in user-
clothes shop or pictured and normalized by the hidden camera interface of smart mirror. The mobile application contains a variety
attached to the Smart Dressing Mirror. The user can see if the dress of services that the user can choose from by simply adding and
fits or not. The Smart Dressing Mirror can also recommend the dropping the desired ones to their created profile. Services include
user a bunch of fashionable and suitable clothes for the user. At the medicine tracker, fitness tracker, calculator, Instagram,
same time, the Smart Dressing Mirror will also recommend clothes motivational quotes, music player, etc. This application is
from e-Shopping stores. The dresses recommended from the e- constantly scanning for any nearby Bluetooth-enabled devices and
Shopping shops can also be bought by the user immediately. measuring the RSSI of each device.

In this article [13], the authors noticed that in the recent years, In this article [19], the researchers implemented a digital magazine
there has been a progressive decline in the amount of time spent by smart mirror using raspberry pi, LED display with two sided
people in reading a newspaper on a daily basis due to the busy acrylic sheet. They have built a web application which has two
schedules. In order to solve the problem, the authors proposed a parts: map and architecture of their campus. On the other hand,
smart system in a house that will allow one to optimize time by they have created a database with information about courses,
assisting user to save time along with updating the user with placements, college news etc. The students can see the information
current news. on the mirror and the database is operated by one admin. As for the

In this article [14], the authors proposed a smart mirror which is a map, the students can input the source and destination place and

life-logging device and does not need user’s intentional operations. the map will show the traced path. \

This system has a Kinect v2 RGBD camera and a 4K LCD display


In this article [20], the researchers proposed a smart mirror that is
built behind a half-transparent mirror to track the user’s motion. featured with Amazon voice service and Google search engine. It
Functions like appearance log, auto-recording of turning-around works like Apple Siri where the voice command is used in search
engine and the result is displayed accordingly. It also has voice
motion, weather and traffic information display which can be recognition using voice API and facial recognition using Open CV
library to identify individual.
triggered by user speech and motion interface are implemented in
the system.

In this article [15], the researchers designed a smart mirror using


Raspberry Pi. Using the peripherals like Raspberry pi, LED
monitor covered with two-way acrylic sheet the smart mirror has
been implemented. The microcontroller connects to the internet to
display weather report of the specific location.

In this article [16], the researchers proposed a smart mirror that


functions as a mirror with some extra capabilities. In this project,
the researchers developed Smart Reflect – a software platform for
developing smart mirror applications. Modular, lightweight, and
extensible are the main features of the mirror. It also allows
developers to sidestep the sand boxed environment created by web
browsers. It supports plugins written in any programming
language.
C. Prototype
V. Proposed Module
A.

VI. Implementation

A. HARDWARE

A. A series of hardware is needed in order to implement the


project. These are discussed below.

Connections:  Raspberry Pi:


1) Raspberry pi model 3b+ is connected with DC Power
Source It is the main device which is required to implement the
2) Monitor is connected to DC Power Source
3) RGB Strip is connected with DC Power Source project. We are going to use the Raspberry Pi’s Wi-Fi to
4) Monitor is plugged through HDMI cable to pi HDMI connect to cloud servers of various modules that we used in
port
smart mirror.
5) Keyboard and Mouse is connected to the R-pi’s input
USB port
6) R-pi’s built in Wi-Fi is used to connect to the internet for  Peripherals:
fetching data from the cloud servers.
We are going to need appropriate peripherals like keyboard
B. Block Diagram and mouse in order to interact with the Raspberry Pi.

Power Supply: We will need a power supply in order to run


the Raspberry Pi. An average power supply of 5-9 volt will be
enough to run the system.

 Display:

We are using 16:9 1080p Monitor that stands beside the


mirror to fit perfectly and give nice image quality.

 Mirror:

We used fashionable perfect sized mirror with black tint to


reflect user and show display perfect.
 RGB:
Module.register('MMM-connection-status', {
To increase the beauty of our smart mirror we used RGB
// Default module config.
lighting strip around the mirror to make it more attractive to
use it home. defaults: {

 SD Card: updateInterval: 1000 * 60, // every minute

We will require an SD card which will contain the operating


initialLoadDelay: 0,
system of the Raspberry Pi. All the information and data of
the Raspberry Pi will be stored in the SD card. animationSpeed: 1000 * 0.25,

},

B. SOFTWARE

// Define required translations.


In this project, after assembling all the hardware parts we had
to write the code to make the raspberry pi turns into smart getTranslations: function() {
mirror. So, we have to install the Magic Mirror into our
return {
Raspbian OS. The following command has to be executed in
Terminal to install Magic Mirror into our Raspberry Pi 'en': 'translations/en.json',

bash -c "$(curl -sL id': 'translations/id.json',


https://raw.githubusercontent.com/MichMich/MagicMirror/master/
installers/raspberry.sh)" 'es': 'translations/es.json'

And we have to download the latest version of Node.js as the


};
Smart Mirror is written is Java Script
},

// Define start sequence.


 curl -sL https://deb.nodesource.com/setup_10.x | sudo -E
bash - start: function() {
 sudo apt install -y nodejs
Log.info("Starting module: " + this.name);

We had to configure for server use so in Config.js file we


have to use this command // Loop infinitely

var config = { this.loop();


address: "0.0.0.0", // default is "localhost"
port: 8080, // default },
ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1",
"::ffff:172.17.0.1"], // default -- need to add your IP here
...
};
For updating the software all we need to do is git pull in the // Override dom generator.
terminal
getDom: function() {
git pull && npm install
var wrapper = document.createElement('div');

We have used and configured several modules one example


if (window.navigator.onLine) {
codes are given below

wrapper.className = 'small';
[Internet Status ]It shows The connection status for our smart
mirror: such as Ping, Upload speed, Download Speed.
wrapper.innerHTML = VII. Step By Step Process
this.translate("INET_CONN_CONNECTED");

} else {

wrapper.className = 'normal bright';

wrapper.innerHTML =
this.translate("INET_CONN_NOTCONNECTED");

return wrapper;

},

// Infinite loop

loop: function() {

var self = this;

setTimeout(function() {

setInterval(function() {

// Refreshes the dom, using the getDom() function

self.updateDom(self.config.animationSpeed);

}, self.config.updateInterval); // Loop interval

}, self.config.initialLoadDelay); // First delay

});
VIII. Performance Evaluation 2. Y. C. Yu, S. C. D. You, “Magic mirror table with social-
emotion awareness for the smart home”, 2012 IEEE
International Conference on Consumer Electronics
(ICCE), IEEE. [Abstract].
Available:https://ieeexplore.ieee.org/document/6161821

3. I. C. A. Garcia, E. R. L. Salmon, R. V. Riega, A. B.


Padilla, “Implementation and Customization of a Smart
Mirror through a Facial Recognition Authentication and
a Personalized News Recommendation
Algorithm”, 2017 13th International Conference on
Signal-Image Technology & Internet-Based Systems
(SITIS), IEEE. [Abstract].
Available:https://ieeexplore.ieee.org/document/8334722

4. A. S. M. M. Rahman, T. T. Tran, Sk A. Hossain, A. E.


Saddik, “Augmented rendering of Makeup feature in a
As we have researched, we developed a lot of advanced ideas of Smart Interactive Mirror System for Decision Support in
smart mirror that could have been implemented in our project. Cosmetic Products Selection”, 2010 IEEE/ACM 14th
Since, we had only primary knowledge about the vast features of International Symposium on Distributed Simulation and
raspberry pi and short of time we were unable to add higher Real Time Applications, IEEE. [Abstract].
configuration segments which would have enhanced our project. Available:https://ieeexplore.ieee.org/document/5636848

5. S. Athira, F. Francis, R. Raphel, N. S. Sachin, S.


Porinchu, S. Francis “Smart mirror: A novel framework

IX. Conclusion for interactive display”, 2016 International Conference


on Circuit, Power and Computing Technologies
(ICCPCT), IEEE. [Abstract].
The goals of the smart mirror were aimed to reduce time needed in
Available:https://ieeexplore.ieee.org/document/7530197
a user’s daily routine and provide a merger of user and technology
6. K. Mukhopadhyay, C. Sinha, H. N. Saha, S. Rakshit, S.
that becomes an enhancement, not a new burden. A smart mirror Auddy, “Smart Mirror – a secured Application of
Artificial Intelligence Recognizing Human Face and
displays applications so that you can check the weather, local Voice”, 2018 IEEE 9th Annual Information Technology,
news, etc. while you are getting ready in the morning. We have Electronics and Mobile Communication Conference
(IEMCON), IEEE. [Abstract].
developed a functional prototype to demonstrate our work. Overall, Available:https://ieeexplore.ieee.org/document/8615072

the prototype provides an easily extendable framework that can be 7. M. A. Hossain, P. K. Atrey, A. E. Saddik, “Smart mirror
for ambient home environment”, 2007 3rd IET
utilized to provide even more functionality to the user. In future, International Conference on Intelligent Environments,
IEEE. [Abstract].
we have planned to add Google assistant and by help of IOT
Available:https://ieeexplore.ieee.org/document/4449996
implement control of appliances from the mirror. Also, after we are
8. M. R. Martinez, E. Pagan, P. I. R. Vega, O. G. R.
done with Artificial Intelligence learning, we have thought of Martinez, M. M. Montes, J. R. Arzuaga, M. Rodriguez,
“Smart Mirrors: peer-to-peer web services for publishing
proposing a mirror that will have different filters like Facebook electronic documents”, 14th International Workshop
Research Issues on Data Engineering: Web Services for
and Snapchat. The mirror would be touch screen and people can e-Commerce and e-Government Applications, 2004.
Proceedings., IEEE. [Abstract].
change their filters and capture the mirror image through a switch
Available:https://ieeexplore.ieee.org/document/1281711
which will then be automatically send to the person’s mobile
9. Y. C. Yu, S. D. You, D. R. Tsai, “Magic Mirror table for
phone. social-emotion alleviation in the smart home”, IEEE
Transactions on Consumer Electronics, Vol: 58 , Issue:
1, February 2012 , IEEE. [Abstract].
Available:https://ieeexplore.ieee.org/document/6170064

10. M. M. Yusri, S. Kasim, R. Hassan, Z. Abdullah, H.


REFERENCES Ruslai, K. Jahidin, M. S. Arshad, “Smart mirror for smart
life”, 2017 6th ICT International Student Project
Conference (ICT-ISPC), IEEE. [Abstract].
1. O. G. Carmona, D. C. Mansilla, “SmiWork: An Available:https://ieeexplore.ieee.org/document/8075339
interactive smart mirror platform for workplace health
promotion”, 2017 2nd International Multidisciplinary 11. Y. Sun, L. Geng, K. Dan, “Design of Smart Mirror
Conference on Computer and Energy Science (SpliTech), Based on raspberry Pi”, 2018 International Conference
IEEE. [Abstract]. on Intelligent Transportation, Big Data & Smart City
Available:https://ieeexplore.ieee.org/document/8019282 (ICITBS), IEEE. [Abstract].
Available:https://ieeexplore.ieee.org/document/8332712
12. G. Gao, C. Bai, W. Zheng, C. H. Liu, “The Future of
Smart Dressing Mirror: An Open Innovation Concept
Video”, 2015 IEEE 12th Intl Conf on Ubiquitous
Intelligence and Computing and 2015 IEEE 12th Intl
Conf on Autonomic and Trusted Computing and 2015
IEEE 15th Intl Conf on Scalable Computing and
Communications and Its Associated Workshops (UIC-
ATC-ScalCom), IEEE. [Abstract].
Available:https://ieeexplore.ieee.org/document/7518259

13. A. Johri, S. Jafri, R. N. Wahi, D. Pandey, “Smart Mirror:


A time-saving and Affordable Assistant”, 2018 4th
International Conference on Computing Communication
and Automation (ICCCA), IEEE. [Abstract].
Available:https://ieeexplore.ieee.org/document/8777554

14. M. Tani, N. Umeza, “Development of a Smart Mirror


with Life Log Functions and Its Evaluation”, 2018 IEEE
7th Global Conference on Consumer Electronics
(GCCE), IEEE. [Abstract].
Available:https:/ieeexplore.ieee.org/document/8574506

15. R. Akshaya, N. N. Raj, S. Gowri, “Smart Mirror- Digital


Magazine for University Implemented Using Raspberry
Pi”, 2018 International Conference on Emerging Trends
and Innovations In Engineering And Technological
Research (ICETIETR), IEEE. [Abstract].
Available:https://ieeexplore.ieee.org/document/8529005

16. D. Gold, D. Solllinger, Indratmo, “SmartReflect: A


modular smart mirror application platform”, 2016 IEEE
7th Annual Information Technology, Electronics and
Mobile Communication Conference (IEMCON), IEEE.
[Abstract].
Available:https://ieeexplore.ieee.org/document/7746277

17. F. Ok, M. Can, H. Ucgun, U. Yuzgec, “Smart mirror


applications with Raspberry Pi”, 2017 International
Conference on Computer Science and Engineering
(UBMK), IEEE. [Abstract].
Available:https://ieeexplore.ieee.org/document/8093566

18. O. G. Carmona, D. C. Mansilla, “SmiWork: An


interactive smart mirror platform for workplace health
promotion”, 2017 2nd International Multidisciplinary
Conference on Computer and Energy Science (SpliTech),
IEEE. [Abstract].
Available:https://ieeexplore.ieee.org/document/8019282

19. R. Akshaya, N. N. Raj, S. Gowri, “Smart Mirror- Digital


Magazine for University Implemented Using Raspberry
Pi”, 2018 International Conference on Emerging Trends
and Innovations In Engineering And Technological
Research (ICETIETR),IEEE.[Abstract].
Available:https://ieeexplore.ieee.org/document/8529005

20. A. C. Njaka, N. Li, L. Li, “Voice Controlled Smart


Mirror with Multifactor Authentication”, 2018 IEEE
International Smart Cities Conference (ISC2), IEEE.
[Abstract].
Available:https://ieeexplore.ieee.org/document/8656932

You might also like