A Physics-aware and Cascaded Vision Framework for Sub-pixel Measurement of Packaging Codes

YAN Yuxin, LIN Sen, HUANG Lei

Packaging Engineering ›› 2026, Vol. 47 ›› Issue (15) : 224-231.

PDF(2054 KB)
PDF(2054 KB)
Packaging Engineering ›› 2026, Vol. 47 ›› Issue (15) : 224-231. DOI: 10.19554/j.cnki.1001-3563.2026.15.023
Automatic and Intelligent Technology

A Physics-aware and Cascaded Vision Framework for Sub-pixel Measurement of Packaging Codes

  • YAN Yuxin1, LIN Sen2,*, HUANG Lei2
Author information +
History +

Abstract

The work aims to propose a high-precision sub-pixel measurement framework integrating physics-aware data generation with cascaded visual measurement to address sub-millimeter precision requirements for QR code die-cutting and printing errors in high-end packaging, and to mitigate the lack of model generalization caused by the scarcity of samples with highlight interference in industrial scenarios. A detection framework fusing physics-aware synthetic data with cascaded visual measurement was developed and a physics-aware sample synthetic mechenicam was designed based on the the Blinn-Phong illumination theory to simulate the highly reflective properties of complex packaging materials to enhance model feature extraction. Subsequently, a "coarse-to-fine" cascaded visual measurement model was deployed: with YOLO11-Seg used to extract target masks, followed by least-squares sub-pixel edge fitting and homography-guided perspective correction to eliminate discretization artifacts. Experiments demonstrated that the system achieved 98% bounding box accuracy, accurately localizing the target regions. The single-frame processing time was within 100 ms. In conclusion, by integrating semantic perception with geometric precision, the method restricts absolute measurement errors to 0.04 mm, operating well within the 0.8 mm tolerance requirement. It is applicable for quantifying micro-positioning deviations on complex optical surfaces, balancing robustness, interpretability, and on-site deployability.

Key words

machine vision / overprinting error / sub-pixel measurement / instance segmentation / YOLO

Cite this article

Download Citations
YAN Yuxin, LIN Sen, HUANG Lei. A Physics-aware and Cascaded Vision Framework for Sub-pixel Measurement of Packaging Codes[J]. Packaging Engineering. 2026, 47(15): 224-231 https://doi.org/10.19554/j.cnki.1001-3563.2026.15.023

References

[1] LI P, YANG J, JIMÉNEZ-CARVELO A M, et al. Applications of Food Packaging Quick Response Codes in Information Transmission toward Food Supply Chain Integrity[J]. Trends in Food Science & Technology, 2024, 146: 104384.
[2] 国家新闻出版署(国家版权局). 平版装潢印刷品: GB/T 7705—2008[S]. 2008.
National Press and Publication Administration (National Copyright Administration of the People's Republic of China). The offset lithographic prints for decorating: GB/T 7705—2008[S]. Beijing: Standards Press of China, 2008.
[3] 国家标准委. 防伪标识通用技术条件: GB/T 22258— 2008[S]. 2008.
Standardization Administration of the People's Republic of China. General technical specifications for anti-counterfeiting marks: GB/T 22258—2008[S]. Beijing: Standards Press of China, 2008.
[4] 门超. 包装印刷检测的新篇章——机器视觉[J]. 印刷杂志, 2017(8): 59-61.
MEN C.A new chapter in packaging and printing inspection: Machine vision[J]. Printing Field, 2017(8): 59-61.
[5] SEE J E, DRURY C G, SPEED A, et al.The Role of Visual Inspection in the 21st Century[J]. Proceedings of the Human Factors and Ergonomics Society Annual Meeting, 2017, 61(1): 262-266.
[6] SWAIN A D, GUTTMANN H E. Handbook of Human-Reliability Analysis with Emphasis on Nuclear Power Plant Applications. Final Report: NUREG/CR-1278; SAND-80-0200[R]. Sandia National Labs., Albuquerque, NM(USA), 1983.
[7] ZHOU Q B, CHEN R, HUANG B, et al.DeepInspection: Deep Learning Based Hierarchical Network for Specular Surface Inspection[J]. Measurement, 2020, 160: 107834.
[8] TONG K, WU Y, ZHOU F.Recent Advances in Small Object Detection Based on Deep Learning: A Review[J]. Image and Vision Computing, 2020, 97: 103910.
[9] LIU Y, SUN P, WERGELES N, et al.A Survey and Performance Evaluation of Deep Learning Methods for Small Object Detection[J]. Expert Systems with Applications, 2021, 172: 114602.
[10] WEI W, CHENG Y, HE J, et al.A Review of Small Object Detection Based on Deep Learning[J]. Neural Computing and Applications, 2024, 36(12): 6283-6303.
[11] SHORTEN C, KHOSHGOFTAAR T M.A Survey on Image Data Augmentation for Deep Learning[J]. Journal of Big Data, 2019, 6(1): 60.
[12] GHIASI G, CUI Y, SRINIVAS A, et al.Simple Copy-Paste Is a Strong Data Augmentation Method for Instance Segmentation[C]//Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. 2021: 2918-2928.
[13] MOHAMMED ELTOUM M A, IQBAL E, ZWEIRI Y, et al. BladeSynth: A High-Quality Rendering-Based Synthetic Dataset for Aero Engine Blade Defect Inspection[J]. Scientific Data, 2025, 12(1): 1268.
[14] FULIR J, BOSNAR L, HAGEN H, et al.Synthetic Data for Defect Segmentation on Complex Metal Surfaces[C]//Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops.[S.l.]: IEEE, 2023: 4424-4434.
[15] AKENINE-MÖLLER T, HAINES E, HOFFMAN N. Real-Time Rendering, Fourth Edition[M]. Boca Raton London New York: A K Peters/CRC Press, 2019.
[16] TOBIN J, FONG R, RAY A, et al.Domain Randomization for Transferring Deep Neural Networks from Simulation to the Real World[C]//2017 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS). 2017: 23-30.
[17] ZHONG Z, ZHENG L, KANG G, et al.Random Erasing Data Augmentation[C]//Proceedings of the AAAI Conference on Artificial Intelligence.[S. l.]: AAAI Press, 2020, 34(7): 13001-13008.
[18] LI D, PAN X, FU Z Z, et al.Real-Time Accurate Deep Learning-Based Edge Detection for 3-D Pantograph Pose Status Inspection[J]. IEEE Transactions on Instrumentation and Measurement, 2022, 71: 1-12.
[19] GE Z, LIU S T, WANG F, et al. YOLOX: Exceeding YOLO Series in2021[EB/OL]. (2021-07-18)[2026-04-21]. https://arxiv.org/abs/2107.08430.
[20] LIU H J, LIU F Q, FAN X Y, et al.Polarized Self-Attention: Towards High-quality Pixel-wise Regression[J]. Neurocomputing, 2022, 506: 158-167.
[21] HARTLEY R, ZISSERMAN A.Multiple View Geometry in Computer Vision[M]. Cambridge University Press, 2003.
PDF(2054 KB)

Accesses

Citation

Detail

Sections
Recommended

/