Desensitization processing method, device and storage medium for vehicle fire images

By using pre-trained sensitive object detection models and flame smoke weighters in vehicle fire images, the problem of low detection accuracy of sensitive information in vehicle fire images is solved, efficient privacy protection and information security are achieved, and the efficiency of accident investigation is improved. Strength of support.

CN118521779BActive Publication Date: 2024-10-29AUTOMOTIVE DATA OF CHINA (TIANJIN) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410988875.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-23
Publication Date
2024-10-29
Estimated Expiration
2044-07-23

AI Technical Summary

Technical Problem

In the existing technology, the detection accuracy of sensitive information in vehicle fire images is insufficient, the processing speed is slow, and the detection range is limited, making it difficult to effectively protect personal privacy and information security.

Method used

Using a pre-trained sensitive object detection model, the vehicle fire image is processed through the feature extraction module and target detection module, and the flame smoke weighter is used to reduce the flame smoke features and improve the accuracy and efficiency of sensitive object detection.

Benefits of technology

It achieves high-precision detection and processing of faces, license plates, and text in vehicle fire images, ensuring the effectiveness of privacy protection and information security, and improving support for accident investigations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118521779B_ABST
    Figure CN118521779B_ABST
Patent Text Reader

Abstract

This invention relates to the field of image processing technology and discloses a method, device, and storage medium for desensitizing vehicle fire images. The method involves inputting vehicle fire images into pre-trained sensitive object detection models. The target feature extractor in the feature extraction module extracts the corresponding sensitive object features, and the flame and smoke weighting device in the feature extraction module extracts flame and smoke features. The sensitive object features and flame and smoke features are then concatenated, and the resulting overall feature map is adjusted using a weighted map. This allows the target detection module to determine the detection boxes for the corresponding sensitive objects. Finally, all detection boxes for sensitive objects are desensitized. This method improves the accuracy of sensitive information detection and further enhances the precision of sensitive information detection by reducing the proportion of flame and smoke in the image, thus preventing flame and smoke from affecting subsequent sensitive information detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image processing, and in particular to a desensitization processing method, device and storage medium for vehicle fire images. Background Art

[0002] There are many reasons for vehicle fires, including mechanical failures, electrical problems, fuel leaks, etc. Timely investigation and analysis of vehicle fire conditions and causes are essential to ensuring road traffic safety and the responsibilities of emergency management departments. Emergency management departments play a key role in this process. They need to conduct a record investigation of the fire vehicle to ensure the accuracy and comprehensiveness of the accident information. This process requires rigorous and comprehensive filling out of relevant forms, detailed records of the burning conditions of each component, and taking and saving photos of the scene from multiple angles to provide subsequent analysis and research data. The information of each fire accident vehicle must be fully uploaded to the vehicle accident in-depth investigation system, which helps to establish a standard fire accident database and provides valuable resources for the study of the causes of accidents and future prevention.

[0003] However, current vehicle fire images usually contain sensitive information involving personal privacy, such as faces, license plates, and text. If this sensitive information is detected and processed manually, there will be problems such as insufficient detection accuracy, slow processing speed, and limited detection range.

[0004] In view of this, the present invention is proposed. Summary of the invention

[0005] In order to solve the above technical problems, the present invention provides a desensitization processing method, device and storage medium for vehicle fire images, which solves the problems of insufficient accuracy in sensitive information detection, slow processing speed and limited detection range in the prior art.

[0006] An embodiment of the present invention provides a desensitization processing method for a vehicle fire image, the method comprising:

[0007] Inputting the vehicle fire images into pre-trained sensitive object detection models respectively, wherein the sensitive objects include faces, license plates and texts, and the sensitive object detection models include a feature extraction module and a target detection module, and the feature extraction module includes a flame smoke weighter and a target feature extractor;

[0008] For each sensitive object detection model, extracting corresponding sensitive object features in the vehicle fire image by a target feature extractor in the feature extraction module;

[0009] Extracting the flame and smoke features in the vehicle fire image by a flame and smoke weighter in the feature extraction module, and splicing the sensitive object features and the flame and smoke features to obtain a total feature map, determining a weight map corresponding to the total feature map, and adjusting the total feature map using the weight map to reduce the feature value of the flame and smoke features in the total feature map;

[0010] Processing the total feature map by the target detection module to obtain a detection frame of a corresponding sensitive object in the vehicle fire image;

[0011] Desensitizing processing is performed on the detection frames of all sensitive objects in the vehicle fire image to obtain a fire processing image.

[0012] An embodiment of the present invention provides an electronic device, the electronic device comprising:

[0013] Processor and memory;

[0014] The processor is used to execute the steps of the vehicle fire image desensitization processing method described in any embodiment by calling the program or instruction stored in the memory.

[0015] An embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a program or instruction, wherein the program or instruction enables a computer to execute the steps of the desensitization processing method for a vehicle fire image described in any embodiment.

[0016] The embodiments of the present invention have the following technical effects:

[0017] The vehicle fire image is input into each pre-trained sensitive object detection model respectively, the corresponding sensitive object features are extracted by the target feature extractor in the feature extraction module of each sensitive object detection model, and the flame smoke features are extracted by the flame smoke weighter in the feature extraction module, the sensitive object features and the flame smoke features are spliced, and then the spliced ​​total feature map is adjusted through the weight map to reduce the eigenvalue of the flame smoke feature in the total feature map, so that the total feature map is processed by the target detection module of each sensitive object detection model to obtain the detection frame of the corresponding sensitive object, and finally the detection frames of all sensitive objects in the vehicle fire image are calculated. The detection frame is desensitized to obtain a fire processing image, which realizes the detection and processing of faces, license plates and text in vehicle fire images, provides strong support for the writing and analysis of accident investigation reports, and protects personal privacy and information security. In addition, this method realizes the detection of faces, license plates and text respectively through multiple sensitive object detection models, which can improve the accuracy of sensitive information detection and thus ensure the effectiveness of privacy protection. Through the flame smoke weighter and target feature extractor in each model, it can reduce the proportion of flame smoke in the image, avoid the influence of flame smoke on subsequent sensitive information detection, and further improve the accuracy of sensitive information detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0019] Figure 1 is a flow chart of a desensitization processing method for a vehicle fire image provided by an embodiment of the present invention;

[0020] Figure 2 is a schematic diagram of a model structure provided by an embodiment of the present invention;

[0021] Figure 3 It is a structural schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0022] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be described clearly and completely below. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work belong to the scope of protection of the present invention.

[0023] The vehicle fire image desensitization processing method provided by the embodiment of the present invention is mainly applicable to the vehicle fire image sensitive information detection and sensitive information processing, so as to protect the personal privacy and information security in the vehicle fire image in the subsequent accident analysis process. The vehicle fire image desensitization processing method provided by the embodiment of the present invention can be performed by the vehicle fire image desensitization processing integrated in the electronic device.

[0024] Figure 1 is a flow chart of a method for desensitizing vehicle fire images provided by an embodiment of the present invention. Figure 1 The desensitization processing method of the vehicle fire image specifically includes:

[0025] S110, inputting the vehicle fire images into each pre-trained sensitive object detection model respectively.

[0026] Among them, sensitive objects include faces, license plates and texts. The sensitive object detection model includes a feature extraction module and a target detection module. The feature extraction module includes a flame and smoke weighter and a target feature extractor.

[0027] In this embodiment, in order to realize the detection and processing of faces, license plates and text in vehicle fire images and at the same time ensure accurate recognition of faces, license plates and text, a sensitive object detection model can be trained for faces, license plates and text respectively, that is, each sensitive object detection model includes a sensitive object detection model corresponding to faces, a sensitive object detection model corresponding to license plates, and a sensitive object detection model corresponding to text.

[0028] It should be noted that faces, license plates and text have different characteristics. In order to achieve accurate recognition of faces, license plates and text, various types of networks can be used to train corresponding sensitive object detection models.

[0029] Exemplarily, the purpose of face detection is to find all faces in a given input image and output the coordinates and confidence of the face bounding box. Face detection is mainly affected by factors such as image resolution, brightness, face size, and posture. In order to achieve real-time and high-precision detection of faces in vehicle fire images, the RetinaFace network can be used to train the RetinaFace network to obtain a sensitive object detection model corresponding to the face.

[0030] Among them, the backbone (feature extractor) of the RetinaFace network can be ResNet (Residual Network) or MobileNet (Mobile Network, a lightweight convolutional neural network designed for mobile and embedded devices). Based on ResNet, the best average accuracy of 91.4% was achieved at the difficulty level of Wider Face (public face detection dataset). Based on MobileNet, real-time detection of VG (Video Graphics Array) resolution images on a single CPU (Central Processing Unit) can be achieved. Therefore, considering the real-time and high-precision requirements of face detection, and the images are basically taken in unrestricted natural scenes, RetinaFace can be used to train the sensitive object detection model corresponding to the face based on the backbone network of MobileNetV1-0.25 to complete the face detection task.

[0031] Exemplarily, license plate location refers to judging the license plate by the features of the license plate area, and segmenting the license plate area from the entire vehicle image. RetinaFace marks 5 key points, including the center of the eye, the tip of the nose, and the corner of the mouth, as additional supervision information, and adopts a multi-task learning strategy to simultaneously predict face confidence, face bounding box, and face key points. Similar to a face, a license plate also includes a contour bounding box and 4 vertices. Therefore, the embodiment of the present invention can use RetinaFace training to obtain a sensitive object detection model corresponding to the license plate. It only needs to modify the original 5 face key points to 4 license plate area vertices.

[0032] For example, the purpose of text detection is to find the text area in the picture as accurately as possible. The text in natural scenes has richer presentation forms, such as different languages, directions, fonts, sizes, colors, and brightness. PSENet (Progressive Scale Expansion Network) can achieve pixel-level segmentation for the problem of arbitrary-shaped text and indistinguishable text lines. It can accurately detect text instances of arbitrary shapes. At the same time, using the progressive scale expansion algorithm, it can separate text instances that are very close or even partially intersecting. The pre-trained model of PSENet on the SCUT-CTW1500 and ICDAR 2017 MLT (IC17-MLT) datasets has an excellent performance of 84.8% precision, 79.7% recall, and 82.2% F value. Among them, SCUT-CTW1500 is a long curve text detection dataset, and IC17-MLT consists of complete natural scene images in 9 languages. This meets the requirements for fire scene text data in the embodiment of the present invention. Therefore, PSENet can be used to train a sensitive object detection model corresponding to the text to detect the text in the image.

