Example #1
0
class HandParserSingleThread:

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

    def run(self):
        self.hand.parse(self.buffer)
Example #2
0
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)
Example #3
0
 def __init__(self, buffer: list):
     Thread.__init__(self)
     self.buffer = buffer
     self.hand = Hand()
Example #4
0
 def __init__(self, buffer: list):
     self.buffer = buffer
     self.hand = Hand()
Example #5
0
def detect_hand(frame, hist):
    detected_hand, masked, raw = locate_object(frame, hist)
    return Hand(detected_hand, masked, raw, frame)