In the previous recipe, Training an image classifier using Extremely Random Forests, we used ERFs to train our image classifier. Now that we have trained an ERF model, let's go ahead and build an object recognizer that can recognize the content of unknown images.
Building an object recognizer
Getting ready
In this recipe, we will learn how to use a trained ERF model to recognize the content of unknown images.
How to do it...
Let's see how we can build an object recognizer:
- Create a new Python file and import the following packages (the full code is given in...