CLI

Detect crop rows in segmented image

usage: Crop Row Detector [-h] [--orthomosaic FILENAME]
                         [--tile_size TILE_SIZE [TILE_SIZE ...]]
                         [--tile_overlap TILE_OVERLAP]
                         [--output_location FILENAME] [--save_tiles]
                         [--generate_debug_images] [--save_statistics]
                         [--tile_boundary]
                         [--run_specific_tile TILE_ID [TILE_ID ...]]
                         [--run_specific_tileset FROM_TILE_ID TO_TILE_ID [FROM_TILE_ID TO_TILE_ID ...]]
                         [--expected_crop_row_distance DISTANCE]
                         [--min_angle ANGLE] [--max_angle ANGLE]
                         [--angle_resolution BINS] [--max_workers MAX_WORKERS]
                         [--use_process_pools]
                         segmented_orthomosaic

Positional Arguments

segmented_orthomosaic

Path to the segmented_orthomosaic that you want to process.

Named Arguments

--orthomosaic

Path to the orthomosaic that you want to plot on. if not set, the segmented_orthomosaic will be used.

--tile_size

The height and width of tiles that are analyzed. Default is 500.

Default: 500

--tile_overlap

Percentage overlap between tiles in tile size. Added as padding making the actual tile size larger.

Default: 0

--output_location

The location in which to save the mahalanobis tiles.

Default: output/mahal

--save_tiles

If set tiles are saved at output_location/tiles. Useful for debugging or parameter tweaking. Default no tiles are saved.

Default: False

--generate_debug_images

If set debug images will be generated. default is no debug images is generated.

Default: False

--save_statistics

If set statistics are saved at output_location.

Default: False

--tile_boundary

if set will plot a boundary on each tile and the tile number on the tile. Default is no boundary and tile number.

Default: False

--run_specific_tile

If set, only run the specific tile numbers. (–run_specific_tile 16 65) will run tile 16 and 65.

--run_specific_tileset

takes two inputs like (–from_specific_tileset 16 65). This will run every tile from 16 to 65.

--expected_crop_row_distance

The expected distance between crop rows in pixels, default is 20.

Default: 20

--min_angle

The minimum angle in which the crop rows is expected. Value between 0 and 180. (In compas angles, i.e. 0 north, 90 east, 180 south and 270 west). Default is 0.

Default: 0

--max_angle

The maximum angle in which the crop rows is expected. Value between 0 and 180. (In compas angles, i.e. 0 north, 90 east, 180 south and 270 west). Default is 180.

Default: 180

--angle_resolution

How many bins each degree is divided into. Default is 8.

Default: 8

--max_workers

Set the maximum number of workers. Default to number of cpus.

Default: 4

--use_process_pools

Use process pools instead of threads. This may come at an extra cost of memory but will be faster.

Default: False

test