Find all the images from the database that are present in this picture
I work with the interfaces of various programs on my computer, I find elements that I can interact with, for example buttons. At some point, I have accumulated a large number of buttons, and I need an optimal algorithm for finding them in this image.