An image enhancement method and system based on vector quantization generative adversarial network

The rescue image is reconstructed through a vector quantization generative adversarial network, which solves the problem of lack of details in the image processing system due to light and dust interference in earthquake rescue, and achieves the effect of quickly understanding the disaster situation and improving rescue efficiency.

CN118397236BActive Publication Date: 2024-10-01JIANGXI HUAGUANG FILM & TELEVISION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing image processing systems based on artificial intelligence technology are easily interfered by factors such as lighting conditions and dust occlusion in earthquake rescue scenes, resulting in the missing of key details in rescue images and the inability to quickly understand the specific disaster conditions of disaster victims, affecting the efficiency of rescue operations.

Method used

The image enhancement method based on vector quantization generative adversarial network is used to preprocess the rescue image set to extract the detailed features of the disaster, and based on these features, the generative adversarial network is trained to reconstruct the rescue image, reduce interference, and reveal the details of the disaster.

Benefits of technology

It significantly reduces the interference of rescue images in earthquake-stricken areas, allowing rescuers to quickly understand the specific disaster conditions of disaster victims, improve rescue efficiency, and prevent secondary injuries.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118397236B_ABST
    Figure CN118397236B_ABST
Patent Text Reader

Abstract

The present application relates to the field of image processing technology, and in particular to an image enhancement method and system based on a vector quantization generative adversarial network. The method includes: obtaining a rescue image set, preprocessing the rescue image set, and determining the preprocessing results; analyzing the preprocessing results and extracting a number of disaster detail features; reconstructing the rescue image set based on a vector quantization generative adversarial network according to a number of disaster detail features, and determining a rescue enhanced image; outputting the rescue enhanced image for rescue personnel to view and analyze. The present application outputs a rescue enhanced image for rescue personnel to view and analyze, so that the specific disaster details of the current disaster victims can be displayed in the rescue enhanced image, so that the rescue personnel can quickly understand the specific disaster situation of the disaster victims based on the rescue enhanced image, so as to formulate a corresponding rescue plan and take corresponding rescue actions, while ensuring the rescue efficiency, preventing the rescue process from causing secondary damage to the disaster victims.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, and in particular to an image enhancement method and system based on a vector quantization generative adversarial network. Background Art

[0002] With the development of artificial intelligence technology, the combination of image processing technology and artificial intelligence technology has broad development space and application prospects. Among them, the combination of artificial intelligence technology and image processing technology and their application in earthquake rescue scenarios can bring more effective assistance and support to earthquake rescue work, improve the scientific and technological level and efficiency of rescue work, and reduce the losses caused by disasters.

[0003] However, the existing image processing systems based on artificial intelligence technology are easily disturbed by factors such as lighting conditions and dust obstruction at the earthquake disaster site during the process of collecting and processing earthquake rescue images, resulting in the lack of key details in the earthquake rescue images, making it impossible for rescue personnel to quickly understand the specific disaster situation of the victims, and thus unable to take effective rescue actions quickly. Summary of the invention

[0004] The present application provides an image enhancement method and system based on vector quantization generative adversarial network to solve the above-mentioned technical problems.

[0005] In a first aspect, the present application provides an image enhancement method based on a vector quantization generative adversarial network, the method comprising:

[0006] Acquire a rescue image set, preprocess the rescue image set, and determine a preprocessing result;

[0007] Analyze the preprocessing results and extract several disaster-affected detail features;

[0008] According to the plurality of disaster-affected detail features, based on a vector quantization generative adversarial network, the rescue image set is reconstructed to determine a rescue enhanced image;

[0009] The rescue enhanced image is output for rescue personnel to view and analyze.

[0010] The method of the present application preprocesses the collected rescue image set to reduce interference factors in the rescue image and obtain a preprocessing result. By analyzing the preprocessing result, a number of disaster detail features of the victims in the rescue image are extracted, and based on the number of disaster detail features, adversarial training is implemented within the vector joint generative adversarial network, so as to reconstruct the rescue image set based on the vector quantization generative adversarial network, determine the rescue enhanced image, and then output the rescue enhanced image for rescue personnel to view and analyze, significantly reducing the interference caused by the earthquake-stricken area to the rescue image, so that the specific disaster details of the current victims can be shown in the rescue enhanced image, so that the rescue personnel can quickly understand the specific disaster situation of the victims based on the rescue enhanced image, so as to formulate corresponding rescue plans and take corresponding rescue actions, while ensuring the rescue efficiency, preventing the rescue process from causing secondary harm to the victims.

[0011] Optionally, it is characterized in that the preprocessing of the rescue image set and determining the preprocessing result includes:

[0012] Analyzing the rescue image set to determine the rescue scene type;

[0013] Performing denoising and normalization processing on each rescue image in the rescue image set to determine a normalized rescue image set;

[0014] Determining a data expansion parameter set according to the rescue scenario type;

[0015] Expanding the parameter set according to the data, constructing an image transformation matrix;

[0016] Based on the image transformation matrix, image transformation is performed on each rescue image in the normalized rescue image set to determine a transformed image data set, and the transformed image data set is used as the preprocessing result.

[0017] The above technical scheme performs denoising and normalization processing on each rescue image in the rescue image set to reduce data deviation in the subsequent image processing process. After determining the normalized rescue image set, the data expansion parameter set is determined according to the rescue scene type to construct an image transformation matrix according to the data expansion parameter set. Then, each rescue image in the normalized rescue image set is transformed according to the image transformation matrix to determine the transformed image data set to achieve data expansion and avoid the negative impact of the single rescue image data on the robustness. The transformed image data set is used as the preprocessing result to make the subsequent analysis process of the preprocessing result more comprehensive.

[0018] Optionally, the data expansion parameter set includes but is not limited to a rotation angle, a scaling ratio, a cropping factor, and a translation vector, and constructing an image transformation matrix according to the data expansion parameter set includes:

[0019] According to the preset flip matrix, the rotation angle, the scaling ratio, the cropping factor and the translation vector, the following image transformation matrix is ​​constructed:

[0020] ;

[0021] in, is the image transformation matrix, is the preset flip matrix, is the rotation angle, is the scaling factor, is the cropping factor, is the translation vector.

[0022] The above technical scheme designs an image transformation matrix to express various transformation operations on the rescue image, and performs multi-directional transformation on the rescue image to achieve the purpose of data expansion, so that the image data in the transformed image data set can fully represent the disaster situation of the victims, thereby improving the comprehensiveness and accuracy of the disaster detail features subsequently extracted based on the preprocessing results.

[0023] Optionally, analyzing the preprocessing results to extract several disaster detail features includes:

[0024] Analyzing the preprocessing results to determine the body position of the disaster victims;

[0025] Based on the human body position, analyzing the preprocessing result to determine the human body posture;

[0026] Analyzing the preprocessing result according to the human body position and the human body posture to determine the apparent injury information;

[0027] Determine the facial position of the human body according to the human body posture, and analyze the preprocessing result according to the facial position to extract the facial expression information of the person;

