CN115631113B - Image correction method and system - Google Patents

Image correction method and system Download PDF

Info

Publication number
CN115631113B
CN115631113B CN202211553026.XA CN202211553026A CN115631113B CN 115631113 B CN115631113 B CN 115631113B CN 202211553026 A CN202211553026 A CN 202211553026A CN 115631113 B CN115631113 B CN 115631113B
Authority
CN
China
Prior art keywords
image
brightness
area
corrected
similarity
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202211553026.XA
Other languages
Chinese (zh)
Other versions
CN115631113A (en
Inventor
宋成龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Weilaixin Technology Co ltd
Original Assignee
Shenzhen Weilaixin Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Weilaixin Technology Co ltd filed Critical Shenzhen Weilaixin Technology Co ltd
Priority to CN202211553026.XA priority Critical patent/CN115631113B/en
Publication of CN115631113A publication Critical patent/CN115631113A/en
Application granted granted Critical
Publication of CN115631113B publication Critical patent/CN115631113B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • G06T5/77
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/50Image enhancement or restoration by the use of more than one image, e.g. averaging, subtraction
    • G06T5/73
    • G06T5/90
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/60Extraction of image or video features relating to illumination properties, e.g. using a reflectance or lighting model
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/74Image or video pattern matching; Proximity measures in feature spaces
    • G06V10/761Proximity, similarity or dissimilarity measures

Abstract

The invention is suitable for the technical field of image processing, and provides an image correction method and an image correction system, wherein the method comprises the following steps: receiving a flash lamp starting photographing instruction, and continuously photographing two images to obtain a first image and a second image, wherein the first image is obtained by starting flash lamp photographing, and the second image is obtained by closing flash lamp photographing; identifying a light reflection area in the first image and determining the light reflection area to be corrected; enhancing the second image according to the first image to improve the brightness of the second image; determining a replacement area in the second image according to the position of the light reflecting area to be corrected in the first image; and replacing the light area to be modified in the first image by the replacement area, carrying out attenuation and blurring processing on the edge of the replacement area in the first image, and outputting the modified first image. Therefore, the output first image has no light reflecting area, and meets the requirements of users better.

Description

Image correction method and system
Technical Field
The invention relates to the technical field of image processing, in particular to an image correction method and system.
Background
Along with the rise of social networks, the demands of people on displaying and sharing life are further enhanced, the photographing function of the mobile terminal is more and more widely applied, people can share the photographed picture on the social platform, when the light brightness of the environment is insufficient, people can turn on a flash lamp on the mobile terminal to fill light and photograph, the obtained picture sometimes has a light reflection area, for example, glasses in the picture can reflect light, the forehead of a person in the picture can reflect light, and the like, and the attractiveness of the picture is further influenced. Therefore, it is desirable to provide an image correction method and system, which aim to solve the above problems.
Disclosure of Invention
In view of the shortcomings in the prior art, an object of the present invention is to provide an image correction method and system, so as to solve the problems in the background art.
The present invention is achieved as such, an image correction method comprising the steps of:
receiving a flash lamp starting photographing instruction, and continuously photographing two images to obtain a first image and a second image, wherein the first image is obtained by starting flash lamp photographing, and the second image is obtained by closing flash lamp photographing;
identifying a light reflection area in the first image and determining the light reflection area to be corrected;
enhancing the second image according to the first image to improve the brightness of the second image;
determining a replacement area in the second image according to the position of the light reflecting area to be corrected in the first image;
and replacing the light area to be modified in the first image by the replacement area, carrying out attenuation and blurring processing on the edge of the replacement area in the first image, and outputting the modified first image.
As a further scheme of the invention: the step of identifying the light reflection region in the first image and determining the light reflection region to be modified specifically includes:
extracting brightness information of all pixels in the first image;
judging brightness information, and determining a corresponding pixel as a high-brightness pixel when the brightness information is greater than a preset brightness value;
and marking the set consisting of the highlight pixels as the highlight area to be modified.
As a further scheme of the invention: the step of enhancing the second image according to the first image to improve the brightness of the second image specifically includes:
gradually increasing the brightness of the second image;
calculating the brightness similarity between the first image and the second image every time the brightness of the second image is increased by one level;
when the brightness of the second image is increased by one level, the brightness similarity after the brightness is increased is reduced compared with the brightness similarity before, the brightness of the second image is reduced by one level, and the brightness of the second image is enhanced.
As a further scheme of the invention: the step of calculating the brightness similarity between the first image and the second image specifically includes:
comparing the brightness information of each pixel of the first image except the light area needing to be corrected with the brightness information of the pixel at the corresponding position in the second image;
obtaining the first pixel quantity with the same brightness and the second pixel quantity with different brightness in the first image and the second image;
and calculating to obtain the brightness similarity, wherein the brightness similarity = the first pixel number/(the first pixel number + the second pixel number).
As a further scheme of the invention: the method further comprises optimizing the image, specifically:
carrying out integral sharpening processing on the corrected first image;
an eyeball in the first image is identified, and highlight white dots are added to the eyeball.
Another object of the present invention is to provide an image correction system, comprising:
the device comprises a continuous shooting image module, a first image processing module and a second image processing module, wherein the continuous shooting image module is used for receiving a flash lamp starting shooting instruction and continuously shooting two images to obtain a first image and a second image, the first image is obtained by starting flash lamp shooting, and the second image is obtained by closing flash lamp shooting;
the light reflecting area module to be corrected is used for identifying the light reflecting area in the first image and determining the light reflecting area to be corrected;
the second image enhancement module is used for enhancing the second image according to the first image and improving the brightness of the second image;
the alternate area determining module is used for determining an alternate area in the second image according to the position of the light reflecting area to be corrected in the first image;
and the area replacement and correction module is used for replacing the light area to be corrected in the first image by using the replacement area, performing attenuation and fuzzy processing on the edge of the replacement area in the first image, and outputting the corrected first image.
As a further scheme of the invention: the light reflecting area module to be corrected comprises:
a luminance information extraction unit for extracting luminance information of all pixels in the first image;
the brightness information judging unit is used for judging the brightness information, and when the brightness information is larger than a preset brightness value, the corresponding pixel is determined to be a high-brightness pixel;
and the light reflection area determining unit is used for marking the set formed by the highlight pixels as the light reflection area to be modified.
As a further scheme of the invention: the second image enhancement module comprises:
a brightness adjusting unit for increasing the brightness of the second image step by step;
a brightness similarity calculation unit for calculating a brightness similarity between the first image and the second image for each level of increase in brightness of the second image;
and a brightness enhancement completion unit, configured to reduce the brightness of the second image by one step when the brightness of the second image is increased by one step and the brightness similarity after the brightness increase is lower than the brightness similarity before.
As a further scheme of the invention: the luminance similarity calculation unit includes:
the brightness information comparison subunit is used for comparing the brightness information of each pixel of the first image except the light area needing to be corrected with the brightness information of the pixel at the corresponding position in the second image;
the image processing device comprises a pixel number determining subunit, a brightness determining subunit and a brightness determining subunit, wherein the pixel number determining subunit is used for obtaining a first pixel number with the same brightness in a first image and a second pixel number with different brightness in a second image;
and the similarity operator unit is used for calculating and obtaining the brightness similarity, and the brightness similarity = the first pixel number/(the first pixel number + the second pixel number).
As a further scheme of the invention: the system further comprises an image optimization module, wherein the image optimization module specifically comprises:
a sharpening processing unit for performing overall sharpening processing on the corrected first image;
and a highlight white dot adding unit for identifying the eyeball in the first image and adding the highlight white dots on the eyeball.
Compared with the prior art, the invention has the beneficial effects that:
when receiving a flash lamp starting photographing instruction, the invention can automatically and continuously photograph two images to obtain a first image and a second image, wherein the first image is obtained by starting the flash lamp and the second image is obtained by closing the flash lamp; identifying a light reflection area in the first image and determining the light reflection area to be corrected; enhancing the second image according to the first image to improve the brightness of the second image; determining a replacement area in the second image according to the position of the light reflecting area to be corrected in the first image; and finally, replacing the light area needing to be modified in the first image by the replacement area, carrying out attenuation and blurring processing on the edge of the replacement area in the first image, and outputting the modified first image. Therefore, the output first image has no light reflecting area, and meets the requirements of users better.
Drawings
Fig. 1 is a flowchart of an image correction method.
Fig. 2 is a flowchart of an image correction method for identifying a reflective region in a first image and determining a reflective region to be corrected.
Fig. 3 is a flowchart of an image correction method for enhancing a second image according to a first image to increase the brightness of the second image.
Fig. 4 is a flowchart of calculating a luminance similarity between a first image and a second image in an image correction method.
Fig. 5 is a flowchart of optimizing an image in an image correction method.
Fig. 6 is a schematic structural diagram of an image correction system.
Fig. 7 is a schematic structural diagram of a module requiring a reflective area correction in an image correction system.
FIG. 8 is a diagram illustrating a second image enhancement module of an image correction system.
Fig. 9 is a schematic structural diagram of a luminance similarity calculation unit in an image correction system.
Fig. 10 is a schematic structural diagram of an image optimization module in an image correction system.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more clear, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Specific implementations of the present invention are described in detail below with reference to specific embodiments.
As shown in fig. 1, an embodiment of the present invention provides an image correction method, including the following steps:
s100, receiving a flash lamp starting photographing instruction, and continuously photographing two images to obtain a first image and a second image, wherein the first image is obtained by starting flash lamp photographing, and the second image is obtained by closing flash lamp photographing;
s200, identifying a reflecting area in the first image, and determining the reflecting area needing to be corrected;
s300, enhancing the second image according to the first image to improve the brightness of the second image;
s400, determining a replacement area in the second image according to the position of the light reflecting area to be corrected in the first image;
s500, replacing the light area to be modified in the first image with the replacement area, performing attenuation and blurring processing on the edge of the replacement area in the first image, and outputting the modified first image.
It should be noted that, when the light brightness of the environment is not sufficient, people may turn on a flash lamp on the mobile terminal to perform light supplementing photographing, and the obtained photo may have a light reflection region, for example, glasses in the photo may reflect light, a forehead of a person in the photo may reflect light, and the like, so that the attractiveness of the photo is affected. Embodiments of the present invention aim to solve the above problems.
In the embodiment of the invention, when the condition that a user inputs a flash lamp starting photographing instruction to photograph is detected, two images are continuously photographed to obtain a first image and a second image, so that the positions of characters and scenes in the first image and the second image are completely the same, and subsequent replacement and use are facilitated; and then automatically identifying the light reflecting region in the first image, determining a light reflecting region to be corrected, enhancing the second image according to the first image, improving the brightness of the second image to enable the brightness of the second image to be equivalent to the brightness of the first image, and determining a replacement region in the second image according to the position of the light reflecting region to be corrected in the first image.
As shown in fig. 2, as a preferred embodiment of the present invention, the step of identifying the light-reflecting area in the first image and determining the light-reflecting area to be modified specifically includes:
s201, extracting brightness information of all pixels in a first image;
s202, judging brightness information, and determining a corresponding pixel as a high-brightness pixel when the brightness information is larger than a preset brightness value;
and S203, marking the set consisting of the highlight pixels as the highlight area needing to be modified.
In the embodiment of the invention, in order to determine the light reflection region to be corrected, the brightness information of each pixel in the first image needs to be extracted, and each brightness information is determined, when the brightness information is greater than a preset brightness value, the preset brightness value is a preset fixed value, the corresponding pixel is determined to be a highlight pixel, all the highlight pixels form a set, and the set is marked as the light reflection region to be corrected, that is, all the pixels in the set need to be corrected and replaced.
As shown in fig. 3, as a preferred embodiment of the present invention, the step of performing enhancement processing on the second image according to the first image to improve the brightness of the second image specifically includes:
s301, gradually increasing the brightness of the second image;
s302, calculating the brightness similarity between the first image and the second image every time the brightness of the second image is increased by one level;
and S303, when the brightness of the second image is increased by one level, the brightness similarity after the brightness is increased is reduced compared with the brightness similarity before, the brightness of the second image is reduced by one level, and the brightness of the second image is enhanced completely.
In the embodiment of the present invention, it is easy to understand that the brightness of the second image is lower than that of the first image, so the brightness of the second image needs to be increased, the brightness of the second image is automatically increased step by step, the brightness similarity between the first image and the second image is calculated each time the brightness of the second image is increased by one step, when the brightness of the second image is increased by one step, the brightness similarity after the brightness is increased is reduced compared with the brightness similarity before, the brightness of the second image is reduced by one step, and the brightness enhancement of the second image is completed. For example, when the brightness of the second image is increased to the ninth level, the brightness similarity between the first image and the second image is 95%, and when the brightness of the second image is increased to the tenth level, the brightness similarity between the first image and the second image is 93%, and then the increase to the ninth level is the final result of the brightness adjustment of the second image.
As shown in fig. 4, as a preferred embodiment of the present invention, the step of calculating the brightness similarity between the first image and the second image specifically includes:
s3021, comparing the brightness information of each pixel of the first image except the light area needing to be corrected with the brightness information of the pixel at the corresponding position in the second image;
s3022, obtaining a first pixel number with the same brightness in the first image and a second pixel number with different brightness in the second image;
s3023, calculating a luminance similarity, where the luminance similarity = the first number of pixels/(the first number of pixels + the second number of pixels).
In the embodiment of the invention, in order to calculate the brightness similarity, the brightness information of each pixel of the first image except the light correction area is compared with the brightness information of the pixel at the corresponding position in the second image, the comparison results are the same or different, all the comparison results are summarized, so that the first pixel number with the same brightness and the second pixel number with different brightness in the first image and the second image can be obtained, and the brightness similarity is further calculated.
As shown in fig. 5, as a preferred embodiment of the present invention, the method further includes optimizing the image, specifically:
s601, carrying out integral sharpening processing on the corrected first image;
s602, identifying an eyeball in the first image, and adding a highlight white dot on the eyeball.
In the embodiment of the present invention, in order to enhance the display effect of the image, the modified first image is subjected to overall sharpening, and in addition, in order to make the person in the image more vivid, the embodiment of the present invention automatically identifies the eyeball of the person in the first image, and adds highlight white dots on the eyeball, so that the eye of the person is brighter.
As shown in fig. 6, an embodiment of the present invention further provides an image correction system, where the system includes:
the continuous shooting image module 100 is configured to receive a flash lamp starting shooting instruction, and continuously shoot two images to obtain a first image and a second image, where the first image is obtained by starting flash lamp shooting, and the second image is obtained by closing flash lamp shooting;
the module 200 for the light reflecting area to be corrected is used for identifying the light reflecting area in the first image and determining the light reflecting area to be corrected;
the second image enhancement module 300 is configured to perform enhancement processing on the second image according to the first image, so as to improve the brightness of the second image;
a replacement region determining module 400, configured to determine a replacement region in the second image according to a position of the light-reflecting region to be corrected in the first image;
and the area replacement and correction module 500 is configured to replace the light area to be corrected in the first image with the replacement area, perform attenuation and blurring processing on the edge of the replacement area in the first image, and output the corrected first image.
In the embodiment of the invention, when the condition that a user inputs a flash lamp starting photographing instruction to photograph is detected, two images can be continuously photographed to obtain a first image and a second image, so that the positions of characters and scenes in the first image and the second image are completely the same, and the subsequent replacement use is facilitated; and then automatically identifying the light reflecting region in the first image, determining a light reflecting region to be corrected, enhancing the second image according to the first image, improving the brightness of the second image to enable the brightness of the second image to be equivalent to the brightness of the first image, and determining a replacement region in the second image according to the position of the light reflecting region to be corrected in the first image.
As shown in fig. 7, as a preferred embodiment of the present invention, the module 200 for reflecting light to be corrected includes:
a luminance information extraction unit 201 for extracting luminance information of all pixels in the first image;
a luminance information determination unit 202, configured to determine luminance information, and when the luminance information is greater than a preset luminance value, determine that a corresponding pixel is a highlight pixel;
a light reflection region determining unit 203, configured to mark the set of the highlight pixels as a light reflection region to be modified.
As shown in fig. 8, as a preferred embodiment of the present invention, the second image enhancement module 300 includes:
a brightness adjusting unit 301 for increasing the brightness of the second image step by step;
a brightness similarity calculation unit 302 for calculating a brightness similarity between the first image and the second image for each level of increase in brightness of the second image;
the brightness enhancement completion unit 303, when there is a brightness increase of the second image by one level, reduces the brightness similarity after the brightness increase from the previous brightness similarity, and is configured to reduce the brightness of the second image by one level, and complete the brightness enhancement of the second image.
In the embodiment of the present invention, it is easy to understand that the brightness of the second image is lower than that of the first image, so the brightness of the second image needs to be increased, the brightness of the second image is automatically increased step by step, the brightness similarity between the first image and the second image is calculated every time the brightness of the second image is increased by one step, when the brightness of the second image is increased by one step, the brightness similarity after the brightness is increased is reduced by one step compared with the brightness similarity before, and the brightness of the second image is increased by one step. For example, when the brightness of the second image is increased to the ninth level, the brightness similarity between the first image and the second image is 95%, and when the brightness of the second image is increased to the tenth level, the brightness similarity between the first image and the second image is 93%, and then the increase to the ninth level is the final result of the brightness adjustment of the second image.
As shown in fig. 9, as a preferred embodiment of the present invention, the luminance similarity calculation unit 302 includes:
a luminance information comparison subunit 3021 configured to compare luminance information of each pixel of the first image excluding the light-to-be-corrected region with luminance information of a pixel at a corresponding position in the second image;
a pixel number determination subunit 3022 configured to obtain a first pixel number having the same luminance in the first image and a second pixel number having different luminances in the second image;
a similarity operator unit 3023 configured to calculate a luminance similarity, where the luminance similarity = the first number of pixels/(the first number of pixels + the second number of pixels).
As shown in fig. 10, as a preferred embodiment of the present invention, the system further includes an image optimization module 600, where the image optimization module 600 specifically includes:
a sharpening processing unit 601 configured to perform overall sharpening processing on the corrected first image;
a highlight white dot adding unit 602, configured to identify an eyeball in the first image, and add a highlight white dot on the eyeball.
The present invention has been described in detail with reference to the preferred embodiments thereof, and it should be understood that the invention is not limited thereto, but is intended to cover modifications, equivalents, and improvements within the spirit and scope of the present invention.
It should be understood that, although the steps in the flowcharts of the embodiments of the present invention are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not limited to being performed in the exact order illustrated and, unless explicitly stated herein, may be performed in other orders. Moreover, at least a portion of the steps in various embodiments may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), rambus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

