Image Classification Example

This notebook imports the im_classif.py module which has been generated from the decision tree in im_classif.yml using the following command:

$ dectree examples/im_classif/im_classif.yml

In [1]:
import im_classif

In [2]:
from PIL import Image
import numpy as np

Import a test image


In [3]:
im = Image.open('test_im.jpg')

In [4]:
im


Out[4]: