threading update

This commit is contained in:
2023-07-26 11:33:46 +02:00
parent 1b9711a851
commit 5713422f49
3 changed files with 4 additions and 3 deletions

View File

@@ -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)