(self, poseNet, config, di, verbose=False, comrefNet=None)
Initialize data
        :param poseNet: network for pose estimation
        :param config: configuration
        :param di: depth importer
        :param verbose: print additional info
        :param comrefNet: refinement network from center of mass detection
        :return: None
Initialize data
        :param poseNet: network for pose estimation
        :param config: configuration
        :param di: depth importer
        :param verbose: print additional info
        :param comrefNet: refinement network from center of mass detection
        :return: None
Initialize data : param poseNet : network for pose estimation : param config : configuration : param di : depth importer : param verbose : print additional info : param comrefNet : refinement network from center of mass detection : return : None
def __init__(self, poseNet, config, di, verbose=False, comrefNet=None):
        """
        Initialize data
        :param poseNet: network for pose estimation
        :param config: configuration
        :param di: depth importer
        :param verbose: print additional info
        :param comrefNet: refinement network from center of mass detection
        :return: None
        """

        # handpose CNN
        self.importer = di
        self.poseNet = poseNet
        self.comrefNet = comrefNet
        # configuration
        self.initialconfig = copy.deepcopy(config)
        # synchronization between processes
        self.sync = Manager().dict(config=config, fid=0,
                                   crop=numpy.ones((96, 96), dtype='float32'),
                                   com3D=numpy.asarray([0, 0, 300], dtype='float32'),
                                   frame=numpy.ones((240, 320), dtype='float32'), M=numpy.eye(3))

        self.start_prod = Value(c_bool, False)
        self.start_con = Value(c_bool, False)
        self.stop = Value(c_bool, False)
        # for calculating FPS
        self.lastshow = time.time()
        self.runningavg_fps = deque(100*[0], 100)
        self.verbose = verbose
        # hand left/right
        self.hand = Value('i', self.HAND_LEFT)
        # initial state
        self.state = Value('i', self.STATE_IDLE)
        # detector
        self.detection = Value('i', self.DETECTOR_COM)
        # hand size estimation
        self.handsizes = []
        self.numinitframes = 50
        # hand tracking or detection
        self.tracking = Value(c_bool, False)
        self.lastcom = (0, 0, 0)
        # show different results
        self.show_pose = False
        self.show_crop = False
def __init__ ( self , poseNet , config , di , verbose = False , comrefNet = None ) : # handpose CNN self . importer = di self . poseNet = poseNet self . comrefNet = comrefNet # configuration self . initialconfig = copy . deepcopy ( config ) # synchronization between processes self . sync = Manager ( ) . dict ( config = config , fid = 0 , crop = numpy . ones ( ( 96 , 96 ) , dtype = 'float32' ) , com3D = numpy . asarray ( [ 0 , 0 , 300 ] , dtype = 'float32' ) , frame = numpy . ones ( ( 240 , 320 ) , dtype = 'float32' ) , M = numpy . eye ( 3 ) ) self . start_prod = Value ( c_bool , False ) self . start_con = Value ( c_bool , False ) self . stop = Value ( c_bool , False ) # for calculating FPS self . lastshow = time . time ( ) self . runningavg_fps = deque ( 100 * [ 0 ] , 100 ) self . verbose = verbose # hand left/right self . hand = Value ( 'i' , self . HAND_LEFT ) # initial state self . state = Value ( 'i' , self . STATE_IDLE ) # detector self . detection = Value ( 'i' , self . DETECTOR_COM ) # hand size estimation self . handsizes = [ ] self . numinitframes = 50 # hand tracking or detection self . tracking = Value ( c_bool , False ) self . lastcom = ( 0 , 0 , 0 ) # show different results self . show_pose = False self . show_crop = False