Helper tools for training an opencv cascade classifier