[0033] It should be noted that, although the network types used by each sensitive object detection model may be different, each sensitive object detection model needs to include a feature extraction module and a target detection module, and the feature extraction module is composed of a flame smoke weighter and a target feature extractor. Sensitive object detection models of different network types may differ in the design of loss functions or convolutional layers.

[0034] In an embodiment of the present invention, in order to achieve targeted detection of faces, license plates and text, the vehicle fire image can be input into a sensitive object detection model corresponding to faces, a sensitive object detection model corresponding to license plates, and a sensitive object detection model corresponding to text, respectively.

[0035] S120. For each sensitive object detection model, extract corresponding sensitive object features in the vehicle fire image through a target feature extractor in a feature extraction module.

[0036] Specifically, after the vehicle fire image is input into the sensitive object detection model, the sensitive object detection model can extract corresponding sensitive object features from the vehicle fire image through the target feature extractor in the feature extraction module.

[0037] For example, for the sensitive object detection model corresponding to human faces, the sensitive object detection model can extract human face features from the vehicle fire image through the target feature extractor; for the sensitive object detection model corresponding to license plates, the sensitive object detection model can extract license plate features from the vehicle fire image through the target feature extractor; for the sensitive object detection model corresponding to text, the sensitive object detection model can extract text features from the vehicle fire image through the target feature extractor.

[0038] After the sensitive object detection model extracts the corresponding sensitive object features through the target feature extractor, the target feature extractor may also input the sensitive object features into the flame and smoke weighter in the feature extraction module.

[0039] S130. Extract the flame and smoke features in the vehicle fire image through the flame and smoke weighter in the feature extraction module, and splice the sensitive object features and the flame and smoke features to obtain a total feature map, determine the weight map corresponding to the total feature map, and use the weight map to adjust the total feature map to reduce the feature value of the flame and smoke features in the total feature map.

[0040] In the embodiment of the present invention, vehicle fire images are different from other images. Vehicle fire images usually contain a large amount of smoke or flames. Sometimes the smoke or flames may partially block people, vehicles, walls, etc., thereby affecting the final detection effect. In order to reduce the impact of smoke and flames on sensitive object detection, the embodiment of the present invention designs a flame and smoke weighter in the sensitive object detection model.

[0041] Specifically, for each sensitive object detection model, the flame and smoke features can be extracted from the vehicle fire image through a flame and smoke weighter to obtain a deep representation of flame and smoke in the model.

[0042] Furthermore, after extracting the flame smoke features, the flame smoke weighter of the sensitive object detection model can splice the sensitive object features and the flame smoke features to obtain a total feature map. The flame smoke weighter can first scale the sensitive object features and the flame smoke features to scale the sensitive object features and the flame smoke features to a consistent scale, and then use a feature splicing technique to splice the sensitive object features and the flame smoke features, such as splicing according to the channel dimension, to obtain a total feature map that includes both the sensitive object features and the flame smoke features.

[0043] In addition, the flame and smoke weighter generates a weight map corresponding to the total feature map according to the position of the flame and smoke features and the sensitive object features in the total feature map. The weight map is the same size as the total feature map, and is used to describe the weight (i.e., weighted value) corresponding to each pixel in the total feature map. The weights corresponding to the flame and smoke pixels are lower than the weights corresponding to other pixels.

[0044] Furthermore, the flame smoke weighter may multiply the total feature map by the weight map to adjust each pixel in the total feature map through the weight map, thereby reducing the feature value of the flame smoke feature in the total feature map.

[0045] Alternatively, the flame smoke weighter may multiply the total feature map by the weight map to reduce the feature value of the flame smoke feature in the total feature map through the weight map while enhancing the feature values ​​of other features except the flame smoke feature in the total feature map, or enhance the feature value of the sensitive object feature in the total feature map.

[0046] Through the above process, the proportion of flame and smoke features in the total feature map can be reduced, and the features of sensitive objects can be enhanced, which can help separate clear sensitive objects from flame and smoke interference, greatly highlight the importance of sensitive objects in the entire vehicle fire image, effectively separate the flame and smoke area, and improve the accuracy of subsequent detection.

[0047] S140. Process the total feature map through the target detection module to obtain a detection frame of the corresponding sensitive object in the vehicle fire image.

[0048] Specifically, for each sensitive object detection model, after the flame smoke weighter in the feature extraction module adjusts the total feature map based on the weight map, the flame smoke weighter in the feature extraction module outputs the adjusted total feature map to the target detection module in the sensitive object detection model.

[0049] Furthermore, the target detection module can process the total feature map, that is, perform target detection on the total feature map, identify sensitive objects in the vehicle fire image based on the total feature map, and output the detection box of the corresponding sensitive object in the vehicle fire image.

[0050] In the embodiment of the present invention, in order to avoid insufficient model training accuracy due to too few sample fire images, and to achieve rapid training of each sensitive object detection model, while ensuring the detection accuracy of each sensitive object detection model, transfer learning can be used to train each sensitive object detection model. Transfer learning refers to extracting knowledge from a learned source task and applying it to a target task.

[0051] In a specific implementation, the training of the sensitive object detection model includes the following steps:

[0052] Step 11: obtaining a pre-trained model, wherein the pre-trained model includes a feature extraction module and a target detection module, and the feature extraction module includes a target feature extractor;

[0053] Step 12: Build a flame and smoke weighter in the feature extraction module of the pre-trained model;

[0054] Step 13: Obtain a sample set corresponding to the sensitive object domain, wherein the sample set corresponding to the sensitive object domain includes each sample fire image and a detection frame label of the corresponding sensitive object;

[0055] Step 14: input each sample fire image in the sample set corresponding to the sensitive object domain into the pre-training model to obtain a predicted detection frame of the sensitive object in each sample fire image;

[0056] Step 15: Calculate the loss value based on the predicted detection box and detection box label of the sensitive object in each sample fire image, and update the parameters in the feature extraction module and the target detection module through the loss value until the loss value converges, and use the final pre-trained model as the sensitive object detection model.

[0057] Among them, in step 11, the pre-trained model can be a pre-trained model for identifying sensitive objects in other scenarios. It should be noted that for the sensitive object detection model corresponding to the training face, the pre-trained model also needs to be a model for recognizing faces, such as recognizing the faces of candidates; for the sensitive object detection model corresponding to the training license plate, the pre-trained model also needs to be a model for recognizing license plates; for the sensitive object detection model corresponding to text, the pre-trained model also needs to be a model for recognizing text.

[0058] Specifically, the pre-training model needs to include a feature extraction module and a target detection module. The feature extraction module includes a target feature extractor, and the target feature extractor is used to extract features related to sensitive objects.

[0059] After obtaining the pre-trained model, considering that the embodiment of the present invention implements desensitization processing of vehicle fire images, unlike other scenes, vehicle fire images usually contain a large amount of flames or dense fog, which may affect the detection of sensitive objects, causing sensitive objects to be missed due to the occlusion of flames or dense fog. Therefore, in order to solve this problem, in step 12, a flame smoke weighter can be built in the feature extraction module of the pre-trained model, so that the feature extraction module is composed of a flame smoke weighter and a target feature extractor. Among them, the flame smoke weighter is used to reduce the weight of the flame smoke feature.

[0060] Furthermore, in step 14, each sample fire image in the sample set corresponding to the sensitive object domain can be input into the pre-trained model, so that the target feature extractor in the pre-trained model extracts the sensitive object feature, the flame smoke weighter extracts the flame smoke feature and splices it with the sensitive object feature, and then the flame smoke weighter weights the spliced ​​total feature map through the weight map, and the target detection module identifies the sensitive object in the sample fire image based on the weighted total feature map, and obtains the predicted detection frame of the sensitive object in each sample fire image. Among them, the sensitive object domain can refer to the sensitive object in the vehicle fire scene, such as the face, license plate or text in the vehicle fire scene.

[0061] Furthermore, in step 15, the loss value can be calculated based on the predicted detection box and the detection box label of the sensitive object in each sample fire image, and the parameters in the feature extraction module and the target detection module can be reversely adjusted according to the loss value until the loss value converges (such as the rate of change of the loss value is less than a preset threshold), and the final pre-trained model is used as the sensitive object detection model.

[0062] In addition, in an embodiment of the present invention, considering the differences between vehicle fire scenes and other scenes, the difference between the source domain (i.e., the source of samples of the pre-trained model) and the target domain (i.e., the sensitive object domain) may cause the model to perform poorly. In order to further improve the detection accuracy of the model, the parameters in the feature extraction module and the target detection module can be trained through the loss function first. After the loss value converges, the parameters in the feature extraction module and the target detection module are continued to be trained with the goal that the discriminator cannot distinguish between the source domain and the target domain, so as to ensure that the model is more robust in the target domain.

[0063] With respect to the above step 15, optionally, before using the final pre-trained model as a sensitive object detection model, the following steps are further included:

[0064] Step 151: Building a first discriminator in the pre-trained model, wherein the first discriminator is connected to a flame and smoke weighting device;

[0065] Step 152: Obtain a sample set corresponding to the source domain of the pre-trained model;

[0066] Step 153: input the images in the sample set corresponding to the source domain and the sample set corresponding to the sensitive object domain into the pre-trained model, so as to determine the predicted domain of the input image based on the first discriminator and the sample feature map output by the flame smoke weighter;

[0067] Step 154: Update the parameters in the feature extraction module through the predicted domain of each input image output by the first discriminator and the real domain of each input image.

[0068] Among them, in step 151, a first discriminator can be set at the output end of the flame smoke weighter. The first discriminator is used to determine the source of the image input into the pre-trained model according to the weighted total feature map output by the flame smoke weighter, that is, to determine whether the input image is a source domain or a sensitive object domain. The source domain refers to the source of samples that the pre-trained model initially completes training.

[0069] Furthermore, in step 152-step 153, a sample set corresponding to the source domain of the pre-trained model can be obtained, and the sample set corresponding to the source domain is mixed with images in the sample set corresponding to the sensitive object domain, and input into the pre-trained model, so that the first discriminator therein predicts the source of the input image according to the sample feature map (i.e., the weighted total feature map) output by the flame and smoke weighter, and obtains the predicted domain to which the input image belongs.