[0028] Analyze the human body position and the human body posture to determine whether part of the body of the disaster victim is blocked;

[0029] If part of the body of the disaster victim is blocked, analyzing the preprocessing result based on the body position to determine the pressure information;

[0030] The human body posture, the apparent injury information, the facial expression information and the pressure information are used as the several disaster detail features.

[0031] The above technical scheme analyzes the preprocessing results to obtain the body position of the disaster victims, and then determines the body posture based on the body position. On the basis of the body position and body posture, the apparent injuries and facial expressions of the disaster victims are analyzed to determine the apparent injury information and the person's expression information. By analyzing the body posture, apparent injuries and facial expressions that can preliminarily reflect the details of the disaster, several disaster detail features obtained are representative. Furthermore, if there is a situation where the disaster victims are oppressed by collapsed buildings, by analyzing the preprocessing results, the pressure information that can reflect the pressure condition of the disaster victims is obtained, making the disaster detail features more comprehensive.

[0032] Optionally, analyzing the preprocessing result to determine the pressure information includes:

[0033] Analyzing the preprocessing results to determine the position of the pressing object;

[0034] Determining contact area information according to the human body position and the compressing object position;

[0035] Analyzing the contact area information to determine the stress state of the disaster victims;

[0036] The pressing object position, the contact area information and the pressed state are used as the pressed information.

[0037] According to the above technical scheme, when the disaster victims are in a state of being oppressed by the collapsed buildings, the position of the oppressive object is determined by analyzing the preprocessing results, and then the contact area information between the disaster victims and the oppressive object is determined based on the position of the oppressive object and the position of the human body. Then, the oppressed state of the disaster victims is determined by analyzing the contact area information, and the position of the oppressive object, the contact area information and the oppressed state are used as the oppressed information, so that the oppressed information can fully reflect the current oppressed state of the disaster victims.

[0038] Optionally, analyzing the preprocessing result to determine the body position of the disaster victim includes:

[0039] Analyze the preprocessing results and extract human body detection border information;

[0040] According to the human body detection frame information, the human body position is expressed by referring to the following expression:

[0041] ;

[0042] in, To represent the human body position, is the number of human body detection borders, For the The coordinates of the upper left corner of the individual body detection bounding box, For the The width of the bounding box for individual human detection, For the The height of the bounding box of the individual body detection;

[0043] The analyzing the preprocessing result to determine the position of the pressing object includes:

[0044] Analyze the preprocessing results and extract the detection border information of the pressure object;

[0045] According to the pressure object detection border information, the pressure object position is expressed by referring to the following expression:

[0046] ;

[0047] Among them, among them, represents the position of the pressing object, The number of borders for pressure detection. For the The coordinates of the upper left corner of the pressure object detection border, For the The width of the pressure object detection border, For the The height of the pressure object detection border.

[0048] The above technical scheme integrates the human body detection border information and the oppressive object detection border information respectively, and designs expressions as mathematical expressions of the human body position and the oppressive object position respectively, accurately describing the human body position and the oppressive object position, and providing a precise mathematical description for the subsequent quantification of the degree of pressure on the victims based on the human body position and the oppressive object position.

[0049] Optionally, the contact area information includes but is not limited to a contact area and a contact curve, and the determining of the contact area information according to the human body position and the pressure object position includes:

[0050] Determine a human body pixel area and a compressing object pixel area according to the human body position and the compressing object position;

[0051] The contact area is determined according to the human body pixel area and the oppression object pixel area, referring to the following formula:

[0052] ;

[0053] in, is the contact area, is the human body pixel area, is the pixel area of ​​the oppressive object;

[0054] Performing edge extraction on the contact area to determine the edge of the contact area;

[0055] According to the edge of the contact area, the contact curve is represented by referring to the following polynomial fitting expression:

[0056] ;

[0057] in, represents the contact curve, is the abscissa of the edge of the contact area, are the polynomial coefficients, is the highest power of the polynomial.

[0058] The above technical scheme determines the pixel area of ​​the human body and the pixel area of ​​the compressing object according to the position of the human body and the position of the compressing object. On the basis of the pixel area of ​​the human body and the pixel area of ​​the compressing object, the contact area is accurately located through a formula. Then, according to the contact area, the contact curve is mathematically expressed using mathematical expressions, thereby providing an accurate data basis for the subsequent quantification of the degree of pressure on the victims based on the contact area information.

[0059] Optionally, analyzing the contact area information to determine the stress state of the disaster victims includes:

[0060] Analyzing the contact area to determine the contact pixel area;

[0061] Determining a pressure area according to the contact pixel area;

[0062] Determining the degree of pressure according to the pressure area and the contact curve;

[0063] Taking the compressed area and the compressed degree as the compressed state;

[0064] The pressure area is determined according to the contact pixel area, referring to the following formula:

[0065] ;

[0066] in, is the pressure area, is the contact pixel area.

[0067] The above technical solution analyzes the contact area, determines the contact pixel area, and determines the pressure area through a mathematical formula based on the contact pixel area, accurately expresses the relationship between the pressure area and the contact pixel area, and further derives the pressure degree based on the pressure area and the contact area. The pressure state is described by comprehensively considering the pressure area and the pressure degree, thereby improving the accuracy of the pressure degree and making the pressure state more comprehensive.

[0068] Optionally, determining the degree of pressure according to the pressure area and the contact curve includes:

[0069] ;

[0070] in, is the degree of compression, is the adjustment factor, [x 1 , x 2 ] is the horizontal coordinate interval of the contact points in the contact curve, is the contact curve, is the pressure area.

[0071] The above technical solution has a design formula that comprehensively reflects the relationship between the contact curve, the pressure area and the degree of pressure, so as to accurately calculate the degree of pressure on the victims, and provides intuitive quantitative data for subsequent rescue personnel to quickly take correct rescue actions based on the degree of pressure, thereby further ensuring the accuracy of the rescue operations.

[0072] In a second aspect, the present application provides an image enhancement system based on a vector quantization generative adversarial network, the system comprising:

[0073] A preprocessing module, used to obtain a rescue image set, preprocess the rescue image set, and determine a preprocessing result;

[0074] A feature extraction module, used to analyze the preprocessing results and extract a number of disaster-affected detail features;

[0075] An enhancement module, configured to reconstruct the rescue image set according to the plurality of disaster detail features and based on a generative adversarial network to determine a rescue enhanced image;

[0076] The output module is used to output the rescue enhanced image for rescue personnel to view and analyze.

[0077] Optionally, the preprocessing module is specifically used to:

[0078] Analyzing the rescue image set to determine the rescue scene type;

[0079] Performing denoising and normalization processing on each rescue image in the rescue image set to determine a normalized rescue image set;

[0080] Determining a data expansion parameter set according to the rescue scenario type;

[0081] Expanding the parameter set according to the data, constructing an image transformation matrix;

[0082] Based on the image transformation matrix, image transformation is performed on each rescue image in the normalized rescue image set to determine a transformed image data set, and the transformed image data set is used as the preprocessing result.

