robokudo.annotators.image_cluster_extractor =========================================== .. py:module:: robokudo.annotators.image_cluster_extractor Classes ------- .. autoapisummary:: robokudo.annotators.image_cluster_extractor.ImageClusterExtractor Functions --------- .. autoapisummary:: robokudo.annotators.image_cluster_extractor.on_trackbar Module Contents --------------- .. py:function:: on_trackbar(x) .. py:class:: ImageClusterExtractor(name='ImageClusterExtractor', descriptor=Descriptor()) Bases: :py:obj:`robokudo.annotators.core.BaseAnnotator` Find a cluster based on Color image segmentation. .. py:class:: ViewMode .. py:attribute:: masked_object :value: 1 .. py:attribute:: depth_mask :value: 2 .. py:class:: Descriptor Bases: :py:obj:`robokudo.annotators.core.BaseAnnotator.Descriptor` .. py:class:: Parameters .. py:attribute:: hsv_min :value: (150, 130, 85) .. py:attribute:: hsv_max :value: (200, 255, 255) .. py:attribute:: erosion_iterations :value: 2 .. py:attribute:: contour_min_size :value: 1000 .. py:attribute:: color_name_to_hsv_range .. py:attribute:: outlier_removal :value: True .. py:attribute:: outlier_removal_nb_neighbors :value: 20 .. py:attribute:: outlier_removal_std_ratio :value: 2.0 .. py:attribute:: num_of_objects :value: 2 .. py:attribute:: min_points_threshold :value: 62 .. py:attribute:: parameters .. py:method:: dyn_rec_callback(config, level) .. py:attribute:: color :value: None .. py:attribute:: ddynrec .. py:attribute:: display_mode :value: 1 .. py:method:: 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 .. py:method:: update() .. py:method:: send_empty_query_answer() .. py:method:: key_callback(key)