Black light night vision full-color image processing method and device, electronic equipment and readable medium
Through the black light night vision full-color image processing method, combined with the feature extraction and fusion of infrared images and color images, the problem of poor color image quality in low-illumination scenes is solved, high-quality color images are generated and image processing effect is improved.
Patent Information
- Application Number
- CN202411065007.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-05
- Publication Date
- 2024-11-15
AI Technical Summary
When processing images taken in low-illumination scenes, it is difficult for the prior art to generate high-quality color images, especially in extremely low light conditions. Infrared imaging can only generate grayscale images, low-illumination camera performance deteriorates, and thermal imagers only It can display temperature distribution, multi-frame processing methods lead to blurry and artifacts, and no denoising processing leads to low image feature accuracy.
Using the black light night vision full-color image processing method, by collecting infrared image and color image information, feature extraction, brightness channel extraction and feature fusion, input a pre-trained brightness enhancement model for processing, generate the converted full-color image to reduce noise And improve image feature accuracy.
Generate color images with color details to improve image quality, reduce picture blur and artifact, and improve image processing effects.
Smart Images

Figure CN118968076A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure relate to the field of computer technology, and in particular to a method, device, electronic device, and readable medium for processing black-light night-vision full-color images. Background Art
[0002] Processing images taken in low-light scenes (scenes with light illumination levels less than 100 feet) can improve image quality and obtain clearer color images, making them more suitable for visual observation and subsequent image processing tasks. At present, when processing images taken in low-light scenes, the commonly used methods include: using infrared imaging to obtain the outline of the object to provide a clearer image taken in low-light scenes; using a low-light camera to take color images in low-light scenes; using a thermal imager to detect the infrared radiation emitted by the object to form an image to improve the image taken in low-light scenes; using a multi-frame processing method to improve the signal-to-noise ratio by synthesizing multiple frames of images to enhance the night imaging effect.
[0003] However, in practice, when the above method is used to process images captured in low-light scenes, the following technical problems often occur:
[0004] First, when using infrared imaging, the outline of objects can only be obtained in a dark environment, resulting in the generation of grayscale images, which makes it impossible to generate color image information; when using a low-light camera under extremely low light conditions, the performance of the low-light camera is greatly reduced, resulting in poor quality of the obtained color image; when using a thermal imager, only the temperature distribution in the scene can be displayed, resulting in fewer color details in the actual scene generated; when the scene is a dynamic scene, the use of multi-frame processing methods causes blurred images and artifacts, resulting in poor image processing effects.
[0005] Second, the captured image is directly processed as a color image without considering denoising the captured image. When the image contains large noise, the image with large noise is enhanced, resulting in low accuracy of the extracted image features, resulting in poor effect of image processing based on the image features with low accuracy.
[0006] The above information disclosed in this Background section is only for enhancement of understanding of the background of the inventive concept and therefore it may contain information that does not form the prior art that is already known in this country to a person of ordinary skill in the art. Summary of the invention
[0007] The content of this disclosure is used to introduce concepts in a brief form, which will be described in detail in the detailed implementation section below. The content of this disclosure is not intended to identify the key features or essential features of the technical solution claimed for protection, nor is it intended to limit the scope of the technical solution claimed for protection.
[0008] Some embodiments of the present disclosure propose a black light night vision full-color image processing method, device, electronic device and computer-readable medium to solve one or more of the technical problems mentioned in the above background technology section.
[0009] In a first aspect, some embodiments of the present disclosure provide a black-light night vision full-color image processing method, the method comprising: in response to receiving an image shooting request information, collecting a target image information group, wherein the target image information group comprises infrared image information and target color image information shot under a target lighting scene, and the target lighting scene is a scene in which the light illumination level is less than the target foot; based on the target color image information, generating intuitive color image information corresponding to the target color image information; performing feature extraction processing on the infrared image information to obtain infrared image feature information; performing brightness channel extraction processing on the intuitive color image information to obtain a brightness channel; performing feature fusion processing on the infrared image feature information and the brightness channel to obtain fused feature information; inputting the fused feature information into a pre-trained brightness enhancement processing model to obtain brightness information after brightness enhancement processing as target brightness information; performing change processing on the intuitive color image information based on the target brightness information to obtain intuitive color image information after change processing; performing conversion processing on the intuitive color image information after change processing to obtain intuitive color image information after conversion processing as the target full-color image.
[0010] In a second aspect, some embodiments of the present disclosure provide a black-light night vision full-color image processing device, the device comprising: an acquisition unit, configured to acquire a target image information group in response to receiving an image capture request information, wherein the target image information group includes infrared image information and target color image information captured under a target lighting scene, and the target lighting scene is a scene in which the light illumination level is less than the target's feet; a generation unit, configured to generate intuitive color image information corresponding to the target color image information based on the target color image information; a first extraction unit, configured to perform feature extraction processing on the infrared image information to obtain infrared image feature information; a second extraction unit, configured to perform feature extraction processing on the intuitive color image information to obtain infrared image feature information. The color image information is subjected to brightness channel extraction processing to obtain a brightness channel; a fusion unit is configured to perform feature fusion processing on the infrared image feature information and the brightness channel to obtain fused feature information; an enhancement unit is configured to input the fused feature information into a pre-trained brightness enhancement processing model to obtain brightness information after brightness enhancement processing as target brightness information; a change unit is configured to perform change processing on the intuitive color image information according to the target brightness information to obtain intuitive color image information after change processing; a conversion unit is configured to perform conversion processing on the intuitive color image information after change processing to obtain intuitive color image information after conversion processing as a target full-color image.
[0011] In a third aspect, some embodiments of the present disclosure provide an electronic device comprising: one or more processors; a storage device on which one or more programs are stored, and when the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any implementation manner of the above-mentioned first aspect.
[0012] In a fourth aspect, some embodiments of the present disclosure provide a computer-readable medium having a computer program stored thereon, wherein when the program is executed by a processor, the method described in any implementation manner of the above-mentioned first aspect is implemented.
[0013] The above-mentioned various embodiments of the present disclosure have the following beneficial effects: through the black light night vision full-color image processing method of some embodiments of the present disclosure, color image information can be generated and more color details can be obtained, so that the quality of the generated color image can be improved to further improve the effect of image processing. Specifically, the reasons for the inability to generate color image information, the poor quality of the generated color image, the few color details, and the poor effect of image enhancement processing are: using infrared imaging, only the outline of the object can be obtained in a dark environment, resulting in only grayscale images being generated, resulting in the inability to generate color image information; when using a low-light camera under extremely low light conditions, the performance of the low-light camera is greatly reduced, resulting in poor quality of the obtained color image; when using a thermal imager, only the temperature distribution in the scene can be displayed, resulting in fewer color details in the generated actual scene; when the scene is a dynamic scene, the use of a multi-frame processing method causes the appearance of blurred images and artifacts, resulting in poor image processing effects. Based on this, the black light night vision full-color image processing method of some embodiments of the present disclosure, first, in response to receiving the image shooting request information, collect the target image information group, wherein the target image information group includes infrared image information and target color image information shot under the target lighting scene, and the target lighting scene is a scene with a light illumination level less than the target foot. Thus, the image shot under the low-light scene can be obtained. Then, according to the target color image information, the intuitive color image information corresponding to the target color image information is generated. Thus, the intuitive color image information corresponding to the target color image information can be obtained, which can be used to enhance the image. Afterwards, the infrared image information is subjected to feature extraction processing to obtain infrared image feature information. Thus, the image features of the infrared image information can be obtained. Then, the brightness channel extraction processing is performed on the intuitive color image information to obtain the brightness channel. Thus, the brightness channel of the intuitive color image information can be obtained, which can be used for feature fusion with the infrared image features. Secondly, the infrared image feature information and the brightness channel are subjected to feature fusion processing to obtain fusion feature information. Thus, the fusion features of the infrared image feature information and the brightness channel can be obtained. Afterwards, the above-mentioned fusion feature information is input into the pre-trained brightness enhancement processing model to obtain the brightness information after the brightness enhancement processing as the target brightness information. Thus, the enhanced brightness information can be obtained. Secondly, according to the above-mentioned target brightness information, the above-mentioned intuitive color image information is changed and processed to obtain the intuitive color image information after the change processing. Thus, the intuitive color image information after brightness enhancement can be obtained. Finally, the intuitive color image information after the change processing is converted to obtain the intuitive color image information after the conversion processing as the target full-color image. Thus, the intuitive color image information after the change processing can be converted into an RGB image.Also, because the color image information is not generated only by the infrared image or by the thermal imager, but by the infrared image and the captured target color image information (RGB image), color image information containing color details can be generated. Also, because the captured target color image information is enhanced by the characteristics of the infrared image, the quality of the target color image information is improved. Also, in dynamic scenes, the processing is not performed on multiple frames of captured images, but on one frame of captured images, so that the image is less blurred and has fewer artifacts, thereby improving the effect of image processing. In this way, color image information can be generated and more color details can be obtained, thereby improving the quality of the generated color image, and further improving the effect of image processing. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that components and elements are not necessarily drawn to scale.
[0015] Figure 1 is a flow chart of some embodiments of the black light night vision full-color image processing method according to the present disclosure;
[0016] Figure 2 is a schematic structural diagram of some embodiments of a black light night vision full-color image processing device according to the present disclosure;
[0017] Figure 3 It is a schematic diagram of the structure of an electronic device suitable for implementing some embodiments of the present disclosure. DETAILED DESCRIPTION
[0018] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0019] It should also be noted that, for ease of description, only the parts related to the invention are shown in the drawings. In the absence of conflict, the embodiments and features in the embodiments of the present disclosure can be combined with each other.
[0020] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0021] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0022] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0023] The present disclosure will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments.
[0024] Figure 1 The process 100 of some embodiments of the black light night vision full-color image processing method of some embodiments of the present disclosure includes the following steps:
[0025] Step 101: In response to receiving image capture request information, a target image information group is collected.
[0026] In some embodiments, in response to receiving the image capture request information, the execution subject (e.g., a computing device) of the black light night vision full-color image processing method may collect a target image information group. The target image information group may include infrared image information and target color image information captured under the target lighting scene. The target lighting scene may be a scene where the light illumination level is less than the target feet. The target feet may be 100 feet. The image capture request information may represent a request to capture infrared image information and target color image information. The infrared image information may represent the captured infrared image. The target color image information may represent the captured RGB image. In practice, the execution subject may control the associated camera to capture infrared image information and target color image information as the target image information group. The mode of the associated camera may be a single-lens dual-sensor mode or a dual-lens dual-sensor mode. For example, the execution subject may be a process that can call an operating system to take a photo. For example, the target lighting scene may be a park at night or a dim warehouse. The associated camera may be a starlight-level camera or a starlight-level sensor camera.
[0027] Step 102: Generate intuitive color image information corresponding to the target color image information according to the target color image information.
[0028] In some embodiments, the execution subject may generate intuitive color image information corresponding to the target color image information according to the target color image information, wherein the intuitive color image information may represent an image obtained by converting the target color image information into an HSV color space.
[0029] In some optional implementations of some embodiments, the execution subject may generate intuitive color image information corresponding to the target color image information according to the target color image information:
[0030] In the first step, feature extraction is performed on the target color image information to obtain a feature map group. The feature map group may include feature maps of different scales. In practice, first, the execution subject may perform feature extraction on the target color image information through multiple convolutional layers to obtain a feature map group. Then, the scale of each feature map in the feature map group may be determined through a deep learning visualization tool. For example, the deep learning visualization tool may be TensorBoard.
[0031] The second step is to perform shallow feature extraction processing on the above-mentioned feature map group to obtain a shallow feature map group. Among them, the shallow feature maps in the above-mentioned shallow feature map group can correspond one-to-one to the feature maps in the above-mentioned feature map group. The shallow feature maps in the above-mentioned shallow feature map group can represent the shallow features of the feature maps in the above-mentioned feature map group. In practice, the above-mentioned execution subject can perform shallow feature extraction processing on the above-mentioned feature map group by a mixed attention method.
[0032] The third step is to perform a sampling operation on each shallow feature map in the above-mentioned shallow feature map group to obtain a sampled feature map group. In practice, in response to determining that the above-mentioned shallow feature map is a feature map of the first scale, the above-mentioned shallow feature map is downsampled twice to obtain a feature map of the second scale and a feature map of the third scale corresponding to the above-mentioned shallow feature map. In response to determining that the above-mentioned shallow feature map is a feature map of the second scale, the above-mentioned shallow feature map is downsampled to obtain a feature map of the third scale corresponding to the above-mentioned shallow feature map, and the above-mentioned shallow feature map is upsampled to obtain a feature map of the first scale corresponding to the above-mentioned shallow feature map. In response to determining that the above-mentioned shallow feature map is a feature map of the third scale, the above-mentioned shallow feature map is upsampled twice to obtain a feature map of the second scale and a feature map of the first scale. The above-mentioned first scale may be larger than the above-mentioned second scale. The above-mentioned second scale may be larger than the above-mentioned third scale.
[0033] The fourth step is to combine the sampled feature graph groups to obtain each interactive feature graph group. Among them, the interactive feature graph group in each interactive feature graph group can represent each feature graph of the same scale in the sampled feature graph group. In practice, the execution subject can determine each feature graph of the same scale in the sampled feature graph group as an interactive feature graph group.
[0034] The fifth step is to perform weighted processing on the above-mentioned interaction feature graph groups to obtain weighted interaction feature graph groups.
[0035] In the sixth step, the weighted interaction feature graph groups are summed to obtain a fused feature graph group. The fused feature graph in the fused feature graph group may correspond to the weighted interaction feature graph in the weighted interaction feature graph group. The fused feature graph in the fused feature graph group may be a feature graph obtained by summing the weighted interaction feature graph groups.
[0036] The seventh step is to perform deep feature extraction processing on the above-mentioned fused feature map group to obtain a deep feature map group. Among them, the fused feature map in the above-mentioned fused feature map group can correspond to the deep feature map in the above-mentioned deep feature map group. The deep feature map in the above-mentioned deep feature map group can represent the deep features of the fused feature map in the above-mentioned fused feature map group. In practice, the above-mentioned execution subject can perform deep feature extraction processing on the above-mentioned fused feature map group by a mixed attention method.
[0037] In the eighth step, the deep feature map group is fused to obtain a fused deep feature map. The fused deep feature map can represent the deep features of the deep feature map group. In practice, the execution subject can fuse each deep feature map in the deep feature map group by weighted summation.
[0038] The ninth step is to decode the fused deep feature map to obtain the decoded fused deep feature map as the target color image information after denoising. The decoded fused deep feature map can represent the restored deep feature map. In practice, the execution subject can decode the fused deep feature map through a decoder composed of multiple layers of convolution.
[0039] In the tenth step, the color components of the target color image information after the denoising process are normalized to obtain normalized color components. The normalized color components can represent the color components after the RGB values are normalized to [0, 1].
[0040] In the eleventh step, the normalized color components are searched to obtain the maximum color component information and the minimum color component information. The maximum color component information can represent the maximum color component of the target color image information after the denoising process. The minimum color component information can represent the minimum color component of the target color image information after the denoising process. In practice, the execution subject can search the normalized color components by directly traversing and searching to obtain the maximum color component information and the minimum color component information.
[0041] Step 12: convert the maximum color component information and the minimum color component information to obtain hue information. The hue information can represent the hue value of the image. In practice, the execution subject can convert the maximum color component information and the minimum color component information through the HSV hue calculation formula to obtain the hue information.
[0042] Step 13: Change the above hue information to obtain target hue information. The target hue information may represent hue information with an expanded range. In practice, the execution subject may expand the range of the above hue information by adjusting the color scale to obtain the target hue information.
[0043] Step 14, performing a first conversion process on the maximum color component information and the minimum color component information to obtain target saturation information. The target saturation information can represent the saturation of HSV. In practice, first, the execution subject can determine the difference between the maximum color component information and the minimum color component information as the target difference. Then, the target difference and the maximum color component information are processed by a normalized saturation method to obtain the target saturation information.
[0044] Step 15: Perform a second conversion process on the maximum color component information to obtain target brightness information. The target brightness information can represent the brightness of HSV. In practice, first, the execution subject can normalize the maximum color component information to a range of [0, 1] as the target brightness information.
[0045] In the sixteenth step, the target hue information, the target saturation information and the target brightness information are determined as intuitive color image information.
[0046] The above technical solution, as an inventive point of an embodiment of the present disclosure, solves the second technical problem: "Directly processing the captured image as a color image without considering denoising the captured image. When the image contains large noise, the image containing large noise is enhanced, resulting in low accuracy of the extracted image features, resulting in poor effect of image processing based on the image features with low accuracy". The factors that cause the low accuracy of the extracted image features and the poor effect of processing based on the image features with low accuracy are often as follows: directly processing the captured image as a color image without considering denoising the captured image. If the above factors are solved, the accuracy of the extracted image features can be improved, and the effect of enhancement based on the image features can be improved. In order to achieve this effect, when processing the black light night vision full-color image, the present disclosure first denoises the image through feature extraction, feature interaction, mixed attention and gated fusion. Then, image enhancement is performed based on the denoised image. Thereby, the noise in the image can be reduced, the accuracy of the extracted image features can be further improved, and the effect of image enhancement based on the extracted image features can be improved.
[0047] Step 103: perform feature extraction processing on the infrared image information to obtain infrared image feature information.
[0048] In some embodiments, the execution subject may perform feature extraction processing on the infrared image information to obtain infrared image feature information. The infrared image feature information may represent the features of the extracted infrared image. For example, the features of the infrared image may represent the texture, lines or contours of the infrared image.
[0049] In some optional implementations of some embodiments, the execution subject may perform feature extraction processing on the infrared image information to obtain infrared image feature information through the following steps:
[0050] The first step is to perform denoising on the infrared image information to obtain denoised infrared image information. In practice, the execution subject may perform denoising on the infrared image information by using a median filter algorithm.
[0051] The second step is to perform edge-preserving processing on the above-mentioned denoised infrared image information to obtain changed infrared image information. The above-mentioned changed infrared image information can represent the infrared image after edge-preserving processing. In practice, the above-mentioned execution subject can perform edge-preserving processing on the infrared image through a filter. For example, the filter can be an edge-preserving filter.
[0052] The third step is to perform multi-layer convolution processing on the changed infrared image information to obtain a feature map information group, wherein the feature map information group can represent feature maps of different scales.
[0053] The fourth step is to perform feature alignment processing on the feature map information group to obtain the feature map information group after feature alignment processing. In practice, the execution subject can perform alignment processing on the feature map information group through a feature alignment processing algorithm. For example, the alignment processing algorithm can be a global alignment algorithm based on geometric transformation.
[0054] The fifth step is to fuse the feature map information group after the feature alignment process to obtain infrared image feature information. The infrared image feature information can represent the infrared image features obtained by fusing the features of each feature map in the feature map information group.
[0055] In some optional implementations of some embodiments, the execution subject may perform multi-layer convolution processing on the changed infrared image information through the following steps to obtain a feature map information group:
[0056] In the first step, the changed infrared image information is subjected to convolution processing to obtain a convolution processing feature map information. The convolution processing feature map information can represent a feature map of the infrared image information. In practice, the execution subject can perform convolution processing on the infrared image information through a convolution layer.
[0057] The second step is to perform convolution processing on the feature map information of the first convolution processing to obtain the feature map information of the second convolution processing. The feature map information of the second convolution processing can represent the feature map of the feature map information of the first convolution processing. In practice, the execution subject can perform convolution processing on the feature map information of the first convolution processing through a convolution layer.
[0058] The third step is to perform convolution processing on the above-mentioned secondary convolution processing feature map information to obtain the third-order convolution processing feature map information. Among them, the above-mentioned third-order convolution processing feature map information can represent the feature map of the above-mentioned secondary convolution processing feature map information. In practice, the above-mentioned execution subject can perform convolution processing on the above-mentioned secondary convolution processing feature map information through a convolution layer.
[0059] In the fourth step, the feature map information processed by the first convolution, the feature map information processed by the second convolution, and the feature map information processed by the third convolution are determined as a feature map information group.
[0060] It should be noted that the convolution kernels of the convolution layers used for the convolution processing of the changed infrared image information, the convolution processing of the feature map information of the first convolution processing, and the convolution processing of the feature map information of the second convolution processing are different.
[0061] In some optional implementations of some embodiments, the execution subject may perform fusion processing on the feature map information group after the feature alignment to obtain infrared image feature information through the following steps:
[0062] In the first step, weighted processing is performed on the feature map information group after the feature alignment processing to obtain a weighted feature map information group.
[0063] In the second step, the weighted feature map information groups are summed to obtain infrared image feature information.
[0064] Step 104, performing brightness channel extraction processing on the intuitive color image information to obtain a brightness channel.
[0065] In some embodiments, the execution subject may perform brightness channel extraction processing on the intuitive color image information to obtain a brightness channel. The brightness channel may represent the brightness information of the V channel in the intuitive color image information. In practice, the execution subject may perform brightness channel extraction processing on the intuitive color image information through an extraction function. For example, the extraction function may be the cv2.split() function of OpenCV.
[0066] Step 105, performing feature fusion processing on the infrared image feature information and the brightness channel to obtain fused feature information.
[0067] In some embodiments, the execution subject may perform feature fusion processing on the infrared image feature information and the brightness channel to obtain fused feature information, wherein the fused feature information may represent fusion features of the infrared image feature information and the brightness channel.
[0068] In some optional implementations of some embodiments, the execution subject may perform feature fusion processing on the infrared image feature information and the brightness channel through the following steps to obtain fused feature information:
[0069] The first step is to generate an adaptive threshold according to the infrared image feature information and the brightness channel. The adaptive threshold can represent a threshold that changes dynamically according to the local features of the image. In practice, the execution subject can generate an adaptive threshold by the Otsu method.
[0070] The second step is to determine the target fusion ratio corresponding to the adaptive threshold according to the adaptive threshold. The target fusion ratio may be the fusion ratio of the infrared image feature information and the brightness channel. In practice, the execution subject may determine the target fusion ratio corresponding to the adaptive threshold by a threshold-based linear fusion algorithm or a threshold-based nonlinear fusion algorithm.
[0071] The third step is to fuse the infrared image feature information and the brightness channel according to the target fusion ratio to obtain fused image information.
[0072] The fourth step is to post-process the fused image information to obtain fused feature information. The fused feature information may represent the features of the fused image information after sharpening and noise reduction. In practice, the execution subject may post-process the fused image information by high-pass filtering.
[0073] In some optional implementations of some embodiments, the execution subject may perform fusion processing on the infrared image feature information and the brightness channel according to the target fusion ratio through the following steps to obtain fused image information:
[0074] The first step is to perform spatial alignment processing on the infrared image feature information and the brightness channel to obtain the infrared image feature information and brightness channel after alignment processing. The infrared image feature information and brightness channel after alignment processing may be the infrared image feature information and brightness channel after geometric correction and image registration. In practice, firstly, the execution subject may perform geometric correction on the infrared image feature information and the brightness channel through affine transformation or perspective transformation. Then, the infrared image feature information and the brightness channel are image registered through feature detection, matching algorithm and transformation matrix.
[0075] In the second step, according to the above target fusion ratio, weighted summation is performed on the infrared image feature information and brightness channel after the above alignment processing to obtain the fused image information.
[0076] Step 106: input the fused feature information into a pre-trained brightness enhancement processing model to obtain brightness information after brightness enhancement processing as target brightness information.
[0077] In some embodiments, the execution subject may input the fused feature information into a pre-trained brightness enhancement processing model to obtain brightness information after brightness enhancement processing as target brightness information. The brightness enhancement processing model may be a neural network model for enhancing brightness information. The target brightness information may be enhanced brightness information obtained through mapping. The brightness enhancement processing model may be a model that takes the fused feature information as input and takes brightness information after brightness enhancement processing as output. For example, the brightness enhancement processing model may be a convolutional neural network (CNN).
[0078] Step 107, performing a change process on the intuitive color image information according to the target brightness information to obtain the intuitive color image information after the change process.
[0079] In some embodiments, the execution subject may perform a change process on the intuitive color image information according to the target brightness information to obtain the intuitive color image information after the change process. The intuitive color image information after the change process may be the intuitive color image information after brightness enhancement. In practice, the execution subject may replace the brightness information in the intuitive color image information with the target brightness information.
[0080] Step 108, converting the intuitive color image information after the change processing to obtain the intuitive color image information after the conversion processing as the target full-color image.
[0081] In some embodiments, the execution subject may convert the intuitive color image information after the change process to obtain the intuitive color image information after the conversion process as the target full-color image. The target full-color image may represent the RGB image corresponding to the intuitive color image information. In practice, the execution subject may convert the intuitive color image information after the change process into an RGB image.
[0082] The above-mentioned various embodiments of the present disclosure have the following beneficial effects: through the black light night vision full-color image processing method of some embodiments of the present disclosure, color image information can be generated and more color details can be obtained, so that the quality of the generated color image can be improved to further improve the effect of image processing. Specifically, the reasons for the inability to generate color image information, the poor quality of the generated color image, the few color details, and the poor effect of image enhancement processing are: using infrared imaging, only the outline of the object can be obtained in a dark environment, resulting in only grayscale images being generated, resulting in the inability to generate color image information; when using a low-light camera under extremely low light conditions, the performance of the low-light camera is greatly reduced, resulting in poor quality of the obtained color image; when using a thermal imager, only the temperature distribution in the scene can be displayed, resulting in fewer color details in the generated actual scene; when the scene is a dynamic scene, the use of a multi-frame processing method causes the appearance of blurred images and artifacts, resulting in poor image processing effects. Based on this, the black light night vision full-color image processing method of some embodiments of the present disclosure, first, in response to receiving the image shooting request information, collect the target image information group, wherein the target image information group includes infrared image information and target color image information shot under the target lighting scene, and the target lighting scene is a scene with a light illumination level less than the target foot. Thus, the image shot under the low-light scene can be obtained. Then, according to the target color image information, the intuitive color image information corresponding to the target color image information is generated. Thus, the intuitive color image information corresponding to the target color image information can be obtained, which can be used to enhance the image. Afterwards, the infrared image information is subjected to feature extraction processing to obtain infrared image feature information. Thus, the image features of the infrared image information can be obtained. Then, the brightness channel extraction processing is performed on the intuitive color image information to obtain the brightness channel. Thus, the brightness channel of the intuitive color image information can be obtained, which can be used for feature fusion with the infrared image features. Secondly, the infrared image feature information and the brightness channel are subjected to feature fusion processing to obtain fusion feature information. Thus, the fusion features of the infrared image feature information and the brightness channel can be obtained. Afterwards, the above-mentioned fusion feature information is input into the pre-trained brightness enhancement processing model to obtain the brightness information after the brightness enhancement processing as the target brightness information. Thus, the enhanced brightness information can be obtained. Secondly, according to the above-mentioned target brightness information, the above-mentioned intuitive color image information is changed and processed to obtain the intuitive color image information after the change processing. Thus, the intuitive color image information after brightness enhancement can be obtained. Finally, the intuitive color image information after the change processing is converted to obtain the intuitive color image information after the conversion processing as the target full-color image. Thus, the intuitive color image information after the change processing can be converted into an RGB image.Also, because the color image information is not generated only by the infrared image or by the thermal imager, but by the infrared image and the captured target color image information (RGB image), color image information containing color details can be generated. Also, because the captured target color image information is enhanced by the characteristics of the infrared image, the quality of the target color image information is improved. Also, in dynamic scenes, the processing is not performed on multiple frames of captured images, but on one frame of captured images, so that the image is less blurred and has fewer artifacts, thereby improving the effect of image processing. In this way, color image information can be generated and more color details can be obtained, thereby improving the quality of the generated color image, and further improving the effect of image processing.
[0083] Further references Figure 2 As an implementation of the methods shown in the above figures, the present disclosure provides some embodiments of a method for processing a black light night vision full-color image. Figure 1 Corresponding to the method embodiments shown, the device can be specifically applied to various electronic devices.
[0084] like Figure 2As shown, the black light night vision full-color image processing device 200 of some embodiments includes: an acquisition unit 201, a generation unit 202, a first extraction unit 203, a second extraction unit 204, a fusion unit 205, an enhancement unit 206, a change unit 207 and a conversion unit 208. The acquisition unit 201 is configured to acquire a target image information group in response to receiving an image capture request information, wherein the target image information group includes infrared image information and target color image information captured under a target lighting scene, and the target lighting scene is a scene with a light illumination level less than the target foot; the generation unit 202 is configured to generate intuitive color image information corresponding to the target color image information according to the target color image information; the first extraction unit 203 is configured to perform feature extraction processing on the infrared image information to obtain infrared image feature information; the second extraction unit 204 is configured to perform brightness channel extraction processing on the intuitive color image information to obtain to the brightness channel; the fusion unit 205 is configured to perform feature fusion processing on the above-mentioned infrared image feature information and the above-mentioned brightness channel to obtain fused feature information; the enhancement unit 206 is configured to input the above-mentioned fused feature information into a pre-trained brightness enhancement processing model to obtain the brightness information after the brightness enhancement processing as the target brightness information; the change unit 207 is configured to perform change processing on the above-mentioned intuitive color image information according to the above-mentioned target brightness information to obtain the intuitive color image information after the change processing; the conversion unit 208 is configured to perform conversion processing on the intuitive color image information after the change processing to obtain the intuitive color image information after the conversion processing as the target full-color image.
[0085] It is understood that the units described in the device 200 are similar to those described in the reference Figure 1 Therefore, the operations, features and beneficial effects described above for the method are also applicable to the device 200 and the units included therein, and will not be described in detail here.
[0086] Reference below Figure 3 , which shows a schematic structural diagram of an electronic device 300 (eg, a computing device) suitable for implementing some embodiments of the present disclosure. Figure 3 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0087] like Figure 3As shown, the electronic device 300 may include a processing device 301 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 302 or a program loaded from a storage device 308 into a random access memory (RAM) 303. In the RAM 303, various programs and data required for the operation of the electronic device 300 are also stored. The processing device 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An input / output (I / O) interface 305 is also connected to the bus 304.
[0088] Typically, the following devices may be connected to the I / O interface 305: input devices 306 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 307 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 308 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 309. The communication devices 309 may allow the electronic device 300 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 3 The electronic device 300 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead. Figure 3 Each block shown in the figure may represent one device, or may represent multiple devices as required.
[0089] In particular, according to some embodiments of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, some embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In some such embodiments, the computer program can be downloaded and installed from the network through the communication device 309, or installed from the storage device 308, or installed from the ROM 302. When the computer program is executed by the processing device 301, the above-mentioned functions defined in the method of some embodiments of the present disclosure are executed.
[0090] It should be noted that the computer-readable medium recorded in some embodiments of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer 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. In some embodiments of the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In some embodiments of the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0091] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0092] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device. The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: in response to receiving image shooting request information, collects a target image information group, wherein the target image information group includes infrared image information and target color image information shot under a target lighting scene, and the target lighting scene is a scene with a light illumination level less than the target foot; generates intuitive color image information corresponding to the target color image information according to the target color image information; performs feature extraction processing on the infrared image information to obtain infrared image feature information; performs brightness channel extraction processing on the intuitive color image information to obtain a brightness channel; performs feature fusion processing on the infrared image feature information and the brightness channel to obtain fused feature information; inputs the fused feature information into a pre-trained brightness enhancement processing model to obtain brightness information after brightness enhancement processing as target brightness information; performs change processing on the intuitive color image information according to the target brightness information to obtain intuitive color image information after change processing; performs conversion processing on the intuitive color image information after change processing to obtain intuitive color image information after conversion processing as a target full-color image.
[0093] Computer program code for performing the operations of some embodiments of the present disclosure may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0094] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0095] The units described in some embodiments of the present disclosure may be implemented by software or by hardware. The described units may also be arranged in a processor, for example, they may be described as: an acquisition unit, a generation unit, a first extraction unit, a second extraction unit, a fusion unit, an enhancement unit, a change unit, and a conversion unit. Among them, the names of these units do not constitute limitations on the units themselves in certain cases. For example, the acquisition unit may also be described as "a unit that acquires a target image information group in response to receiving an image capture request information, wherein the target image information group includes infrared image information and target color image information captured under a target illumination scene, and the target illumination scene is a scene whose light illumination level is less than the target foot".
[0096] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0097] The above descriptions are only some preferred embodiments of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present disclosure is not limited to the technical solutions formed by a specific combination of the above-mentioned technical features, but should also cover other technical solutions formed by any combination of the above-mentioned technical features or their equivalent features without departing from the above-mentioned inventive concept. For example, the above-mentioned features are replaced with the technical features with similar functions disclosed in the embodiments of the present disclosure (but not limited to) and the technical solutions formed.
Claims
1. A black light night vision full color image processing method, include: In response to receiving the image capture request information, collecting a target image information group, wherein the target image information group includes infrared image information and target color image information captured under a target lighting scene, wherein the target lighting scene is a scene with a light illumination level less than the target foot; According to the target color image information, generating intuitive color image information corresponding to the target color image information; Performing feature extraction processing on the infrared image information to obtain infrared image feature information; Performing brightness channel extraction processing on the intuitive color image information to obtain a brightness channel; Performing feature fusion processing on the infrared image feature information and the brightness channel to obtain fused feature information; Inputting the fused feature information into a pre-trained brightness enhancement processing model to obtain brightness information after brightness enhancement processing as target brightness information; According to the target brightness information, the intuitive color image information is changed to obtain the intuitive color image information after the change processing; The intuitive color image information after the change processing is converted to obtain the intuitive color image information after the conversion processing as the target full-color image.
2. The method according to claim 1, in, The step of performing feature extraction processing on the infrared image information to obtain infrared image feature information includes: Performing denoising processing on the infrared image information to obtain denoised infrared image information; Performing edge-preserving processing on the denoised infrared image information to obtain changed infrared image information; Performing multi-layer convolution processing on the changed infrared image information to obtain a feature map information group; Performing feature alignment processing on the feature map information group to obtain a feature map information group after feature alignment processing; The feature map information group after the feature alignment process is fused to obtain infrared image feature information.
3. The method according to claim 2, in, The step of performing multi-layer convolution processing on the changed infrared image information to obtain a feature map information group includes: Performing convolution processing on the changed infrared image information to obtain a convolution processing feature map information; Performing convolution processing on the first convolution processing feature map information to obtain second convolution processing feature map information; Performing convolution processing on the secondary convolution processing feature map information to obtain the third convolution processing feature map information; The first convolution processing feature map information, the second convolution processing feature map information and the third convolution processing feature map information are determined as a feature map information group.
4. The method according to claim 2, in, The step of fusing the feature map information group after the feature alignment process to obtain infrared image feature information includes: Performing weighted processing on the feature map information group after the feature alignment processing to obtain a weighted feature map information group; The weighted feature map information groups are summed to obtain infrared image feature information.
5. The method according to claim 1, in, The performing feature fusion processing on the infrared image feature information and the brightness channel to obtain fused feature information includes: generating an adaptive threshold according to the infrared image feature information and the brightness channel; According to the adaptive threshold, determining a target fusion ratio corresponding to the adaptive threshold; According to the target fusion ratio, the infrared image feature information and the brightness channel are fused to obtain fused image information; The fused image information is post-processed to obtain fused feature information.
6. The method according to claim 5, in, The step of fusing the infrared image feature information and the brightness channel according to the target fusion ratio to obtain fused image information includes: Performing spatial alignment processing on the infrared image feature information and the brightness channel to obtain aligned infrared image feature information and brightness channel; According to the target fusion ratio, weighted summation is performed on the infrared image feature information and brightness channel after the alignment process to obtain fused image information.
7. A black light night vision full color image processing device, include: a collection unit configured to collect a target image information group in response to receiving an image capture request information, wherein the target image information group includes infrared image information and target color image information captured under a target illumination scene, wherein the target illumination scene is a scene with a light illumination level less than the target foot; A generating unit configured to generate intuitive color image information corresponding to the target color image information according to the target color image information; A first extraction unit is configured to perform feature extraction processing on the infrared image information to obtain infrared image feature information; A second extraction unit is configured to perform brightness channel extraction processing on the intuitive color image information to obtain a brightness channel; a fusion unit configured to perform feature fusion processing on the infrared image feature information and the brightness channel to obtain fused feature information; an enhancement unit, configured to input the fused feature information into a pre-trained brightness enhancement processing model, and obtain brightness information after brightness enhancement processing as target brightness information; a changing unit configured to change the intuitive color image information according to the target brightness information to obtain the intuitive color image information after the change; The conversion unit is configured to perform conversion processing on the intuitive color image information after the change processing, and obtain the intuitive color image information after the conversion processing as the target full-color image.
8. An electronic device, include: one or more processors; a storage device having one or more programs stored thereon; When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 6.
9. A computer readable medium having a computer program stored thereon, in, When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Infrared image and visible light image fusion method and apparatus
CN106548467A
Low-light / infrared image color fusion method and system based on deep learning
CN111402306A
Image fusion method and device and computer readable storage medium
CN111738970A
Full-color night vision enhancement method and system based on deep learning
CN115456903A
Lightweight infrared and visible light image fusion method based on convolutional neural network
CN116681636A
Cited By
Ultrahigh-definition long-distance full-color imaging method under extremely low illumination and module thereof
CN119767153A
Ultra-high-definition long-distance full-color imaging method and module under extremely low illuminance
CN119767153B
Full-color image processing method and apparatus based on low-light night vision, electronic device, and readable medium
WO2026032249A1