[0083] Optionally, the preprocessing module is specifically used to:

[0084] According to the preset flip matrix, the rotation angle, the scaling ratio, the cropping factor and the translation vector, the following image transformation matrix is ​​constructed:

[0085] ;

[0086] in, is the image transformation matrix, is the preset flip matrix, is the rotation angle, is the scaling factor, is the cropping factor, is the translation vector.

[0087] Optionally, the feature extraction module is specifically used to:

[0088] Analyzing the preprocessing results to determine the body position of the disaster victims;

[0089] Based on the human body position, analyzing the preprocessing result to determine the human body posture;

[0090] Analyzing the preprocessing result according to the human body position and the human body posture to determine the apparent injury information;

[0091] Determine the facial position of the human body according to the human body posture, and analyze the preprocessing result according to the facial position to extract the facial expression information of the person;

[0092] Analyze the human body position and the human body posture to determine whether part of the body of the disaster victim is blocked;

[0093] If part of the body of the disaster victim is blocked, analyzing the preprocessing result based on the body position to determine the pressure information;

[0094] The human body posture, the apparent injury information, the facial expression information and the pressure information are used as the several disaster detail features.

[0095] Optionally, the feature extraction module is specifically used to:

[0096] Analyzing the preprocessing results to determine the position of the pressing object;

[0097] Determining contact area information according to the human body position and the compressing object position;

[0098] Analyzing the contact area information to determine the stress state of the disaster victims;

[0099] The pressing object position, the contact area information and the pressed state are used as the pressed information.

[0100] Optionally, the feature extraction module is specifically used to:

[0101] Analyze the preprocessing results and extract human body detection border information;

[0102] According to the human body detection frame information, the human body position is expressed by referring to the following expression:

[0103] ;

[0104] in, To represent the human body position, is the number of human body detection borders, For the The coordinates of the upper left corner of the individual body detection bounding box, For the The width of the bounding box for individual human detection, For the The height of the bounding box of the individual body detection;

[0105] The analyzing the preprocessing result to determine the position of the pressing object includes:

[0106] Analyze the preprocessing results and extract the detection border information of the pressure object;

[0107] According to the pressure object detection border information, the pressure object position is expressed by referring to the following expression:

[0108] ;

[0109] Among them, among them, represents the position of the pressing object, The number of borders for pressure detection. For the The coordinates of the upper left corner of the pressure object detection border, For the The width of the pressure object detection border, For the The height of the pressure object detection border.

[0110] Optionally, the feature extraction module is specifically used to:

[0111] Determine a human body pixel area and a compressing object pixel area according to the human body position and the compressing object position;

[0112] The contact area is determined according to the human body pixel area and the oppression object pixel area, referring to the following formula:

[0113] ;

[0114] in, is the contact area, is the human body pixel area, is the pixel area of ​​the oppressive object;

[0115] Performing edge extraction on the contact area to determine the edge of the contact area;

[0116] According to the edge of the contact area, the contact curve is represented by referring to the following polynomial fitting expression:

[0117] ;

[0118] in, represents the contact curve, is the abscissa of the edge of the contact area, are the polynomial coefficients, is the highest power of the polynomial.

[0119] Optionally, the feature extraction module is specifically used to:

[0120] Analyzing the contact area to determine the contact pixel area;

[0121] Determining a pressure area according to the contact pixel area;

[0122] Determining the degree of pressure according to the pressure area and the contact curve;

[0123] Taking the compressed area and the compressed degree as the compressed state;

[0124] The pressure area is determined according to the contact pixel area, referring to the following formula:

[0125] ;

[0126] in, is the pressure area, is the contact pixel area.

[0127] Optionally, the feature extraction module is specifically used to:

[0128] ;

[0129] in, is the degree of compression, is the adjustment factor, [x 1 , x 2 ] is the horizontal coordinate interval of the contact points in the contact curve, is the contact curve, is the pressure area. BRIEF DESCRIPTION OF THE DRAWINGS

[0130] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0131] Figure 1 A schematic diagram of an application scenario provided for an embodiment of the present application;

[0132] Figure 2 A flowchart of an image enhancement method based on a vector quantization generative adversarial network provided in one embodiment of the present application;

[0133] Figure 3 A schematic diagram of the structure of an image enhancement system based on a vector quantization generative adversarial network provided in one embodiment of the present application. DETAILED DESCRIPTION

[0134] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0135] In addition, the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article, unless otherwise specified, generally means that the associated objects before and after are in an "or" relationship.

[0136] The embodiments of the present application are further described in detail below in conjunction with the drawings in the specification.

[0137] The existing image processing system based on artificial intelligence technology is easily disturbed by factors such as lighting conditions and dust obstruction at the earthquake disaster site during the process of collecting and processing earthquake rescue images, resulting in the lack of key details in the earthquake rescue images, making it impossible for rescue personnel to quickly understand the specific disaster situation of the victims, and making it impossible for rescue personnel to quickly take effective rescue actions.

[0138] Based on this, the present application provides an image enhancement method and system based on a vector quantization generative adversarial network, which preprocesses a rescue image set, reduces interference factors in the rescue image, and obtains a preprocessing result. By analyzing the preprocessing result, a number of disaster detail features of the victims in the rescue image are extracted, and based on the number of disaster detail features, adversarial training within the vector joint generative adversarial network is realized. Based on the vector quantization generative adversarial network, the rescue image set is reconstructed, a rescue enhanced image is determined, and then the rescue enhanced image is output for rescue personnel to view and analyze, which significantly reduces the interference caused by the earthquake-stricken area to the rescue image, so that the specific disaster details of the current victims can be shown in the rescue enhanced image, so that the rescue personnel can quickly understand the specific disaster situation of the victims based on the rescue enhanced image, so as to formulate corresponding rescue plans and take corresponding rescue actions, while ensuring the rescue efficiency, preventing the rescue process from causing secondary harm to the victims.

[0139] Figure 1 A schematic diagram of an application scenario provided for the present application. During an earthquake rescue process, the method provided by the present application is applied to analyze a rescue image set, and enhanced rescue graphics are provided to rescue personnel so that the rescue personnel can quickly take corresponding rescue actions.

[0140] Specifically, the method of the present application is installed in any server, which communicates with at least one camera, obtains a rescue image set collected by at least one camera, and pre-processes the rescue image set to reduce interference factors in the rescue image. By analyzing the pre-processing results, a number of disaster detail features of the victims in the rescue image are extracted, and based on the number of disaster detail features, adversarial training is implemented within the vector joint generative adversarial network. Based on the vector quantization generative adversarial network, the rescue image set is reconstructed to determine the rescue enhanced image, and then the rescue enhanced image is output for rescue personnel to view and analyze, which significantly reduces the interference caused by the earthquake-stricken area to the rescue image, so that the specific disaster details of the current victims can be shown in the rescue enhanced image, so that the rescue personnel can quickly understand the specific disaster situation of the victims based on the rescue enhanced image, so as to formulate corresponding rescue plans and take corresponding rescue actions, while ensuring the rescue efficiency, preventing the rescue process from causing secondary harm to the victims.