[0070] Furthermore, in step 154, the loss can be calculated based on the predicted domain of each input image output by the first discriminator and the true domain of each input image, wherein, for the images in the sample set corresponding to the source domain, the true domain is the source domain; for the images in the sample set corresponding to the sensitive object domain, the true domain is the sensitive object domain.

[0071] Specifically, the closer the predicted domain is to the true domain, the greater the loss calculation result. The parameters in the feature extraction module (target feature extractor and flame smoke weighter) are adjusted according to the calculated results until the loss calculation results converge. At this time, the first discriminator cannot distinguish the source of the sample feature map well, indicating that the features extracted by the feature extraction module are common features of the source domain and the sensitive object domain. The pre-trained model after the final training can be used as a sensitive object detection model.

[0072] Through the above steps 151 to 154, the feature extraction module can be further optimized and trained with the purpose of the first discriminator being unable to identify the source of the input image, so that the feature extraction module can accurately extract the features shared by the source domain and the sensitive object domain in the image, thereby reducing the detection difference between the model in the source domain and the sensitive object domain, and improving the detection accuracy of the model in the sensitive object domain.

[0073] In the embodiment of the present invention, in order to further improve the detection accuracy of the model in the sensitive object domain, a second discriminator may be designed to optimize the training target detection module.

[0074] Optionally, before using the final pre-trained model as a sensitive object detection model, the following steps are also included:

[0075] Step 155: Building a second discriminator in the pre-trained model, wherein the second discriminator is connected to the target detection module;

[0076] Step 156: input the images in the sample set corresponding to the source domain and the sample set corresponding to the sensitive object domain into the pre-trained model, so as to determine the predicted domain of the input image based on the second discriminator and the predicted detection box output by the object detection module;

[0077] Step 157: Update the parameters in the object detection module through the predicted domain of each input image output by the second discriminator and the actual domain of each input image.

[0078] Among them, in step 155, a second discriminator can be set at the output end of the target detection module. The second discriminator is used to determine the source of the image input into the pre-trained model according to the predicted detection box output by the target detection module, that is, to determine whether the input image is a source domain or a sensitive object domain.

[0079] Furthermore, in step 156, the sample set corresponding to the source domain and the images in the sample set corresponding to the sensitive object domain can be mixed and input into the pre-trained model so that the second discriminator therein predicts the source of the input image according to the predicted detection box output by the target detection module, and obtains the predicted domain to which the input image belongs.

[0080] Furthermore, in step 157, the loss can be calculated based on the predicted domain of each input image output by the second discriminator and the real domain of each input image. The closer the predicted domain is to the real domain, the greater the loss calculation result. The parameters in the target detection module are adjusted according to the calculated result until the loss calculation result converges. At this time, the second discriminator cannot distinguish the source of the predicted detection box well, indicating that the features used by the target detection module to identify the target are common features of the source domain and the sensitive object domain. The pre-trained model after the final training can be used as a sensitive object detection model.

[0081] Through the above steps 155 to 157, the target detection module can be further optimized and trained with the purpose of the second discriminator being unable to identify the source of the input image, so that the target detection module can use the features shared by the source domain and the sensitive object domain in the image to perform target recognition, thereby reducing the detection difference between the model in the source domain and the sensitive object domain, and improving the detection accuracy of the model in the sensitive object domain.

[0082] like Figure 2 As shown, Figure 2 It is a schematic diagram of a model structure provided by an embodiment of the present invention, wherein the flame smoke weighter can extract flame smoke features from an input image, and the target feature extractor can extract sensitive object features from an input image, and then the flame smoke weighter can perform feature splicing, and perform feature weighting on the spliced ​​total feature map and the weight map, and output them to the target detection module and the image domain classifier (i.e., the first discriminator).

[0083] The image domain classifier can output a domain label, that is, the predicted domain of the total feature map, and the object detection module can output a predicted detection box, and output the predicted detection box to the detection box domain classifier (that is, the second discriminator), and the detection box domain classifier can output a domain label, that is, the predicted domain of the predicted detection box.

[0084] The sensitive object detection model provided by the embodiment of the present invention has been experimentally verified to have high F values ​​for face, license plate and text areas, which shows that each model has achieved good results.

[0085] Among them, the recall rate of face detection reached 92.0%, that is, more than 90% of faces can be detected, which is in line with expectations. By adjusting the training of the pre-trained model, not only a lot of training time is saved, but also the strong transferability of the model is verified. In addition, the face test images in the experiment include multiple resolutions, the largest is 1920*1080, and the smallest is 480*272, which also confirms the strong compatibility of the model. On a single CPU, the average forward propagation time of the model is only 1 second, and the detection time of a single image is only 1.2 seconds, which is fast and can basically meet the timeliness requirements.

[0086] The precision and recall of license plate detection are very high, and the speed is very fast, with very ideal results. This also proves the strong portability of RetinaFace. 84.1% of the text areas can be accurately detected, and 86.9% of the detection areas are target text areas, which shows that the PSENet-1s model performs very well in the test set of the vehicle fire scene in the embodiment of the present invention, which not only effectively solves the problem of lack of training data, but also saves a lot of model training time.

[0087] S150, performing desensitization processing on the detection frames of all sensitive objects in the vehicle fire image to obtain a fire processing image.

