Add threshold param to haar detector