update demos

pull/94/head
Vladimir Mandic 2021-04-02 08:05:19 -04:00
parent e2ed67e591
commit e701012c3f
2 changed files with 18 additions and 1 deletions

View File

@ -90,7 +90,7 @@ function resize(input) {
camera.bottom = -height / 2;
camera.near = -100;
camera.far = 100;
camera.zoom = 3;
camera.zoom = 2;
camera.updateProjectionMatrix();
renderer.setSize(width, height);
}

View File

@ -186,6 +186,23 @@ async function main() {
log('Enumerated:', images.length, 'images');
for (let i = 0; i < images.length; i++) await process(i, images[i]);
// could not dynamically enumerate images so using static list
if (images.length === 0) {
images = [
'/assets/sample1.jpg',
'/assets/sample2.jpg',
'/assets/sample3.jpg',
'/assets/sample4.jpg',
'/assets/sample5.jpg',
'/assets/sample6.jpg',
'/assets/sample6.jpg',
'/assets/sample-me.jpg',
'/assets/human-sample-face.jpg',
'/assets/human-sample-upper.jpg',
'/assets/human-sample-body.jpg',
];
}
// print stats
const num = all.reduce((prev, cur) => prev += cur.length, 0);
log('Extracted faces:', num, 'from images:', all.length);