Abstract:Text on food packaging contains key information such as product names, ingredients, manufacturer details, and expiration dates, which are crucial for food safety and consumer rights. However, applying existing scene text detection methods to food packaging often results in missed or incorrect detections, especially for blurred text, small targets, and artistic fonts. To address these challenges, a food packaging text detection model was proposed based on multi-scale enhancement and geometric fusion, named MESA-Text. MESA-Text introduced a multi-scale attention feature enhancement and fusion module, which leveraged an alternating fusion strategy of attention-based even-odd layers, integrating a gated dual-branch attention mechanism and a feature smoothing method to effectively enhance the ability to fuse features from different text scales. To address the problem of imbalanced text aspect ratios, a geometric feature stabilization module was proposed to adaptively refine features by incorporating geometric information, allowing more accurate and robust detection of distorted, blurred, and small-scale text. Additionally, a dynamic deformable convolution module was used to enhance feature extraction across multiple scales, further improving the representation capability of complex text regions and enhancing overall detection performance. The proposed framework was specifically designed to address the diverse appearance characteristics of food packaging text, enabling more reliable localization under complex backgrounds and varying imaging conditions. Ablation experiments demonstrated that incorporating the multi-scale attention enhancement module, geometric stabilization module, and dynamic multi-scale feature extraction module improved recall by 2.18, 0.90, and 1.14 percentage points, respectively. Using the proposed model, MESA-Text achieved 92.12% recall, 91.76% precision, and F1-score of 91.94% on food packaging images, demonstrating superior effectiveness and robustness in challenging food packaging scenarios, while effectively reducing missed and false detections.