From the course: Code Clinic: Ruby

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

ImageMatcher

ImageMatcher

From the course: Code Clinic: Ruby

Start my 1-month free trial

ImageMatcher

- [Voiceover] In this movie, we'll walk through the basic setup for our project and our image matcher class. Remember, the image matcher takes care of the configuration, picking the strategy, initiating the match, and reporting the results. But it handles the match the same way, regardless of which strategy we're using, which is going to allow us to swap strategies easily and to do an apples-to-apples comparison between them. Let's take a look at the starter code for our project. I've put my working directory on my desktop. It can really be anywhere that's easy to find, and I've called it code underscore clinic underscore two. Inside there you'll see I've got a number of files already. I've got match dot r b, that's the file that I'm going to be actually executing in order to perform my matches, and it'll load up the specific images that I want and then see if there are matches. It will make use of the image matcher class, which is defined in the image matcher directory inside the…

Contents