Improved line-recognition using gaussian blurring, moving average smoothing and peak detection.