Commit Graph

51 Commits

Author SHA1 Message Date
Adrian Pascu 1142e7ac47 Remove usage of deprecated mozilla api
This API is no longer working in the current Firefox version (69)
There is also a similar discussion here: https://github.com/webrtc/samples/issues/302
2019-11-26 10:56:28 -05:00
Thart310 cff4f882f2 Update openface-demo.js 2019-06-24 07:41:31 -04:00
Lex Toumbourou 4d205fcd1b Set autoplay to muted so it works consistently. 2018-06-07 18:16:31 -07:00
Lex Toumbourou 0c07bba31e Fix deprecated method in web demo. 2018-06-07 17:55:37 -07:00
montag 47afcbf35a Tls cert bugfix (#262)
* Bugfix for systems that cannot generate openssl certs. Includes self-signed certs that expire in 10 years. Removed automatic cert generation from install-deps.sh. Updated create-cert.sh to manually generate 10year certs (or any custom duration).

* Docker config changes to support web demo TLS
2017-05-01 13:40:54 -04:00
montag 37ba2ac982 TLS migration for demos/web (#260)
What does this PR do?

Minimally invasive migration to TLS for the http (8000) and websocket (9000) endpoints for the real time web demo.

Where should the reviewer start?

Install the demo like a normal install. During the install-deps.sh script it will prompt for questions to generate a local self-signed cert. Anything can be entered into the cert. Start the demo as normal but connect on https://domain:http_port instead of http.

How should this PR be tested?

The first step is the cert generation (added to install-deps.sh for convenience). The second step is ensuring the two endpoints are brought up. The next step is loading the web page and accepting the self-signed cert. Reloading the web app everything should now be secure, e.g. no errors or warnings and the video works as normal.

Any background context you want to provide?

I tried to be as minimal as possible so the changes tends to follow the existing structure rather than a refactor of anything major. With that said, SimpleHTTPServer doesn't work with TLS via the -m flag so that is now a short script. I updated all the html/js files to point to https/wss. I also updated the js for Firefox's change from navigator.mozGetUserMedia to navigator.mediaDevices.getUserMedia.

What are the relevant issues?

#75

Questions:

Do the docs need to be updated?
Yes. I updated the script's docs in demos/web but didn't make any changes outside of demos/web

Does this PR add new (Python) dependencies?
I don't think so.
2017-04-28 06:05:12 -04:00
Rasmus Haglund 611d05af47 Updated to work with new openface api (#177)
* Updated to work with new openface api

* Prevent the save from breaking when getRep returns None
2016-08-06 21:21:33 -04:00
Brandon Amos 026288afa6 Merge pull request #155 from heman4t/master
Updated demo/web/vendor deps
2016-06-28 12:40:12 -04:00
hemantsangwan efa3ab8007 Updated web/vendor deps 2016-06-28 10:47:47 +05:30
Brandon Amos 3b9b99c3b2 Bump scikit-learn requirements for #137. 2016-05-13 18:24:17 -04:00
Brandon Amos 18575f7199 Web demo: bower: Update metadata. 2016-03-09 18:56:56 -05:00
Brandon Amos cfe3a83e2f websocket server: Use store_true for --cuda. 2016-02-05 20:08:18 -05:00
Brandon Amos 19d9d8c703 Add more details to start-servers.sh
Thanks @justinsteele
2016-01-20 23:18:17 -05:00
Brandon Amos 9d1bd99579 Update copyright notices.
sed -i "/[Cc]opyright.*2015.*Carnegie Mellon University/s/2015/2015-2016/;"  $(git grep '[Cc]opyright.*Carnegie Mellon University'  | sed 's/:.*//' | uniq)
2016-01-13 14:52:52 -05:00
Brandon Amos f96b206765 Use nn4.small2.v1 by default. 2016-01-12 15:46:57 -05:00
Brandon Amos ff06eff893 Docker: Move Python dependencies to Ubuntu package binaries. 2016-01-11 16:12:45 -05:00
Brandon Amos 1de080d65b Web Demo: Use outer eyes and nose. 2016-01-11 10:31:38 -05:00
Brandon Amos 434dc1ca9f Fix flake8 warnings. 2016-01-07 18:43:25 -05:00
Brandon Amos 6246fada83 Update code to nn4.v2 for #55. 2016-01-07 18:28:11 -05:00
Brandon Amos 4357fdccae Update websocket-server to latest API. 2015-12-31 13:02:36 -05:00
Brandon Amos 1f7b50efa2 Refactor Python interface. 2015-12-29 19:57:29 -05:00
Brandon Amos dceb6a910b flake8 improvements. 2015-12-24 11:45:00 -05:00
Brandon Amos 3e5be95a3c Web demo: Assume the HTTP and WebSocket servers are the same so the web demo works in Docker without any modifications. 2015-12-23 18:42:40 -05:00
Brandon Amos 122f70ce3b Remove unused skimage dependency. 2015-12-22 22:14:35 -05:00
Brandon Amos fbde622805 Demos: Remove sys.path appends and unused dlib imports. 2015-12-22 21:33:27 -05:00
Brandon Amos ec6aa45d89 System-wide install of dlib and OpenFace.
Resolves #11
2015-12-22 20:58:06 -05:00
Brandon Amos 027f9dcf8e Real-Time Web Demo: Simplify server initialization. 2015-12-19 18:17:27 -05:00
Brandon Amos 7d73946836 Web demo: server.py -> websocket-server.py 2015-12-19 17:46:57 -05:00
Brandon Amos aec7de78dc Explictly set txaio.use_twisted.
https://groups.google.com/forum/#!topic/cmu-openface/zbWEuYCf7_w
2015-12-18 10:52:36 -05:00
Brandon Amos 918d3af141 Add port option to server. 2015-12-18 10:52:36 -05:00
Brandon Amos b9c848c8a2 Fix pep8 warning. 2015-12-11 15:59:28 -05:00
Brandon Amos c8a4f34095 Untested improvements to create-unknown-vectors. 2015-12-11 15:56:00 -05:00
Brandon Amos ec7650cf73 Update server for the slightly modified alignment API. 2015-12-11 10:21:01 -05:00
Brandon Amos d6809b119e Update align-dlib with new alignment code for #50. 2015-12-08 17:04:57 -05:00
Brandon Amos a1a89ea65f Remove skimage dependency for #50. 2015-12-08 16:41:40 -05:00
ZhihengCV 334461d34f solve the memory leak problem of web-demo 2015-11-28 11:13:40 +08:00
Brandon Amos 09577c5d06 Automatically switch video feeds. 2015-11-26 15:21:18 -05:00
Brandon Amos f1f4f63598 Web Demo: Show fiducial points and use tabs instead of scolling. 2015-11-26 13:31:27 -05:00
Brandon Amos 513ad57244 Web Demo: Use a non-interactive backend. 2015-11-02 11:15:02 -05:00
Brandon Amos f195085d70 Print to the browser's console on websocket error. 2015-10-31 17:12:47 -04:00
Brandon Amos 38660b5ef2 Demo: Show that the connection is local. 2015-10-17 14:24:19 -04:00
Brandon Amos 8538293804 Web demo: Fix edge case in server.py
+ This resolves #20.
+ Edge case is when just a single person is known.
2015-10-17 14:19:32 -04:00
Brandon Amos f615d6b532 Make dlib paths consistent. 2015-10-17 14:19:32 -04:00
Brandon Amos 5ca23547fc Fix some pep8 warnings. 2015-10-12 11:30:29 -04:00
Brandon Amos 69586648e6 Refactor: facenet->openface. 2015-10-10 21:28:41 -04:00
Brandon Amos 02990255e3 Workaround solution for #5: Only use the largest face in the video. 2015-10-03 23:46:43 -04:00
Brandon Amos dc7b050423 Web demo: Correctly display name. 2015-10-03 23:40:19 -04:00
Brandon Amos b0561510b1 Web demo: Don't train SVM if there is only one person. 2015-10-03 23:40:19 -04:00
Brandon Amos dbd4490536 Web demo: Make the 'unknown' class optional. 2015-10-03 22:52:58 -04:00
Brandon Amos f12d181a75 Add command-line opts to the web demo. 2015-10-03 22:47:35 -04:00