[0141] For specific implementation methods, please refer to the following embodiments.

[0142] Figure 2 This is a flowchart of an image enhancement method based on a vector quantization generative adversarial network provided in an embodiment of the present application. The method of this embodiment can be applied to the server in the above scenario. Figure 2 As shown, the method includes:

[0143] S201, obtaining a rescue image set, preprocessing the rescue image set, and determining a preprocessing result.

[0144] The rescue image set can be considered as a collection of images related to the victims collected during earthquake rescue.

[0145] The preprocessing result can be considered as an image set obtained by processing the rescue images in the rescue image set through image processing technology.

[0146] Specifically, there are a large number of collapsed buildings in the earthquake-stricken areas, and rescue workers cannot enter the collapsed buildings to understand the situation of the victims. They can use at least one camera to reach into the buildings, or use a small robot equipped with at least one camera to enter the buildings and capture a series of image information related to the victims to form a rescue image set. However, due to many interfering factors such as poor lighting conditions and flying dust inside the collapsed buildings, rescue workers cannot understand the current disaster details of the victims based on the directly collected rescue image sets, and it is difficult to take quick and effective rescue actions.

[0147] Therefore, after obtaining the rescue graphics set, a series of rescue images in the rescue image set can be processed through image processing technology, such as denoising, contrast enhancement, etc., to obtain a processed image set, that is, a preprocessing result, which provides a more accurate data basis for the subsequent analysis of the disaster details of the current victims based on the preprocessing results.

[0148] S202: Analyze the preprocessing results and extract some detailed features of the disaster.

[0149] The disaster-affected details can be considered as information that can reflect the specific disaster situation of the current disaster victims, such as posture, apparent injuries, etc.

[0150] Specifically, after obtaining the preprocessing results of image processing, the details about the victims in the rescue image are more complete. The rescue image in the preprocessing results is further analyzed through image analysis technology to extract the disaster detail features of the victims shown in the rescue image, so that the rescue image can be further enhanced according to the disaster detail features, so that the rescue personnel can have a clearer understanding of the specific situation of the current victims.

[0151] S203: According to a number of disaster-affected detail features, the rescue image set is reconstructed based on a vector quantization generative adversarial network to determine a rescue enhanced image.

[0152] Vector Quantized Generative Adversarial Networks (VQGAN) is a generative model based on generative adversarial networks (GAN). The core idea of ​​VQGAN is to encode input data, such as images, into high-dimensional discrete vector representations, and then decode these vectors through the generator network to generate new data similar to the original input.

[0153] The rescue enhanced image can be considered as image information that can show the specific disaster situation of the victims after being enhanced by the vector quantization generative adversarial network.

[0154] Specifically, after obtaining a number of disaster detail features, a deep learning model, such as a convolutional neural network, is used to convert the disaster detail features into corresponding vector information, and then a generator built into a vector quantization generative adversarial network is used to generate a disaster image that fits the disaster situation of the disaster victims according to the vector information corresponding to the disaster detail features. The discriminator built into the vector quantization generative adversarial network is used to compare the disaster image generated by the generator with the rescue image, and the comparison result is fed back to the generator so that the generator adjusts the generated disaster image. The above process is repeated to achieve adversarial training between the generator and the discriminator, so that the vector quantization generative adversarial network reconstructs the rescue image, completes the enhancement of the rescue image, and obtains a rescue enhanced image containing specific disaster details of the disaster victims.

[0155] S204: Output the rescue enhanced image for rescue personnel to view and analyze.

[0156] Specifically, the rescue enhanced images are displayed to the rescuers through human-computer interaction devices, such as high-definition display screens. The rescuers view and analyze the specific disaster details shown in the rescue enhanced images, formulate corresponding rescue plans, and take corresponding rescue actions, thereby ensuring the rescue efficiency and preventing the rescue process from causing secondary injuries to the victims.

[0157] Through the method provided in this embodiment, the collected rescue image set is preprocessed to reduce the interference factors in the rescue image and obtain the preprocessing result. By analyzing the preprocessing result, a number of disaster detail features of the victims in the rescue image are extracted, and based on the number of disaster detail features, adversarial training is implemented within the vector joint generative adversarial network. The rescue image set is reconstructed based on the vector quantization generative adversarial network to determine the rescue enhanced image, and then the rescue enhanced image is output for rescue personnel to view and analyze, which significantly reduces the interference caused by the earthquake-stricken area to the rescue image, so that the specific disaster details of the current victims can be shown in the rescue enhanced image, so that the rescue personnel can quickly understand the specific disaster situation of the victims based on the rescue enhanced image, so as to formulate corresponding rescue plans and take corresponding rescue actions, while ensuring the rescue efficiency, preventing the rescue process from causing secondary harm to the victims.

[0158] In some embodiments, a rescue image set is analyzed to determine the type of rescue scene; denoising and normalization processing is performed on each rescue image in the rescue image set to determine a normalized rescue image set; according to the type of rescue scene, a data expansion parameter set is determined; according to the data expansion parameter set, an image transformation matrix is ​​constructed; based on the image transformation matrix, image transformation is performed on each rescue image in the normalized rescue image set to determine a transformed image data set, and the transformed image data set is used as a preprocessing result.

[0159] The rescue scene type can be considered as the specific scene type of the current earthquake disaster relief, such as people being trapped, people being under pressure, etc. The object recognition algorithm in the image processing technology can be used to analyze the objects in the rescue image set to determine the corresponding rescue scene type.

[0160] The normalized rescue image set can be considered as a set of normalized rescue images formed after denoising and normalization are performed on each rescue image set in the rescue image set.

[0161] The data expansion parameter set can be considered as a set of adjustment parameters required to expand the image data in the normalized rescue image set. The data expansion parameter set can be obtained by analyzing a large number of historical earthquake rescue data statistics under different rescue scenarios.

[0162] The image transformation matrix can be considered as a mathematical expression of the rules for transforming image data in the normalized rescue image set.

[0163] Specifically, in the process of denoising and normalizing each rescue image in the rescue image set, the image processing technology is used to resize each rescue image in the rescue image set to make the size of each rescue image uniform, the pixel value of each rescue image is normalized, and the noise points in each rescue image are filtered using a filter to reduce data deviation in subsequent image processing processes.

[0164] Furthermore, the image data in the normalized rescue image set obtained after the current acquisition and processing has a high degree of uniformity, and the normalized rescue image set needs to be expanded to improve robustness. However, due to the complexity of earthquake rescue scenes, different scenes have different requirements for data expansion. For example, the victims are in a semi-open space, and the situation in the scene is relatively clear at this time, and the corresponding data expansion requirements are not high. Then, considering the rescue efficiency, the parameters in the corresponding data expansion parameter set should be different. The required corresponding parameters in the data expansion parameter set under the current rescue scene type can be analyzed based on historical rescue data, and an image transformation matrix can be constructed based on the data expansion parameter set. Then, image processing libraries such as OpenCV (Open Source Computer Vision Library) and PIL (Python Imaging Library) are used to transform each rescue image in the normalized rescue image set according to the image transformation matrix, determine the transformed image data set, and realize data expansion. The transformed image data set is used as a preprocessing result, so that the subsequent analysis process of the preprocessing result is more comprehensive.