[0088] Specifically, after the detection frames of the corresponding sensitive objects in the vehicle fire image are determined through various sensitive object detection models, further, the detection frames of all sensitive objects may be desensitized, and the processed images are used as fire processing images.

[0089] In a specific implementation, desensitizing the detection frames of all sensitive objects in the vehicle fire image to obtain a fire processed image includes:

[0090] For each detection frame of a sensitive object in the vehicle fire image, a reference pixel point is determined in the detection frame; based on the pixel value of the reference pixel point, the pixel values ​​of other pixels in the detection frame are updated to obtain a fire processing image.

[0091] For each detection frame, a pixel point may be selected in the detection frame as a reference pixel point, for example, a pixel point in the upper left corner or the upper right corner of the detection frame may be selected as a reference pixel point.

[0092] Furthermore, the pixel values ​​of other pixels in the detection frame can be updated according to the pixel value of the reference pixel. For example, the pixel value of the reference pixel is used to replace the pixel values ​​of other pixels in the detection frame; or the average value between the pixel value of the reference pixel and the pixel values ​​of other pixels in the detection frame is calculated, and the pixel values ​​of other pixels in the detection frame are replaced with the average value.

[0093] Through the above implementation, desensitization processing based on reference pixels can be implemented, and the entire detection frame can be blurred based on a pixel in the detection frame to achieve rapid desensitization processing of sensitive objects in vehicle fire images. In the case of a large number of vehicle fire images, the processing efficiency of batch vehicle fire images can be improved.

[0094] In another specific implementation, desensitizing the detection frames of all sensitive objects in the vehicle fire image to obtain a fire processed image includes:

[0095] For each detection frame of a sensitive object in the vehicle fire image, a map having the same size as the detection frame is used to replace the detection frame in the vehicle fire image, or a map having the same size as the detection frame is used to cover the detection frame in the vehicle fire image.

[0096] Specifically, for each detection frame, a map with the same size as the detection frame can be obtained, and the map can be used to replace the detection frame in the vehicle fire image, that is, the pixel value of each pixel point in the detection frame in the vehicle fire image is replaced with the pixel value at the corresponding position in the map.

[0097] Alternatively, for each detection box, a map having the same size as the detection box may be obtained, and the map may be used to cover the detection box in the vehicle fire image.

[0098] Through the above implementation, desensitization processing based on the map can be realized, and the entire detection frame can be blurred based on the map with the same size as the detection frame to achieve rapid desensitization processing of sensitive objects in vehicle fire images. In the case of a large number of vehicle fire images, the processing efficiency of batch vehicle fire images can be improved.

[0099] Considering that in the embodiment of the present invention, the purpose of desensitizing the vehicle fire image is to protect privacy information when the image is subsequently used for accident analysis, however, desensitizing part of the image may also result in too many desensitized areas, too large desensitized areas, or desensitized areas located in the center, which has a greater impact on the entire image and thus affects the efficiency and accuracy of subsequent accident analysis.

[0100] Therefore, after desensitizing a batch of vehicle fire images, the image levels can be divided according to the desensitized detection frames, so that later, according to the image levels, some images with fewer desensitized areas, smaller desensitized areas, or desensitized areas located at the edge can be preferentially selected for accident analysis, such as training an accident cause prediction model to ensure the efficiency and accuracy of accident analysis. Optionally, the method provided by the embodiment of the present invention also includes:

[0101] Determine the image level of each fire processing image based on the detection frame of the desensitized sensitive object in each fire processing image, wherein the image level is used to reflect the effect of the fire processing image on accident analysis;

[0102] According to the image level of each fire processing image, the fire processing image is stored in an accident analysis database corresponding to the image level.

[0103] Specifically, for each fire processing image, the image level may be determined according to the size, number and position of the detection frames of the sensitive objects desensitized in the fire processing image.

[0104] For example, if the size of the detection frame of the sensitive object desensitized in the fire treatment image is larger than the preset size, or the number of detection frames is greater than the preset number, or the position of the detection frame is within the preset central area, then the image level is determined to be a low action level; otherwise, the image level is determined to be a high action level.

[0105] In one example, determining the image level of each fire processing image based on the detection frame of the desensitized sensitive object in each fire processing image includes:

[0106] Based on the size, number and position of the desensitized detection frame in each fire processing image, all the fire processing images are clustered, and the image level of each fire processing image is determined according to the clustering result.

[0107] Specifically, all fire processing images may be clustered according to the size, number and position of the desensitized detection frames in each fire processing image to obtain cluster centers, and each cluster center may represent an image level.

[0108] Furthermore, for each fire treatment image, the distance between the fire treatment image and the cluster center can be calculated according to the size, number and position of the detection box in the fire treatment image, and the image level of each fire treatment image can be determined according to the distance. For example, if the distance between the fire treatment image and the cluster center is less than a preset distance threshold, the image level of the fire treatment image can be determined to be the image level represented by the cluster center.

[0109] Through the above examples, clustering processing based on the size, number and position of the detection frame can be implemented, and each image level can be obtained through clustering. All fire processing images are divided into each image level to complete the rapid classification of batch fire processing images.

[0110] After the image level of each fire processing image is obtained, the fire processing image is stored in an accident analysis database corresponding to the image level, wherein each image level may correspond to an accident analysis database.

