Example #1
0
 def __init__(self, config, color, c_pipe, s_pipe):
     Process.__init__(self)
     self.__c_pipe = c_pipe
     self.__s_pipe = s_pipe
     # -1 stop process, 0 pause process, 1 start-resume process
     self.__c_data = 1
     # 0 don't send images, != 0 send images
     self.__s_data = 0
     self.__filter = filter_pool(config[1:4])
     self.__segment = segment_pool(config[4:6], color)
     return
Example #2
0
 def __get_segment(self):
     try:
         self.__segment.update_config(self.__actual_config[3:5], self.__color)
     except:
         self.__segment = segment_pool(self.__actual_config[3:5], self.__color)
     return