As a self-development exercise, I want to develop a simple classification algorithm that, given a particular cell of a Dilbert cartoon, is able to identify which characters are
I think, in general, this is the correct approach and that there are two techniques you could have a look at.