Image processing method and device, medium and electronic equipment

By performing sub-image segmentation and exposure curve analysis on the image, determining the target exposure time and adjusting the exposure brightness, the problem of speed bottleneck in HDR technology is solved, and faster and more realistic high dynamic range imaging is achieved.

CN119211739APending Publication Date: 2024-12-27KUNSHAN Q TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411188098.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-27
Publication Date
2024-12-27

AI Technical Summary

Technical Problem

The existing HDR technology has a speed bottleneck, making it difficult to quickly realize high dynamic range imaging, resulting in loss of image information.

Method used

By acquiring the original image and the exposure curves, the sub-images are exposed separately, the target exposure time is determined according to the change in the information amount, the exposure brightness is adjusted and the output target image is output, and the target exposure time in different regions is analyzed to perform exposure combinations of different exposures at different times.

Benefits of technology

It improves the speed of HDR processing and the authenticity of the image, avoids the limitation that the entire image needs to be exposed at different times, and effectively expands the detailed performance of brightness and contrast.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119211739A_ABST
    Figure CN119211739A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of image processing, in particular to an image processing method, and the method comprises the steps: obtaining an original image which comprises at least one sub-image; selecting an exposure curve, respectively exposing each sub-image, and respectively determining the target exposure time of each sub-image according to the information amount change of each sub-image; and adjusting the exposure brightness of each sub-image according to each target exposure time, and combining and outputting a target image. According to the technical scheme provided by the invention, HDR processing can be quickly carried out to a certain extent, and a more real image is obtained.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, and in particular to an image processing method, device, medium, and electronic device. Background Art

[0002] Overexposure or underexposure of an image will cause the entire picture to turn white or black, resulting in the loss of the desired image information. High Dynamic Range Imaging (HDRI or HDR) is a set of technologies used in computer graphics and film photography to achieve a larger exposure dynamic range (i.e., a larger difference between light and dark) than ordinary digital imaging technology. The purpose of high dynamic range imaging is to correctly represent a wide range of brightness in the real world, from direct sunlight to the darkest shadows. Currently, HDR is mostly implemented in post-production, through the stitching of multiple images with different exposure times, that is, describing the image with a set of pixels with different brightness, resulting in a speed bottleneck in the current HDR.

[0003] Based on this, those skilled in the art are in urgent need of an image processing method so as to quickly perform HDR processing and obtain a more realistic image. Summary of the invention

[0004] The embodiments of the present application provide an image processing method, device, medium, and electronic device, which can quickly perform HDR processing to at least a certain extent to obtain a more realistic image.

[0005] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by the practice of the present application.

[0006] According to one aspect of an embodiment of the present application, a method for processing an image is provided, the method comprising: acquiring an original image, the original image comprising at least one sub-image; selecting an exposure curve, exposing each sub-image separately, and determining a target exposure time for each sub-image according to a change in the amount of information of each sub-image; adjusting the exposure brightness of each sub-image according to each target exposure time, and merging and outputting a target image.

[0007] In some embodiments of the present application, before exposing each sub-image separately according to a preloaded exposure curve, the method further includes: obtaining an exposure curve corresponding to at least one lighting environment, wherein the exposure curve is used to characterize the linear relationship between the brightness of each area of ​​the image captured under a fixed lighting environment and the exposure time; and determining a preset exposure time period based on each exposure curve.

[0008] In some embodiments of the present application, based on the aforementioned scheme, determining the preset exposure time period according to each exposure curve includes: determining the overexposure moment corresponding to each exposure curve according to each exposure curve; and determining the preset exposure time period according to each overexposure moment.

[0009] In some embodiments of the present application, based on the aforementioned scheme, the target exposure time of each sub-image is determined according to the change in the amount of information of each sub-image, including: determining the target exposure time period of each sub-image according to the change in the amount of information of each sub-image; determining the target exposure time of each sub-image according to the preset exposure time period and each target exposure time period.

[0010] In some embodiments of the present application, based on the aforementioned scheme, determining the target exposure time period of each sub-image according to the change in the amount of information of each sub-image includes: determining the maximum amount of information appearing in each sub-image according to the change in the amount of information of each sub-image, and taking the time period corresponding to the maximum amount of information appearing in each sub-image as the target exposure time period.

[0011] In some embodiments of the present application, based on the aforementioned scheme, the target exposure time of each sub-image is determined according to the preset exposure time period and the target exposure time periods, including: according to the preset exposure time period and the target exposure time periods, respectively determining the intersection time period of the preset exposure time period and the target exposure time periods as the target exposure time of each sub-image.

[0012] In some embodiments of the present application, adjusting the exposure brightness of each sub-image according to each target exposure time includes: exposing each sub-image accordingly according to each target exposure time, and then adjusting the exposure brightness of each sub-image to the same level.

[0013] According to one aspect of an embodiment of the present application, an image processing device is provided, comprising: an acquisition unit, used to acquire an original image, wherein the original image comprises at least one sub-image; a selection unit, used to select an exposure curve, expose each sub-image separately, and determine a target exposure time for each sub-image according to a change in the amount of information of each sub-image; and an adjustment unit, used to adjust the exposure brightness of each sub-image according to each target exposure time, and merge and output a target image.

[0014] According to one aspect of an embodiment of the present application, a computer-readable storage medium is provided, in which at least one program code is stored. The at least one program code is loaded and executed by a processor to implement the operations performed by the image processing method as described.

[0015] According to one aspect of an embodiment of the present application, an electronic device is provided, comprising one or more processors and one or more memories, wherein at least one program code is stored in the one or more memories, and the at least one program code is loaded and executed by the one or more processors to implement the operations performed by the image processing method as described.

[0016] Based on the above scheme, this application has at least the following advantages or improvements:

[0017] In the technical solutions provided in some embodiments of the present application, by acquiring the original image and the exposure curve, each sub-image is exposed separately, and the target exposure time of each sub-image is determined separately according to the change in the amount of information of each sub-image; finally, the exposure brightness of each sub-image is adjusted according to each target exposure time, and the target image is merged and output. The present application can analyze the target exposure time of different areas of the original image, use different exposure times for different areas (i.e., sub-images), and then recombine the sub-images of different areas, without exposing the entire original image for different lengths of time. The technical solution provided by the present application can describe the image with a set of pixels with different exposure speeds, which can effectively improve the HDR processing time.

[0018] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0020] Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0021] In the attached picture:

[0022] Figure 1 A flowchart of an image processing method according to an embodiment of the present application is shown;

[0023] Figure 2 A flowchart of an image processing method according to an embodiment of the present application is shown;

[0024] Figure 3 A flowchart of an image processing method according to an embodiment of the present application is shown;

[0025] Figure 4 A simplified diagram of an exposure curve according to an embodiment of the present application is shown;

[0026] Figure 5 A comparison diagram of overexposed images according to an embodiment of the present application is shown;

[0027] Figure 6 A flowchart of an image processing method according to an embodiment of the present application is shown;

[0028] Figure 7 A comparison diagram of image information amount according to an embodiment of the present application is shown;

[0029] Figure 8 A simplified structural diagram of an image processing device according to an embodiment of the present application is shown;

[0030] Fig. 9 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown. DETAILED DESCRIPTION

[0031] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this application will be more comprehensive and complete and fully convey the concept of the example embodiments to those skilled in the art.

[0032] In addition, described feature, structure or characteristic can be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical scheme of the present application can be put into practice without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, known methods, devices, realizations or operations are not shown or described in detail to avoid blurring the various aspects of the application.

[0033] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0034] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.

[0035] It should be noted that the "multiple" mentioned in this article refers to two or more. "And / or" describes the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship.

[0036] The implementation details of the technical solution of the embodiment of the present application are described in detail below:

[0037] See also Figure 1 .

[0038] Figure 1 A flowchart of an image processing method according to an embodiment of the present application is shown. Figure 1 As shown, the method may include steps S101-S103:

[0039] Step S101: acquiring an original image, where the original image includes at least one sub-image.

[0040] Step S102 : selecting an exposure curve, exposing each sub-image respectively, and determining a target exposure time for each sub-image respectively according to a change in the amount of information of each sub-image.

[0041] Step S103, adjusting the exposure brightness of each sub-image according to each target exposure time, and merging and outputting the target image.

[0042] In the present application, it should be noted that the image processing method described in the present application is mainly to perform HDR processing and improve the processing speed of HDR. The so-called HDR processing is a processing technology that improves the brightness and contrast of the image. This technology can enrich the details of each dark part, make the dark places darker, and enrich more detailed colors, so that movies, pictures, and game images can all present excellent effects, allowing users to have a visual experience closer to the real environment when watching movies and playing games. The maximum brightness of the traditional SDR (standard dynamic range) is only 100 nits. The part above 100 nits in the picture will be distorted (lost). The minimum adjustment is 0.1 nits, and the part below 0.1 nits in the picture will be lost. HDR technology can make the maximum brightness reach thousands of nits and the minimum brightness reach 0.0005 nits, greatly expanding the details of the parts of the picture with brightness above 100 nits and below 0.1 nits, while making the entire image look more transparent and bright with rich details.

[0043] In the present application, the original image obtained may be a photo or video image taken by an imaging device, such as a landscape photo taken directly by a camera, a movie screen taken directly by a video camera, and a portrait picture taken directly by a mobile phone, etc. This application does not make specific requirements.

[0044] In this application, the original image and the exposure curve can be obtained, and each sub-image can be exposed separately. According to the change in the amount of information of each sub-image, the target exposure time of each sub-image can be determined separately; finally, according to each target exposure time, the exposure brightness of each sub-image can be adjusted, and the target image can be combined and output. This application can analyze the target exposure time of different areas of the original image, use different exposure times for different areas (i.e., sub-images), and then recombine the sub-images of different areas. There is no need to expose the entire original image for different lengths of time, which can effectively improve the HDR processing time.

[0045] See also Figure 2 , Figure 2 A flowchart of an image processing method according to an embodiment of the present application is shown. Figure 2 As shown, before exposing each sub-image according to the preloaded exposure curve, the method may include steps S201-S202:

[0046] Step S201: acquiring an exposure curve corresponding to at least one lighting environment, wherein the exposure curve is used to characterize a linear relationship between brightness of each region of an image captured under a fixed lighting environment and exposure time.

[0047] Step S202: determining a preset exposure time period according to each exposure curve.

[0048] Among them, the lighting environment includes color temperature and brightness. Different lighting environments refer to different color temperatures and different brightness.

[0049] See also Figure 3 , Figure 3 A flowchart of an image processing method according to an embodiment of the present application is shown. Figure 3 As shown, the method for determining a preset exposure time period according to each exposure curve may include steps S301-S302:

[0050] Step S301: determining the overexposure moment corresponding to each exposure curve according to each exposure curve.

[0051] Step S303: determining a preset exposure time period according to each overexposure moment.

[0052] In this application, before performing HDR processing on the original image, it is necessary to first calibrate the exposure curve to determine the time period in which overexposure will not occur under different lighting environments. The subsequent specific sub-image target exposure time needs to be within the time period in which overexposure will not occur.

[0053] For example, see Figure 4 , Figure 4 FIG. 4 shows a simplified exposure curve diagram according to an embodiment of the present application. Figure 4As shown, three exposure curves L1-L3 corresponding to different lighting environments can be preloaded. It can be seen that different exposure curves have different overexposure times T1-T3. Once the exposure time is too long, image information will be easily lost. Please refer to Figure 5 , Figure 5 FIG. 4 shows a comparison diagram of overexposed images according to an embodiment of the present application. Figure 5 As stated, Figure 5 a is an overexposed image, Figure 5 b is the target scene image, through Figure 5 a and Figure 5 b It is not difficult to find that most of the image information is lost. Before the overexposure time of L1, all exposure curves are not overexposed. Therefore, if the exposure curve of a photographic device includes L1-L3 as described above, the preset exposure time period can be 0-T1.

[0054] See also Figure 6 , Figure 6 A flowchart of an image processing method according to an embodiment of the present application is shown. Figure 6 As shown, the method for determining the target exposure time of each sub-image according to the change of the information amount of each sub-image may include steps S601-S602:

[0055] Step S601 : determining a target exposure time period for each sub-image according to a change in the amount of information of each sub-image.

[0056] Step S602: determining a target exposure time for each sub-image according to the preset exposure time period and each target exposure time period.

[0057] In the present application, the maximum amount of information appearing in each sub-image can be determined according to the change in the amount of information of each sub-image, and the time period corresponding to the maximum amount of information appearing in each sub-image can be used as the target exposure time period.

[0058] In the present application, according to the preset exposure time period and each target exposure time period, the intersection time period of the preset exposure time period and each target exposure time period can be determined respectively as the target exposure time of each sub-image.

[0059] In the present application, as mentioned above, the setting of the preset exposure time period can ensure that the image is not overexposed, and then the information quantification algorithm is processed under the premise that overexposure does not occur, so as to obtain the time period with the maximum amount of information in each sub-image. The so-called information quantification algorithm is an algorithm that quantifies the amount of information of the image in the area, that is, the degree of detail of the obtained image. It can comprehensively consider the total pixel value, total brightness value and other parameters in the sub-image for judgment. It can be understood that the current sub-image has the most details exposed at a certain exposure time, and it is judged as the maximum amount of information.

