Image correction method and device, electronic equipment and storage medium
By acquiring the quantum dot spectral information of ambient light, identifying the bands with insufficient color rendering, and performing compensation processing, the problem of insufficient color rendering of images under artificial light sources is solved, achieving efficient image color correction and resource conservation.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CORE VISION (BEIJING) TECH CO LTD
- Filing Date
- 2021-12-24
- Publication Date
- 2026-06-02
Smart Images

Figure CN116342399B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of computer technology, and in particular to an image correction method and apparatus, electronic device and storage medium. Background Technology
[0002] Currently, users' demands for the camera functions of terminal devices are gradually increasing. Although the camera quality and image processing algorithms of mobile phones and other terminals are improving, some problems still exist. For example, light emitted by artificial light sources (e.g., lamplight) often has insufficient color rendering in a certain wavelength range. This results in insufficient color saturation of certain colors in the photographed object, or the inability to accurately reproduce colors. Simply improving the quality of color cameras or the functionality of image processing algorithms is insufficient to solve the problems of light sources and color rendering. Alternatively, while image quality can be improved, image processing algorithms may require a large amount of processing resources. Summary of the Invention
[0003] This disclosure presents an image correction method, apparatus, electronic device, and storage medium.
[0004] According to one aspect of this disclosure, an image correction method is provided, comprising: acquiring quantum dot spectral information of ambient light; determining the color rendering properties of multiple bands of ambient light based on the quantum dot spectral information; performing color rendering property compensation processing on a first band whose color rendering property is less than or equal to a first threshold to obtain adjusted quantum dot spectral information; and performing correction processing on an image to be processed based on the quantum dot spectral information to obtain a corrected image to be processed.
[0005] In one possible implementation, color rendering compensation processing is performed on the first band whose color rendering is less than or equal to a first threshold, including at least one of: performing saturation compensation processing on the first band or performing natural saturation compensation processing on the quantum dot spectral information.
[0006] In one possible implementation, color rendering compensation processing is performed on the first band whose color rendering is less than or equal to a first threshold, including at least one of hue correction processing and lightness correction processing on the first band.
[0007] In one possible implementation, the method further includes: performing saturation de-saturation processing on a second band with a saturation greater than or equal to a second threshold to obtain adjusted quantum dot spectral information.
[0008] In one possible implementation, the image to be processed is corrected based on the quantum dot spectral information to obtain a corrected image, including: determining the color information of ambient light based on the adjusted quantum dot spectral information; and performing color correction processing on the image to be processed based on the color information to obtain a corrected image.
[0009] In one possible implementation, the image to be processed is corrected based on the quantum dot spectral information to obtain a corrected image, including: determining the white balance information of ambient light based on the adjusted quantum dot spectral information; and performing white balance correction processing on the image to be processed based on the white balance information to obtain a corrected image.
[0010] According to one aspect of this disclosure, an image correction apparatus is provided, comprising: an acquisition module for acquiring quantum dot spectral information of ambient light; a color rendering module for determining the color rendering properties of multiple bands of ambient light based on the quantum dot spectral information; a compensation module for performing color rendering compensation processing on a first band whose color rendering property is less than or equal to a first threshold to obtain adjusted quantum dot spectral information; and a correction module for performing correction processing on an image to be processed based on the quantum dot spectral information to obtain a corrected image to be processed.
[0011] In one possible implementation, the compensation module is further configured to: perform saturation compensation processing on the first band or perform natural saturation compensation processing on the quantum dot spectral information, at least one of these two methods.
[0012] In one possible implementation, the compensation module is further configured to perform at least one of hue correction processing and brightness correction processing on the first band.
[0013] In one possible implementation, the device further includes a saturation reduction module for performing saturation reduction processing on a second band with a saturation greater than or equal to a second threshold to obtain adjusted quantum dot spectral information.
[0014] In one possible implementation, the correction module is further configured to: determine the color information of ambient light based on the adjusted quantum dot spectral information; and perform color correction processing on the image to be processed based on the color information to obtain the corrected image to be processed.
[0015] In one possible implementation, the correction module is further configured to: determine the white balance information of ambient light based on the adjusted quantum dot spectral information; and perform white balance correction processing on the image to be processed based on the white balance information to obtain the corrected image to be processed.
[0016] According to one aspect of this disclosure, an electronic device is provided, comprising: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to perform the image correction method described above.
[0017] According to one aspect of this disclosure, a computer-readable storage medium is provided that stores computer program instructions thereon, which, when executed by a processor, implement the above-described image correction method.
[0018] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure.
[0019] Other features and aspects of this disclosure will become clear from the following detailed description of exemplary embodiments with reference to the accompanying drawings. Attached Figure Description
[0020] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this disclosure and, together with the specification, serve to illustrate the technical solutions of this disclosure.
[0021] Figure 1 A flowchart illustrating an image correction method according to an embodiment of the present disclosure is shown;
[0022] Figure 2 A schematic diagram illustrating the application of the image correction method according to an embodiment of the present disclosure is shown.
[0023] Figure 3 A block diagram of an image correction apparatus according to an embodiment of the present disclosure is shown;
[0024] Figure 4 A block diagram of an electronic device according to an embodiment of the present disclosure is shown;
[0025] Figure 5 Another block diagram of an electronic device according to an embodiment of the present disclosure is shown. Detailed Implementation
[0026] Various exemplary embodiments, features, and aspects of this disclosure will now be described in detail with reference to the accompanying drawings. The same reference numerals in the drawings denote elements that have the same or similar functions. Although various aspects of the embodiments are shown in the drawings, they are not necessarily drawn to scale unless specifically indicated otherwise.
[0027] The term “exemplary” as used herein means “serving as an example, embodiment, or illustration.” Any embodiment illustrated herein as “exemplary” is not necessarily to be construed as superior to or better than other embodiments.
[0028] In this document, the term "and / or" is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent three cases: A alone, A and B simultaneously, and B alone. Furthermore, the term "at least one" in this document means any combination of at least two of any one or more elements. For example, including at least one of A, B, and C can mean including any one or more elements selected from the set consisting of A, B, and C.
[0029] Furthermore, to better illustrate this disclosure, numerous specific details are set forth in the following detailed description. Those skilled in the art will understand that this disclosure can be practiced without certain specific details. In some instances, methods, means, components, and circuits well known to those skilled in the art have not been described in detail in order to highlight the main points of this disclosure.
[0030] Figure 1 A flowchart illustrating an image correction method according to an embodiment of the present disclosure is shown, such as... Figure 1 As shown, the method includes:
[0031] In step S11, the quantum dot spectral information of ambient light is acquired;
[0032] In step S12, the color rendering properties of multiple bands of ambient light are determined based on the quantum dot spectral information.
[0033] In step S13, colorimetric compensation processing is performed on the first band whose colorimetric properties are less than or equal to the first threshold to obtain the adjusted quantum dot spectral information;
[0034] In step S14, the image to be processed is corrected based on the quantum dot spectral information to obtain the corrected image to be processed.
[0035] The image correction method according to embodiments of this disclosure can determine the color rendering properties of multiple bands of ambient light using quantum dot spectral information, and compensate for insufficient color rendering properties in bands. This ensures sufficient color rendering properties in all bands of ambient light, resulting in higher color fidelity in the captured image. Furthermore, due to accurate color rendering, it eliminates the need for extensive processing resources to calculate and correct color parameters, thus improving processing efficiency.
[0036] In one possible implementation, in step S11, the quantum dot spectral information of ambient light can be acquired through a quantum dot filter array. The quantum dot filter array can be positioned at the upper edge of the terminal to directly measure the quantum dot spectral information of light sources above (e.g., lamps). For example, it can be positioned at the upper edge of a mobile phone to directly measure the quantum dot spectral information of light sources such as lamps and sunlight above the phone. The quantum dot spectral information is then transmitted to the processing component via a wired connection or other means for correcting images captured by the mobile phone camera. The quantum dot filter array can include multiple quantum dot filters, each capable of sensing ambient light of different wavelengths. The ambient light of a predetermined wavelength sensed by each quantum dot filter can form spectral line information for that wavelength. Multiple quantum dot filters can obtain spectral line information of multiple wavelengths at any location in the environment, i.e., the spectral information of the incident light at that location. The spectral information at each location can be represented as quantum dot pixel information on the image, i.e., the quantum dot spectral information of each pixel in the image to be processed. Multiple quantum dot filters increase the number of incident light channels. Each quantum dot filter corresponds to spectral line information across multiple wavelengths, which can constitute more finely segmented spectral information, i.e., ambient light spectral information. This spectral information can accurately distinguish similar colors, thus improving the accuracy of color information. Furthermore, quantum dot filters can sense ambient light of a preset wavelength through fluorescence. In related technologies, ordinary filters can filter out ambient light of other wavelengths, retaining only ambient light of the preset wavelength. Quantum dot filters, however, not only retain ambient light of the preset wavelength but also emit fluorescence of the preset wavelength when illuminated by ambient light, thereby enhancing the ambient light of the preset wavelength and increasing its luminous flux, resulting in richer color information. The spectral information obtained through a quantum dot filter array has a finely segmented wavelength and rich information content, providing richer and more accurate color information.
[0037] In one possible implementation, in step S12, the color rendering index (CRI) of multiple bands in the ambient light can be determined based on the quantum dot spectral information of the ambient light. CRI refers to the ability of a light source to reproduce the visual perception of an object under sunlight. Typically, the CRI (color rendering index) is used to represent the CRI of a light source. In the example, sunlight has a CRI of 100, while artificial light sources have a lower CRI than sunlight. The CRI can be used to represent the CRI of multiple bands of light. For example, incandescent lamps have good CRI in the blue and yellow bands (in the example, the CRI of the blue and yellow bands can be greater than 90). Blue or yellow objects photographed under incandescent lamps have high color fidelity, approaching the level of yellow or blue objects photographed under sunlight. However, incandescent lamps have poor color rendering in the green band (in the example, the CRI of the green band is less than 80), resulting in lower color reproduction of green objects photographed under incandescent lamps. Compared to green objects photographed under sunlight, green objects photographed under incandescent lamps may exhibit color differences.
[0038] In one possible implementation, quantum dot spectral information is spectral information with more finely divided bands; that is, quantum dot spectral information can have more bands, allowing for more accurate differentiation of multiple bands of light, i.e., more accurate differentiation of multiple colors of light. Quantum dot spectral information can represent the spectral information of ambient light under illumination, i.e., the spectrum of the multiple colors of light that make up the ambient light. The color rendering index (CRI) of each color can be determined based on the spectra of multiple colors of light. For example, the color coordinates of each color in the light source can be determined, along with optical parameters such as color temperature. Subsequently, the color coordinates of the light reflected from the multiple colors can be determined. Then, one or more scores representing CRI can be obtained by looking up the two color coordinates. Furthermore, the CRI of each color can be determined based on these CRI scores. In this example, the quantum dot spectrometer can distinguish more bands of light; therefore, the CRI of more colors can be determined using the above method, improving the accuracy of CRI.
[0039] In one possible implementation, in step S13, color rendering compensation can be performed on the bands with insufficient color rendering. That is, by obtaining the spectral information of the light source, the bands with insufficient color rendering in the light source are determined, and the color rendering of the colors corresponding to the light in that band in the image is compensated. For example, the saturation of the color is compensated, or the color balance of the color is corrected. This disclosure does not limit the specific method of color rendering compensation.
[0040] In one possible implementation, taking saturation compensation as an example, light with insufficient color rendering (e.g., a first band with a CRI less than or equal to a preset first threshold) may appear as having poor color rendering in an image, causing color difference. For example, in the above example, the CRI of the green band is less than 80, and a green object photographed under incandescent light may have a color difference compared to a green object photographed under sunlight. This color difference may be caused by saturation deviation, or by deviation in hue or lightness. The aforementioned color parameters can be corrected to reduce the color difference. In this example, the first threshold can be set as needed, for example, it can be set to a parameter such as 50. This disclosure does not limit the specific value of the first threshold.
[0041] In one possible implementation, step S13 may include at least one of performing saturation compensation processing on the first band or performing natural saturation compensation processing on the quantum dot spectral information.
[0042] In the example, the poor color rendering of the first band of light is due to insufficient saturation of the first band of light, which can be compensated for by increasing the saturation of the light in that band.
[0043] In the example, compensation could include adjusting the saturation or vibrancy of the light in that wavelength band. For instance, the saturation parameter of the light in that wavelength band could be increased to make the colors of the light in that band appear more vibrant in the image, approximating the color of the light in that wavelength band under sunlight. In the example, the quantum dot spectral information could include color parameters for multiple wavelength bands, including saturation parameters. The saturation parameter of the first wavelength band in the quantum dot spectral information could be increased, for example, by adjusting it so that the CRI of the first wavelength band reaches above a first threshold.
[0044] For example, the natural saturation of quantum dot spectral information can be adjusted. This involves gradually adjusting the saturation of multiple wavelengths with insufficient color rendering in the quantum dot spectral information, resulting in higher saturation and color fidelity for each wavelength while maintaining contrast between them. This prevents oversaturation in any particular wavelength after saturation compensation. For instance, there may be multiple wavelengths with insufficient color rendering in the quantum dot spectral information. After adjusting the natural saturation, the saturation of some wavelengths may still not reach the first threshold, but the display effect of these wavelengths in the image will be softer, and their combination with other colors will be more natural, avoiding excessive brightness (i.e., oversaturation).
[0045] In this way, by compensating for saturation or vibrancy, the color rendering of light in each band of the adjusted quantum dot spectral information can be improved, resulting in a higher color fidelity of the obtained image.
[0046] In one possible implementation, the quantum dot spectral information may contain bands with excessively high saturation. These bands might appear overly vibrant in images, resulting in unnatural colors. For example, while some colors with high saturation may appear vivid, their appearance in images may be unnatural, leading to poor color reproduction. For instance, if the saturation of human skin is too high, the color will appear too vibrant in an image, not improving color reproduction but rather making the image unnatural and resulting in poor display quality. Therefore, adjusting the excessively saturated bands can improve the color reproduction of the image.
[0047] In one possible implementation, the method further includes: performing saturation de-saturation processing on a second band with a saturation greater than or equal to a second threshold to obtain adjusted quantum dot spectral information.
[0048] In the example, the color information of each band in the quantum dot spectral information can be used to obtain the saturation of light in each band, and the saturation of light exceeding a second saturation threshold can be reduced. For example, the saturation of light in that band can be adjusted to below the second threshold, resulting in higher color fidelity and a more natural display effect. For instance, if the saturation of a certain band is too high, causing the colors to be too vibrant and resulting in an unrealistic visual effect, the saturation of the color in that band can be reduced, that is, the saturation of the color in that band can be reduced to below the second threshold. The second threshold can be set as needed, for example, the second threshold can be set to a value of 60 (i.e., CRI is 60), etc. The specific value of the second threshold disclosed herein is not limited.
[0049] In one possible implementation, the poor color rendering of the light in the first band is due to deviations in hue or lightness. Step S13 may include performing at least one of hue correction processing and lightness correction processing on the first band.
[0050] For example, the color rendering properties of the first wavelength of light are poor, resulting in low color fidelity. Adjusting the hue of this wavelength can correct the color deviation and improve color fidelity. Similarly, the color fidelity of green objects under incandescent light is low, meaning the green light has poor color rendering properties, leading to color differences in the captured image. Adjusting the hue of the green light can correct these color differences and improve the color fidelity of green in the image.
[0051] For example, the color rendering properties of the first wavelength of light are poor, resulting in low color fidelity. Adjusting the brightness of this wavelength can improve color fidelity. Similarly, green objects under incandescent light have low color fidelity, meaning the green light has poor color rendering, resulting in a dull green in the captured image and color difference. Adjusting the brightness of the green light can make the green more vibrant, thus improving the color fidelity of green in the image.
[0052] In one possible implementation, step S14 may include: determining the color information of ambient light based on the adjusted quantum dot spectral information; and performing color correction processing on the image to be processed based on the color information to obtain the corrected image to be processed.
[0053] In the example, the above-described step of adjusting color rendering can adjust the color information of the first band in the quantum dot spectral information, that is, the saturation parameter, hue parameter, and / or brightness parameter of the first band. For example, the saturation of green under incandescent light is low, meaning the saturation parameter of the green band in the quantum dot spectral information is small, and the saturation parameter of the green band in the quantum dot spectral information can be adjusted. The quantum dot spectral information after adjusting this parameter can then be used to correct the image to be processed. For example, the saturation of green in the image can be corrected to obtain a corrected image, resulting in a higher color fidelity of green in the image.
[0054] In one possible implementation, step S14 may include: determining the white balance information of ambient light based on the adjusted quantum dot spectral information; and performing white balance correction processing on the image to be processed based on the white balance information to obtain the corrected image to be processed.
[0055] In the example, white balance information can also be obtained based on the adjusted quantum dot spectral information. This white balance information is an indicator of the accuracy of white when the red, green, and blue primary colors in an image are mixed to generate white. If the white balance accuracy is low, color differences may occur. For example, an image taken in a room with fluorescent lighting will appear greenish, an image taken under indoor tungsten lighting will appear yellowish, and an image taken in sunlight shadows will appear bluish. If there are bands in the spectrum with insufficient color rendering, deviations may occur when correcting the white balance. For example, because bands with lower color rendering are dimmer in the image, the light in these bands is unbalanced (too low) in the generated white, causing the generated white to lean towards bands with higher color rendering, thus making the white inaccurate. Therefore, white balance information can be determined using the adjusted quantum dot spectral information, and white balance correction processing can be performed on the image to be processed, making the colors in each band more accurate and reducing color differences in the image.
[0056] The image correction method according to embodiments of this disclosure can determine the color rendering properties of multiple bands of ambient light using quantum dot spectral information, and compensate for insufficient color rendering properties by processing saturation or vibrancy, or by adjusting hue or brightness. This ensures sufficient color rendering properties across all bands of ambient light, resulting in more accurate colors and white balance in the captured image, leading to higher color reproduction. Furthermore, due to the accurate color rendering, it eliminates the need for extensive processing resources to calculate and correct color parameters, thus improving processing efficiency.
[0057] Figure 2 This diagram illustrates an application of the image correction method according to an embodiment of the present disclosure. Figure 2 The graph shows the color rendering index (CRI) of sunlight, fluorescent lamps with a color temperature of 3000K, halogen lamps, and LED lamps with a color temperature of 3000K across various wavelengths. In each graph, the horizontal axis represents multiple wavelengths within the quantum dot spectral information, and the vertical axis represents the CRI.
[0058] In the example, sunlight has a high CRI across all wavelengths, while fluorescent lamps, halogen lamps, and LED lamps with a color temperature of 3000K all have wavelengths with low color rendering.
[0059] In the example, the low color rendering index (CRI) may be due to insufficient saturation. This can be addressed by compensating for the saturation of bands in the quantum dot spectral information of each light source where the CRI is less than or equal to a first threshold, thus bringing the adjusted band's CRI to the first threshold. Alternatively, natural saturation compensation can be applied to the quantum dot spectral information of each light source, which can improve the saturation of bands with low CRI without making the light in those bands appear overly vibrant in the image.
[0060] In the example, the low color rendering might be due to hue or lightness deviation. Correcting the hue deviation or adjusting the lightness of that band can improve its color rendering, resulting in higher color fidelity in the image.
[0061] In the example, the color correction or white balance correction of the image can be performed using the quantum dot spectral information that has undergone the above compensation process, so as to improve the color reproduction of the corrected image.
[0062] In one possible implementation, the image correction method can be used for color correction of images to improve color fidelity. It can also be used in other image processing fields, such as for precise color optimization and color transformation of various colors in an image. This disclosure does not limit the application areas of the image correction method.
[0063] Figure 3 A block diagram of an image correction apparatus according to an embodiment of the present disclosure is shown, such as Figure 3 As shown, the device includes: an acquisition module 11 for acquiring quantum dot spectral information of ambient light; a color rendering module 12 for determining the color rendering properties of multiple bands of ambient light based on the quantum dot spectral information; a compensation module 13 for performing color rendering compensation processing on a first band whose color rendering property is less than or equal to a first threshold to obtain adjusted quantum dot spectral information; and a correction module 14 for performing correction processing on the image to be processed based on the quantum dot spectral information to obtain a corrected image to be processed.
[0064] In one possible implementation, the compensation module is further configured to: perform saturation compensation processing on the first band or perform natural saturation compensation processing on the quantum dot spectral information, at least one of these two methods.
[0065] In one possible implementation, the compensation module is further configured to perform at least one of hue correction processing and brightness correction processing on the first band.
[0066] In one possible implementation, the device further includes a saturation reduction module for performing saturation reduction processing on a second band with a saturation greater than or equal to a second threshold to obtain adjusted quantum dot spectral information.
[0067] In one possible implementation, the correction module is further configured to: determine the color information of ambient light based on the adjusted quantum dot spectral information; and perform color correction processing on the image to be processed based on the color information to obtain the corrected image to be processed.
[0068] In one possible implementation, the correction module is further configured to: determine the white balance information of ambient light based on the adjusted quantum dot spectral information; and perform white balance correction processing on the image to be processed based on the white balance information to obtain the corrected image to be processed.
[0069] It is understood that the various method embodiments mentioned above in this disclosure can be combined with each other to form combined embodiments without violating the principle and logic. Due to space limitations, this disclosure will not elaborate further.
[0070] In addition, this disclosure also provides an image correction apparatus, an electronic device, a computer-readable storage medium, and a program, all of which can be used to implement any of the image correction methods provided in this disclosure. The corresponding technical solutions and descriptions are described in the corresponding descriptions in the method section and will not be repeated here.
[0071] Those skilled in the art will understand that, in the above-described method of the specific implementation, the order in which each step is written does not imply a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of each step should be determined by its function and possible internal logic.
[0072] In some embodiments, the apparatus provided in this disclosure may have functions or include modules that can be used to perform the methods described in the above method embodiments. Specific implementations can be referred to the descriptions in the above method embodiments, and for brevity, will not be repeated here.
[0073] This disclosure also proposes a computer-readable storage medium storing computer program instructions that, when executed by a processor, implement the above-described method. The computer-readable storage medium may be a non-volatile computer-readable storage medium.
[0074] This disclosure also proposes an electronic device, including: a processor; and a memory for storing processor-executable instructions; wherein the processor is configured as described above.
[0075] Electronic devices can be provided as terminals, servers, or other forms of devices.
[0076] Figure 4 This is a block diagram illustrating an electronic device 800 according to an exemplary embodiment. For example, the electronic device 800 may be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, or other terminal.
[0077] Reference Figure 4 The electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power supply component 806, a multimedia component 808, an audio component 810, an input / output (I / O) interface 812, a sensor component 814, and a communication component 816.
[0078] Processing component 802 typically controls the overall operation of electronic device 800, such as operations associated with display, telephone calls, data communication, camera operation, and recording operations. Processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the methods described above. Furthermore, processing component 802 may include one or more modules to facilitate interaction between processing component 802 and other components. For example, processing component 802 may include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802.
[0079] Memory 804 is configured to store various types of data to support the operation of electronic device 800. Examples of this data include instructions for any application or method operating on electronic device 800, contact data, phonebook data, messages, pictures, videos, etc. Memory 804 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 storage, flash memory, magnetic disk, or optical disk.
[0080] Power supply component 806 provides power to various components of electronic device 800. Power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to electronic device 800.
[0081] Multimedia component 808 includes a screen that provides an output interface between the electronic device 800 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 touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of the touch or swipe action but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 808 includes a front-facing camera and / or a rear-facing camera. When the electronic device 800 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
[0082] Audio component 810 is configured to output and / or input audio signals. For example, audio component 810 includes a microphone (MIC) configured to receive external audio signals when electronic device 800 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 804 or transmitted via communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
[0083] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.
[0084] Sensor assembly 814 includes one or more sensors for providing state assessments of various aspects of electronic device 800. For example, sensor assembly 814 can detect the on / off state of electronic device 800, the relative positioning of components such as the display and keypad of electronic device 800, changes in position of electronic device 800 or a component of electronic device 800, the presence or absence of user contact with electronic device 800, orientation or acceleration / deceleration of electronic device 800, and temperature changes of electronic device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 814 may also include an accelerometer, gyroscope, magnetometer, pressure sensor, or temperature sensor.
[0085] Communication component 816 is configured to facilitate wired or wireless communication between electronic device 800 and other devices. Electronic device 800 can access wireless networks based on communication standards, such as WiFi, 2G, or 3G, or combinations thereof. In one exemplary embodiment, communication component 816 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 816 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0086] In an exemplary embodiment, the electronic device 800 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 perform the methods described above.
[0087] In an exemplary embodiment, a non-volatile computer-readable storage medium is also provided, such as a memory 804 including computer program instructions that can be executed by a processor 820 of an electronic device 800 to perform the above-described method.
[0088] Figure 5 This is a block diagram illustrating an electronic device 1900 according to an exemplary embodiment. For example, the electronic device 1900 may be provided as a server. (Refer to...) Figure 5The electronic device 1900 includes a processing component 1922, which further includes one or more processors, and memory resources represented by memory 1932 for storing instructions executable by the processing component 1922, such as application programs. The application programs stored in memory 1932 may include one or more modules, each corresponding to a set of instructions. Furthermore, the processing component 1922 is configured to execute instructions to perform the methods described above.
[0089] Electronic device 1900 may also include a power supply component 1926 configured to perform power management of electronic device 1900, a wired or wireless network interface 1950 configured to connect electronic device 1900 to a network, and an input / output (I / O) interface 1958. Electronic device 1900 can operate on an operating system, such as Windows Server, stored in memory 1932. TM Mac OS XTM Unix TM Linux TM FreeBSD TM Or similar.
[0090] In an exemplary embodiment, a non-volatile computer-readable storage medium is also provided, such as a memory 1932 including computer program instructions that can be executed by a processing component 1922 of an electronic device 1900 to perform the above-described method.
[0091] This disclosure can be a system, method, and / or computer program product. A computer program product may include a computer-readable storage medium having computer-readable program instructions loaded thereon for causing a processor to implement various aspects of this disclosure.
[0092] Computer-readable storage media can be tangible devices capable of holding and storing instructions for use by an instruction execution device. Computer-readable storage media can be, for example—but not limited to—electrical storage devices, magnetic storage devices, optical storage devices, electromagnetic storage devices, semiconductor storage devices, or any suitable combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static random access memory (SRAM), portable compact disc read-only memory (CD-ROM), digital multifunction disc (DVD), memory sticks, floppy disks, mechanical encoding devices, such as punch cards or recessed protrusions storing instructions thereon, and any suitable combination thereof. The computer-readable storage media used herein are not to be construed as transient signals themselves, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (e.g., light pulses through fiber optic cables), or electrical signals transmitted through wires.
[0093] The computer-readable program instructions described herein can be downloaded from computer-readable storage media to various computing / processing devices, or downloaded via a network, such as the Internet, local area network, wide area network, and / or wireless network, to an external computer or external storage device. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. A network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards them to the computer-readable storage media in the respective computing / processing device.
[0094] Computer program instructions used to perform the operations of this disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, status setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages such as Smalltalk, C++, etc., and conventional procedural programming languages such as the "C" language or similar programming languages. The computer-readable program instructions may execute entirely on the user's computer, partially on the user's computer, as a standalone 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). In some embodiments, electronic circuitry, such as programmable logic circuitry, field-programmable gate arrays (FPGAs), or programmable logic arrays (PLAs), is personalized by utilizing the status information of the computer-readable program instructions to implement various aspects of this disclosure.
[0095] Various aspects of this disclosure are described herein with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this disclosure. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer-readable program instructions.
[0096] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine such that, when executed by the processor of the computer or other programmable data processing apparatus, they create means for implementing the functions / actions specified in one or more blocks of the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium that causes a computer, programmable data processing apparatus, and / or other device to operate in a particular manner; thus, the computer-readable medium storing the instructions comprises an article of manufacture that includes instructions for implementing aspects of the functions / actions specified in one or more blocks of the flowchart and / or block diagram.
[0097] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to perform the functions / actions specified in one or more boxes of a flowchart and / or block diagram.
[0098] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of an instruction containing one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions marked in the blocks may occur in a different order than those shown in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.
[0099] The various embodiments of this disclosure have been described above. These descriptions are exemplary and not exhaustive, nor are they limited to the disclosed embodiments. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen to best explain the principles, practical application, or improvement of the technology in the market, or to enable others skilled in the art to understand the embodiments disclosed herein.
Claims
1. An image correction method, characterized in that, include: Acquire quantum dot spectral information of ambient light; Based on the quantum dot spectral information, the color rendering properties of multiple bands of ambient light are determined; Colorimetric compensation processing is performed on the first band whose colorimetric properties are less than or equal to the first threshold to obtain the adjusted quantum dot spectral information; Based on the adjusted quantum dot spectral information, the image to be processed is corrected to obtain the corrected image to be processed. Wherein, the color rendering property is represented by the color rendering index (CRI), and the color rendering property compensation processing for the first band whose color rendering property is less than or equal to a first threshold includes: At least one of the following: performing saturation compensation processing on the first band, performing natural saturation compensation processing on the quantum dot spectral information, performing hue correction processing on the first band, and performing brightness correction processing on the first band.
2. The method according to claim 1, characterized in that, The method further includes: The second band with a saturation greater than or equal to the second threshold is subjected to saturation de-saturation processing to obtain the adjusted quantum dot spectral information.
3. The method according to claim 1, characterized in that, Based on the adjusted quantum dot spectral information, the image to be processed is corrected to obtain a corrected image, including: Based on the adjusted quantum dot spectral information, the color information of the ambient light is determined; Based on the color information, color correction processing is performed on the image to be processed to obtain the corrected image.
4. The method according to claim 1, characterized in that, Based on the adjusted quantum dot spectral information, the image to be processed is corrected to obtain a corrected image, including: Based on the adjusted quantum dot spectral information, the white balance information of the ambient light is determined; Based on the white balance information, white balance correction is performed on the image to be processed to obtain the corrected image.
5. An image correction device, characterized in that, The device includes: The acquisition module is used to acquire quantum dot spectral information of ambient light; A color rendering module is used to determine the color rendering properties of multiple bands of ambient light based on the quantum dot spectral information. The compensation module is used to perform colorimetric compensation processing on the first band whose colorimetric properties are less than or equal to the first threshold, so as to obtain the adjusted quantum dot spectral information. The correction module is used to perform correction processing on the image to be processed based on the adjusted quantum dot spectral information to obtain the corrected image to be processed. Wherein, the color rendering property is represented by the color rendering index (CRI), and the compensation module is further used to: perform saturation compensation processing on the first band, perform natural saturation compensation processing on the quantum dot spectral information, perform hue correction processing on the first band, and perform lightness correction processing at least one of the following:
6. An electronic device, characterized in that, include: processor; Memory used to store processor-executable instructions; The processor is configured to execute the method described in any one of claims 1 to 4.
7. A computer-readable storage medium having computer program instructions stored thereon, characterized in that, When the computer program instructions are executed by the processor, they implement the method described in any one of claims 1 to 4.