Claims (6)

1. An image correction method, characterized in that it comprises the steps of:
receiving a flash lamp starting photographing instruction, and continuously photographing two images to obtain a first image and a second image, wherein the first image is obtained by starting flash lamp photographing, and the second image is obtained by closing flash lamp photographing;
identifying a light reflection area in the first image and determining the light reflection area to be corrected;
enhancing the second image according to the first image to improve the brightness of the second image;
determining a replacement area in the second image according to the position of the light reflecting area to be corrected in the first image;
replacing the light area to be modified in the first image by the replacement area, carrying out attenuation and fuzzy processing on the edge of the replacement area in the first image, and outputting the modified first image;
the step of enhancing the second image according to the first image to improve the brightness of the second image specifically includes: gradually increasing the brightness of the second image; calculating the brightness similarity between the first image and the second image every time the brightness of the second image is increased by one level; when the brightness of the second image is increased by one level, the brightness similarity after the brightness is increased is reduced compared with the brightness similarity before, the brightness of the second image is reduced by one level, and the brightness of the second image is enhanced;
wherein, the step of calculating the brightness similarity between the first image and the second image specifically comprises: comparing the brightness information of each pixel of the first image except the light area needing to be corrected with the brightness information of the pixel at the corresponding position in the second image; obtaining the first pixel quantity with the same brightness and the second pixel quantity with different brightness in the first image and the second image; and calculating to obtain the brightness similarity, wherein the brightness similarity = the first pixel number/(the first pixel number + the second pixel number).
2. The image correction method according to claim 1, wherein the step of identifying the light-reflecting area in the first image and determining the light-reflecting area to be corrected includes:
extracting brightness information of all pixels in the first image;
judging brightness information, and determining a corresponding pixel as a high-brightness pixel when the brightness information is greater than a preset brightness value;
and marking the set consisting of the highlight pixels as the highlight area to be modified.
3. The image correction method according to claim 1, characterized in that the method further comprises optimizing the image, in particular:
carrying out integral sharpening processing on the corrected first image;
an eyeball in the first image is identified, and highlight white dots are added on the eyeball.
4. An image correction system, characterized in that the system comprises:
the device comprises a continuous shooting image module, a first image processing module and a second image processing module, wherein the continuous shooting image module is used for receiving a flash lamp starting shooting instruction and continuously shooting two images to obtain a first image and a second image, the first image is obtained by starting flash lamp shooting, and the second image is obtained by closing flash lamp shooting;
the light reflecting area module to be corrected is used for identifying the light reflecting area in the first image and determining the light reflecting area to be corrected;
the second image enhancement module is used for enhancing the second image according to the first image and improving the brightness of the second image;
the alternate area determining module is used for determining an alternate area in the second image according to the position of the light reflecting area to be corrected in the first image;
the area replacement correction module is used for replacing the light area to be corrected in the first image by using the replacement area, performing attenuation and fuzzy processing on the edge of the replacement area in the first image, and outputting the corrected first image;
wherein the second image enhancement module comprises: a brightness adjusting unit for increasing the brightness of the second image step by step; a brightness similarity calculation unit for calculating a brightness similarity between the first image and the second image for each level of increase in brightness of the second image; a brightness enhancement completion unit, configured to reduce the brightness of the second image by one step when the brightness of the second image is increased by one step and the brightness similarity after the brightness increase is lower than the previous brightness similarity, and complete brightness enhancement of the second image;
wherein the luminance similarity calculation unit includes: the brightness information comparison subunit is used for comparing the brightness information of each pixel of the first image except the light area needing to be corrected with the brightness information of the pixel at the corresponding position in the second image; the image processing device comprises a pixel number determining subunit, a brightness determining subunit and a brightness determining subunit, wherein the pixel number determining subunit is used for obtaining a first pixel number with the same brightness in a first image and a second pixel number with different brightness in a second image; and the similarity operator unit is used for calculating and obtaining the brightness similarity, and the brightness similarity = the first pixel number/(the first pixel number + the second pixel number).
5. The image correction system of claim 4, wherein the retroreflective region module to be corrected comprises:
a luminance information extraction unit for extracting luminance information of all pixels in the first image;
the brightness information judging unit is used for judging the brightness information, and when the brightness information is larger than a preset brightness value, the corresponding pixel is determined to be a high-brightness pixel;
and the light reflection area determining unit is used for marking the set consisting of the highlight pixels as the light reflection area needing to be modified.
6. The image modification system of claim 4, further comprising an image optimization module, the image optimization module specifically comprising:
a sharpening processing unit for performing overall sharpening processing on the corrected first image;
and a highlight white dot adding unit for identifying the eyeball in the first image and adding the highlight white dots on the eyeball.
CN202211553026.XA 2022-12-06 2022-12-06 Image correction method and system Active CN115631113B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211553026.XA CN115631113B (en) 2022-12-06 2022-12-06 Image correction method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211553026.XA CN115631113B (en) 2022-12-06 2022-12-06 Image correction method and system

