Welcome to Journal of Graphics share: 

Journal of Graphics ›› 2023, Vol. 44 ›› Issue (2): 324-334.DOI: 10.11996/JG.j.2095-302X.2023020324

Previous Articles     Next Articles

X-ray image rotating object detection based on improved YOLOv7

CHENG Lang1(), JING Chao1,2,3()   

  1. 1. School of Information Science and Engineering, Guilin University of Technology, Guilin Guangxi 541004, China
    2. Guangxi Key Laboratory of Embedded Technology and Intelligent System, Guilin University of Technology, Guilin Guangxi 541004, China
    3. Guangxi Key Laboratory of Trusted Software, Guilin University of Electronic Science and Technology, Guilin Guangxi 541004, China
  • Received:2022-09-28 Accepted:2022-11-08 Online:2023-04-30 Published:2023-05-01
  • Contact: JING Chao (1983-), associate professor, Ph.D. His main research interests cover machine learning and image processing. E-mail:jingchao@glut.edu.cn
  • About author:CHENG Lang (1995-), master student. His main research interests cover computer vision and image processing. E-mail:862409782@qq.com
  • Supported by:
    National Natural Science Foundation of China(61802085);National Natural Science Foundation of China(61862019);Guangxi Natural Science Foundation(2020GXNSFAA159038);Guangxi Trusted Software Key Laboratory Fund(kx202011);Guangxi Middle-Aged and Young Teachers′ Basic Ability Improvement Project(2022KY0252)

Abstract:

For prohibited items in X-ray images, an algorithm for the detection of rotating targets based on the improved YOLOv7 was proposed to address the challenges of accurate identification and localization, as well as the neglection of the directionality of the items. Firstly, an efficient attention network module was integrated into the original network to enhance the ability of the model to extract deep important features. Then, the feature fusion path of the extended efficient long-range attention network (E-ELAN) was improved, and the residual structure jump connection and 1×1 convolution were added between modules, allowing the network to extract richer item features. Finally, to tackle the problem of arbitrary placement direction of prohibited items in X-ray images, the angles were discretized using the dense coded label representation method, thereby improving the positioning accuracy of prohibited items. The experimental results revealed that the improved algorithm could achieve a detection accuracy of 91.2%, 92.6%, and 66.4% on HiXray, OPIXray, and PIDray datasets, respectively. Compared with the original YOLOv7 model, the results were improved by 20.2%, 10.6%, and 15.5%, respectively. The proposed algorithm could provide a valuable technical support for public security by effectively improving the accuracy of prohibited item detection in X-ray images.

Key words: rotating target detection, attention mechanism, X-ray images, YOLOv7, prohibited item

CLC Number: