Skip to content

Commit

Permalink
https://github.com/jeeliz/jeelizFaceFilter/issues/83
Browse files Browse the repository at this point in the history
  • Loading branch information
xavierjs committed Feb 15, 2019
1 parent f8b68d3 commit 44860aa
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ The initialization function ( `callbackReady` in the code snippet ) will be call
* `false`: no error occurs,
* `"GL_INCOMPATIBLE"`: WebGL is not available, or this WebGL configuration is not enough (there is no WebGL2, or there is WebGL1 without OES_TEXTURE_FLOAT or OES_TEXTURE_HALF_FLOAT extension),
* `"ALREADY_INITIALIZED"`: the API has been already initialized,
* `"NO_CANVASID"`: no canvas ID was specified,
* `"NO_CANVASID"`: no canvas or canvas ID was specified,
* `"INVALID_CANVASID"`: cannot found the `<canvas>` element in the DOM,
* `"INVALID_CANVASDIMENSIONS"`: the dimensions `width` and `height` of the canvas are not specified,
* `"WEBCAM_UNAVAILABLE"`: cannot get access to the webcam (the user has no webcam, or it has not accepted to share the device, or the webcam is already busy),
Expand Down Expand Up @@ -389,6 +389,8 @@ or using `require` ([see issue #72](https://github.com/jeeliz/jeelizFaceFilter/i
const faceFilter =require('./lib/jeelizFaceFilterES6.js')

faceFilter.init({
//you can also provide the canvas directly
//using the canvas property instead of canvasId:
canvasId: 'jeeFaceFilterCanvas',
NNCpath: '../../../dist/', //path to JSON neural network model (NNC.json by default)
callbackReady: function(errCode, spec){
Expand Down
6 changes: 3 additions & 3 deletions dist/jeelizFaceFilter.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions dist/jeelizFaceFilterES6.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 44860aa

Please sign in to comment.