Threshold process added to HandDetection