Detection¶
detection_plain.yaml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | # Basic object detection # ---------------------- # Uses thresholding for segmentation. Contains optional morphology # operations to remove fine structures (see # https://docs.opencv.org/master/db/df6/tutorial_erosion_dilatation.html # for details), as well as an optional contour-editing step (clean up # detected contours and detect again), and default visualization and # export steps. Measure shape and texture features (optional). template_locked: true # prevents accidental overwrite - removed after loading processing_steps: - preprocessing: - blur: kernel_size: 5 - segmentation: - threshold: method: binary value: 127 # - morphology: # operation: open # shape: cross # kernel_size: 5 # iterations: 3 # - morphology: # operation: close # shape: ellipse # kernel_size: 5 # iterations: 3 - detect_contour: min_diameter: 0 min_area: 0 # - edit_contour # - detect_contour: # min_diameter: 0 # min_area: 0 # - measurement: # - compute_shape_features # - compute_texture_features - visualization: - draw_contour - export: - save_canvas - save_annotation: overwrite: true |
detection_mask.yaml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 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 | # Object detection with masking # ----------------------------- # Uses thresholding for segmentation, with an initial masking step # to remove unwanted areas ("include: true" to ONLY include specific # areas or "include: false" to EXCLUDE specific areas. Also contains # optional morphology operations to remove fine structures (see # https://docs.opencv.org/master/db/df6/tutorial_erosion_dilatation.html # for details), as well as an optional contour-editing step (clean up # detected contours and detect again), and default visualization and # export steps. Measure shape and texture features (optional). template_locked: true # prevents accidental overwrite - removed after loading processing_steps: - preprocessing: - blur: kernel_size: 5 - create_mask: tool: rectangle include: true - segmentation: - threshold: method: binary value: 127 # - morphology: # operation: open # shape: cross # kernel_size: 5 # iterations: 3 # - morphology: # operation: close # shape: ellipse # kernel_size: 5 # iterations: 3 - detect_contour: min_diameter: 0 min_area: 0 # - edit_contour # - detect_contour: # min_diameter: 0 # min_area: 0 # - measurement: # - compute_shape_features # - compute_texture_features - visualization: - draw_contour - draw_mask - export: - save_canvas - save_annotation: overwrite: true |
detection_ref.yaml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 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 | # Object detection with masking and reference detection # ----------------------------------------------------- # Uses thresholding for segmentation. If a template # for a reference card has been created on the project level, # "detect_reference" will attempt to find it in the current image, # measure the current px-ratio, and exclude it detection. Also contains # optional morphology operations to remove fine structures (see # https://docs.opencv.org/master/db/df6/tutorial_erosion_dilatation.html # for details), as well as an optional contour-editing step (clean up # detected contours and detect again), and default visualization and # export steps. Measure shape and texture features (optional). template_locked: true # prevents accidental overwrite - removed after loading processing_steps: - preprocessing: - blur: kernel_size: 5 - detect_reference - segmentation: - threshold: method: binary value: 127 # - morphology: # operation: open # shape: cross # kernel_size: 5 # iterations: 3 # - morphology: # operation: close # shape: ellipse # kernel_size: 5 # iterations: 3 - detect_contour: min_diameter: 0 min_area: 0 # - edit_contour # - detect_contour: # min_diameter: 0 # min_area: 0 # - measurement: # - compute_shape_features # - compute_texture_features - visualization: - draw_contour - draw_reference: label: true - export: - save_canvas - save_annotation: overwrite: true |
detection_mask_ref.yaml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 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 | # Object detection with masking and reference detection # ----------------------------------------------------- # Uses thresholding for segmentation, with an initial masking step # to remove unwanted areas ("include: true" to ONLY include specific # areas or "include: false" to EXCLUDE specific areas. If a template # for a reference card has been created on the project level, # "detect_reference" will attempt to find it in the current image, # measure the current px-ratio, and exclude it detection. Also contains # optional morphology operations to remove fine structures (see # https://docs.opencv.org/master/db/df6/tutorial_erosion_dilatation.html # for details), as well as an optional contour-editing step (clean up # detected contours and detect again), and default visualization and # export steps. Measure shape and texture features (optional). template_locked: true # prevents accidental overwrite - removed after loading processing_steps: - preprocessing: - blur: kernel_size: 5 - create_mask: tool: rectangle include: true - detect_reference - segmentation: - threshold: method: binary value: 127 # - morphology: # operation: open # shape: cross # kernel_size: 5 # iterations: 3 # - morphology: # operation: close # shape: ellipse # kernel_size: 5 # iterations: 3 - detect_contour: min_diameter: 0 min_area: 0 # - edit_contour # - detect_contour: # min_diameter: 0 # min_area: 0 # - measurement: # - compute_shape_features # - compute_texture_features - visualization: - draw_contour - draw_mask - draw_reference: label: true - export: - save_canvas - save_annotation: overwrite: true |