Image processing method and device, electronic equipment and storage medium
By combining RGB imaging elements and multispectral sensors on terminal devices to acquire and correct images, the problem of color restoration of partial human body images in remote diagnosis is solved and the accuracy of physical condition assessment is improved.
Patent Information
- Application Number
- CN202310308925.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-27
- Publication Date
- 2024-10-01
AI Technical Summary
In remote diagnosis of medical diagnosis, images of parts of the human body captured by terminal devices such as smartphones cannot restore the true color of parts of the human body, affecting the accuracy of physical condition assessment.
By acquiring the RGB image collected by the RGB imaging element and the spectral image collected by the multispectral sensor, the light source information of the RGB image is determined based on the spectral image, and this information is used to correct the RGB image to obtain the target image to restore the true color.
It is possible to restore the true color of partial images of the human body on the terminal device, thus improving the accuracy of body condition assessment.
Smart Images

Figure CN118735819A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of image processing, and in particular to an image processing method, device, electronic device and storage medium. Background Art
[0002] In medical diagnosis, professional medical equipment is often needed to collect the user's physiological parameters as a basis for physical condition assessment. For example, professional human body image acquisition equipment can be used to collect partial human body images, so as to assess physical condition. The partial human body image can be a tongue image, and the human body image acquisition device is a closed instrument with a fill light function. The brightness and color temperature range of its fill light are strictly constrained by relevant standards, so the collected image can restore the true color of the human body. At present, with the continuous development of mobile Internet technology, medical diagnosis has also appeared in the form of remote diagnosis. During remote diagnosis, patients can only use terminal devices such as smartphones to take partial human body images, and the partial human body images taken by the terminal devices cannot restore the true color of the human body, which affects the accuracy of physical condition assessment. Summary of the invention
[0003] In order to overcome the problems existing in the related art, the embodiments of the present disclosure provide an image processing method, device, electronic device and storage medium to solve the defects in the related art.
[0004] According to a first aspect of an embodiment of the present disclosure, there is provided an image processing method, which is applied to a terminal device having an RGB imaging element and a multispectral sensor, and the method comprises:
[0005] Acquire an RGB image acquired by the RGB imaging element and a spectral image acquired by the multispectral sensor, wherein the RGB image and the spectral image are acquired at the same time;
[0006] Determining light source information at the time of acquisition of the RGB image according to the spectral image;
[0007] The RGB image is corrected according to the light source information to obtain a target image, wherein the color of the target image is the color of the RGB image in a real environment.
[0008] In one embodiment, determining the light source information at the time of acquisition of the RGB image according to the spectral image includes:
[0009] The light source information at the time of acquisition of the RGB image is determined according to the spectral image and a pre-calibrated light source spectral curve, wherein the spectral image is used to characterize spectral data, and the light source spectral curve is used to characterize a mapping relationship between spectral data and light source information.
[0010] In one embodiment, it further includes:
[0011] Acquire a plurality of spectral image samples collected by the spectral sensor and a plurality of spectral parameters collected by the spectrometer, wherein the plurality of spectral image samples correspond to the plurality of spectral parameters one by one, and the corresponding spectral image samples and spectral parameters are collected at the same time;
[0012] The light source spectrum curve is calibrated according to the multiple spectrum image samples and the spectrum parameters corresponding to each spectrum image sample.
[0013] In one embodiment, the calibrating the light source spectrum curve and the reflectance curve according to the multiple spectrum image samples and the spectrum parameters corresponding to each spectrum image sample includes:
[0014] The light source spectrum curve and the reflectivity curve are calibrated according to the multiple spectral image samples and the spectral parameters corresponding to each spectral image sample using at least one of the following reflectance spectrum reconstruction algorithms: pseudo-inverse algorithm, principal component analysis algorithm and deep learning algorithm.
[0015] In one embodiment, the correcting the RGB image according to the light source information to obtain a target image includes:
[0016] Obtaining a white balance correction parameter of the RGB image according to the light source information;
[0017] The color information of the RGB image is corrected using the white balance correction parameters of the RGB image to obtain a target image.
[0018] In one embodiment, the light source information includes light source chromaticity information.
[0019] In one embodiment, the RGB image includes a human body part image.
[0020] In one embodiment, the field of view angle of the RGB imaging element coincides with the field of view angle of the multi-spectral sensor.
[0021] According to a second aspect of an embodiment of the present disclosure, there is provided an image processing apparatus, which is applied to a terminal device having an RGB imaging element and a multispectral sensor, and the apparatus comprises:
[0022] An acquisition module, used for acquiring an RGB image acquired by the RGB imaging element and a spectral image acquired by the multi-spectral sensor, wherein the RGB image and the spectral image are acquired at the same time;
[0023] A light source module, used to determine the light source information at the time of acquisition of the RGB image according to the spectral image;
[0024] A correction module is used to correct the RGB image according to the light source information to obtain a target image, wherein the color of the target image is the color of the real environment corresponding to the RGB image.
[0025] In one embodiment, the light source module is specifically used for:
[0026] The light source information at the time of acquisition of the RGB image is determined according to the spectral image and a pre-calibrated light source spectral curve, wherein the spectral image is used to characterize spectral data, and the light source spectral curve is used to characterize a mapping relationship between spectral data and light source information.
[0027] In one embodiment, a calibration module is further included, which is used to:
[0028] Acquire a plurality of spectral image samples collected by the spectral sensor and a plurality of spectral parameters collected by the spectrometer, wherein the plurality of spectral image samples correspond to the plurality of spectral parameters one by one, and the corresponding spectral image samples and spectral parameters are collected at the same time;
[0029] The light source spectrum curve is calibrated according to the multiple spectrum image samples and the spectrum parameters corresponding to each spectrum image sample.
[0030] In one embodiment, the calibration module is used to calibrate the light source spectrum curve and the reflectance curve according to the multiple spectrum image samples and the spectrum parameters corresponding to each spectrum image sample, specifically for:
[0031] The light source spectrum curve and the reflectivity curve are calibrated according to the multiple spectral image samples and the spectral parameters corresponding to each spectral image sample using at least one of the following reflectance spectrum reconstruction algorithms: pseudo-inverse algorithm, principal component analysis algorithm and deep learning algorithm.
[0032] In one embodiment, the correction module is specifically used for:
[0033] Obtaining a white balance correction parameter of the RGB image according to the light source information;
[0034] The color information of the RGB image is corrected using the white balance correction parameters of the RGB image to obtain a target image.
[0035] In one embodiment, the light source information includes light source chromaticity information.
[0036] In one embodiment, the RGB image includes a human body part image.
[0037] In one embodiment, the field of view angle of the RGB imaging element coincides with the field of view angle of the multi-spectral sensor.
[0038] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, comprising a memory and a processor, wherein the memory is used to store computer instructions executable on the processor, and the processor is used to implement the image processing method described in the first aspect when executing the computer instructions.
[0039] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the method described in the first aspect is implemented.
[0040] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:
[0041] The image processing method provided by the embodiment of the present disclosure can obtain the RGB image collected by the RGB imaging element of the terminal device and the spectral image collected by the multi-spectral sensor of the terminal device, and can determine the light source information at the time of collecting the RGB image according to the spectral image, and finally can correct the RGB image according to the light source information to obtain the target image, that is, restore the true color of the photographed object in the RGB image. If this method is applied to capturing a partial image of the human body, the true color of the partial human body can be restored, so that the physical condition can be accurately assessed according to the partial image of the human body. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0043] Figure 1 is a flowchart of an image processing method shown in an exemplary embodiment of the present disclosure;
[0044] Figure 2 is a structural schematic diagram of an image processing device shown in an exemplary embodiment of the present disclosure;
[0045] Figure 3 It is a structural block diagram of an electronic device shown in an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION
[0046] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0047] The terms used in this disclosure are for the purpose of describing specific embodiments only and are not intended to limit the disclosure. The singular forms of "a", "said" and "the" used in this disclosure and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0048] It should be understood that although the terms first, second, third, etc. may be used in the present disclosure to describe various information, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present disclosure, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0049] In medical diagnosis, professional medical equipment is often needed to collect the user's physiological parameters as a basis for physical condition assessment. For example, professional human body image acquisition equipment can be used to collect partial human body images, so as to assess physical condition. The partial human body image can be a tongue image, and the human body image acquisition device is a closed instrument with a fill light function. The brightness and color temperature range of its fill light are strictly constrained by relevant standards, so the collected image can restore the true color of the human body. At present, with the continuous development of mobile Internet technology, medical diagnosis has also appeared in the form of remote diagnosis. During remote diagnosis, patients can only use terminal devices such as smartphones to take partial human body images, and the partial human body images taken by the terminal devices cannot restore the true color of the human body, which affects the accuracy of physical condition assessment.
[0050] Based on this, in the first aspect, at least one embodiment of the present disclosure provides an image processing method, please refer to the attached Figure 1 , which shows the process of the method, including steps S101 to S103.
[0051] The method can be applied to terminal devices with RGB (red, green, blue) imaging elements and multispectral sensors, such as user equipment (UE), mobile devices, user terminals, terminals, cellular phones, cordless phones, personal digital assistant (PDA) handheld devices, computing devices, vehicle-mounted devices, wearable devices, etc.; wherein the RGB imaging element can be a camera, etc., and the multispectral sensor has more spectral channels than the RGB imaging element, and can accurately collect spectral images. The field of view of the RGB imaging element coincides with the field of view of the multispectral sensor, so the scene targeted by the RGB imaging element when collecting RGB images is the same as the scene targeted by the multispectral sensor when collecting spectral images.
[0052] The method can be applied to scenarios where a terminal device collects images of a human body, such as scenarios where a terminal device collects images of a tongue.
[0053] In step S101, an RGB image acquired by the RGB imaging element and a spectral image acquired by the multi-spectral sensor are acquired, wherein the RGB image and the spectral image are acquired at the same time.
[0054] Among them, the RGB imaging element and the multispectral sensor can be pre-set to a linkage form, that is, when either of the two collects an image, the other also collects an image at the same time, so as to ensure that the collected RGB imaging element and spectral image exist in pairs, that is, the collection time of the paired RGB image and spectral image is the same. In addition, since the RGB imaging element and the multispectral sensor have the same field of view, the paired RGB image and spectral image are collected for the same scene at the same time.
[0055] The RGB image and spectral image obtained in this step may be any pair of multiple pairs of RGB images and spectral images.
[0056] Exemplarily, the RGB image and the spectral image are taken of the user's body, that is, the RGB image is a partial image of the human body, for example, the RGB image is an image of the human tongue.
[0057] In step S102, the light source information of the RGB image at the time of acquisition is determined according to the spectral image.
[0058] The spectral image can be used to characterize spectral data (such as spectral function, etc.). The terminal device may store a pre-calibrated light source spectral curve for characterizing the mapping relationship between spectral data and light source information. Exemplarily, the light source spectral curve may be calibrated in the following manner:
[0059] First, a plurality of spectral image samples collected by the spectral sensor and a plurality of spectral parameters collected by the spectrometer are obtained, wherein the plurality of spectral image samples correspond to the plurality of spectral parameters one-to-one, the corresponding spectral image samples and the spectral parameters are collected at the same time, and the corresponding spectral image samples and the spectral parameters are for the same scene, for example, for the same part of the human body.
[0060] Among them, the spectral sensor can collect spectral image samples under a variety of light source environments, thereby improving the diversity of samples; the spectral parameters collected by the spectrometer can be used as reference values (ground truth) for the corresponding spectral image samples, and the spectral parameters can characterize the reflectivity of the photographed object in the spectral image samples.
[0061] Next, the light source spectrum curve is calibrated according to the multiple spectrum image samples and the spectrum parameters corresponding to each spectrum image sample.
[0062] For example, the light source spectrum curve can be calibrated according to the multiple spectrum image samples and the spectrum parameters corresponding to each spectrum image sample using at least one of the following reflectance spectrum reconstruction algorithms: pseudo-inverse algorithm, principal component analysis algorithm and deep learning algorithm. The reflectance curve can be calibrated in the above manner, and then the reflectance curve is decoupled from the light source spectrum to obtain the light source spectrum curve. Specifically, each spectrum image sample can characterize spectral data such as spectral function, and the spectral parameter can characterize the reflectivity. Therefore, the reflectance curve can be calibrated using the spectrum image sample and the corresponding spectral parameter, that is, the curve used to characterize the mapping relationship between the spectrum data and the reflectivity; since there is a specific coupling relationship between the reflectivity and the light source information, the reflectance curve can be decoupled to obtain the light source spectrum curve, that is, the mapping relationship between the spectrum data and the light source information. Based on this, in this step, the light source information at the acquisition time of the RGB image can be determined according to the spectrum image and the pre-calibrated light source spectrum curve, that is, the light source information that has a mapping relationship with the spectral characteristics of the spectrum image is found in the light source spectrum curve as the light source information at the acquisition time of the RGB image.
[0063] Exemplarily, the light source information may be light source chromaticity information.
[0064] In step S103, the RGB image is corrected according to the light source information to obtain a target image, wherein the color of the target image is the color of the real environment corresponding to the RGB image.
[0065] Exemplarily, the white balance correction parameters of the RGB image can be obtained according to the light source information. For example, a white balance correction algorithm can be used to obtain the white balance correction parameters of the RGB image, namely, R_gain and B_gain, according to the light source chromaticity information. Then, the white balance correction parameters of the RGB image can be used to correct the color information of the RGB image to obtain the target image.
[0066] The image processing method provided by the embodiment of the present disclosure can obtain the RGB image collected by the RGB imaging element of the terminal device and the spectral image collected by the multi-spectral sensor of the terminal device, and can determine the light source information at the time of collecting the RGB image according to the spectral image, and finally can correct the RGB image according to the light source information to obtain the target image, that is, restore the true color of the photographed object in the RGB image. If this method is applied to capturing a partial image of the human body, the true color of the partial human body can be restored, so that the physical condition can be accurately assessed according to the partial image of the human body.
[0067] According to a second aspect of the embodiment of the present disclosure, an image processing device is provided, which is applied to a terminal device having an RGB imaging element and a multi-spectral sensor. Figure 2 , the device comprises:
[0068] An acquisition module 201 is used to acquire an RGB image acquired by the RGB imaging element and a spectral image acquired by the multi-spectral sensor, wherein the RGB image and the spectral image are acquired at the same time;
[0069] A light source module 202, used to determine the light source information at the time of acquisition of the RGB image according to the spectral image;
[0070] The correction module 203 is used to correct the RGB image according to the light source information to obtain a target image, wherein the color of the target image is the color of the real environment corresponding to the RGB image.
[0071] In some embodiments of the present disclosure, the light source module is specifically used for:
[0072] The light source information at the time of acquisition of the RGB image is determined according to the spectral image and a pre-calibrated light source spectral curve, wherein the spectral image is used to characterize spectral data, and the light source spectral curve is used to characterize a mapping relationship between spectral data and light source information.
[0073] In some embodiments of the present disclosure, a calibration module is also included, which is used to:
[0074] Acquire a plurality of spectral image samples collected by the spectral sensor and a plurality of spectral parameters collected by the spectrometer, wherein the plurality of spectral image samples correspond to the plurality of spectral parameters one by one, and the corresponding spectral image samples and spectral parameters are collected at the same time;
[0075] The light source spectrum curve is calibrated according to the multiple spectrum image samples and the spectrum parameters corresponding to each spectrum image sample.
[0076] In some embodiments of the present disclosure, the calibration module is used to calibrate the light source spectrum curve and the reflectance curve according to the multiple spectrum image samples and the spectrum parameters corresponding to each spectrum image sample, specifically for:
[0077] The light source spectrum curve and the reflectivity curve are calibrated according to the multiple spectral image samples and the spectral parameters corresponding to each spectral image sample using at least one of the following reflectance spectrum reconstruction algorithms: pseudo-inverse algorithm, principal component analysis algorithm and deep learning algorithm.
[0078] In some embodiments of the present disclosure, the correction module is specifically used to:
[0079] Obtaining a white balance correction parameter of the RGB image according to the light source information;
[0080] The color information of the RGB image is corrected using the white balance correction parameters of the RGB image to obtain a target image.
[0081] In some embodiments of the present disclosure, the light source information includes light source chromaticity information.
[0082] In some embodiments of the present disclosure, the RGB image includes a partial image of a human body.
[0083] In some embodiments of the present disclosure, the field of view angle of the RGB imaging element coincides with the field of view angle of the multi-spectral sensor.
[0084] Regarding the device in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment of the first aspect related to the method, and will not be elaborated here.
[0085] According to the third aspect of the embodiment of the present disclosure, please refer to the attached Figure 3 , which exemplarily shows a block diagram of an electronic device. For example, the device 300 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0086] Reference Figure 3, the device 300 may include one or more of the following components: a processing component 302 , a memory 304 , a power component 306 , a multimedia component 308 , an audio component 310 , an input / output (I / O) interface 312 , a sensor component 314 , and a communication component 316 .
[0087] The processing component 302 generally controls the overall operation of the device 300, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 302 may include one or more processors 320 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 302 may include one or more modules to facilitate the interaction between the processing component 302 and other components. For example, the processing component 302 may include a multimedia module to facilitate the interaction between the multimedia component 308 and the processing component 302.
[0088] The memory 304 is configured to store various types of data to support operations on the device 300. Examples of such data include instructions for any application or method operating on the device 300, contact data, phone book data, messages, pictures, videos, etc. The memory 304 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0089] The power component 306 provides power to the various components of the device 300. The power component 306 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 300.
[0090] The multimedia component 308 includes a screen that provides an output interface between the device 300 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 308 includes a front camera and / or a rear camera. When the device 300 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0091] The audio component 310 is configured to output and / or input audio signals. For example, the audio component 310 includes a microphone (MIC), and when the device 300 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 304 or sent via the communication component 316. In some embodiments, the audio component 310 also includes a speaker for outputting audio signals.
[0092] I / O interface 312 provides an interface between processing component 302 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0093] The sensor assembly 314 includes one or more sensors for providing various aspects of status assessment for the device 300. For example, the sensor assembly 314 can detect the open / closed state of the device 300, the relative positioning of components, such as the display and keypad of the device 300, the sensor assembly 314 can also detect the position change of the device 300 or a component of the device 300, the presence or absence of user contact with the device 300, the orientation or acceleration / deceleration of the device 300 and the temperature change of the device 300. The sensor assembly 314 can also include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 314 can also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 314 can also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.
[0094] The communication component 316 is configured to facilitate wired or wireless communication between the device 300 and other devices. The device 300 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, 4G or 5G or a combination thereof. In an exemplary embodiment, the communication component 316 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 316 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0095] In an exemplary embodiment, the apparatus 300 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to execute the image processing method of the above-mentioned electronic device.
[0096] In a fourth aspect, the present disclosure, in an exemplary embodiment, further provides a non-transitory computer-readable storage medium including instructions, such as a memory 304 including instructions, and the instructions can be executed by a processor 320 of the device 300 to complete the image processing method of the electronic device. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
[0097] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0098] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. An image processing method, characterized in that: Applied to a terminal device having an RGB imaging element and a multi-spectral sensor, the method comprises: Acquire an RGB image acquired by the RGB imaging element and a spectral image acquired by the multispectral sensor, wherein the RGB image and the spectral image are acquired at the same time; Determining light source information at the time of acquisition of the RGB image according to the spectral image; The RGB image is corrected according to the light source information to obtain a target image, wherein the color of the target image is the color of the RGB image in a real environment.
2. The image processing method according to claim 1, characterized in that: The step of determining the light source information at the time of collecting the RGB image according to the spectral image includes: The light source information at the time of acquisition of the RGB image is determined according to the spectral image and a pre-calibrated light source spectral curve, wherein the spectral image is used to characterize spectral data, and the light source spectral curve is used to characterize a mapping relationship between spectral data and light source information.
3. The image processing method according to claim 2, characterized in that: Also includes: Acquire a plurality of spectral image samples collected by the spectral sensor and a plurality of spectral parameters collected by the spectrometer, wherein the plurality of spectral image samples correspond to the plurality of spectral parameters one by one, and the corresponding spectral image samples and spectral parameters are collected at the same time; The light source spectrum curve is calibrated according to the multiple spectrum image samples and the spectrum parameters corresponding to each spectrum image sample.
4. The image processing method according to claim 3, characterized in that: The calibrating the light source spectrum curve and the reflectance curve according to the multiple spectrum image samples and the spectrum parameters corresponding to each spectrum image sample includes: The light source spectrum curve and the reflectivity curve are calibrated according to the multiple spectral image samples and the spectral parameters corresponding to each spectral image sample using at least one of the following reflectance spectrum reconstruction algorithms: pseudo-inverse algorithm, principal component analysis algorithm and deep learning algorithm.
5. The image processing method according to claim 1, characterized in that: The step of correcting the RGB image according to the light source information to obtain a target image includes: Obtaining a white balance correction parameter of the RGB image according to the light source information; The color information of the RGB image is corrected using the white balance correction parameters of the RGB image to obtain a target image.
6. The image processing method according to claim 1, characterized in that: The light source information includes light source chromaticity information.
7. The image processing method according to claim 1, characterized in that: The RGB image includes a human body part image.
8. The image processing method according to claim 1, characterized in that: The field of view angle of the RGB imaging element coincides with the field of view angle of the multi-spectral sensor.
9. An image processing device, characterized in that: Applicable to a terminal device having an RGB imaging element and a multi-spectral sensor, the device comprises: An acquisition module, used for acquiring an RGB image acquired by the RGB imaging element and a spectral image acquired by the multi-spectral sensor, wherein the RGB image and the spectral image are acquired at the same time; A light source module, used to determine the light source information at the time of acquisition of the RGB image according to the spectral image; A correction module is used to correct the RGB image according to the light source information to obtain a target image, wherein the color of the target image is the color of the real environment corresponding to the RGB image.
10. The image processing device according to claim 9, characterized in that: The light source module is specifically used for: The light source information at the time of acquisition of the RGB image is determined according to the spectral image and a pre-calibrated light source spectral curve, wherein the spectral image is used to characterize spectral data, and the light source spectral curve is used to characterize a mapping relationship between spectral data and light source information.
11. The image processing device according to claim 10, characterized in that: Also includes calibration modules for: Acquire a plurality of spectral image samples collected by the spectral sensor and a plurality of spectral parameters collected by the spectrometer, wherein the plurality of spectral image samples correspond to the plurality of spectral parameters one by one, and the corresponding spectral image samples and spectral parameters are collected at the same time; The light source spectrum curve is calibrated according to the multiple spectrum image samples and the spectrum parameters corresponding to each spectrum image sample.
12. The image processing device according to claim 11, characterized in that: The calibration module is used to calibrate the light source spectrum curve and the reflectance curve according to the multiple spectrum image samples and the spectrum parameters corresponding to each spectrum image sample, specifically for: The light source spectrum curve and the reflectivity curve are calibrated according to the multiple spectral image samples and the spectral parameters corresponding to each spectral image sample using at least one of the following reflectance spectrum reconstruction algorithms: pseudo-inverse algorithm, principal component analysis algorithm and deep learning algorithm.
13. The image processing device according to claim 9, characterized in that: The correction module is specifically used for: Obtaining a white balance correction parameter of the RGB image according to the light source information; The color information of the RGB image is corrected using the white balance correction parameters of the RGB image to obtain a target image.
14. The image processing device according to claim 9, characterized in that: The light source information includes light source chromaticity information.
15. The image processing device according to claim 9, characterized in that: The RGB image includes a human body part image.
16. The image processing device according to claim 9, characterized in that: The field of view angle of the RGB imaging element coincides with the field of view angle of the multi-spectral sensor.
17. An electronic device, characterized in that: The electronic device comprises a memory and a processor, wherein the memory is used to store computer instructions executable on the processor, and the processor is used to implement the image processing method according to any one of claims 1 to 8 when executing the computer instructions.
18. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.
Citation Information
Cited By
Image processing method and related device
CN120602795A
Image processing method and related device
WO2026194593A1
