Command-line interface (CLI)#

detectree#

Detectree CLI.

detectree [OPTIONS] COMMAND [ARGS]...

Options

--version#

Show the version and exit.

predict-img#

Predict tree pixels in an image.

detectree predict-img [OPTIONS] IMG_FILEPATH

Options

--clf-filepath <clf_filepath>#
--tree-val <tree_val>#
--nontree-val <nontree_val>#
--refine#
--refine-beta <refine_beta>#
--refine-int-rescale <refine_int_rescale>#
--pixel-features-builder-kwargs <pixel_features_builder_kwargs>#
--output-filepath <output_filepath>#

Arguments

IMG_FILEPATH#

Required argument

predict-imgs#

Predict tree pixels in multiple images.

detectree predict-imgs [OPTIONS] SPLIT_FILEPATH

Options

--clf-filepath <clf_filepath>#
--clf-dir <clf_dir>#
--tree-val <tree_val>#
--nontree-val <nontree_val>#
--refine#
--refine-beta <refine_beta>#
--refine-int-rescale <refine_int_rescale>#
--pixel-features-builder-kwargs <pixel_features_builder_kwargs>#
--output-dir <output_dir>#

Arguments

SPLIT_FILEPATH#

Required argument

train-classifier#

Train a tree/non-tree pixel classifier.

detectree train-classifier [OPTIONS]

Options

--split-filepath <split_filepath>#
--response-img-dir <response_img_dir>#
--img-filepaths <img_filepaths>#
--response-img-filepaths <response_img_filepaths>#
--img-dir <img_dir>#
--img-filename-pattern <img_filename_pattern>#
--method <method>#
--img-cluster <img_cluster>#
--sigmas <sigmas>#
--num-orientations <num_orientations>#
--min-neighborhood-range <min_neighborhood_range>#
--num-neighborhoods <num_neighborhoods>#
--tree-val <tree_val>#
--nontree-val <nontree_val>#
--classifier-kwargs <classifier_kwargs>#
--output-filepath <output_filepath>#

train-classifiers#

Train tree/non-tree pixel classifier(s) for a given train/test split.

detectree train-classifiers [OPTIONS] SPLIT_FILEPATH RESPONSE_IMG_DIR

Options

--sigmas <sigmas>#
--num-orientations <num_orientations>#
--min-neighborhood-range <min_neighborhood_range>#
--num-neighborhoods <num_neighborhoods>#
--tree-val <tree_val>#
--nontree-val <nontree_val>#
--classifier-kwargs <classifier_kwargs>#
--output-dir <output_dir>#

Arguments

SPLIT_FILEPATH#

Required argument

RESPONSE_IMG_DIR#

Required argument

train-test-split#

Split the set of images into training and testing sets.

detectree train-test-split [OPTIONS]

Options

--img-filepaths <img_filepaths>#
--img-dir <img_dir>#
--img-filename-pattern <img_filename_pattern>#
--gabor-frequencies <gabor_frequencies>#
--gabor-num-orientations <gabor_num_orientations>#
--response-bins-per-axis <response_bins_per_axis>#
--num-color-bins <num_color_bins>#
--method <method>#
--num-components <num_components>#
--num-img-clusters <num_img_clusters>#
--train-prop <train_prop>#
--output-filepath <output_filepath>#