Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. def thread_worker(self, painting):
  2. """Function that a thread uses for searching the hall of an image"""
  3. print("Trying to match a possible painting")
  4. if (self.paintingDetector.isPainting(painting)):
  5. matches = self.paintingRecognizer.recognize(painting)
  6. if matches[0][1] > 0:
  7. # (hal, image_path, aantalmatches)
  8. return (matches[0][0], matches[0][2][2], matches[0][1])
  9. return None
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement