def run_image_smooth(self): ss_labels, s_labels = find_object(self.piximage.image_ycrcb, self.piximage.image_o, self.tree, self.background) self.ss_labels = ss_labels self.s_labels = s_labels
def find_pattern(self, hmm_model_other, hmm_model_tree, *hmm_model_alternative): # print(self.image_cv) self.matrix_t_color = find_object(copy.deepcopy(self.image_ycrcb), copy.deepcopy(self.matrix_o), hmm_model_other, hmm_model_tree, *hmm_model_alternative) # print(self.matrix_t_color) self.image_t_color = Image.fromarray(numpy.asarray( self.matrix_t_color, dtype="uint8" ))