Steps to implement a simple image search engine

Execute the steps listed to implement your simple search engine:

  1. First, download a set of images to build your search database (for example, from https://www.open-tour.org/en/dataset.html with ~250 images or http://www.robots.ox.ac.uk/~vgg/data/oxbuildings/ with ~5,000 images).
  2. Implement the SimpleSearchEngine class, which has the following members (initialize them in the constructor or the __init_() method):
  • search_dir (where you save the search images)
  • save_dir (where you save search image descriptors)
  • search_ds (the data structure in which the search images are stored for fast retrieval of the search image descriptors most similar with the query descriptor)
class SimpleSearchEngine:

Get Python Image Processing Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.