[0165] Through the method provided in this embodiment, each rescue image in the rescue image set is denoised and normalized to reduce data deviation in subsequent image processing processes. After determining the normalized rescue image set, a data expansion parameter set is determined according to the rescue scene type to construct an image transformation matrix according to the data expansion parameter set. Then, each rescue image in the normalized rescue image set is transformed according to the image transformation matrix to determine a transformed image data set to achieve data expansion and avoid the negative impact of single rescue image data on robustness. The transformed image data set is used as a preprocessing result to make the subsequent analysis process of the preprocessing result more comprehensive.

[0166] In some embodiments, the following image transformation matrix (1) is constructed according to a preset flip matrix, rotation angle, scaling ratio, crop factor and translation vector:

[0167] (1)

[0168] in, is the image transformation matrix, is the preset flip matrix, is the rotation angle, is the scaling factor, is the cropping factor, is the translation vector.

[0169] The preset flip matrix can be considered as a matrix expression for simultaneously flipping the rescue image horizontally and vertically, referring to the following expression (2):

[0170] (2)

[0171] in, is the preset flip matrix, To rescue image width, Image height for the rescue.

[0172] The data augmentation parameter set includes but is not limited to rotation angle, scaling factor, crop factor, and translation vector.

[0173] The rotation angle may be considered as the rotation angle that the rescue image needs to be transformed each time. For example, when the rotation angle is 30 degrees, it means that the current rescue image needs to be transformed 12 times with a rotation angle of 30 degrees each time.

[0174] The scaling ratio can be considered as the ratio value that the rescue image needs to be scaled. When the scaling ratio is greater than 1, it means that the image is enlarged. When the scaling ratio is greater than 0 and less than 1, it means that the image is reduced.

[0175] The cropping factor can be considered as the degree to which the rescue image needs to be cropped.

[0176] The translation vector can be considered as the distance that the rescue image needs to be translated horizontally and vertically, respectively, where Indicates the distance the rescue image needs to move horizontally. Indicates the distance the rescue image needs to move vertically.

[0177] Specifically, the rules for transforming the rescue images in the normalized rescue image set are expressed through the above-mentioned image transformation matrix, which involves various transformation rules for flipping, rotating, scaling, cropping and translating the corresponding rescue images. It specifically and accurately expresses the mathematical transformations involved in the data expansion process, and facilitates the implementation of various transformation operations on the rescue images through the image processing library.

[0178] Through the method provided in this embodiment, an image transformation matrix is ​​designed to express various transformation operations on the rescue image, and the rescue image is transformed in multiple directions to achieve the purpose of data expansion, so that the image data in the transformed image data set can fully represent the disaster situation of the victims, thereby improving the comprehensiveness and accuracy of the disaster detail features subsequently extracted based on the preprocessing results.

[0179] In some embodiments, the preprocessing results are analyzed to determine the body position of the disaster victim; based on the body position, the preprocessing results are analyzed to determine the body posture; based on the body position and the body posture, the preprocessing results are analyzed to determine the apparent injury information; based on the body posture, the face position of the body is determined, and based on the face position, the preprocessing results are analyzed to extract the facial expression information of the person; the body position and the body posture are analyzed to determine whether part of the body of the disaster victim is blocked; if part of the body of the disaster victim is blocked, the preprocessing results are analyzed based on the body position to determine the pressure information; the body posture, apparent injury information, facial expression information and pressure information are used as several disaster detail features.

[0180] The human body position can be considered as the relative position information of the disaster victims in the rescue image.

[0181] Human body posture can be considered as the relevant posture information of the victims in the rescue image.

[0182] The apparent injury information can be considered as the injury information of the victims in the rescue image.

[0183] The human face position can be considered as the relative face position information of the disaster victim in the rescue image.

[0184] The facial expression information of the victims can be considered as the facial expression information shown by the victims in the rescue images.

[0185] The compression information can be considered as the relevant information of the disaster victims in the rescue image when the disaster victims are in a compressed state, such as the compressed area.

[0186] Specifically, while the victims are waiting for rescue, analyzing their current posture, expression and apparent injuries can provide a preliminary understanding of their disaster situation. The positions of the victims in the rescue images are identified through target detection algorithms, such as YOLO and Faster R-CNN. After determining the position of the human body, the key points of the human body are analyzed through human key point detection algorithms, such as OpenPose and HRNet, to obtain the current posture of the victims. At the same time, based on the posture, the facial position of the human body is determined through the human key point detection algorithm. Then, based on the facial position of the human body, deep learning models, such as convolutional neural networks and recurrent neural networks, are used to identify the facial expressions of the victims and determine the facial expression information. At the same time, the apparent injury features of the victims are extracted through the deep learning model to determine the injury information.

[0187] Furthermore, through the target detection algorithm, the human body position and posture are analyzed to determine whether part of the body of the current disaster victim is blocked. If it is blocked, it means that the current disaster victim is likely to have been oppressed by the collapsed building. At this time, according to the human body position, the rescue image in the preprocessing result is analyzed to determine the compression information related to the compression condition of the disaster victim, so that subsequent rescue personnel can intuitively understand the compression condition of the disaster victim.

[0188] Through the method provided in this embodiment, the preprocessing results are analyzed to obtain the body position of the disaster victims, and then the body posture is determined based on the body position. On the basis of the body position and body posture, the apparent injuries and facial expressions of the disaster victims are analyzed to determine the apparent injury information and the person's expression information. By analyzing the body posture, apparent injuries and facial expressions that can preliminarily reflect the details of the disaster, several disaster detail features obtained are made representative. Furthermore, if there is a situation where the disaster victims are oppressed by collapsed buildings, the compression information that can reflect the compression condition of the disaster victims is obtained by analyzing the preprocessing results, making the disaster detail features more comprehensive.

[0189] In some embodiments, the preprocessing results are analyzed to determine the position of the compressive object; the contact area information is determined based on the position of the human body and the position of the compressive object; the contact area information is analyzed to determine the compressive state of the victim; the position of the compressive object, the contact area information and the compressive state are used as the compressive information.

[0190] The position of the oppressive object can be considered as the relative position information of the object oppressing the disaster victim in the rescue image.

[0191] The contact area information can be considered as the relevant information of the contact area between the disaster victim and the oppressive object, such as a contact curve.

[0192] The compression state can be considered as the relevant compression state information of the victims during the process of being compressed by the collapsed buildings, such as the compressed area.

