The invention discloses an automobile internal and external
fuel tank cap detection method based on combination of Vmamba and YOLOv8n, which comprises the following steps: firstly, acquiring photos of an automobile internal and external
fuel tank cap, constructing an initial
data set, preprocessing the photos in the
data set, dividing the preprocessed
data set, and then improving a YOLOv8n
network structure based on a Vmamba framework, so as to detect the internal and external
fuel tank caps of the automobile. And constructing an automobile internal and external fuel tank cap detection model, training the model based on the data set, and finally detecting the automobile internal and external fuel tank cap by using the trained automobile internal and external fuel tank cap detection model. According to the scheme of the invention, a YOLOv8n
network structure improved based on a VMama framework is adopted to construct an automobile inner and outer fuel tank cap detection model, on one hand, the center of an object is directly predicted, the detection process is simplified, on the other hand, by introducing a 2D-Selective-Scan (SS2D) module, global and local information of an image can be effectively processed,
linear complexity is kept, and the detection efficiency is improved. High-precision real-time detection of the inner and outer fuel tank caps of the automobile under various illumination conditions can be realized.