split
Crops Split App.
API REFERENCE
crops_split(ground_truth_file, image_folder, output_file, output_image_folder, crop_height, crop_width, row_overlap=0, col_overlap=0, min_area_threshold=0.0)
Creates new dataset by splitting images into crops and adapting the annotations.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
ground_truth_file |
str
|
Path to a COCO ground_truth_file. |
required |
image_folder |
str
|
Path where the images of the ground_truth_file are stored. |
required |
output_file |
str
|
Path where the |
required |
output_image_folder |
str
|
Path where the crops will be saved. |
required |
crop_height |
int
|
Crop height. |
required |
crop_width |
int
|
Crop width |
required |
row_overlap |
int
|
Row overlap. Defaults to 0. |
0
|
col_overlap |
int
|
Column overlap. Defaults to 0. |
0
|
min_area_threshold |
float
|
Minimum area threshold ratio. If the cropped annotation area is smaller than the threshold, the annotation is filtered out. Defaults to 0. |
0.0
|
Source code in pyodi/apps/crops/crops_split.py
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 |
|