The invention provides a physical confrontation
coating generation method and device for a vehicle target
detector. The method comprises the following steps: acquiring a
mask image, a vehicle image and shooting camera
visual angle data from a multi-weather vehicle
data set; segmenting the vehicle image by using the
mask image to obtain a foreground vehicle image and a
background image of the vehicle image; inputting the foreground vehicle image, predetermined vehicle model data, a vehicle UV image and shooting camera
visual angle data into an autonomously designed differentiable end-to-end advanced neural renderer to render the vehicle image in a specific scene and
visual angle; combining the rendered vehicle image with the
background image to form a complete image, inputting the complete image into a random disturbance module to add disturbance, and inputting the disturbed image into a target
detector to obtain a detection result; the detection result is used, loss is calculated through a self-designed
loss function, and vehicle
coating is optimized through gradient back propagation. The vehicle confrontation
coating generated by the method can realize accurate deployment and has better robustness.