diff --git a/assets/lato.ttf b/assets/lato.ttf new file mode 100644 index 00000000..9c0a7053 Binary files /dev/null and b/assets/lato.ttf differ diff --git a/config.js b/config.js index 8772b40d..7dde6b53 100644 --- a/config.js +++ b/config.js @@ -58,7 +58,7 @@ export default { // as face probably hasn't moved much in short time (10 * 1/25 = 0.25 sec) minConfidence: 0.1, // threshold for discarding a prediction iouThreshold: 0.1, // threshold for deciding whether boxes overlap too much in non-maximum suppression (0.1 means drop if overlap 10%) - scoreThreshold: 0.1, // threshold for deciding when to remove boxes based on score in non-maximum suppression, this is applied on detection objects only and before minConfidence + scoreThreshold: 0.2, // threshold for deciding when to remove boxes based on score in non-maximum suppression, this is applied on detection objects only and before minConfidence }, mesh: { enabled: true, @@ -108,9 +108,9 @@ export default { skipFrames: 15, // how many frames to go without re-running the hand bounding box detector, only used for video inputs // if model is running st 25 FPS, we can re-use existing bounding box for updated hand skeleton analysis // as the hand probably hasn't moved much in short time (10 * 1/25 = 0.25 sec) - minConfidence: 0.2, // threshold for discarding a prediction + minConfidence: 0.5, // threshold for discarding a prediction iouThreshold: 0.2, // threshold for deciding whether boxes overlap too much in non-maximum suppression - scoreThreshold: 0.2, // threshold for deciding when to remove boxes based on score in non-maximum suppression + scoreThreshold: 0.5, // threshold for deciding when to remove boxes based on score in non-maximum suppression enlargeFactor: 1.65, // empiric tuning as skeleton prediction prefers hand box with some whitespace maxHands: 10, // maximum number of hands detected in the input, should be set to the minimum number for performance detector: { diff --git a/demo/browser.js b/demo/browser.js index a79b79ad..3fa25bc7 100644 --- a/demo/browser.js +++ b/demo/browser.js @@ -286,15 +286,15 @@ async function detectSampleImages() { function setupMenu() { menu = new Menu(document.body, '...', { top: '1rem', right: '1rem' }); - const btn = menu.addButton('Start Video', 'Pause Video', () => detectVideo()); - menu.addButton('Process Images', 'Process Images', () => detectSampleImages()); + const btn = menu.addButton('start video', 'pause video', () => detectVideo()); + menu.addButton('process images', 'process images', () => detectSampleImages()); document.getElementById('play').addEventListener('click', () => btn.click()); menu.addHTML('