Publications (2)

Publication Number Publication Date
CN115631113A CN115631113A (en) 2023-01-20
CN115631113B true CN115631113B (en) 2023-03-17

Family

ID=84910878

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211553026.XA Active CN115631113B (en) 2022-12-06 2022-12-06 Image correction method and system

Country Status (1)

Country Link
CN (1) CN115631113B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107809599A (en) * 2017-11-16 2018-03-16 维沃移动通信有限公司 A kind of light compensation method and device and mobile terminal
CN112532891A (en) * 2020-11-25 2021-03-19 维沃移动通信有限公司 Photographing method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101000445A (en) * 2006-01-10 2007-07-18 明基电通股份有限公司 Method for compensating exposure of flash lamp when camera photographic
CN107392087B (en) * 2017-05-27 2020-11-13 华勤技术有限公司 Image processing method and device
CN113808054B (en) * 2021-11-19 2022-05-06 北京鹰瞳科技发展股份有限公司 Method for repairing optic disc region of fundus image and related product

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107809599A (en) * 2017-11-16 2018-03-16 维沃移动通信有限公司 A kind of light compensation method and device and mobile terminal
CN112532891A (en) * 2020-11-25 2021-03-19 维沃移动通信有限公司 Photographing method and device

Also Published As

Publication number Publication date
CN115631113A (en) 2023-01-20