[0111] Furthermore, in the subsequent accident analysis, priority can be given to selecting fire processing images with high image levels, that is, images that have a great impact on accident analysis (or are understood as having good effects), for accident analysis, such as training a prediction model for the cause of a fire accident, counting the degree of damage to vehicles in different types of fire accidents, and analyzing damaged parts at the collision position of the vehicle in a fire accident.

[0112] Through the above method, all fire processing images can be classified and stored according to their image levels, which is convenient for subsequent accident analysis and can improve the accuracy and efficiency of accident analysis.

[0113] The present invention has the following technical effects: by respectively inputting vehicle fire images into pre-trained sensitive object detection models, extracting corresponding sensitive object features through a target feature extractor in a feature extraction module of each sensitive object detection model, extracting flame smoke features through a flame smoke weighter in the feature extraction module, splicing sensitive object features and flame smoke features, and then adjusting the spliced ​​total feature map through a weight map to reduce the feature value of the flame smoke feature in the total feature map, thereby processing the total feature map through a target detection module of each sensitive object detection model to obtain a detection frame of the corresponding sensitive object, and finally The detection frames of sensitive objects are desensitized to obtain fire processing images, which realizes the detection and processing of faces, license plates and texts in vehicle fire images, provides strong support for the writing and analysis of accident investigation reports, and protects personal privacy and information security. In addition, this method realizes the detection of faces, license plates and texts respectively through multiple sensitive object detection models, which can improve the accuracy of sensitive information detection and thus ensure the effectiveness of privacy protection. Through the flame smoke weighter and target feature extractor in each model, it can reduce the proportion of flame smoke in the image, avoid the influence of flame smoke on subsequent sensitive information detection, and further improve the accuracy of sensitive information detection.

[0114] In the embodiment of the present invention, transfer learning and deep learning techniques are used to detect and desensitize sensitive information in images of vehicle fire scenes, which can solve the problem of scarce fire scene images or limited computing resources. The embodiment of the present invention constructs a discriminator training fine-tuning model to cope with specific detection tasks.

[0115] In order to achieve efficient and accurate detection of sensitive information, the two models of RetinaFace and PSENet were selected, and the detection of faces, license plates and texts was optimized. In particular, the MobileNetV1-0.25 backbone network was selected to achieve fast and accurate task completion even in an environment with limited computing resources. At the same time, the PSENet model was selected for text detection, and its unique progressive scale expansion network can accurately recognize and process texts of any shape in natural scenes, which is crucial for processing complex vehicle fire scene images.

[0116] The embodiment of the present invention combines the above models and uses a flame smoke extractor and discriminator to not only achieve efficient detection of various types of sensitive information, but also desensitize the detected sensitive areas. This method can effectively block sensitive information while retaining the overall look and feel of the image, thereby improving the safety and efficiency of vehicle fire scene image processing. This method can not only accurately and quickly identify and desensitize sensitive information in images, but can also operate under conditions of limited resources, providing strong technical support for the investigation and analysis of vehicle fire accidents, while protecting personal privacy and the security of sensitive information.

[0117] Figure 3 Schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. Figure 3 As shown, the electronic device 400 includes one or more processors 401 and a memory 402 .

[0118] The processor 401 may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device 400 to perform desired functions.

[0119] The memory 402 may include one or more computer program products, and the computer program product may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, random access memory (RAM) and / or cache memory (cache), etc. The non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 401 may run the program instructions to implement the vehicle fire image desensitization processing method of any embodiment of the present invention described above and / or other desired functions. Various contents such as initial external parameters, thresholds, etc. may also be stored in the computer-readable storage medium.

[0120] In one example, the electronic device 400 may further include: an input device 403 and an output device 404, which are interconnected via a bus system and / or other forms of connection mechanisms (not shown). The input device 403 may include, for example, a keyboard, a mouse, etc. The output device 404 may output various information to the outside, including early warning prompt information, braking force, etc. The output device 404 may include, for example, a display, a speaker, a printer, a communication network and a remote output device connected thereto, etc.

[0121] Of course, to simplify, Figure 3 Only some of the components related to the present invention in the electronic device 400 are shown, and components such as a bus, an input / output interface, etc. are omitted. In addition, according to specific application conditions, the electronic device 400 may also include any other appropriate components.

[0122] In addition to the above-mentioned method and device, an embodiment of the present invention may also be a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to execute the steps of the vehicle fire image desensitization processing method provided by any embodiment of the present invention.

[0123] The computer program product may be written in any combination of one or more programming languages ​​to write program code for performing the operations of the embodiments of the present invention, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.

[0124] In addition, an embodiment of the present invention may also be a computer-readable storage medium having computer program instructions stored thereon, and when the computer program instructions are executed by a processor, the processor executes the steps of the desensitization processing method for vehicle fire images provided in any embodiment of the present invention.

[0125] The computer readable storage medium can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0126] It should be noted that the terms used in the present invention are only for describing specific embodiments, rather than limiting the scope of the present application. As shown in the present specification, unless the context clearly indicates an exception, the words "one", "a", "a kind of" and / or "the" do not specifically refer to the singular, but may also include the plural. The terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method or device. In the absence of further restrictions, the elements defined by the sentence "include one..." do not exclude the presence of other identical elements in the process, method or device including the elements.