[0193] Specifically, when disaster victims are oppressed by collapsed buildings, since the disaster victims are in a state of continuous injury at this time, it is necessary to deeply analyze the current pressure situation of the disaster victims so that subsequent rescue personnel can make corresponding rescue measures according to the pressure situation. First, the oppressive object is identified through the target detection algorithm to determine the position of the oppressive object, and then the relevant information of the contact area between the disaster victims and the oppressive object is determined according to the position of the human body and the position of the oppressive object, that is, the contact area information. Then, based on the contact area information, the specific pressure state of the disaster victims is determined. For example, according to the edge information of the contact area, the contact curve between the disaster victims and the oppressive object is extracted to reflect the degree of pressure on the disaster victims. The position of the oppressive object, the contact area information and the pressure state are used as pressure information to comprehensively reflect the current pressure situation of the disaster victims.

[0194] Through the method provided by this embodiment, when the disaster victims are in a state of being oppressed by the collapsed building, the position of the oppressive object is determined by analyzing the preprocessing results, and then the contact area information between the disaster victims and the oppressive object is determined based on the position of the oppressive object and the position of the human body. Then, by analyzing the contact area information, the oppressed state of the disaster victims is determined, and the position of the oppressive object, the contact area information and the oppressed state are used as the oppressed information, so that the oppressed information can fully reflect the current oppressed state of the disaster victims.

[0195] In some embodiments, the preprocessing result is analyzed to extract human body detection frame information; and the human body position is expressed according to the human body detection frame information by referring to the following expression:

[0196] (3)

[0197] in, To represent the human body position, is the number of human body detection borders, For the The coordinates of the upper left corner of the individual body detection bounding box, For the The width of the bounding box for individual human detection, For the The height of the bounding box of the individual body detection;

[0198] Analyze the preprocessing results to extract the compression object detection frame information; and express the compression object position according to the compression object detection frame information by referring to the following expression:

[0199] (4)

[0200] Among them, among them, represents the position of the pressing object, The number of borders for pressure detection. For the The coordinates of the upper left corner of the pressure object detection border, For the The width of the pressure object detection border, For the The height of the pressure object detection border.

[0201] The human body detection bounding box information can be considered as a series of human body detection bounding box information accurately regressed after the human body feature information is extracted from the preprocessing results by the object detection algorithm, through the regression model, and the bounding box is regressed according to the human body feature information, including but not limited to the number of human body detection bounding boxes, the coordinates of the upper left corner of each human body detection bounding box, the width of each human body detection bounding box, and the height of each human body detection bounding box.

[0202] The oppressive object detection border information can be considered as a series of oppressive object detection border information accurately regressed after the oppressive object feature information is extracted from the preprocessing results by the object detection algorithm, and the bounding box is regressed according to the oppressive object feature information through the regression model, including but not limited to the number of oppressive object detection borders, the coordinates of the upper left corner of each oppressive object detection border, the width of each oppressive object detection border, and the height of each oppressive object detection border.

[0203] Specifically, expressions (3) and (4) are mathematical expressions of the human body position and the oppressive object position, respectively. They respectively integrate the human body detection border information and the oppressive object detection border information, accurately describe the human body position and the oppressive object position, and provide a precise mathematical description for the subsequent quantification of the degree of pressure on the victims based on the human body position and the oppressive object position.

[0204] Through the method provided in this embodiment, the human body detection border information and the pressure object detection border information are integrated respectively, and expressions (3) and (4) are designed as mathematical expressions of the human body position and the pressure object position respectively, which accurately describe the human body position and the pressure object position, and provide an accurate mathematical description for the subsequent quantification of the degree of pressure on the victims according to the human body position and the pressure object position.

[0205] In some embodiments, according to the position of the human body and the position of the compressing object, the pixel area of ​​the human body and the pixel area of ​​the compressing object are determined; according to the pixel area of ​​the human body and the pixel area of ​​the compressing object, the contact area is determined, referring to the following formula:

[0206] (5)

[0207] in, is the contact area, is the human pixel area, To compress the pixel area of ​​the object;

[0208] The edge of the contact area is extracted to determine the edge of the contact area. According to the edge of the contact area, the contact curve is represented by referring to the following polynomial fitting expression (6):

[0209] (6)

[0210] in, represents the contact curve, is the abscissa of the edge of the contact area, are the polynomial coefficients, is the highest power of the polynomial.

[0211] The contact area information includes but is not limited to the contact area and the contact curve.

[0212] The human body pixel area can be considered as the pixel area occupied by the human body position in the rescue image.

[0213] The pixel area of ​​the oppressive object is considered to be the pixel area occupied by the oppressive object position in the rescue image.

[0214] The contact area can be considered as the pixel area occupied by the contact area between the human body position and the pressure object position in the rescue image.

[0215] The edge of the contact area can be considered as the contact boundary between the position of the human body and the position of the pressure object.

[0216] The contact curve can be considered as a curve used to express the specific contact situation between the position of the human body and the position of the pressure object.

[0217] Specifically, according to the position of the human body and the position of the oppressor, the position of the human body and the position of the oppressor are segmented from the rescue image by an image segmentation algorithm, such as a semantic segmentation algorithm, and then the pixel area of ​​the human body and the pixel area of ​​the oppressor are determined respectively. Formula (5) is designed to solve the intersection between the pixel area of ​​the human body and the pixel area of ​​the oppressor to obtain the contact area. Then, the edge of the contact area between the position of the human body and the position of the oppressor in the contact area is extracted by an edge detection algorithm. Then, according to the edge of the contact area, expression (6) is designed to mathematically express the contact curve between the position of the human body and the position of the oppressor. Then, expression (6) is used to accurately describe the details of the pressure on the victims. The contact area and the contact curve are used as the contact area information, which provides an accurate data basis for the subsequent quantification of the degree of pressure on the victims according to the contact area information.

[0218] Through the method provided in this embodiment, the pixel area of ​​the human body and the pixel area of ​​the compressing object are determined according to the position of the human body and the position of the compressing object. On the basis of the pixel area of ​​the human body and the pixel area of ​​the compressing object, the contact area is accurately located through a formula, and then the contact curve is mathematically expressed using a mathematical expression based on the contact area, thereby providing an accurate data basis for subsequent quantification of the degree of pressure on the victims based on the contact area information.

[0219] In some embodiments, the contact area is analyzed to determine the contact pixel area; the pressure area is determined according to the contact pixel area; the pressure degree is determined according to the pressure area and the contact curve; the pressure area and the pressure degree are used as the pressure state; the pressure area is determined according to the contact pixel area, referring to the following formula:

[0220] (7)

[0221] in, is the pressure area, is the contact pixel area.

[0222] The contact pixel area can be considered as the area corresponding to the pixel occupied by the contact area in the rescue image.

[0223] The compressed area can be considered as the area where the victims in the rescue image are compressed by the collapsed buildings.

[0224] The degree of compression can be considered as the quantitative data of the degree to which the victims in the rescue images are compressed by the collapsed buildings.

