diff --git a/field.py b/field.py index 7f4d20b..904f248 100644 --- a/field.py +++ b/field.py @@ -153,9 +153,9 @@ class Field(): def predict_gaps_in_next_rotation(self): tmp_state = copy(self.state) - tmp_state = self.rotate_90_degree_anticlckwise(tmp_state) if tmp_state[10][0] is not ' ' and tmp_state[10][1] is not ' ': return 10 + tmp_state = self.rotate_90_degree_anticlckwise(tmp_state) for row in range(int(self.HEIGHT/2)): tmp_state[row] = [' ' for cols in range(Field.WIDTH)] return sum( diff --git a/litris_stone_id_thread.py b/litris_stone_id_thread.py index 0a30287..87eb3dd 100644 --- a/litris_stone_id_thread.py +++ b/litris_stone_id_thread.py @@ -144,7 +144,8 @@ class NewStoneID(threading.Thread): # cv.imshow("screenshot", screenshot) # cv.waitKey(150) # continue - data_coords = np.zeros((20, 20), dtype=object) + #data_coords = np.zeros((20, 20), dtype=object) + data_coords = np.full((20, 20), ' ', dtype=object) #field = Pickaxe_Field() for needle_key in self.needles.keys(): #gray_needle = cv.cvtColor(self.needles[needle_key], cv.COLOR_BGR2GRAY)