add Adaboost and a based weak classifier that classify by a threshold