You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is an extension for the [MagicMirror](https://github.com/MichMich/MagicMirror). It does smile test for the current user.
1
+
# MMM-Smile
3
2
4
-
Algorithm from [emotion-detection](https://github.com/liy9393/emotion-detection)
3
+
This is a module for the [MagicMirror](https://github.com/MichMich/MagicMirror). It displays a random funny GIF on the magic mirror, then conducts smiling test for the current user by detecting smiling faces on camera using Haar Cascades, and saves the images in the log folder.
4
+
5
+
Reference: [REAL-TIME SMILE DETECTION IN PYTHON OPENCV](http://pushbuttons.io/blog/2015/4/27/smile-detection-in-python-opencv).
5
6
6
7
## Usage
7
8
8
-
The entry in config.js can look like the following. (NOTE: You only have to add the variables to config if want to change its standard value.)
9
+
The entry in config.js can look like the following. (NOTE: You only have to add the variables to config if you want to change its standard value.)
9
10
10
11
```
11
12
{
12
-
module: 'MMM-Emotion-Detection',
13
+
module: 'MMM-Smile',
14
+
position: "middle_center",
13
15
config: {
14
-
// recognition intervall in seconds
15
-
interval: 2,
16
+
// recognition interval in ms, default to 8 hours
17
+
interval: 8 * 60 * 60 * 1000,
18
+
// total test running time in seconds
19
+
testRunTime: 120,
20
+
// the smiling period in seconds in order to pass the test
21
+
smileLength: 5,
22
+
// use pi camera by default; set it to false for laptop camera
23
+
usePiCam: true
16
24
}
17
25
}
18
26
```
@@ -21,6 +29,8 @@ The entry in config.js can look like the following. (NOTE: You only have to add
21
29
## Dependencies
22
30
-[python-shell](https://www.npmjs.com/package/python-shell) (installed via `npm install`)
- Raspberry Pi: follow this [guide](http://www.pyimagesearch.com/2016/04/18/install-guide-raspberry-pi-3-raspbian-jessie-opencv-3/), will take few hours
0 commit comments