hand detection using treshold