Refine PulseDetector, videoMagnifier successfully run through java.