Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def thread_worker(self, painting):
- """Function that a thread uses for searching the hall of an image"""
- print("Trying to match a possible painting")
- if (self.paintingDetector.isPainting(painting)):
- matches = self.paintingRecognizer.recognize(painting)
- if matches[0][1] > 0:
- # (hal, image_path, aantalmatches)
- return (matches[0][0], matches[0][2][2], matches[0][1])
- return None
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement