robokudo.annotators.image_cluster_extractor

Classes

ImageClusterExtractor

Find a cluster based on Color image segmentation.

Functions

Module Contents

robokudo.annotators.image_cluster_extractor.on_trackbar(x)
class robokudo.annotators.image_cluster_extractor.ImageClusterExtractor(name='ImageClusterExtractor', descriptor=Descriptor())

Bases: robokudo.annotators.core.BaseAnnotator

Find a cluster based on Color image segmentation.

class ViewMode
masked_object = 1
depth_mask = 2
class Descriptor

Bases: robokudo.annotators.core.BaseAnnotator.Descriptor

class Parameters
hsv_min = (150, 130, 85)
hsv_max = (200, 255, 255)
erosion_iterations = 2
contour_min_size = 1000
color_name_to_hsv_range
outlier_removal = True
outlier_removal_nb_neighbors = 20
outlier_removal_std_ratio = 2.0
num_of_objects = 2
min_points_threshold = 62
parameters
dyn_rec_callback(config, level)
color = None
ddynrec
display_mode = 1
adjust_hsv_threshold_to_query() None

This method checks if there is a valid query in the CAS of this annotator. It checks if a specific color is requested and looks up the corresponding color thresholding parameters for it.

Will do nothing if no Query exists, or no color information is passed, or the color is not in the mapping. :return: None

update()
send_empty_query_answer()
key_callback(key)