[0127] It should also be noted that the terms "center", "up", "down", "left", "right", "vertical", "horizontal", "inside", "outside", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention. Unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", etc. should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be an indirect connection through an intermediate medium, or it can be a connection between the two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0128] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the technical solutions of the embodiments of the present invention.

Claims

1. A desensitization processing method for vehicle fire images, characterized in that: include: Inputting the vehicle fire images into pre-trained sensitive object detection models respectively, wherein the sensitive objects include faces, license plates and texts, and the sensitive object detection models include a feature extraction module and a target detection module, and the feature extraction module includes a flame smoke weighter and a target feature extractor; For each sensitive object detection model, extracting corresponding sensitive object features in the vehicle fire image by a target feature extractor in the feature extraction module; Extracting the flame and smoke features in the vehicle fire image by a flame and smoke weighter in the feature extraction module, and splicing the sensitive object features and the flame and smoke features to obtain a total feature map, determining a weight map corresponding to the total feature map, and adjusting the total feature map using the weight map to reduce the feature value of the flame and smoke features in the total feature map; Processing the total feature map by the target detection module to obtain a detection frame of a corresponding sensitive object in the vehicle fire image; Desensitizing processing is performed on the detection frames of all sensitive objects in the vehicle fire image to obtain a fire processing image.

2. The method according to claim 1, characterized in that Desensitizing the detection frames of all sensitive objects in the vehicle fire image to obtain a fire processed image, including: For each detection frame of a sensitive object in the vehicle fire image, determining a reference pixel point within the detection frame; The pixel values ​​of other pixels in the detection frame are updated based on the pixel value of the reference pixel to obtain a fire processing image.

3. The method according to claim 1, characterized in that Desensitizing the detection frames of all sensitive objects in the vehicle fire image to obtain a fire processing image, including: For each detection frame of a sensitive object in the vehicle fire image, a texture having the same size as the detection frame is used to replace the detection frame in the vehicle fire image, or a texture having the same size as the detection frame is used to cover the detection frame in the vehicle fire image.

4. The method according to claim 1, characterized in that The method further comprises: Determining an image grade of each of the fire processing images based on a detection frame of a desensitized sensitive object in each of the fire processing images, wherein the image grade is used to reflect the effect of the fire processing image on accident analysis; According to the image level of each of the fire processing images, the fire processing images are stored in an accident analysis database corresponding to the image level.

5. The method according to claim 4, characterized in that Determining the image level of each fire processing image based on the detection frame of the desensitized sensitive object in each fire processing image includes: Based on the size, number and position of the desensitized detection frame in each of the fire processing images, clustering processing is performed on all of the fire processing images, and the image level of each of the fire processing images is determined according to the clustering processing result.

6. The method according to claim 1, characterized in that The training of the sensitive object detection model includes: Acquire a pre-trained model, wherein the pre-trained model includes a feature extraction module and a target detection module, and the feature extraction module includes a target feature extractor; Building a flame and smoke weighter in the feature extraction module of the pre-trained model; Acquire a sample set corresponding to a sensitive object domain, wherein the sample set corresponding to the sensitive object domain includes each sample fire image and a detection frame label of a corresponding sensitive object; Inputting each sample fire image in the sample set corresponding to the sensitive object domain into the pre-trained model to obtain a predicted detection frame of the sensitive object in each sample fire image; According to the predicted detection box and detection box label of the sensitive object in each sample fire image, the loss value is calculated, and the parameters in the feature extraction module and the target detection module are updated by the loss value until the loss value converges, and the final pre-trained model is used as the sensitive object detection model.

7. The method according to claim 6, characterized in that Before using the final pre-trained model as a sensitive object detection model, it also includes: Building a first discriminator in the pre-trained model, wherein the first discriminator is connected to the flame and smoke weighter; Obtaining a sample set corresponding to the source domain of the pre-trained model; Inputting images from the sample set corresponding to the source domain and the sample set corresponding to the sensitive object domain into the pre-trained model to determine the predicted domain of the input image based on the first discriminator and the sample feature map output by the flame and smoke weighter; The parameters in the feature extraction module are updated according to the predicted domain to which each input image belongs output by the first discriminator and the real domain to which each input image belongs.

8. The method according to claim 7, characterized in that Before using the final pre-trained model as a sensitive object detection model, it also includes: Building a second discriminator in the pre-trained model, wherein the second discriminator is connected to the target detection module; Inputting images in the sample set corresponding to the source domain and the sample set corresponding to the sensitive object domain into the pre-trained model, so as to determine the predicted domain of the input image based on the second discriminator and the predicted detection box output by the object detection module; The parameters in the object detection module are updated according to the predicted domain of each input image output by the second discriminator and the real domain of each input image.

9. An electronic device, characterized in that: The electronic device comprises: Processor and memory; The processor is used to execute the steps of the vehicle fire image desensitization processing method as described in any one of claims 1 to 8 by calling the program or instruction stored in the memory.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a program or instruction, which enables a computer to execute the steps of the vehicle fire image desensitization processing method as described in any one of claims 1 to 8.

Citation Information

Patent Citations

  • Video image desensitization method and device, terminal equipment and storage medium

    CN115512258A

  • Driving recording method and system for key privacy information desensitization and storage medium

    CN115935423A