[0225] Specifically, the pressure state of the victims is directly affected by the pressure area. Generally speaking, the larger the pressure area, the greater the total pressure on the victims. The contact area is analyzed through image processing tool libraries, such as OpenCV, to determine the pixel area of ​​the contact area. Based on the pixel area of ​​the contact area, the pressure area is accurately calculated using formula (7).

[0226] Furthermore, in the process of quantifying the degree of compression, the degree of compression is directly affected by the compression area. At the same time, the position change of each contact point in the contact curve can also reflect the current degree of compression of the victims. Therefore, the degree of compression is determined by combining the compression area and the contact curve, making the degree of compression more accurate. Taking the compression area and the degree of compression as the compression state makes the compression state more comprehensive.

[0227] Through the method provided in this embodiment, the contact area is analyzed, the contact pixel area is determined, and the pressure area is determined based on the contact pixel area through a mathematical formula, accurately expressing the relationship between the pressure area and the contact pixel area, and further based on the pressure area and the contact area, the pressure degree is obtained, and the pressure state is described by comprehensively considering the pressure area and the pressure degree, thereby improving the accuracy of the pressure degree and making the pressure state more comprehensive.

[0228] In some embodiments, the degree of pressure is determined based on the pressure area and the contact curve, referring to the following formula (8):

[0229] (8)

[0230] in, is the degree of pressure, is the adjustment factor, [x 1 , x 2 ] is the horizontal coordinate interval of the contact points in the contact curve, is the contact curve, is the pressure area.

[0231] The adjustment coefficient can be considered as a coefficient used to express the relationship between the contact curve and the pressure area. The adjustment coefficient can be obtained by analyzing historical data or simulating human body pressure experiments.

[0232] Specifically, in formula (8) Used to calculate the contact curve in the interval [x 1 , x 2 ] The integral within is used to reflect the pressure distribution on the contact curve, and then through The pressure on the standardized contact curve is distributed to the pressure area, and then the pressure degree is obtained, which fully reflects the relationship between the contact curve, the pressure area and the pressure degree, making the calculated pressure degree more accurate.

[0233] Through the method provided in this application, the design formula comprehensively reflects the relationship between the contact curve, the compressed area and the degree of compression, so as to accurately calculate the degree of compression of the victims, and provide intuitive quantitative data for subsequent rescue personnel to quickly take correct rescue actions according to the degree of compression, thereby further ensuring the accuracy of the rescue action.

[0234] Figure 3 A schematic diagram of the structure of an image enhancement system based on a vector quantization generative adversarial network provided in an embodiment of the present application is shown in FIG. Figure 3 As shown, the image enhancement system 300 based on vector quantization generative adversarial network of this embodiment includes: a preprocessing module 301, a feature extraction module 302, an enhancement module 303 and an output module 304.

[0235] A preprocessing module 301 is used to obtain a rescue image set, preprocess the rescue image set, and determine a preprocessing result;

[0236] A feature extraction module 302 is used to analyze the preprocessing results and extract a number of disaster-affected detail features;

[0237] An enhancement module 303 is used to reconstruct the rescue image set according to the plurality of disaster detail features based on a generative adversarial network to determine a rescue enhanced image;

[0238] The output module 304 is used to output the rescue enhanced image for rescue personnel to view and analyze.

[0239] Optionally, the preprocessing module 301 is specifically used for:

[0240] Analyzing the rescue image set to determine the rescue scene type;

[0241] Performing denoising and normalization processing on each rescue image in the rescue image set to determine a normalized rescue image set;

[0242] Determining a data expansion parameter set according to the rescue scenario type;

[0243] Expanding the parameter set according to the data, constructing an image transformation matrix;

[0244] Based on the image transformation matrix, image transformation is performed on each rescue image in the normalized rescue image set to determine a transformed image data set, and the transformed image data set is used as the preprocessing result.

[0245] Optionally, the preprocessing module 301 is specifically used for:

[0246] According to the preset flip matrix, the rotation angle, the scaling ratio, the cropping factor and the translation vector, the following image transformation matrix is ​​constructed:

[0247] ;

[0248] in, is the image transformation matrix, is the preset flip matrix, is the rotation angle, is the scaling factor, is the cropping factor, is the translation vector.

[0249] Optionally, the feature extraction module 302 is specifically used for:

[0250] Analyzing the preprocessing results to determine the body position of the disaster victims;

[0251] Based on the human body position, analyzing the preprocessing result to determine the human body posture;

[0252] Analyzing the preprocessing result according to the human body position and the human body posture to determine the apparent injury information;

[0253] Determine the facial position of the human body according to the human body posture, and analyze the preprocessing result according to the facial position to extract the facial expression information of the person;

[0254] Analyze the human body position and the human body posture to determine whether part of the body of the disaster victim is blocked;

[0255] If part of the body of the disaster victim is blocked, analyzing the preprocessing result based on the body position to determine the pressure information;

[0256] The human body posture, the apparent injury information, the facial expression information and the pressure information are used as the several disaster detail features.

[0257] Optionally, the feature extraction module 302 is specifically used for:

[0258] Analyzing the preprocessing results to determine the position of the pressing object;

[0259] Determining contact area information according to the human body position and the compressing object position;

[0260] Analyzing the contact area information to determine the stress state of the disaster victims;

[0261] The pressing object position, the contact area information and the pressed state are used as the pressed information.

[0262] Optionally, the feature extraction module 302 is specifically used for:

[0263] Analyze the preprocessing results and extract human body detection border information;

[0264] According to the human body detection frame information, the human body position is expressed by referring to the following expression:

[0265] ;

[0266] in, To represent the human body position, is the number of human body detection borders, For the The coordinates of the upper left corner of the individual body detection bounding box, For the The width of the bounding box for individual human detection, For the The height of the bounding box of the individual body detection;

[0267] The analyzing the preprocessing result to determine the position of the pressing object includes:

[0268] Analyze the preprocessing results and extract the detection border information of the pressure object;

[0269] According to the pressure object detection border information, the pressure object position is expressed by referring to the following expression:

[0270] ;

[0271] Among them, among them, represents the position of the pressing object, The number of borders for pressure detection. For the The coordinates of the upper left corner of the pressure object detection border, For the The width of the pressure object detection border, For the The height of the pressure object detection border.

[0272] Optionally, the feature extraction module 302 is specifically used for:

[0273] Determine a human body pixel area and a compressing object pixel area according to the human body position and the compressing object position;

[0274] The contact area is determined according to the human body pixel area and the oppression object pixel area, referring to the following formula:

[0275] ;

[0276] in, is the contact area, is the human body pixel area, is the pixel area of ​​the oppressive object;

[0277] Performing edge extraction on the contact area to determine the edge of the contact area;

[0278] According to the edge of the contact area, the contact curve is represented by referring to the following polynomial fitting expression:

[0279] ;

[0280] in, represents the contact curve, is the abscissa of the edge of the contact area, are the polynomial coefficients, is the highest power of the polynomial.

[0281] Optionally, the feature extraction module 302 is specifically used for:

[0282] Analyzing the contact area to determine the contact pixel area;

