Detecting an object using the Haar or LBP classifier