Automating Code Recognition for Cargo Containers
Open Access
- 14 November 2025
- journal article
- research article
- Published by MDPI AG in Electronics
- Vol. 14 (22) , 4437
Abstract
Maritime transport plays a pivotal role in global trade, where efficiency and accuracy in port operations are crucial. Among the various tasks carried out in ports, container code recognition is essential for tracking and handling cargo. Manual inspections of container codes are becoming increasingly impractical, as they induce delays and raise the risk of human error. To address these issues, this work proposes a hybrid Optical Character Recognition system that integrates YOLOv7 for text detection with the transformer-based TrOCR for recognition of the container codes, enabling accurate and efficient automated recognition. This design addresses the real-world challenges, such as varying light, distortions, and multi-orientation of container codes. To evaluate the system, we conducted a comprehensive evaluation on datasets that simulate the conditions found in port environments. The results demonstrate that the proposed hybrid model delivers significant improvements in detection and recognition accuracy and robustness compared to traditional OCR methods. In particular, the reliability in recognizing multi-oriented codes marks a notable advancement compared to existing solutions. Overall, this study presents an approach to automating container code recognition, contributing to the efficiency and modernization of port operations, with the potential to streamline port operations, reduce human error, and enhance the overall logistics workflow.Keywords
Funding Information
- PRR—Recovery and Resilience Plan and by the NextGenerationEU funds at Universidade de Aveiro (C645112083-00000059)
This publication has 16 references indexed in Scilit:
- White blood cell automatic classification using deep learning and optimized quaternion hybrid momentsBiomedical Signal Processing and Control, 2023
- Optimal Color Image Watermarking Based on DWT-SVD Using an Arithmetic Optimization Algorithm2023
- Comparative Analysis of EasyOCR and TesseractOCR for Automatic License Plate Recognition using Deep Learning Algorithm2022
- Optimization of Meixner Moments by the Firefly Algorithm for Image Analysis2022
- Applications of machine learning methods in port operations – A systematic literature reviewTransportation Research Part E: Logistics and Transportation Review, 2022
- A survey of transformersAI Open, 2022
- Industry 4.0 in the port and maritime industry: A literature reviewJournal of Industrial Information Integration, 2020
- Fast 3D Image Reconstruction by Separable Moments based on Hahn and Krawtchouk Polynomials2020
- Port Container Number Recognition System Based on Improved YOLO and CRNN Algorithm2020
- An Overview of the Tesseract OCR EngineNinth International Conference on Document Analysis and Recognition (ICDAR 2007), 2007