class HandParserSingleThread:

    def __init__(self, buffer: list):
        self.buffer = buffer
        self.hand = Hand()

    def run(self):
        self.hand.parse(self.buffer)
class HandParser(Thread):

    def __init__(self, buffer: list):
        Thread.__init__(self)
        self.buffer = buffer
        self.hand = Hand()

    def run(self):
        self.hand.parse(self.buffer)
 def __init__(self, buffer: list):
     Thread.__init__(self)
     self.buffer = buffer
     self.hand = Hand()
 def __init__(self, buffer: list):
     self.buffer = buffer
     self.hand = Hand()
Beispiel #5
0
def detect_hand(frame, hist):
    detected_hand, masked, raw = locate_object(frame, hist)
    return Hand(detected_hand, masked, raw, frame)