Loading a Haar or LBP detector for object or face detection