Similar Documents

Publication Publication Date Title
CN109801240B (en) Image enhancement method and image enhancement device
US7358994B2 (en) Image processing apparatus, image processing method, recording medium thereof, and program thereof
EP2849431B1 (en) Method and apparatus for detecting backlight
CN110610463A (en) Image enhancement method and device
CN109194872B (en) Panoramic image pixel brightness correction method and device, panoramic camera and storage medium
JP2006345509A (en) Image processing method and apparatus
CN108961175B (en) Face brightness adjusting method and device, computer equipment and storage medium
CN111582005B (en) Image processing method, device, computer readable medium and electronic equipment
CN112312030A (en) Photographing light supplement method and device, computer equipment and storage medium
US8059899B2 (en) Image processing apparatus, image processing method, and computer product
CN108668093A (en) The generation method and device of HDR image
CN113393540B (en) Method and device for determining color edge pixel points in image and computer equipment
WO2016065053A2 (en) Automatic display image enhancement based on user's visual perception model
WO2019223068A1 (en) Iris image local enhancement method, device, equipment and storage medium
US11651480B2 (en) Systems and methods for selective enhancement of objects in images
US20210368088A1 (en) Systems and methods of image enhancement
CN104346774A (en) Method and device for enhancing image
CN111601048A (en) Image processing method and device
CN112532891A (en) Photographing method and device
CN109447942B (en) Image ambiguity determining method, apparatus, computer device and storage medium
WO2020168807A1 (en) Image brightness adjusting method and apparatus, computer device, and storage medium
CN111738944A (en) Image contrast enhancement method and device, storage medium and smart television
US10235745B2 (en) Image processing method, computer storage medium, apparatus and terminal
CN113592739A (en) Method and device for correcting lens shadow and storage medium
CN115631113B (en) Image correction method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant