Commit Graph

719 Commits

Author SHA1 Message Date
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
Christopher Baker 07fb4c79b5 Update opencv-dlib-torch.Dockerfile (#241) 2017-04-24 17:56:35 -04:00
Brandon Amos fe8f73eb69 Tests: Generalize to Python 2 and 3. Run Python 2 by default. 2017-04-24 18:01:10 -04:00
Andrew 71ee6ee747 Make OpenFace work with Python 3 (#231)
* Make OpenFace Python 3 compatible, retaining Python 2 compatibility.
Tests could be parameterised to test for either Python 2 or 3.
Tests currently fail due to different library calculation outcomes?

* Tiny change to remove the dependency on nosetest3.

* Dockerfile updates for OpenFace + Python3 + Dlib19.2 + OpenCV3.2

* Revert "Dockerfile updates for OpenFace + Python3 + Dlib19.2 + OpenCV3.2"

This reverts commit ec08fc9226.

* Change for python2 backwards compatibility

* Change for python2 backwards compatibility

* Change to ensure python2 backwards compatibility

* Change to ensure python2 backwards compatibility
2017-04-24 17:50:16 -04:00
Haroen Viaene 9c02f78a86 nit(README): use svg for travis status (#254)
This looks better and is lower data 😄
2017-04-07 13:26:30 -04:00
Brandon Amos d1fcf1c46d
Update README tags for CommonMark. 2017-03-27 02:15:37 -04:00
Brandon Amos 96b45fd0eb
Use https for the model downloads. 2017-02-07 13:43:42 -05:00
Brandon Amos ec25aecb0d
Travis: Update models download link. 2017-02-07 12:16:35 -05:00
Brandon Amos 320cf3d728
Update links to our models. 2017-02-07 11:56:49 -05:00
Brandon Amos 6848378f40
get-models: Use no-check-cert for our self-hosted models. 2017-02-07 11:33:01 -05:00
Brandon Amos 4ee2cd34fe
Travis: Use trusty dist. 2017-02-07 11:29:38 -05:00
Brandon Amos ccb9b8ec11
Travis: Remove flake, pep, and luacheck. 2017-02-07 11:23:19 -05:00
Brandon Amos b84b7c67f2
Torch Neural Net: Add deconstructor back. 2017-01-07 18:39:26 -05:00
Alex f9764b9c5d Replace destructor with context manager (#223)
* Make TorchNeuralNet a context manager.

Add __enter__/__exit__ method to kill Torch subprocess

* Update doc for the TorchNeuralNet

* Fix code snippets

* Update doc for enter/exit methods

* Format docstring for enter/exit methods
2017-01-07 18:37:23 -05:00
Brandon Amos 7659f7907d
Add @BrandonJoffe's home_surveillance project to our homepage. 2016-11-04 13:22:51 -04:00
Brandon Amos 6343e40441 Add docs to torch_neural_net.__del__ 2016-10-21 09:37:41 -04:00
Brandon Amos 0b6b22313e Add destructor to torch_neural_net for #194 2016-10-21 07:47:42 -04:00
Brandon Amos 4d0280557c Revert "Update tests to use numpy.testing"
This reverts commit 882109c141.
2016-10-16 01:32:00 -04:00
Brandon Amos 882109c141 Update tests to use numpy.testing 2016-10-15 18:22:40 -04:00
Brandon Amos 1267e1abb3 Fix the data type image.load
Thanks Daniil Belkov!

`byte` was defaulting to `"float"`
2016-10-07 14:27:21 -04:00
NMA 041c90f0c1 Added --multi option to infer operation to show a list of faces detected (#189)
* Added --multi option to infer operation to show a list of faces detected in image

* Added testing for infer --multi demo
2016-09-22 06:51:04 -04:00
Ullallulloo 35c99507a6 Added further extension variation acceptance and made extensions properly case insensitive (#188) 2016-09-20 08:36:43 -04:00
Brandon Amos 97f30d5d05 Update sphere demo page. 2016-09-15 09:30:09 -04:00
Brandon Amos 3f8067731d webcam -> camera 2016-09-15 09:02:26 -04:00
Brandon Amos b423779eb1 Bump date. 2016-09-15 08:49:50 -04:00
Brandon Amos 7f6413fca9 Remove unused code. 2016-09-15 08:43:43 -04:00
Brandon Amos bb64d6917e Add sphere demo docs. 2016-09-15 08:43:39 -04:00
Brandon Amos 8bc8227937 Add sphere demo gif. 2016-09-15 08:01:39 -04:00
Brandon Amos 6b453b0b00 sphere demo: Add link to model download. 2016-09-15 08:01:26 -04:00
Brandon Amos f8e37ad8cd Split exhibit images. 2016-09-11 12:35:22 -04:00
Brandon Amos 0b2f07127d cls-3d -> sphere 2016-09-11 12:27:04 -04:00
Brandon Amos 4f6c65bf3c Add data (after)lives poster. 2016-09-11 12:16:43 -04:00
Brandon Amos 909a431db2 Update exhibits.png 2016-09-11 12:15:22 -04:00
Brandon Amos 465fdefc81 Add sphere demo images. 2016-09-11 12:11:25 -04:00
Brandon Amos 1745b19dfa
cls-3d: Fix pep warnings. 2016-09-02 14:27:42 -04:00
Brandon Amos 9c5580d7d1
cls-3d: Bump alpha up. Add text. 2016-09-02 13:33:59 -04:00
Brandon Amos f5c71ad47b
Initial commit with the rest of cls-3d.py 2016-09-02 08:36:22 -04:00
Gabriele Farina da93d45236
Initial commit of projectS and projectC to cls-3d.py 2016-09-01 23:27:30 -04:00
Brandon Amos d915244d23 Update ISSUE_TEMPLATE.md 2016-08-25 15:23:05 -04:00
Brandon Amos 13701ec424 Image loading: Use 'float' instead of an undefined variable. 2016-08-22 19:39:45 -04:00
Brandon Amos 60d31c09b4
Update faq. 2016-08-21 22:03:07 -04:00
Brandon Amos 2f0566a19e
Update link to post. 2016-08-10 13:51:30 -04:00
Brandon Amos f57a92c1c7
Update website. 2016-08-10 09:58:41 -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
Gu Wang 80014e0e97 Update classifier.py (#176)
* Update classifier.py

Add an option to train with grid search svm.

* Update classifier.py
2016-08-06 21:19:21 -04:00
Gu Wang 3dc4546198 Update data.py (#174)
Modify openface.data to deal with images with upper case extension
2016-08-02 10:40:37 -04:00
Brandon Amos 67e9c5d84f ms-celeb-1m: Use MID for directory, imgSearchRank+faceID for name. 2016-07-31 08:51:31 -04:00
Brandon Amos 3582d542c4 Fix flake warning. 2016-07-29 16:05:45 -04:00
Brandon Amos 592052b819
Add comment. 2016-07-29 16:02:22 -04:00