随着数字卡片的广泛应用,卡片的计数问题便越来越重要.通过将相关检测技术运用到卡片计数领域,开发了一种行之有效的新算法.本算法通过光栅传感器扫描来得到数据波形,利用该波形的自相关特性求解波形周期,然后通过FFT变换进行频域滤波,再经过IFFT反变换得到整形后的波形进行卡片计数.实践表明,本算法相对于原有算法计数精度可提高一个数量级以上,特别是在大量卡片计数方面,优势更加明显,同时从实际波形上来看,本算法处理之后的波形和计数点能充分地覆盖每一个有效突起,且不会造成重复计数.本算法适应性强,计数精度好,且有一定鲁棒性,有着十分广阔的应用前景.
In the modern life,the digital cards are widely used,so the card counting is becoming more and more important.An effective algorithm is developed in this paper through utilizes the correlation detection technology in card counting.The data is collected through the grating sensor,and the autocorrelation technique is used to get the primary frequency′s period,then the FFT transformation is performed and a frequency domain filter is carried on,finally we get the reshaping wave after the IFFT inverse transformation to count the card number.The experimental results show that the counting precision can be improved over any other counting methods by using this new algorithm.Especially in the massive card counting aspect,a much higher performance is available.And in the view of time domain,the counting points in the processed waveform can match every valid pulse effectively and will not do the repetition counting.This algorithm carries out more compatible and more accurate than the other in the original counting systems,and it also has some robust.It′s believed that this algorithm will be found many uses in the other relative fields in the future.