threading update
This commit is contained in:
@@ -30,14 +30,14 @@ class NewStoneID(threading.Thread):
|
||||
|
||||
self.needles = {1: cv.imread("litris/blue_needle.jpg", cv.IMREAD_UNCHANGED)}
|
||||
|
||||
self.run_mode = 'init'
|
||||
self.run_mode = 'run'
|
||||
self.actual_letter = ""
|
||||
self.to_pick_up = False
|
||||
|
||||
self.start()
|
||||
|
||||
def run(self):
|
||||
while True:
|
||||
while self.run_mode == 'run':
|
||||
current_stone = self.new_stone_detection()
|
||||
if current_stone is None:
|
||||
cv.waitKey(50)
|
||||
|
||||
Reference in New Issue
Block a user