From c447c11bc2919a8b8685e963a081bedfe9823832 Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Wed, 1 Mar 2023 17:55:00 +0100 Subject: [PATCH] Adds doc for threshold --- index.js | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/index.js b/index.js index ae288d5..a7c7def 100644 --- a/index.js +++ b/index.js @@ -71,6 +71,9 @@ function help() { const outputShort = "\x1b[32m-o\x1b[0m"; const outputLong = "\x1b[32m--output\x1b[0m"; + const thresholdShort = "\x1b[32m-t\x1b[0m"; + const thresholdLong = "\x1b[32m--threshold\x1b[0m"; + const forceShort = "\x1b[32m-f\x1b[0m"; const forceLong = "\x1b[32m--force\x1b[0m"; @@ -86,12 +89,13 @@ ${usage} ${command} -i ${args} - ${helpShort}, ${helpLong} Displays this help and quit - ${inputShort}, ${inputLong} Path to the HTML input file - ${outputShort}, ${outputLong} Save mask images and annotations as json in this directory - ${shrinkShort}, ${shrinkLong} Replace leafs of tree by span of themselves to shrink horizontally their bounding boxes - ${flattenLong} Flattens the tree into a list before serializing in JSON - ${forceShort}, ${forceLong} Delete the output directory before generating masks it again`); + ${helpShort}, ${helpLong} Displays this help and quit + ${inputShort}, ${inputLong} Path to the HTML input file + ${outputShort}, ${outputLong} Save mask images and annotations as json in this directory + ${thresholdShort}, ${thresholdLong} Threshold for RGB mask computation (between 0 and 1) + ${shrinkShort}, ${shrinkLong} Shrink horizontally leaves' bounding boxes + ${flattenLong} Flattens the tree into a list before serializing in JSON + ${forceShort}, ${forceLong} Delete the output directory before generating masks it again`); } async function main() {