An Automatic Counting Algorithm for Topographic Maps Based on Videos for Map Management
Abstract
:1. Introduction
2. Related Work
- Map inventory machines: at present, the counting of topographic maps is largely performed manually, which has disadvantages such as low efficiency and the wasting of resources. Because of the complex and narrow operating environments in map warehouses, none of the mature paper counting machines on the market can directly meet their daily inventory, identification, and sorting needs. Thus, there is a lack of machines suitable for the rapid inventory of topographic maps in map warehouse environments.
- Paper counting method: the inventory and sorting of topographic maps requires not only the counting of the quantity but also the obtaining of the internal information of the maps simultaneously, e.g., classifying the map belonging to the sheet designation or scale through the identification of the sheet designation. However, the current paper counting method based on machine vision cannot obtain the internal information of the counted objects; in addition, it demands high intervals of paper, which is unfavorable for the subsequent identification and sorting.
3. Materials and Methods
3.1. Data Acquisition and Analysis
3.1.1. Map Inventory Machine and Data
3.1.2. Feature Analysis of Map Counting Process in Video Data
3.2. The Proposed Fusion Window Counting Algorithm
3.2.1. Deformable Parts Model Based on Fast Feature Pyramids
- Model training to obtain filters
- 2.
- Building the fast feature pyramids
- 3.
- Model matching
3.2.2. Selecting the Region of Interest
3.2.3. Fusion Window Counting Model
- Adaptive window method: take each directly as the size of the window, i.e., ; the number of extremums obtained is .
- Fixed window method: take the fixed value as the size of the window, i.e., , where Mo is the mode function; generally, and the number of extremums obtained is .
- Fusion window method: The toggle speed of the mechanical wheel is approximately uniform; there are several intervals of different lengths, but the lengths are stable within the threshold range of a certain fixed value ; so, the counting results of the above two methods can reflect each other. The fusion window counting model fuses the two, and if we set the final count value of the topographic maps in the video to , then
4. Results
4.1. Comparison and Analysis of Mechanical Wheel Detection Results
4.2. Analysis of Paper Map Inventory Results Based on Fusion Window Counting Model
5. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Wan, G.; Wu, Y.T. On the mathematical basis of map spatial cognition. Acta Geod. Cartogr. Sin. 2021, 50, 726–738. [Google Scholar] [CrossRef]
- Pezeshk, A.; Tutwiler, R.L. Automatic Feature Extraction and Text Recognition from Scanned Topographic Maps. IEEE Trans. Geosci. Remote Sens. 2011, 49, 5047–5063. [Google Scholar] [CrossRef]
- Liu, A.S.; Zhang, W.W.; Wang, G. Realization and research on unmarked paper map augmented reality technology. Eng. Surv. Mapp. 2017, 26, 64–70+80. [Google Scholar] [CrossRef]
- Yang, K. The Mechanism of Tracing to Map Source and The Key Technology Research. Master’s Thesis, Information Engineering University, Zhengzhou, China, 2013. [Google Scholar]
- Babakhanova, K.A.; Varepo, L.G.; Nagornova, I.V.; Babluyk, E.B.; Kondratov, A.P. The papers printing quality complex assessment algorithm development taking into account the composition and production technological features. J. Phys. Conf. Ser. 2018, 998, 012003. [Google Scholar] [CrossRef]
- Chen, Q.P. Method for Implementing Banknote Counting of Banknote Counting Device, and Banknote Counting Device. U.S. Patent 11,113,917 B2, 7 September 2021. [Google Scholar]
- Oba, M. Paper Sheet Sorting and Counting Machine. U.S. Patent D850,524 S, 4 June 2019. [Google Scholar]
- Liu, J.D. A Research on Paper Counting System based on Machine Vision. Master’s Thesis, Zhengzhou University, Zhengzhou, China, 2019. [Google Scholar]
- Mehmet, B.; Mehmet, K.; Alisan, S.; Erhan, A. An image processing based object counting approach for machine vision application. arXiv 2018, arXiv:1802.05911. [Google Scholar]
- Han, X.Y.; Wang, J.S. Design of Paper Counting Algorithm based on Texture Image. In Proceedings of the IEEE 4th Advanced Information Technology, Electronic and Automation Control Conference (IAEAC), Chengdu, China, 20–22 December 2019; pp. 145–148. [Google Scholar]
- Wang, H.; Chen, D.F.; Wang, X.F. Laminated paper counting algorithm based on compressive sensing and hough transform. In Proceedings of the 2nd International Conference on Information Technology and Electronic Commerce, Dalian, China, 20–21 December 2014; pp. 161–166. [Google Scholar]
- Huang, D.; Liao, S.; Yu, S.; Tian, J.; Hu, Y.; Guo, K. Research on Automatic Counting System Corrugated Paper Board Based on Machine Vision. J. Mech. Eng. 2017, 53, 79–86. [Google Scholar] [CrossRef]
- Luan, X.M. Research on Paper Counting System Based on Image Processing; Shenzhen University: Shenzhen, China, 2016. [Google Scholar]
- Sato, J.; Yamada, T.; Ito, K.; Akashi, T. Vision-Based Facial Oil Blotting Paper Counting. IEEJ Trans. Electr. Electron. Eng. 2019, 14, 899–907. [Google Scholar] [CrossRef]
- Chen, J.Q.; Lu, R.Q.; Liang, Q.M. Design and Implementation of Paper Counting Algorithm Based on Gabor Filter. In Proceedings of the International Symposium on Big Data and Artificial Intelligence, Beijing, China, 22–24 June 2018; pp. 281–285. [Google Scholar]
- Ye, H.W.; Guo, X.N.; Chen, J.; Yang, Y.D. Answer sheet counter system based on machine vision. J. Nanjing Univ. Sci. Technol. 2020, 44, 608–613. [Google Scholar] [CrossRef]
- GB/T 13989-2012; Subdivision and Numbering for the National Primary Scale Topographic Maps. AQSIQ: Beijing, China, 2012.
- Cao, W.; Li, R.S. Road intersections detection using deformable part models on remote sensing image. Geomat. Inf. Sci. Wuhan Univ. 2018, 43, 413–419. [Google Scholar] [CrossRef]
- Felzenszwalb, P.F.; Girshick, B.; McAllester, D.; Ramanan, D. A Discriminatively Trained, Multiscale, Deformable Part Model. In Proceedings of the 2008 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Anchorage, AK, USA, 23–28 June 2008; pp. 1–8. [Google Scholar]
- Felzenszwalb, P.F.; McAllester, D. The Generalized A*Architecture. J. Arlificial Intell. Res. 2007, 29, 153–190. [Google Scholar] [CrossRef]
- Felzenszwalb, P.F.; Huttenlocher, D.P. Distance transforms of sampled functions. Theory Comput. 2012, 8, 415–428. [Google Scholar] [CrossRef]
- Everingham, M.; Van Gool, L.; Williams, C.K.; Winn, J.; Zisserman, A. The pascal visual object classes (voc) challenge. Int. J. Comput. Vis. 2010, 88, 303–338. [Google Scholar] [CrossRef] [Green Version]
- Cai, Y.F.; Liu, Z.; Sun, X.Q.; Chen, L.; Wang, H. Research on pedestrian detection technology based on improved DPM model. In Proceedings of the 2017 IEEE 7th Annual International Conference on CYBER Technology in Automation, Honolulu, HI, USA, 31 July–4 August 2017; pp. 216–219. [Google Scholar]
- Bai, S.; Liu, Z.Y.; Chang, Y. Classify vehicles in traffic scene images with deformable part-based models. Mach. Vis. Appl. 2018, 29, 393–403. [Google Scholar] [CrossRef]
- Chu, W.T.; Hsu, M.H.; McAllester, D. Fast object detection using multistage particle window deformable part model. In Proceedings of the 2014 IEEE International Symposium on Multimedia, Taichung, Taiwan, 10–12 December 2014; pp. 98–101. [Google Scholar]
- Yang, J.; Li, G.; Wang, W.M.; Wang, R.G. An empirical study of deformable part model with fast feature pyramid. In Proceedings of the 2016 23rd International Conference on Pattern Recognition (ICPR), Cancun, Mexico, 4–8 December 2016; pp. 567–572. [Google Scholar]
- Dollár, P.; Appel, R.; Belongie, S.; Perona, P. Fast feature pyramids for object detection. IEEE Trans. Pattern Anal. Mach. Intell. 2014, 36, 1532–1545. [Google Scholar] [CrossRef] [PubMed] [Green Version]
- Chen, M.J.; Bovik, A.C. No-reference color image quality assessment: From entropy to perceptual quality. EURASIP J. Image Video Process. 2019, 2019, 77. [Google Scholar] [CrossRef] [Green Version]
- Yao, H.; Man, B.; Zou, M.; Xu, D.; Yao, J.C. No-reference noisy image quality assessment incorporating features of entropy, gradient, and kurtosis. Front. Inf. Technol. Electron. Eng. 2021, 22, 1565–1582. [Google Scholar] [CrossRef]
- Chandler, D.M. Seven challenges in image quality assessment: Past, present, and future research. ISRN Signal Process. 2013, 2013, 905685. [Google Scholar] [CrossRef]
- Liang, Y.T.; Zhang, W.; Li, Y. A Self-Adaption Single Image Dehaze Method Based on Clarity-evaluation-function of Image. In Proceedings of the 2018 International Conference on Advanced Mechatronic Systems (ICAMechS), Zhengzhou, China, 30 August–2 September 2018; pp. 320–325. [Google Scholar]
Video | Number of Images | Traditional DPM | FFP–DPM | FFP–DPM–ROI | |||
---|---|---|---|---|---|---|---|
Total Time | Average Time | Total Time | Average Time | Total Time | Average Time | ||
1 | 1812 | 30,360.461 | 16.755 | 8963.497 | 4.947 | 8877.310 | 4.899 |
2 | 6120 | 102,877.465 | 16.810 | 30,630.299 | 5.005 | 29,969.693 | 4.897 |
3 | 6389 | 107,624.298 | 16.845 | 31,945.032 | 5.000 | 26,866.572 | 4.205 |
4 | 2146 | 36,032.633 | 16.798 | 10,779.174 | 5.025 | 9364.335 | 4.366 |
5 | 2145 | 36,023.563 | 16.794 | 10,793.490 | 5.032 | 9327.416 | 4.348 |
average time | 16.801 | 5.002 | 4.543 |
Video | Number of Images | Traditional DPM | FFP–DPM | FFP–DPM–ROI | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Acc | TPR | FNR | Acc | TPR | FNR | Acc | TPR | FNR | ||
1 | 1812 | 0.995 | 0.990 | 0.010 | 0.986 | 0.963 | 0.037 | 0.984 | 0.965 | 0.035 |
2 | 6120 | 0.992 | 0.983 | 0.017 | 0.976 | 0.936 | 0.064 | 0.974 | 0.937 | 0.063 |
3 | 6389 | 0.968 | 0.952 | 0.048 | 0.937 | 0.857 | 0.143 | 0.935 | 0.852 | 0.148 |
4 | 2146 | 0.971 | 1 | 0 | 0.968 | 0.955 | 0.045 | 0.967 | 0.957 | 0.043 |
5 | 2145 | 1 | 1 | 0 | 0.970 | 0.956 | 0.044 | 0.968 | 0.958 | 0.042 |
average value | 0.979 | 0.985 | 0.015 | 0.967 | 0.934 | 0.066 | 0.966 | 0.934 | 0.066 |
Video Number | DPM–SMD | FFP–DPM–ROI–SMD | ||||
---|---|---|---|---|---|---|
Adaptive Window | Fixed Window | Fusion Window | Adaptive Window | Fixed Window | Fusion Window | |
1 | 95% | 83% | 99% | 95% | 85% | 98% |
2 | 99% | 95% | 92% | 99% | 95% | 93% |
3 | 98% | 96% | 99% | 98% | 97% | 99% |
4 | 91% | 88% | 95% | 91% | 82% | 92% |
5 | 91% | 88% | 95% | 91% | 82% | 92% |
Average accuracy | 96% | 95% |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2023 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Cao, W.; Tian, Y.; Tong, X.; Yang, W.; Guo, C.; Zhu, J.; Li, H.; Wang, D. An Automatic Counting Algorithm for Topographic Maps Based on Videos for Map Management. Appl. Sci. 2023, 13, 1461. https://doi.org/10.3390/app13031461
Cao W, Tian Y, Tong X, Yang W, Guo C, Zhu J, Li H, Wang D. An Automatic Counting Algorithm for Topographic Maps Based on Videos for Map Management. Applied Sciences. 2023; 13(3):1461. https://doi.org/10.3390/app13031461
Chicago/Turabian StyleCao, Wen, Yuzhen Tian, Xiaochong Tong, Weiming Yang, Congzhou Guo, Jingwen Zhu, He Li, and Dali Wang. 2023. "An Automatic Counting Algorithm for Topographic Maps Based on Videos for Map Management" Applied Sciences 13, no. 3: 1461. https://doi.org/10.3390/app13031461
APA StyleCao, W., Tian, Y., Tong, X., Yang, W., Guo, C., Zhu, J., Li, H., & Wang, D. (2023). An Automatic Counting Algorithm for Topographic Maps Based on Videos for Map Management. Applied Sciences, 13(3), 1461. https://doi.org/10.3390/app13031461