[0060] In the present application, the time corresponding to the maximum amount of information is often not a clear moment, but mostly a certain period of time. During this period of time, the current sub-image has the maximum amount of information. At this time, this period of time can be used as the target exposure time period, and the intersection of the target exposure time period and the preset time period can be used as the target exposure time of the current sub-image to ensure that overexposure does not occur.

[0061] For example, sub-image A has the maximum amount of information at an exposure time of 5s-8s, sub-image B has the maximum amount of information at an exposure time of 15s-20s, sub-image C has the maximum amount of information at an exposure time of 12s-19s, and sub-image D has the maximum amount of information at an exposure time of 7s-9s. The preset exposure time period is 0s-18s, so it can be determined that the target exposure time of sub-image A is 5s-8s, the target exposure time of sub-image B is 15s-18s, the target exposure time of sub-image C is 12s-18s, and the target exposure time of sub-image D is 7s-9s.

[0062] For example, see Figure 7 , Figure 7 FIG. 4 shows a comparison diagram of image information according to an embodiment of the present application. Figure 7 As shown in a, Figure 7 The image in a is not the image with the maximum amount of information. Most of the information in the upper left corner is lost. The roof details in the upper left corner of the "house" image are overexposed or underexposed. Figure 7 b, Figure 7 The details of the "house" image in b are obvious, so it can be judged that Figure 7 The image information of b is greater than Figure 7 The image in a.

[0063] In the present application, the method of adjusting the exposure brightness of each sub-image according to each target exposure time may include: exposing each sub-image accordingly according to each target exposure time, and then adjusting the exposure brightness of each sub-image to the same level.

[0064] In this application, after obtaining the target exposure time of different sub-images, the different sub-images are exposed for the corresponding time lengths. However, due to the difference in exposure time, it is easy to cause obvious differences in brightness between different sub-images. If they are directly merged and output, the brightness of the output image is not smooth, affecting the user's experience. Therefore, before merging and outputting, the brightness of each sub-image can be adjusted to the same level to make the picture more natural.

[0065] In the present application, according to each target exposure time, each sub-image is exposed accordingly, and then the exposure brightness of each sub-image is adjusted to the same level, including: determining the pixel slope of each sub-image according to each target exposure time and each target exposure time period; determining the theoretical exposure time for exposing each sub-image to a preset target brightness according to the pixel slope; exposing each sub-image according to the theoretical exposure time so that the exposure brightness of each sub-image is at the same level. Among them, the pixel slope of each sub-image is obtained according to the ratio of the difference between the upper and lower limits of each target exposure time period and the corresponding target exposure time.

[0066] In this application, the image value outputted in time is inversely proportional to the brightness of the actual scene, that is, the larger the image value, the longer the time required to achieve the target luminous flux, and the darker the actual scene. Therefore, the larger the pixel slope, the higher the exposure brightness of the sub-image will be. By exposing the sub-images by the pixel slope, the exposure brightness of the sub-images can be made to be at the same level.

[0067] In the present application, the theoretical target time for exposing each sub-image to a preset target brightness is determined based on the pixel slope, including: normalizing the pixel slope of each sub-image to obtain the theoretical exposure time for exposing each sub-image to the target brightness; exposing according to the theoretical exposure time to obtain sub-images with the same brightness level.

[0068] In the present application, the pixel slope can be adjusted to a certain range through normalization processing of the pixel slope, eliminating the brightness difference between different sub-images, so that they can be compared and processed within the same range, and the brightness of each sub-image can be adjusted to the same level, making the picture more natural.

[0069] Next, an embodiment of a device of the present application will be described in conjunction with the accompanying drawings.

[0070] See also Figure 8 .

[0071] Figure 8 FIG. 4 shows a simplified structural diagram of an image processing device according to an embodiment of the present application. Figure 8 As shown, the device 800 may include: an acquisition unit 801, a selection unit 802, and an adjustment unit 803.

[0072] Among them, the acquisition unit 801 can be used to acquire an original image, which includes at least one sub-image; the selection unit 802 can be used to select an exposure curve, expose each sub-image separately, and determine the target exposure time of each sub-image according to the change in the amount of information of each sub-image; the adjustment unit 803 can be used to adjust the exposure brightness of each sub-image according to each target exposure time, and merge and output the target image.

[0073] See next Fig. 9 .

[0074] Fig. 9 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown.

[0075] It should be noted that Fig. 9 The computer system 900 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0076] like Fig. 9 As shown, the computer system 900 includes a central processing unit (CPU) 901, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 902 or the program loaded from the storage part 908 to the random access memory (RAM) 903, such as executing the method described in the above embodiment. In the RAM 903, various programs and data required for system operation are also stored. The CPU 901, ROM 902 and RAM 903 are connected to each other through a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.

