Packaging design plays a critical role in brand recognition and cultural dissemination, yet the traditional design process is time-consuming and dependent on the designer’s technical skills, making it difficult to quickly respond to market changes and consumer demands. In recent years, advancements in machine learning, particularly in the field of natural language processing (NLP), have paved the way for novel methods in other areas, such as image processing and packaging design. This study draws inspiration from advanced NLP techniques and proposes an improved fully convolutional network (FCN) model for image semantic segmentation, which is applied to packaging design. The model integrates superpixel technology, multi-branch networks, dual-attention mechanisms, and edge knowledge distillation in a manner analogous to the approach taken by NLP models in the context of semantic segmentation and context understanding. The experimental results showed that the model achieved significant improvements in accuracy, inference efficiency, and memory usage, with an average accuracy of 96.84% and a false-alarm rate of only 2.78%. Compared to traditional methods, the proposed model achieved over 96% accuracy across 50 packaging design images, with an average segmentation error rate of only 1.42%. By incorporating machine learning techniques from NLP into image processing, this study enhances the overall quality and efficiency of packaging design and provides new directions for the application of advanced technologies across different fields.