Adds doc for threshold
This commit is contained in:
parent
14f5d327b3
commit
c447c11bc2
16
index.js
16
index.js
|
@ -71,6 +71,9 @@ function help() {
|
||||||
const outputShort = "\x1b[32m-o\x1b[0m";
|
const outputShort = "\x1b[32m-o\x1b[0m";
|
||||||
const outputLong = "\x1b[32m--output\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 forceShort = "\x1b[32m-f\x1b[0m";
|
||||||
const forceLong = "\x1b[32m--force\x1b[0m";
|
const forceLong = "\x1b[32m--force\x1b[0m";
|
||||||
|
|
||||||
|
@ -86,12 +89,13 @@ ${usage}
|
||||||
${command} -i <HTML-FILE>
|
${command} -i <HTML-FILE>
|
||||||
|
|
||||||
${args}
|
${args}
|
||||||
${helpShort}, ${helpLong} Displays this help and quit
|
${helpShort}, ${helpLong} Displays this help and quit
|
||||||
${inputShort}, ${inputLong} <INPUT> Path to the HTML input file
|
${inputShort}, ${inputLong} <INPUT> Path to the HTML input file
|
||||||
${outputShort}, ${outputLong} <OUTPUT> Save mask images and annotations as json in this directory
|
${outputShort}, ${outputLong} <OUTPUT> 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
|
${thresholdShort}, ${thresholdLong} <VALUE> Threshold for RGB mask computation (between 0 and 1)
|
||||||
${flattenLong} Flattens the tree into a list before serializing in JSON
|
${shrinkShort}, ${shrinkLong} Shrink horizontally leaves' bounding boxes
|
||||||
${forceShort}, ${forceLong} Delete the output directory before generating masks it again`);
|
${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() {
|
async function main() {
|
||||||
|
|
Loading…
Reference in New Issue