{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2025,11,5]],"date-time":"2025-11-05T05:35:00Z","timestamp":1762320900882,"version":"build-2065373602"},"reference-count":27,"publisher":"MDPI AG","issue":"11","license":[{"start":{"date-parts":[[2025,10,31]],"date-time":"2025-10-31T00:00:00Z","timestamp":1761868800000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Future Internet"],"abstract":"<jats:p>We developed a machine vision-based robotic system to address automation challenges in pharmaceutical pill sorting and packaging. The hardware platform integrates a high-resolution industrial camera with an HSR-CR605 robotic arm. Image processing leverages the VisionMaster 4.3.0 platform for color classification and positioning. Coordinate mapping between camera and robot is established through a three-point calibration method, with real-time communication realized via the Modbus\/TCP protocol. Experimental validation demonstrates that the system achieves 95% recognition accuracy under conditions of pill overlap \u2264 30% and dynamic illumination of 50\u20131000 lux, \u00b10.5 mm picking precision, and a sorting efficiency of108 pills per minute. These results confirm the feasibility of integrating domestic hardware and algorithms, providing an efficient automated solution for the pharmaceutical industry. This work makes three key contributions: (1) demonstrating a cost-effective domestic hardware-software integration achieving 42% cost reduction while maintaining comparable performance to imported alternatives, (2) establishing a systematic validation methodology under industrially-relevant conditions that provides quantitative robustness metrics for pharmaceutical automation, and (3) offering a practical implementation framework validated through multi-scenario experiments that bridges the gap between laboratory research and production-line deployment.<\/jats:p>","DOI":"10.3390\/fi17110501","type":"journal-article","created":{"date-parts":[[2025,11,3]],"date-time":"2025-11-03T17:32:01Z","timestamp":1762191121000},"page":"501","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":0,"title":["Design of a Pill-Sorting and Pill-Grasping Robot System Based on Machine Vision"],"prefix":"10.3390","volume":"17","author":[{"given":"Xuejun","family":"Tian","sequence":"first","affiliation":[{"name":"School of Mechanical and Electrical Engineering, Lingnan Normal University, Zhanjiang 524048, China"}]},{"given":"Jiadu","family":"Ke","sequence":"additional","affiliation":[{"name":"School of Mechanical and Electrical Engineering, Lingnan Normal University, Zhanjiang 524048, China"}]},{"given":"Weiguo","family":"Wu","sequence":"additional","affiliation":[{"name":"School of Mechanical and Electrical Engineering, Lingnan Normal University, Zhanjiang 524048, China"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-1876-989X","authenticated-orcid":false,"given":"Jian","family":"Teng","sequence":"additional","affiliation":[{"name":"School of Mechanical and Electrical Engineering, Lingnan Normal University, Zhanjiang 524048, China"}]}],"member":"1968","published-online":{"date-parts":[[2025,10,31]]},"reference":[{"key":"ref_1","doi-asserted-by":"crossref","unstructured":"Kwon, H.J., Kim, H.G., and Lee, S.H. (2022). Pill Detection Model for Medicine Inspection Based on Deep Learning. Chemosensors, 10.","DOI":"10.3390\/chemosensors10010004"},{"key":"ref_2","unstructured":"Steger, C., Ulrich, M., and Wiedemann, C. (2018). Machine Vision Algorithms and Applications, John Wiley & Sons."},{"key":"ref_3","doi-asserted-by":"crossref","unstructured":"Yang, H., Hu, G., and Lu, L. (2022, January 8\u20139). Research on an Automatic Sorting System Based on Machine Vision. Proceedings of the 2022 International Seminar on Computer Science and Engineering Technology, SCSET, Indianapolis, IN, USA.","DOI":"10.1109\/SCSET55041.2022.00016"},{"key":"ref_4","doi-asserted-by":"crossref","first-page":"181","DOI":"10.5937\/fme2201181C","article-title":"Design and Development of Robot Arm System for Classification and Sorting Using Machine Vision","volume":"50","author":"Cong","year":"2022","journal-title":"FME Trans."},{"key":"ref_5","doi-asserted-by":"crossref","first-page":"42816","DOI":"10.1109\/ACCESS.2024.3378568","article-title":"YOLOv1 to v8: Unveiling each variant\u2014A comprehensive review of YOLO","volume":"12","author":"Hussain","year":"2024","journal-title":"IEEE Access"},{"key":"ref_6","doi-asserted-by":"crossref","unstructured":"Fu, Q., Yan, H., He, Z., Li, W., Zang, W., and Zhu, C. (2024, January 12\u201314). Research and Design of Machine Vision-Based Workpiece Defect Sorting Robot. Proceedings of the 2024 International Conference on Intelligent Computing and Robotics, ICICR, Dalian, China.","DOI":"10.1109\/ICICR61203.2024.00046"},{"key":"ref_7","first-page":"491","article-title":"A Machine Vision-Intelligent Modelling Based Technique for in-Line Bell Pepper Sorting","volume":"10","author":"Omid","year":"2023","journal-title":"Inf. Process. Agric."},{"key":"ref_8","doi-asserted-by":"crossref","unstructured":"Mao, Y., Chen, C., and Jiang, H. (2022, January 4\u20136). Design and Implementation of Sorting System Based on Machine Vision. Proceedings of the 7th International Conference on Big Data Analytics, ICBDA, Guangzhou, China.","DOI":"10.1109\/ICBDA55095.2022.9760324"},{"key":"ref_9","first-page":"232","article-title":"Design and Key Technology Analysis of Coal-Gangue Sorting Robot","volume":"50","author":"Shang","year":"2022","journal-title":"Coal Sci. Technol."},{"key":"ref_10","doi-asserted-by":"crossref","first-page":"91","DOI":"10.1007\/s44196-025-00831-6","article-title":"Correction: Enhanced YOLOv8 for Efficient Parcel Identification in Disordered Logistics Environments","volume":"18","author":"Yu","year":"2025","journal-title":"Int. J. Comput. Intell. Syst."},{"key":"ref_11","doi-asserted-by":"crossref","first-page":"1278","DOI":"10.1109\/TIM.2018.2800258","article-title":"Automated Machine Vision System for Liquid Particle Inspection of Pharmaceutical Injection","volume":"67","author":"Zhang","year":"2018","journal-title":"IEEE Trans. Instrum. Meas."},{"key":"ref_12","first-page":"447","article-title":"An Online Automatic Sorting System for Defective Ginseng Radix et Rhizoma Rubra Using Deep Learning","volume":"15","author":"Xue","year":"2023","journal-title":"Chin. Herb. Med."},{"key":"ref_13","first-page":"1392","article-title":"Design of Industrial Data Monitoring Device Using IoT through Modbus Protocol","volume":"9","author":"Mageshkumar","year":"2020","journal-title":"Int. J. Sci. Technol. Res."},{"key":"ref_14","doi-asserted-by":"crossref","unstructured":"Shen, J., Ram\u00edrez-G\u00f3mez, \u00c1., Wang, J., Zhang, F., and Li, Y. (2025). Intelligent and Precise Textile Drop-Off: A New Strategy for Integrating Soft Fingers and Machine Vision Technology. Textiles, 5.","DOI":"10.3390\/textiles5030034"},{"key":"ref_15","doi-asserted-by":"crossref","unstructured":"Han, Y., Xu, S., Liu, Y., Xu, L., Gong, D., Qin, Z., Dong, H., and Yang, H. (2022). Strong Radiation Field Online Detection and Monitoring System with Camera. Sensors, 22.","DOI":"10.3390\/s22062279"},{"key":"ref_16","unstructured":"Zhang, X. (2017). Research on Medicine Label Recognition and Sorting Based on Machine Vision. [Master\u2019s Thesis, Jilin University]."},{"key":"ref_17","unstructured":"(1995). Studio Encoding Parameters of Digital Television for Standard 4:3 and Wide-Screen 16:9 Aspect Ratios (Standard No. BT.601). Available online: https:\/\/www.itu.int\/rec\/R-REC-BT.601\/."},{"key":"ref_18","unstructured":"Yao, M. (2006). Digital Image Processing, DynoMedia Inc."},{"key":"ref_19","first-page":"14","article-title":"Design of Industrial Robot Sorting System Based on Machine Vision","volume":"28","author":"Zhang","year":"2024","journal-title":"China Mech."},{"key":"ref_20","doi-asserted-by":"crossref","first-page":"819","DOI":"10.1007\/s00034-009-9130-7","article-title":"Fast Normalized Cross-Correlation","volume":"28","author":"Yoo","year":"2009","journal-title":"Circuits Syst. Signal Process."},{"key":"ref_21","doi-asserted-by":"crossref","unstructured":"Mao, J., Xu, R., Ma, X., Hu, S., and Bao, X. (2023). Fast Calibration Method for Base Coordinates of the Dual-Robot Based on Three-Point Measurement Calibration Method. Appl. Sci., 13.","DOI":"10.3390\/app13158799"},{"key":"ref_22","doi-asserted-by":"crossref","unstructured":"Yang, T., Wang, Z., Wu, Z., Li, X., Wang, L., and Liu, C. (2017). Calibration of Laser Beam Direction for Inner Diameter Measuring Device. Sensors, 17.","DOI":"10.3390\/s17020294"},{"key":"ref_23","doi-asserted-by":"crossref","first-page":"130","DOI":"10.1007\/s10846-024-02166-4","article-title":"Automatic Robot Hand-Eye Calibration Enabled by Learning-Based 3D Vision","volume":"110","author":"Li","year":"2024","journal-title":"J. Intell. Robot. Syst."},{"key":"ref_24","unstructured":"Xie, E., Wang, W., Yu, Z., Anandkumar, A., Alvarez, J.M., and Luo, P. (2021, January 6\u201314). SegFormer: Simple and efficient design for semantic segmentation with transformers. Proceedings of the Neural Information Processing Systems (NeurIPS), Virtual."},{"key":"ref_25","unstructured":"(2019). Code for Design of Pharmaceutical Industry Clean Room (Standard No. GB 50457-2019). Available online: https:\/\/www.chinesestandard.net\/PDF\/English.aspx\/GB50457-2019."},{"key":"ref_26","unstructured":"Culjak, I., Abram, D., Pribanic, T., Dzapo, H., and Cifrek, M. (2012, January 21\u201325). A Brief Introduction to OpenCV. Proceedings of the 35th International Convention MIPRO, Opatija, Croatia."},{"key":"ref_27","doi-asserted-by":"crossref","unstructured":"Xu, B., Ye, W., and Wang, Y. (2018, January 26\u201327). Design of Machine Vision Defect Detecting System Based on Halcon. Proceedings of the 2018 International Conference on Mechanical, Electrical, Electronic Engineering & Science (MEEES 2018), Chongqing, China.","DOI":"10.2991\/meees-18.2018.61"}],"container-title":["Future Internet"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/1999-5903\/17\/11\/501\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,11,5]],"date-time":"2025-11-05T05:18:35Z","timestamp":1762319915000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/1999-5903\/17\/11\/501"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2025,10,31]]},"references-count":27,"journal-issue":{"issue":"11","published-online":{"date-parts":[[2025,11]]}},"alternative-id":["fi17110501"],"URL":"https:\/\/doi.org\/10.3390\/fi17110501","relation":{},"ISSN":["1999-5903"],"issn-type":[{"type":"electronic","value":"1999-5903"}],"subject":[],"published":{"date-parts":[[2025,10,31]]}}}