Skip to content

Latest commit

 

History

History
65 lines (58 loc) · 3.19 KB

File metadata and controls

65 lines (58 loc) · 3.19 KB

from-instance-png-od

  • generates: idc.api.ObjectDetectionData

Loads the annotations from associated indexed PNG files. An annotation contains just a single label and each object instance is using a separate palette index. When reading only the annotations, an empty image of the same dimensions is used.

usage: from-instance-png-od [-h] [-l {DEBUG,INFO,WARNING,ERROR,CRITICAL}]
                            [-N LOGGER_NAME] [-i [INPUT ...]]
                            [-I [INPUT_LIST ...]] [--resume_from RESUME_FROM]
                            [--image_path_rel PATH] [--image_prefix PREFIX]
                            [--annotation_prefix PREFIX] --label LABEL
                            [--background BACKGROUND] [-m MIN_SIZE]
                            [-M MAX_SIZE] [--annotations_only]

Loads the annotations from associated indexed PNG files. An annotation
contains just a single label and each object instance is using a separate
palette index. When reading only the annotations, an empty image of the same
dimensions is used.

options:
  -h, --help            show this help message and exit
  -l {DEBUG,INFO,WARNING,ERROR,CRITICAL}, --logging_level {DEBUG,INFO,WARNING,ERROR,CRITICAL}
                        The logging level to use. (default: WARN)
  -N LOGGER_NAME, --logger_name LOGGER_NAME
                        The custom name to use for the logger, uses the plugin
                        name by default (default: None)
  -i [INPUT ...], --input [INPUT ...]
                        Path to the PNG file(s) to read; glob syntax is
                        supported; Supported variables: {HOME}, {CWD}, {TMP}
                        (default: None)
  -I [INPUT_LIST ...], --input_list [INPUT_LIST ...]
                        Path to the text file(s) listing the PNG files to use;
                        Supported variables: {HOME}, {CWD}, {TMP} (default:
                        None)
  --resume_from RESUME_FROM
                        Glob expression matching the file to resume from,
                        e.g., '*/012345.png' (default: None)
  --image_path_rel PATH
                        The relative path from the annotations to the images
                        directory (default: None)
  --image_prefix PREFIX
                        The prefix that the images use, e.g., 'image_'.
                        (default: None)
  --annotation_prefix PREFIX
                        The prefix that the annotations use, e.g., 'gt_'.
                        (default: None)
  --label LABEL         The label that the indices represent. (default: None)
  --background BACKGROUND
                        The index (0-255) that is used for the background
                        (default: 0)
  -m MIN_SIZE, --min_size MIN_SIZE
                        The minimum width or height that detected contours
                        must have. (default: None)
  -M MAX_SIZE, --max_size MAX_SIZE
                        The maximum width or height that detected contours can
                        have. (default: None)
  --annotations_only    Reads only the annotations. (default: False)

Available variables:

  • {HOME}: The home directory of the current user.
  • {CWD}: The current working directory.
  • {TMP}: The temp directory.