updated gitpages examples

pull/13/head
Vladimir Mandic 2020-10-11 12:44:54 -04:00
parent 4b61081926
commit 253601e061
2 changed files with 8 additions and 2 deletions

View File

@ -38,12 +38,18 @@ There are several ways to use Face-API:
*Size: 936KB minified* *Size: 936KB minified*
This is simplest way for usage within Browser as it includes full version of TensorFlow/JS prepackaged with no external dependencies. This is simplest way for usage within Browser as it includes full version of TensorFlow/JS prepackaged with no external dependencies.
Simply include this in your `HTML` file and it's ready to use. Simply download `dist/face-api.js`, include it in your `HTML` file & it's ready to use.
```html ```html
<script src="dist/face-api.js"><script> <script src="dist/face-api.js"><script>
``` ```
For a quick test, you can access the script directly from `gitpages`
```html
<script src="https://vladmandic.github.io/face-api/dist/face-api.js"></script>
```
IIFE script auto-registers global namespace `faceapi` within Window object. IIFE script auto-registers global namespace `faceapi` within Window object.
And if you want to access `TensorFlow/JS` classes directly, they are exported as `faceapi.tf` And if you want to access `TensorFlow/JS` classes directly, they are exported as `faceapi.tf`

View File

@ -6,7 +6,7 @@
<meta content="text/html"> <meta content="text/html">
<meta charset="UTF-8"> <meta charset="UTF-8">
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/tensorflow/2.6.0/tf.min.js"></script> --> <!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/tensorflow/2.6.0/tf.min.js"></script> -->
<script src="../dist/face-api.js"></script> <script src="https://vladmandic.github.io/face-api/dist/face-api.js"></script>
<style> <style>
body { font-family: monospace; background: black; color: white; font-size: 16px; line-height: 22px; margin: 0; } body { font-family: monospace; background: black; color: white; font-size: 16px; line-height: 22px; margin: 0; }
</style> </style>