[0077] The following components are connected to the I / O interface 905: an input section 906 including a keyboard, a mouse, etc.; an output section 907 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 908 including a hard disk, etc.; and a communication section 909 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 909 performs communication processing via a network such as the Internet. A drive 910 is also connected to the I / O interface 905 as needed. A removable medium 911, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 910 as needed so that a computer program read therefrom is installed into the storage section 908 as needed.

[0078] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 909, and / or installed from a removable medium 911. When the computer program is executed by a central processing unit (CPU) 901, various functions defined in the system of the present application are executed.

[0079] It should be noted that the computer-readable medium shown in the embodiment of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, - but not limited to - an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by an instruction execution system, device or device or used in combination with it. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0080] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0081] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.

[0082] As another aspect, the present application further provides a computer program product or a computer program, the computer program product or the computer program including computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the image processing method described in the above embodiment.

[0083] As another aspect, the present application also provides a computer-readable medium, which may be included in the electronic device described in the above embodiment; or may exist independently without being assembled into the electronic device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by an electronic device, the electronic device implements the image processing method described in the above embodiment.

[0084] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.

[0085] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the example implementation methods described here can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the implementation methods of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the implementation methods of the present application.

[0086] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the embodiments disclosed herein. The present application is intended to cover any variations, uses or adaptations of the present application, which follow the general principles of the present application and include common knowledge or customary technical means in the art that are not disclosed in the present application.

[0087] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A method for processing an image, characterized in that: The method comprises: Acquire an original image, where the original image includes at least one sub-image; Select an exposure curve, expose each sub-image separately, and determine the target exposure time of each sub-image according to the change of the information amount of each sub-image; According to the exposure time of each target, the exposure brightness of each sub-image is adjusted and the target image is output by merging.

2. The method according to claim 1, characterized in that Before exposing each sub-image according to the preloaded exposure curve, the method further includes: Acquire an exposure curve corresponding to at least one lighting environment, where the exposure curve is used to characterize a linear relationship between brightness of each area of ​​an image captured under a fixed lighting environment and exposure time; According to each exposure curve, a preset exposure time period is determined.

3. The method according to claim 2, characterized in that The step of determining a preset exposure time period according to each exposure curve includes: According to each exposure curve, determining the overexposure moment corresponding to each exposure curve; According to each overexposure moment, a preset exposure time period is determined.

4. The method according to claim 2, characterized in that: The step of determining the target exposure time of each sub-image according to the change in the amount of information of each sub-image comprises: Determine the target exposure time period of each sub-image according to the change in the amount of information of each sub-image; The target exposure time of each sub-image is determined according to the preset exposure time period and each target exposure time period.

5. The method according to claim 4, characterized in that The step of determining a target exposure time period for each sub-image according to a change in the amount of information of each sub-image includes: According to the change of the information amount of each sub-image, the maximum information amount of each sub-image is determined, and the time period corresponding to the maximum information amount of each sub-image is used as the target exposure time period.

6. The method according to claim 4, characterized in that The step of determining the target exposure time of each sub-image according to the preset exposure time period and each target exposure time period includes: According to the preset exposure time period and each target exposure time period, an intersection time period of the preset exposure time period and each target exposure time period is determined as the target exposure time of each sub-image.

7. The method according to claim 1, characterized in that The step of adjusting the exposure brightness of each sub-image according to each target exposure time includes: According to each target exposure time, each sub-image is exposed accordingly, and then the exposure brightness of each sub-image is adjusted to the same level.

8. An image processing device, characterized in that: The device comprises: An acquisition unit, used to acquire an original image, wherein the original image includes at least one sub-image; A selection unit is used to select an exposure curve, expose each sub-image respectively, and determine a target exposure time for each sub-image according to a change in the amount of information of each sub-image; The adjustment unit is used to adjust the exposure brightness of each sub-image according to the exposure time of each target, and merge and output the target image.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one program code, and the at least one program code is loaded and executed by a processor to implement the operations performed by the image processing method according to any one of claims 1 to 7.

10. An electronic device, characterized in that: The electronic device includes one or more processors and one or more memories, wherein the one or more memories store at least one program code, and the at least one program code is loaded and executed by the one or more processors to implement the operations performed by the image processing method as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Image processing method and device, electronic equipment and computer readable storage medium

    CN110290323A

  • Adaptive complementary exposure digital image processing method and image collection equipment

    CN110708470A

  • High-dynamic-range image generation method and device, computer equipment and storage medium

    CN113132646A

  • Method and apparatus for obtaining image using entropy

    US20090303347A1