A general haar classifier to train to detect objects in gray-scale images