[0283] Determining a pressure area according to the contact pixel area;

[0284] Determining the degree of pressure according to the pressure area and the contact curve;

[0285] Taking the compressed area and the compressed degree as the compressed state;

[0286] The pressure area is determined according to the contact pixel area, referring to the following formula:

[0287] ;

[0288] in, is the pressure area, is the contact pixel area.

[0289] Optionally, the feature extraction module 302 is specifically used for:

[0290] ;

[0291] in, is the degree of compression, is the adjustment factor, [x 1 , x 2 ] is the horizontal coordinate interval of the contact points in the contact curve, is the contact curve, is the pressure area.

[0292] The system of this embodiment can be used to execute the method of any of the above embodiments. The implementation principles and technical effects are similar and will not be described in detail here.

Claims

1. An image enhancement method based on vector quantization generative adversarial network, characterized in that: include: Acquire a rescue image set, preprocess the rescue image set, and determine a preprocessing result; Analyze the preprocessing results and extract several disaster-affected detail features; According to the plurality of disaster-affected detail features, based on a vector quantization generative adversarial network, the rescue image set is reconstructed to determine a rescue enhanced image; Outputting the rescue enhanced image for rescue personnel to view and analyze; The preprocessing of the rescue image set to determine the preprocessing result includes: Analyzing the rescue image set to determine the rescue scene type; Performing denoising and normalization processing on each rescue image in the rescue image set to determine a normalized rescue image set; Determining a data expansion parameter set according to the rescue scenario type; Expanding the parameter set according to the data, constructing an image transformation matrix; Based on the image transformation matrix, performing image transformation on each rescue image in the normalized rescue image set, determining a transformed image data set, and using the transformed image data set as the preprocessing result; The data expansion parameter set includes a rotation angle, a scaling ratio, a cropping factor, and a translation vector. The image transformation matrix is ​​constructed according to the data expansion parameter set, including: According to the preset flip matrix, the rotation angle, the scaling ratio, the cropping factor and the translation vector, the following image transformation matrix is ​​constructed: ; in, is the image transformation matrix, is the preset flip matrix, is the rotation angle, is the scaling factor, is the cropping factor, is the translation vector.

2. The method according to claim 1, characterized in that: The analysis of the preprocessing results extracts several disaster-affected details, including: Analyzing the preprocessing results to determine the body position of the disaster victims; Based on the human body position, analyzing the preprocessing result to determine the human body posture; Analyzing the preprocessing result according to the human body position and the human body posture to determine the apparent injury information; Determine the facial position of the human body according to the human body posture, and analyze the preprocessing result according to the facial position to extract the facial expression information of the person; Analyze the human body position and the human body posture to determine whether part of the body of the disaster victim is blocked; If part of the body of the disaster victim is blocked, analyzing the preprocessing result based on the body position to determine the pressure information; The human body posture, the apparent injury information, the facial expression information and the pressure information are used as the several disaster detail features.

3. The method according to claim 2, characterized in that The analyzing the preprocessing result to determine the pressure information includes: Analyzing the preprocessing results to determine the position of the pressing object; Determining contact area information according to the human body position and the compressing object position; Analyzing the contact area information to determine the stress state of the disaster victims; The pressing object position, the contact area information and the pressed state are used as the pressed information.

4. The method according to claim 3, characterized in that The analyzing the preprocessing results to determine the body position of the disaster victim includes: Analyze the preprocessing results and extract human body detection border information; According to the human body detection frame information, the human body position is expressed by referring to the following expression: ; in, To represent the human body position, is the number of human body detection borders, For the The coordinates of the upper left corner of the individual body detection bounding box, For the The width of the bounding box for individual human detection, For the The height of the bounding box of the individual body detection; The analyzing the preprocessing result to determine the position of the pressing object includes: Analyze the preprocessing results and extract the detection border information of the pressure object; According to the pressure object detection border information, the pressure object position is expressed by referring to the following expression: ; Among them, among them, represents the position of the pressing object, The number of borders for pressure detection. For the The coordinates of the upper left corner of the pressure object detection border, For the The width of the pressure object detection border, For the The height of the pressure object detection border.

5. The method according to claim 4, characterized in that The contact area information includes a contact area and a contact curve, and the contact area information is determined according to the human body position and the pressure object position, including: Determine a human body pixel area and a compressing object pixel area according to the human body position and the compressing object position; The contact area is determined according to the human body pixel area and the oppression object pixel area, referring to the following formula: ; in, is the contact area, is the human body pixel area, is the pixel area of ​​the oppressive object; Performing edge extraction on the contact area to determine the edge of the contact area; According to the edge of the contact area, the contact curve is represented by referring to the following polynomial fitting expression: ; in, represents the contact curve, is the abscissa of the edge of the contact area, are the polynomial coefficients, is the highest power of the polynomial.

6. The method according to claim 5, characterized in that The analyzing the contact area information to determine the stress state of the disaster victims includes: Analyzing the contact area to determine the contact pixel area; Determining a pressure area according to the contact pixel area; Determining the degree of pressure according to the pressure area and the contact curve; Taking the compressed area and the compressed degree as the compressed state; The pressure area is determined according to the contact pixel area, referring to the following formula: ; in, is the pressure area, is the contact pixel area.

7. The method according to claim 6, characterized in that Determining the degree of pressure according to the pressure area and the contact curve includes: ; in, is the degree of compression, is the adjustment factor, is the horizontal coordinate interval of the contact points in the contact curve, is the contact curve, is the pressure area.

8. An image enhancement system based on vector quantization generative adversarial network, characterized in that: include: A preprocessing module, used to obtain a rescue image set, preprocess the rescue image set, and determine a preprocessing result; A feature extraction module, used to analyze the preprocessing results and extract a number of disaster-affected detail features; An enhancement module, configured to reconstruct the rescue image set according to the plurality of disaster detail features and based on a generative adversarial network to determine a rescue enhanced image; An output module, used for outputting the rescue enhanced image for rescue personnel to view and analyze; When the preprocessing module preprocesses the rescue image set and determines the preprocessing result, it is specifically used to: Analyzing the rescue image set to determine the rescue scene type; Performing denoising and normalization processing on each rescue image in the rescue image set to determine a normalized rescue image set; Determining a data expansion parameter set according to the rescue scenario type; Expanding the parameter set according to the data, constructing an image transformation matrix; Based on the image transformation matrix, performing image transformation on each rescue image in the normalized rescue image set, determining a transformed image data set, and using the transformed image data set as the preprocessing result; The data expansion parameter set includes a rotation angle, a scaling ratio, a cropping factor, and a translation vector. When the preprocessing module constructs an image transformation matrix according to the data expansion parameter set, it is specifically used to: According to the preset flip matrix, the rotation angle, the scaling ratio, the cropping factor and the translation vector, the following image transformation matrix is ​​constructed: ; in, is the image transformation matrix, is the preset flip matrix, is the rotation angle, is the scaling factor, is the cropping factor, is the translation vector.