updated
parent
5d43985e1c
commit
d104de5429
|
@ -6,7 +6,7 @@
|
|||
<meta content="text/html">
|
||||
<meta charset="UTF-8">
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/tensorflow/2.3.0/tf.es2017.js" integrity="sha512-86mDh7XD/1SzFWCS4UwRHiIN8jak+8wHL4ird70XnjlLTrWsFbYCAez10OeivKcbvhAG1HC3qm2RlJrM3lnIqA==" crossorigin="anonymous"></script>
|
||||
<script src="/dist/face-api.js"></script>
|
||||
<script src="dist/face-api.js"></script>
|
||||
<style>
|
||||
body { font-family: monospace; background: black; color: white; font-size: 16px; line-height: 22px; margin: 0; }
|
||||
</style>
|
||||
|
@ -18,11 +18,11 @@
|
|||
/* tfjs should be loaded explicitly and is not embedded inside facepi.js to keep size small and allow reusability */
|
||||
|
||||
// configuration options
|
||||
const modelPath = '/weights'; // relative path to model that will be loaded using http
|
||||
const modelPath = 'weights'; // relative path to model that will be loaded using http
|
||||
const imgSize = 512; // maximum image size in pixels
|
||||
const minScore = 0.1; // minimum score
|
||||
const maxResults = 5; // maximum number of results to return
|
||||
const samples = ['/example/sample (1).jpg', '/example/sample (2).jpg', '/example/sample (3).jpg', '/example/sample (4).jpg', '/example/sample (5).jpg', '/example/sample (6).jpg']; // sample images to be loaded using http
|
||||
const samples = ['example/sample (1).jpg', 'example/sample (2).jpg', 'example/sample (3).jpg', 'example/sample (4).jpg', 'example/sample (5).jpg', 'example/sample (6).jpg']; // sample images to be loaded using http
|
||||
|
||||
// helper function to pretty-print json object to string
|
||||
function str(json) {
|
||||
|
|
Loading…
Reference in New Issue