print("Issue calling raspistill...retrying") issue_count += 1 time.sleep(1) continue try: img = Image(working_image) source_kp = img._getRawKeypoints(500) except: time.sleep(1) continue # loop through matching each keypoint set and pull the highest matching set for idx, artist in enumerate(config): if img.matchKeypoints(source_kp, artist['keypoints'], minDist=0.15, minMatch=0.4): # write log that of which album recognised print('{1} Recognised {0}'.format(artist['title'], str(datetime.datetime.now()))) try: # clear the queue sonos.clear_queue() # add and kick off the first track sonos.add_uri_to_queue(artist['tracks'][0]['uri']) sonos.play_from_queue(0) # add the rest of the tracks