├── .sass-cache └── dfb75029b1b274becc234864d60aac6863f66853 │ └── app.scssc ├── LICENSE ├── README.md ├── assets └── images │ ├── angry.gif │ ├── excited.gif │ ├── laugh.gif │ ├── out.gif │ ├── out.jpg │ ├── sad.gif │ └── sleep.gif ├── css ├── .sass-cache │ └── 9dce37a5f19e744b6951c74e0f32627ac8f87dd5 │ │ └── app.scssc ├── app.css ├── app.css.map └── app.scss ├── index.html └── js └── app.js /.sass-cache/dfb75029b1b274becc234864d60aac6863f66853/app.scssc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Gogul09/emotion-recognizer/cd7ee52c027693c39f2406b328bd95c971b040d5/.sass-cache/dfb75029b1b274becc234864d60aac6863f66853/app.scssc -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 Gogul Ilango 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Emotion Recognizer 2 | Recognize your emotion using two deep neural networks and webcam live in Google Chrome. 3 | 4 | Tools used 5 | * TensorFlow.js 6 | * HTML5 7 | * CSS3 8 | * Sass 9 | 10 |
13 | 14 | Technical Details 15 | * Extractor Deep Neural Network - State of the art MobileNet 16 | * Classifier Deep Neural Network - DenseNet 17 | * HyperParameters can be tuned via User Interface. 18 | 19 | Emotion Animations taken from - https://dribbble.com/shots/2589640-Emotion-Animations-gif -------------------------------------------------------------------------------- /assets/images/angry.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Gogul09/emotion-recognizer/cd7ee52c027693c39f2406b328bd95c971b040d5/assets/images/angry.gif -------------------------------------------------------------------------------- /assets/images/excited.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Gogul09/emotion-recognizer/cd7ee52c027693c39f2406b328bd95c971b040d5/assets/images/excited.gif -------------------------------------------------------------------------------- /assets/images/laugh.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Gogul09/emotion-recognizer/cd7ee52c027693c39f2406b328bd95c971b040d5/assets/images/laugh.gif -------------------------------------------------------------------------------- /assets/images/out.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Gogul09/emotion-recognizer/cd7ee52c027693c39f2406b328bd95c971b040d5/assets/images/out.gif -------------------------------------------------------------------------------- /assets/images/out.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Gogul09/emotion-recognizer/cd7ee52c027693c39f2406b328bd95c971b040d5/assets/images/out.jpg -------------------------------------------------------------------------------- /assets/images/sad.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Gogul09/emotion-recognizer/cd7ee52c027693c39f2406b328bd95c971b040d5/assets/images/sad.gif -------------------------------------------------------------------------------- /assets/images/sleep.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Gogul09/emotion-recognizer/cd7ee52c027693c39f2406b328bd95c971b040d5/assets/images/sleep.gif -------------------------------------------------------------------------------- /css/.sass-cache/9dce37a5f19e744b6951c74e0f32627ac8f87dd5/app.scssc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Gogul09/emotion-recognizer/cd7ee52c027693c39f2406b328bd95c971b040d5/css/.sass-cache/9dce37a5f19e744b6951c74e0f32627ac8f87dd5/app.scssc -------------------------------------------------------------------------------- /css/app.css: -------------------------------------------------------------------------------- 1 | body { 2 | padding: 0; 3 | margin: 0; 4 | font-family: "Nunito", sans-serif; 5 | overflow: hidden; } 6 | 7 | .container { 8 | width: 100%; 9 | height: auto; } 10 | 11 | img { 12 | max-width: 100%; 13 | display: block; 14 | margin: 0 auto; } 15 | 16 | select { 17 | padding: 5px; 18 | font-family: Nunito; 19 | border-radius: 5px; } 20 | 21 | label { 22 | margin: 0.7em 0; } 23 | 24 | footer { 25 | text-align: center; 26 | position: fixed; 27 | bottom: 0; 28 | left: 0; 29 | width: 100%; 30 | height: 40px; 31 | background-color: black; } 32 | footer p { 33 | color: white; 34 | margin: 0px !important; 35 | font-size: 13px; 36 | padding-top: 10px; } 37 | footer a { 38 | text-decoration: none; } 39 | footer a:hover { 40 | text-decoration: underline; } 41 | 42 | .mobile-tablet-warning { 43 | display: none; 44 | background-color: #1a1c22; 45 | height: 90vh; 46 | width: 100%; 47 | padding: 30px; } 48 | .mobile-tablet-warning h3 { 49 | text-align: center; 50 | font-size: 40px; 51 | color: #db4437; 52 | margin: 0px; 53 | padding: 50px 20px; } 54 | .mobile-tablet-warning p { 55 | font-size: 14px; 56 | color: white; } 57 | 58 | .emotion-container { 59 | height: 100vh; 60 | background-color: #252525; 61 | margin: 0px; 62 | padding-left: 20px; 63 | padding-right: 20px; 64 | padding-bottom: 20px; } 65 | @media screen and (max-width: 640px) { 66 | .emotion-container { 67 | height: 100%; 68 | padding: 0px; 69 | margin-bottom: 40px; } } 70 | 71 | .emotion-header { 72 | width: 100%; 73 | text-align: center; 74 | border-top-right-radius: 20px; 75 | border-top-left-radius: 20px; 76 | background-color: #252525; 77 | padding-top: 20px; } 78 | @media screen and (max-width: 640px) { 79 | .emotion-header { 80 | border-top-right-radius: 0px; 81 | border-top-left-radius: 0px; } } 82 | .emotion-header h3 { 83 | margin: 0px; 84 | padding: 0px; 85 | font-size: 25px; 86 | color: #d3131c; 87 | font-family: "Poppins"; } 88 | @media screen and (max-width: 640px) { 89 | .emotion-header h3 { 90 | font-size: 20px; } } 91 | .emotion-header p { 92 | margin: 0px !important; 93 | margin-bottom: 0px !important; 94 | color: lightgrey; 95 | font-size: 13px; } 96 | 97 | .emotion-wrapper { 98 | background-color: #252525; 99 | padding: 20px; 100 | width: 100%; 101 | height: 80%; 102 | border-bottom-left-radius: 20px; 103 | border-bottom-right-radius: 20px; 104 | display: flex; 105 | flex-wrap: wrap; } 106 | @media screen and (max-width: 640px) { 107 | .emotion-wrapper { 108 | display: block; 109 | border-bottom-left-radius: 0px; 110 | border-bottom-right-radius: 0px; } } 111 | 112 | .emotion-flex { 113 | flex: 1; 114 | width: 100%; 115 | height: 100%; 116 | background-color: #252525; } 117 | 118 | .emotion-player { 119 | padding: 20px 0px; 120 | border-right: 1px solid #252933; } 121 | @media screen and (max-width: 640px) { 122 | .emotion-player { 123 | border-bottom: 1px solid #252933; 124 | border-right: 0px; } } 125 | 126 | .emotion-controller { 127 | display: flex; 128 | flex-direction: column; } 129 | 130 | .emotion-tuner { 131 | display: flex; 132 | width: 100%; 133 | text-align: center; 134 | flex: 1; } 135 | @media screen and (max-width: 640px) { 136 | .emotion-tuner { 137 | flex-wrap: wrap; 138 | padding: 5%; } } 139 | .emotion-tuner .emotion-dropdown { 140 | flex: 1; 141 | display: table; 142 | height: 100%; } 143 | .emotion-tuner .emotion-dropdown .emotion-dropdown-cell { 144 | vertical-align: middle; 145 | display: table-cell; } 146 | .emotion-tuner select { 147 | display: inline-block; 148 | background-color: #181818; 149 | border: 0px; 150 | color: lightgrey; 151 | border-bottom: 1px solid #424242; 152 | margin-top: 0px; } 153 | @media screen and (max-width: 640px) { 154 | .emotion-tuner select { 155 | font-size: 10px; } } 156 | .emotion-tuner label { 157 | display: block; 158 | color: lightgrey; 159 | font-size: 13px; 160 | font-family: "Nunito", sans-serif; } 161 | @media screen and (max-width: 640px) { 162 | .emotion-tuner label { 163 | font-size: 10px; } } 164 | 165 | .emotion-acquire { 166 | display: flex; 167 | flex-wrap: wrap; 168 | text-align: center; 169 | justify-content: center; 170 | width: 100%; 171 | flex: 1; } 172 | .emotion-acquire .emotion-acquire-outer { 173 | padding: 10px 0px; 174 | background-color: #181818; 175 | box-shadow: 5px 5px 8px rgba(0, 0, 0, 0.5); 176 | border-radius: 3px; 177 | margin: 0 20px; 178 | flex: 1; 179 | width: 150px; 180 | height: 140px; } 181 | @media screen and (max-width: 640px) { 182 | .emotion-acquire .emotion-acquire-outer { 183 | width: 100px; 184 | height: 120px; 185 | margin: 10px; 186 | flex: none; } } 187 | .emotion-acquire .emotion-acquire-inner { 188 | width: 100%; 189 | height: 100px; 190 | border-radius: 3px; 191 | position: relative; 192 | cursor: pointer; } 193 | @media screen and (max-width: 640px) { 194 | .emotion-acquire .emotion-acquire-inner { 195 | height: 85px; } } 196 | .emotion-acquire .emotion-acquire-inner p { 197 | margin: 0px; 198 | margin-bottom: 0px !important; 199 | font-size: 15px; 200 | color: lightgrey; 201 | text-align: center; 202 | padding: 3px; 203 | position: absolute; 204 | bottom: 0px; 205 | width: 100%; } 206 | .emotion-acquire .emotion-acquire-inner .emotion-acquire-cam img { 207 | border: 0px !important; } 208 | .emotion-acquire p { 209 | margin: 0px; 210 | margin-bottom: 0px !important; 211 | font-size: 10px; 212 | color: #d4141d; 213 | text-align: center; 214 | padding: 3px; 215 | width: 100%; } 216 | 217 | .emotion-buttons { 218 | display: flex; 219 | flex-wrap: wrap; 220 | text-align: center; 221 | justify-content: center; 222 | width: 100%; 223 | flex: 1; } 224 | @media screen and (max-width: 640px) { 225 | .emotion-buttons { 226 | display: block; } } 227 | .emotion-buttons button { 228 | width: 80px; 229 | height: 80px; 230 | border-radius: 50%; 231 | border: 5px double #b9171e; 232 | box-shadow: 4px 6px 6px rgba(0, 0, 0, 0.2); 233 | padding: 10px; 234 | background-color: #d4141d; 235 | color: white; 236 | font-size: 15px; 237 | font-family: Roboto; 238 | font-weight: bold; 239 | margin: 0 20px; 240 | cursor: pointer; 241 | transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1); } 242 | @media screen and (max-width: 640px) { 243 | .emotion-buttons button { 244 | width: 60px; 245 | height: 60px; 246 | padding: 10px; 247 | font-size: 12px; 248 | margin: 0 10px; } } 249 | .emotion-buttons button:focus { 250 | outline: none; } 251 | .emotion-buttons button:hover { 252 | transform: scale(1.3); } 253 | 254 | .emotion-kit { 255 | display: flex; 256 | flex-wrap: wrap; 257 | justify-content: center; 258 | height: 45%; } 259 | @media screen and (max-width: 640px) { 260 | .emotion-kit { 261 | padding-top: 0px; } } 262 | .emotion-kit .emotion-kit-comps { 263 | position: relative; 264 | width: 80px; 265 | height: 80px; 266 | background-color: #ffffff; 267 | border-radius: 10px; 268 | border: 6px solid #ffffff; 269 | margin: 10px; 270 | cursor: pointer; 271 | transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1); 272 | box-shadow: 4px 6px 6px rgba(0, 0, 0, 0.4); } 273 | @media screen and (max-width: 640px) { 274 | .emotion-kit .emotion-kit-comps { 275 | width: 60px; 276 | height: 60px; } } 277 | .emotion-kit .emotion-kit-comps audio { 278 | width: 120px; 279 | height: 85px; } 280 | @media screen and (max-width: 640px) { 281 | .emotion-kit .emotion-kit-comps audio { 282 | width: 70px; 283 | height: 25px; } } 284 | .emotion-kit .emotion-kit-comps p { 285 | margin: 0px; 286 | margin-bottom: 0px !important; 287 | font-size: 16px; 288 | color: #333; 289 | text-align: center; 290 | padding: 40px 0px; 291 | width: 100%; 292 | font-weight: bold; } 293 | @media screen and (max-width: 640px) { 294 | .emotion-kit .emotion-kit-comps p { 295 | padding: 12px 0px; } } 296 | .emotion-kit .emotion-kit-comps:hover { 297 | transform: scale(1.1); } 298 | 299 | .emotion-kit-comps p::selection { 300 | color: #333; 301 | background: transparent; } 302 | 303 | .emotion-live-cam { 304 | width: 100%; 305 | height: 55%; } 306 | .emotion-live-cam div { 307 | width: 250px; 308 | height: 250px; 309 | background-color: #181818; 310 | border-radius: 10px; 311 | margin: 0px auto; 312 | box-shadow: 6px 8px 8px rgba(0, 0, 0, 0.55); 313 | overflow: hidden; } 314 | @media screen and (max-width: 640px) { 315 | .emotion-live-cam div { 316 | width: 180px; 317 | height: 180px; 318 | margin-top: 10px; } } 319 | .emotion-live-cam video { 320 | width: 250px; 321 | height: 250px; } 322 | @media screen and (max-width: 640px) { 323 | .emotion-live-cam video { 324 | width: 180px; 325 | height: 180px; } } 326 | 327 | .emotion-loss { 328 | color: #e13527; 329 | font-size: 15px; 330 | margin-bottom: 0px !important; 331 | margin: 0px !important; 332 | padding: 0px 20px !important; 333 | display: flex; 334 | position: relative; 335 | bottom: 25px; 336 | width: 100%; 337 | text-align: center; 338 | font-weight: bold; 339 | justify-content: center; } 340 | 341 | /*# sourceMappingURL=app.css.map */ 342 | -------------------------------------------------------------------------------- /css/app.css.map: -------------------------------------------------------------------------------- 1 | { 2 | "version": 3, 3 | "mappings": "AAkBA,IAAK;EACH,OAAO,EAAE,CAAC;EACV,MAAM,EAAE,CAAC;EACT,WAAW,EALE,oBAAoB;EAMjC,QAAQ,EAAE,MAAM;;AAGlB,UAAW;EACT,KAAK,EAAE,IAAI;EACX,MAAM,EAAE,IAAI;;AAGd,GAAI;EACH,SAAS,EAAE,IAAI;EACZ,OAAO,EAAE,KAAK;EACd,MAAM,EAAE,MAAM;;AAGlB,MAAO;EACN,OAAO,EAAE,GAAG;EACT,WAAW,EAAE,MAAM;EACnB,aAAa,EAAE,GAAG;;AAGtB,KAAM;EACL,MAAM,EAAE,OAAO;;AAGhB,MAAO;EACN,UAAU,EAAE,MAAM;EAClB,QAAQ,EAAE,KAAK;EACf,MAAM,EAAE,CAAC;EACT,IAAI,EAAE,CAAC;EACP,KAAK,EAAE,IAAI;EACX,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;AAKhB,aAAc;EACb,KAAK,EAAE,OAAO;EACX,SAAS,EAAE,IAAI;EACf,aAAa,EAAE,cAAc;EAC7B,MAAM,EAAE,cAAc;EACtB,OAAO,EAAE,mBAAmB;EAC5B,OAAO,EAAE,IAAI;EACb,QAAQ,EAAE,QAAQ;EAClB,MAAM,EAAE,IAAI;EACZ,KAAK,EAAE,IAAI;EACX,UAAU,EAAE,MAAM;EAClB,WAAW,EAAE,IAAI;EACjB,eAAe,EAAE,MAAM", 4 | "sources": ["app.scss"], 5 | "names": [], 6 | "file": "app.css" 7 | } 8 | -------------------------------------------------------------------------------- /css/app.scss: -------------------------------------------------------------------------------- 1 | // mobile media query 2 | @mixin mobile { 3 | @media screen and (max-width: 640px) { 4 | @content; 5 | } 6 | } 7 | 8 | // tablet media query 9 | @mixin tablet { 10 | @media (min-width: 768px) and (max-width: 1024px) { 11 | @content; 12 | } 13 | } 14 | 15 | // fonts 16 | $font_header : 'Nunito', sans-serif; 17 | $font_body : 'Nunito', sans-serif; 18 | 19 | body { 20 | padding: 0; 21 | margin: 0; 22 | font-family: $font_body; 23 | overflow: hidden; 24 | } 25 | 26 | .container { 27 | width: 100%; 28 | height: auto; 29 | } 30 | 31 | img { 32 | max-width: 100%; 33 | display: block; 34 | margin: 0 auto; 35 | } 36 | 37 | select { 38 | padding: 5px; 39 | font-family: Nunito; 40 | border-radius: 5px; 41 | } 42 | 43 | label { 44 | margin: 0.7em 0; 45 | } 46 | 47 | footer { 48 | text-align: center; 49 | position: fixed; 50 | bottom: 0; 51 | left: 0; 52 | width: 100%; 53 | height: 40px; 54 | background-color: black; 55 | 56 | p { 57 | color: white; 58 | margin: 0px !important; 59 | font-size: 13px; 60 | padding-top: 10px; 61 | } 62 | a { 63 | text-decoration: none; 64 | } 65 | a:hover { 66 | text-decoration: underline; 67 | } 68 | } 69 | 70 | .mobile-tablet-warning { 71 | display: none; 72 | background-color: #1a1c22; 73 | height: 90vh; 74 | width: 100%; 75 | padding: 30px; 76 | 77 | h3 { 78 | text-align: center; 79 | font-size: 40px; 80 | color: #db4437; 81 | margin: 0px; 82 | padding: 50px 20px 83 | } 84 | p { 85 | font-size: 14px; 86 | color: white; 87 | } 88 | } 89 | 90 | .emotion-container { 91 | height: 100vh; 92 | background-color: #252525; 93 | margin: 0px; 94 | padding-left: 20px; 95 | padding-right: 20px; 96 | padding-bottom: 20px; 97 | @include mobile { 98 | height: 100%; 99 | padding: 0px; 100 | margin-bottom: 40px; 101 | } 102 | } 103 | 104 | .emotion-header { 105 | width: 100%; 106 | text-align: center; 107 | border-top-right-radius: 20px; 108 | border-top-left-radius: 20px; 109 | background-color: #252525; 110 | padding-top: 20px; 111 | @include mobile { 112 | border-top-right-radius: 0px; 113 | border-top-left-radius: 0px; 114 | } 115 | h3 { 116 | margin: 0px; 117 | padding: 0px; 118 | font-size: 25px; 119 | color: #d3131c; 120 | font-family: "Poppins"; 121 | @include mobile { 122 | font-size: 20px; 123 | } 124 | } 125 | p { 126 | margin: 0px !important; 127 | margin-bottom: 0px !important; 128 | color: lightgrey; 129 | font-size: 13px; 130 | } 131 | } 132 | 133 | .emotion-wrapper { 134 | background-color: #252525; 135 | padding: 20px; 136 | width: 100%; 137 | height: 80%; 138 | border-bottom-left-radius: 20px; 139 | border-bottom-right-radius: 20px; 140 | display: flex; 141 | flex-wrap: wrap; 142 | @include mobile { 143 | display: block; 144 | border-bottom-left-radius: 0px; 145 | border-bottom-right-radius: 0px; 146 | } 147 | } 148 | 149 | .emotion-flex { 150 | flex: 1; 151 | width: 100%; 152 | height: 100%; 153 | background-color: #252525; 154 | } 155 | 156 | .emotion-player { 157 | padding: 20px 0px; 158 | border-right: 1px solid #252933; 159 | @include mobile { 160 | border-bottom: 1px solid #252933; 161 | border-right: 0px; 162 | } 163 | } 164 | 165 | .emotion-controller { 166 | display: flex; 167 | flex-direction: column; 168 | } 169 | 170 | .emotion-tuner { 171 | display: flex; 172 | width: 100%; 173 | text-align: center; 174 | flex: 1; 175 | 176 | @include mobile { 177 | flex-wrap: wrap; 178 | padding: 5%; 179 | } 180 | 181 | .emotion-dropdown { 182 | flex: 1; 183 | display: table; 184 | height: 100%; 185 | .emotion-dropdown-cell { 186 | vertical-align: middle; 187 | display: table-cell; 188 | } 189 | } 190 | select { 191 | display: inline-block; 192 | background-color: #181818; 193 | border: 0px; 194 | color: lightgrey; 195 | border-bottom: 1px solid #424242; 196 | margin-top: 0px; 197 | @include mobile { 198 | font-size: 10px; 199 | } 200 | } 201 | label { 202 | display: block; 203 | color: lightgrey; 204 | font-size: 13px; 205 | font-family: $font_body; 206 | @include mobile { 207 | font-size: 10px; 208 | } 209 | } 210 | } 211 | 212 | .emotion-acquire { 213 | display: flex; 214 | flex-wrap: wrap; 215 | text-align: center; 216 | justify-content: center; 217 | width: 100%; 218 | flex: 1; 219 | 220 | .emotion-acquire-outer { 221 | padding: 10px 0px; 222 | background-color: #181818; 223 | box-shadow: 5px 5px 8px rgba(0,0,0,0.5); 224 | border-radius: 3px; 225 | margin: 0 20px; 226 | flex: 1; 227 | width: 150px; 228 | height: 140px; 229 | @include mobile { 230 | width: 100px; 231 | height: 120px; 232 | margin: 10px; 233 | flex: none; 234 | } 235 | } 236 | .emotion-acquire-inner { 237 | width: 100%; 238 | height: 100px; 239 | border-radius: 3px; 240 | position: relative; 241 | cursor: pointer; 242 | @include mobile { 243 | height: 85px; 244 | } 245 | 246 | p { 247 | margin: 0px; 248 | margin-bottom: 0px !important; 249 | font-size: 15px; 250 | color: lightgrey; 251 | text-align: center; 252 | padding: 3px; 253 | position: absolute; 254 | bottom: 0px; 255 | width: 100%; 256 | } 257 | 258 | .emotion-acquire-cam img { 259 | border: 0px !important; 260 | } 261 | } 262 | p { 263 | margin: 0px; 264 | margin-bottom: 0px !important; 265 | font-size: 10px; 266 | color: #d4141d; 267 | text-align: center; 268 | padding: 3px; 269 | width: 100%; 270 | } 271 | } 272 | 273 | .emotion-buttons { 274 | display: flex; 275 | flex-wrap: wrap; 276 | text-align: center; 277 | justify-content: center; 278 | width: 100%; 279 | flex: 1; 280 | 281 | @include mobile { 282 | display: block; 283 | } 284 | 285 | button { 286 | width: 80px; 287 | height: 80px; 288 | border-radius: 50%; 289 | border: 5px double #b9171e; 290 | box-shadow: 4px 6px 6px rgba(0,0,0,0.2); 291 | padding: 10px; 292 | background-color: #d4141d; 293 | color: white; 294 | font-size: 15px; 295 | font-family: Roboto; 296 | font-weight: bold; 297 | margin: 0 20px; 298 | cursor: pointer; 299 | transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1); 300 | @include mobile { 301 | width: 60px; 302 | height: 60px; 303 | padding: 10px; 304 | font-size: 12px; 305 | margin: 0 10px; 306 | } 307 | } 308 | button:focus { 309 | outline: none; 310 | } 311 | button:hover { 312 | transform: scale(1.3); 313 | } 314 | 315 | } 316 | 317 | .emotion-kit { 318 | display: flex; 319 | flex-wrap: wrap; 320 | justify-content: center; 321 | height: 45%; 322 | @include mobile { 323 | padding-top: 0px; 324 | } 325 | 326 | .emotion-kit-comps { 327 | position: relative; 328 | width: 80px; 329 | height: 80px; 330 | background-color: #ffffff; 331 | border-radius: 10px; 332 | border: 6px solid #ffffff; 333 | margin: 10px; 334 | cursor: pointer; 335 | transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1); 336 | box-shadow: 4px 6px 6px rgba(0,0,0,0.4); 337 | @include mobile { 338 | width: 60px; 339 | height: 60px; 340 | } 341 | 342 | audio { 343 | width: 120px; 344 | height: 85px; 345 | @include mobile { 346 | width: 70px; 347 | height: 25px; 348 | } 349 | } 350 | 351 | p { 352 | margin: 0px; 353 | margin-bottom: 0px !important; 354 | font-size: 16px; 355 | color: #333; 356 | text-align: center; 357 | padding: 40px 0px; 358 | width: 100%; 359 | font-weight: bold; 360 | @include mobile { 361 | padding: 12px 0px; 362 | } 363 | } 364 | } 365 | .emotion-kit-comps:hover { 366 | transform: scale(1.1); 367 | } 368 | } 369 | 370 | .emotion-kit-comps p::selection { 371 | color: #333; 372 | background: transparent; 373 | } 374 | 375 | .emotion-live-cam { 376 | width: 100%; 377 | height: 55%; 378 | 379 | div { 380 | width: 250px; 381 | height: 250px; 382 | background-color: #181818; 383 | border-radius: 10px; 384 | margin: 0px auto; 385 | box-shadow: 6px 8px 8px rgba(0, 0, 0, 0.55); 386 | overflow: hidden; 387 | @include mobile { 388 | width: 180px; 389 | height: 180px; 390 | margin-top: 10px; 391 | } 392 | } 393 | 394 | video { 395 | width: 250px; 396 | height: 250px; 397 | @include mobile { 398 | width: 180px; 399 | height: 180px; 400 | } 401 | } 402 | } 403 | 404 | .emotion-loss { 405 | color: #e13527; 406 | font-size: 15px; 407 | margin-bottom: 0px !important; 408 | margin: 0px !important; 409 | padding: 0px 20px !important; 410 | display: flex; 411 | position: relative; 412 | bottom: 25px; 413 | width: 100%; 414 | text-align: center; 415 | font-weight: bold; 416 | justify-content: center; 417 | } -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |This demo is highly experimental in mobile and tablet devices. If you are still crazy in trying out this demo, I suggest you to use a laptop or a desktop. Thanks for your understanding! You're cute 😊
14 | YouTube Video Link 15 |Made with TensorFlow.js ❤️
21 |Add 🤣
111 |0 samples
113 |Add 😲
120 |0 samples
122 |Add 😰
129 |0 samples
131 |Add 😡
138 |0 samples
140 |Add 😴
147 |0 samples
149 |