Seam Brightness Difference Correction Method and Smart Terminal
The multi-eye camera collects images and divides blocks, determines the weight according to the scene type and light source type, calculates the target brightness data, and corrects the camera exposure parameters and fill light parameters, solving the problem of brightness differences at the slits and improving the brightness uniformity and correction effect of the styling image.
Patent Information
- Application Number
- CN202510378286.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-28
- Publication Date
- 2025-07-25
- Estimated Expiration
- 2045-03-28
AI Technical Summary
The existing splicing products have brightness differences at the splicing joints, which are particularly outstanding in night environments, and the brightness correction effect of related technologies is not good.
Images are collected and blocked by a multi-eye camera, weights are determined according to the scene type and light source type, target brightness data is calculated, and camera exposure parameters and fill light parameters are corrected.
The correction effect of the brightness difference at the patchwork is improved, making the brightness of the stitching image more uniform and the correction effect is better, and is suitable for natural and non-natural light scenes.
Smart Images

Figure CN119893313B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of electronic devices, and particularly to a method for correcting the brightness difference at the seam and an intelligent terminal. Background Art
[0002] At present, there are many splicing products on the market, which are mainly divided into device-side splicing and back-end splicing. When splicing at the device side, the preview can display multiple separate pictures or the spliced picture. The back-end splicing mainly uses a server for image splicing. It will be found that there is a brightness difference at the seam, especially prominent in the night environment.
[0003] For the above two splicing methods, the related technology will perform brightness correction at the seam, but the effect is not good. Summary of the Invention
[0004] Based on this, it is necessary to provide a method for correcting the brightness difference at the seam and an intelligent terminal for the above technical problems.
[0005] In a first aspect, an embodiment of the present application provides a method for correcting the brightness difference at the seam, and the method includes:
[0006] Splice the images respectively collected by multiple cameras, and divide each of the images into several first blocks; wherein, there is an overlapping area between two adjacent images;
[0007] Obtain the first brightness data of each of the first blocks in each of the images, and determine the type of the current scene; the type of the current scene includes a front-light scene and a back-light scene;
[0008] Based on the type of the current scene, determine the first weight of each of the first blocks in each of the images, and based on each of the first weights, determine the second brightness data of each of the images;
[0009] Obtain the third brightness data and the second weight of the overlapping area in each of the images, and based on each of the second brightness data, each of the third brightness data and each of the second weights, determine the first target brightness data after correction of each of the images;
[0010] Based on each of the first target brightness data, correct the exposure parameters of each camera.
[0011] This embodiment has the following technical effects: By judging the type of the current scene, the first weight of each of the first blocks is determined, so that the calculation of the second brightness data of each of the images is more accurate, thereby improving the brightness correction effect at the seam. In addition, considering the third brightness data and the second weight of the overlapping area in each image, the brightness difference at the seam is reduced, ensuring that the brightness difference between adjacent images is closer, so that the brightness of the spliced image is more uniform and the correction effect is better.
[0012] In some embodiments, obtaining the first luminance data of each of the first blocks in each of the images and determining the type of the current scene includes:
[0013] Determining a first luminance factor of the current scene based on the first luminance data of each of the first blocks in each of the images;
[0014] Determining the type of the current scene based on the first luminance factor.
[0015] In some embodiments, determining the first luminance factor of the current scene based on the first luminance data of each of the first blocks in each of the images includes:
[0016] Determining the maximum value and the minimum value in each of the first blocks in each of the images based on the first luminance data of each of the first blocks in each of the images;
[0017] Based on the maximum value in each of the first blocks in each of the images, determining the number of bright-region blocks in each of the images and the sum of the first luminance data of the bright-region blocks in each of the images; based on the minimum value in each of the first blocks in each of the images, determining the number of dark-region blocks in each of the images and the sum of the first luminance data of the dark-region blocks in each of the images;
[0018] Determining a first luminance factor of the current scene based on the sum of the number of bright-region blocks in all images, the total sum of the first luminance data of the bright-region blocks, the sum of the number of dark-region blocks, and the total sum of the first luminance data of the dark-region blocks.
[0019] In some embodiments, determining the type of the current scene based on the first luminance factor includes:
[0020] If the first luminance factor is greater than a first luminance factor threshold, determining it as a backlight scene;
[0021] If the first luminance factor is greater than a second luminance factor threshold and less than the first luminance factor threshold, determining it as a frontlight scene.
[0022] In some embodiments, when the sum of the number of bright-region blocks is greater than a first quantity threshold and the sum of the number of dark-region blocks is greater than a second quantity threshold, determining the type of the current scene based on the first luminance factor.
[0023] In a second aspect, an embodiment of the present application provides a method for correcting the seam luminance difference, and the method includes:
[0024] Stitching the images respectively collected by a multi-view camera, dividing the stitched image into a plurality of second blocks, and dividing the plurality of second blocks into a plurality of first blocks;
[0025] Obtain the first luminance data of each of the first blocks, and determine the light source type of the current scene; the light source type includes a fixed light source and a non-fixed light source;
[0026] If the light source type is a fixed light source, then based on the first luminance data of each of the first blocks, determine the first weight of each of the first blocks;
[0027] Based on the first weights of each of the first blocks in each of the second blocks, determine the fourth luminance data of each of the second blocks;
[0028] Based on the fourth luminance data of each of the second blocks, determine the second target luminance data of the light supplement area of each of the fill lights;
[0029] Based on the second target luminance data of the light supplement area of each of the fill lights, correct the light supplement parameters of each of the fill lights.
[0030] This embodiment has the following technical effects: Judging the light source type of the current scene, and performing brightness difference correction at the seam in the case of a fixed light source to improve the correction effect. For the second target luminance data of the light supplement area of the fill lights, correct the light supplement parameters of each fill light, and the correction is more accurate, further improving the correction effect.
[0031] In some embodiments, the obtaining the first luminance data of each of the first blocks and determining the light source type of the current scene includes:
[0032] Based on the first luminance data of each of the first blocks, determine the second luminance factor;
[0033] If the second luminance factor is greater than the third luminance factor threshold, then obtain the similarity between the spliced image corresponding to the current frame and the spliced image corresponding to the adjacent frame;
[0034] If the similarity is greater than the similarity threshold, then determine that the light source type of the current scene is a non-fixed light source; otherwise, determine that the light source type of the current scene is a fixed light source.
[0035] In some embodiments, the determining the first weight of each of the first blocks based on the first luminance data of each of the first blocks includes:
[0036] If the first luminance data is less than the first luminance threshold, then the first weight is the first weight value;
[0037] If the first luminance data is greater than the second luminance threshold, then the first weight is the second weight value; the second weight value is greater than the first weight value;
[0038] If the first luminance data is greater than the first luminance threshold and less than the second luminance threshold, calculate an intermediate difference based on the first luminance data, the first weight value, and the second weight value as the first weight.
[0039] In a third aspect, an embodiment of the present application provides a method for correcting the seam luminance difference, the method including:
[0040] In a natural light scene, use the method described in the first aspect to correct the exposure parameters of each multi-camera.
[0041] In a non-natural light scene, use the method described in the second aspect to correct the supplementary light parameters of each supplementary light.
[0042] This embodiment has the following technical effects: Different methods for correcting the seam luminance difference are adopted for both the natural light scene and the non-natural light scene, and the supplementary light parameters of each supplementary light are corrected, thereby achieving all-weather correction.
[0043] In a fourth aspect, an embodiment of the present application provides an intelligent terminal, including a multi-camera, a display, a memory, and a processor. The memory stores a computer program, and when the processor executes the computer program, it implements the steps of the method described in the first aspect or the second aspect or the third aspect. Description of the Drawings
[0044] Figure 1 It is a schematic flowchart of the method for correcting the seam luminance difference in the first embodiment of the present application;
[0045] Figure 2 It is a schematic flowchart of the method for determining the current scene type in the first embodiment of the present application;
[0046] Figure 3 It is a schematic flowchart of the method for determining the first luminance factor in the first embodiment of the present application;
[0047] Figure 4 It is a schematic diagram of the spliced image in the first exemplary embodiment of the present application;
[0048] Figure 5 It is a schematic flowchart of the method for correcting the seam luminance difference in the second embodiment of the present application;
[0049] Figure 6 It is a schematic flowchart of the method for determining the light source type in the second embodiment of the present application;
[0050] Figure 7 It is a schematic diagram of the spliced image in the second exemplary embodiment of the present application;
[0051] Figure 8 It is the internal structure diagram of the intelligent terminal in one embodiment. Detailed implementation manners
[0052] To more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the accompanying drawings required for the description of the embodiments. Obviously, the accompanying drawings in the following description are only some examples or embodiments of the present application. For those of ordinary skill in the art, without creative efforts, the present application can also be applied to other similar scenarios based on these drawings. Unless obvious from the language context or otherwise stated, the same reference numerals in the drawings represent the same structure or operation.
[0053] As shown in the present application and the claims, unless the context clearly indicates an exception, words such as "a", "an", "one", and / or "the" are not specifically singular and may also include plural. Generally speaking, the terms "include" and "comprise" only indicate the inclusion of the clearly identified steps and elements, and these steps and elements do not constitute an exclusive list. The method or device may also include other steps or elements.
[0054] Although the present application makes various references to certain modules in the system according to the embodiments of the present application, however, any number of different modules can be used and run on a computing device and / or a processor. The modules are only illustrative, and different aspects of the system and method can use different modules.
[0055] It should be understood that when a unit or module is described as "connected" or "coupled" to other units, modules or blocks, it may refer to a direct connection or coupling, or communication with other units, modules or blocks, or there may be intermediate units, modules or blocks, unless the context clearly indicates otherwise. The term "and / or" used herein may include any and all combinations of one or more of the related listed items.
[0056] As Figure 1 shown, the first embodiment of the present application proposes a method for correcting the seam brightness difference, and the method includes:
[0057] S102: Stitch the images respectively collected by the multi-camera, and divide each of the images into several first blocks.
[0058] The method for correcting the seam brightness difference proposed in the embodiments of the present application can be applied to multi-camera stitching products, including multi-cameras, such as four-cameras. Each camera collects its own image, and after collecting its own image, the four images are stitched.
[0059] Among them, there is an overlapping area between two adjacent images, and there is a seam between two adjacent images.
[0060] S104: Obtain the first brightness data of each of the first blocks in each of the images, and determine the type of the current scene.
[0061] The types of the current scene include frontlight scene and backlight scene.
[0062] By statistically calculating the average values of r, g, and b of all pixel points in each first block, the first brightness data can be obtained.
[0063] S106: Based on the type of the current scene, determine the first weight of each first block in each of the images, and based on each first weight, determine the second brightness data of each of the images.
[0064] In this embodiment, according to the type of the current scene, the first weight of the first block is determined. In the backlight scene, a smaller first weight is assigned to the bright area and a larger first weight is assigned to the dark area to make the overall brightness appropriate; vice versa in the frontlight scene.
[0065] S108: Obtain the third brightness data and the second weight of the overlapping area in each of the images, and based on each second brightness data, each third brightness data and each second weight, determine the first target brightness data after correction of each of the images.
[0066] In this embodiment, according to the second weight of the overlapping area, the weight of the non-overlapping area can be calculated. Then, according to the second brightness data and the weight of the non-overlapping area, the brightness data of the non-overlapping area can be calculated. By summing the brightness data of the non-overlapping area and the third brightness data of the overlapping area, the first target brightness data after correction of the image can be obtained.
[0067] S110: Based on each first target brightness data, correct the exposure parameters of each camera.
[0068] It can be understood that the exposure parameters of the camera can control the brightness data. Therefore, according to the first target brightness data, the corresponding exposure parameters of the camera can be determined, and by correcting the exposure parameters, the brightness difference at the seam can be corrected.
[0069] This embodiment has the following technical effects: By judging the type of the current scene, the first weight of each first block is determined, making the calculation of the second brightness data of each image more accurate, thereby improving the brightness correction effect at the seam. In addition, considering the third brightness data and the second weight of the overlapping area in each image, the brightness difference at the seam is reduced, ensuring that the brightness difference between adjacent images is closer, so that the brightness of the stitched image is more uniform and the correction effect is better.
[0070] In some embodiments, as Figure 2 shown, the steps of obtaining the first brightness data of each first block in each of the images and determining the type of the current scene include:
[0071] S202: Determine a first brightness factor of the current scene based on the first brightness data of each of the first blocks in each of the images;
[0072] S204: Determine the type of the current scene based on the first brightness factor.
[0073] In a specific embodiment, as Figure 3 shown, the determining the first brightness factor of the current scene based on the first brightness data of each of the first blocks in each of the images includes:
[0074] S302: Determine the maximum value and the minimum value in each of the first blocks in each of the images based on the first brightness data of each of the first blocks in each of the images;
[0075] S304: Based on the maximum value in each of the first blocks in each of the images, determine the number of bright area blocks in each of the images and the sum of the first brightness data of the bright area blocks in each of the images; based on the minimum value in each of the first blocks in each of the images, determine the number of dark area blocks in each of the images and the sum of the first brightness data of the dark area blocks in each of the images;
[0076] S306: Determine the first brightness factor of the current scene based on the sum of the number of bright area blocks in all images, the total sum of the first brightness data of the bright area blocks, the sum of the number of dark area blocks, and the total sum of the first brightness data of the dark area blocks.
[0077] In a specific embodiment, the determining the type of the current scene based on the first brightness factor includes: if the first brightness factor is greater than a first brightness factor threshold, determine it as a backlight scene; if the first brightness factor is greater than a second brightness factor threshold and less than the first brightness factor threshold, determine it as a frontlight scene.
[0078] In other cases, determine it as a normal scene.
[0079] For the type judgment of the current scene, determine the first weight of each of the first blocks, so that the calculation of the second brightness data of each of the images is more accurate, thereby improving the brightness correction effect at the seam.
[0080] In some embodiments, when the sum of the number of bright area blocks is greater than a first quantity threshold and the sum of the number of dark area blocks is greater than a second quantity threshold, determine the type of the current scene based on the first brightness factor.
[0081] In this embodiment, by restricting the conditions of the number of bright area blocks and the number of dark area blocks, the influence of a small number of bright and dark blocks on the result is excluded, making the type judgment of the current scene more accurate.
[0082] In an exemplary embodiment, taking a four-camera stitching product as an example, this method is elaborated in detail. Figure 4 is the image after stitching the four images of the four-camera. The red area represents the overlapping area of adjacent images. Each image is divided into I×J first blocks, and according to calculate the first luminance data corresponding to the first block, y represents the first luminance data, and r, g, b represent the average values of r, g, b of all pixel points in the first block. The specific steps of this method are as follows:
[0083] Step 1, according to the first luminance data of each first block in the 4 images, calculate the maximum and minimum values of the first luminance data in the 4 images, and record them as
[0084] Step 2, count the number of blocks in all the first blocks of each image whose first luminance data is greater than and less than , and record it as the number of bright area blocks in each image , the number of dark area blocks in each image , calculate the sum of the numbers of the 4 images and record it as the sum of the numbers of bright area blocks in all images , the sum of the numbers of dark area blocks , and the total sum of the first luminance data of the bright area blocks in all corresponding images , the total sum of the first luminance data of the dark area blocks . Among them is the threshold parameter, and here take
[0085] Calculate the first luminance factor of the current scene
[0086] Step 3, according to the first luminance factor and to judge the scene type. When , then judge the scene type again to exclude the influence of a small number of bright and dark areas on the result. When the first luminance factor , mark it as a backlight scene, when , mark it as a frontlight scene, and other marks as ordinary scenes. Among them represents the first quantity threshold, represents the second quantity threshold, represents the first luminance factor threshold, represents the second luminance factor threshold.
[0087] Step 4, determine the first weight of the first block according to the type of the current scene, mark it as , calculate the second luminance data of each image Here Indicates the number of first blocks in each image. Is the first luminance data of the j-th first block in the i-th image.
[0088] Step Five, calculate the first target luminance data of each image for exposure parameter correction. The first target luminance data of each image Consists of two parts: the luminance data of the non-overlapping regions and the third luminance data of the overlapping regions of adjacent images , where the third luminance data Is calculated in the same way as the second luminance data , and only the first luminance data of the first blocks in the overlapping regions is taken for calculation. For example:
[0089]
[0090] Among them, Indicates the weight of each overlapping region, Indicates the weight of each non-overlapping region, Indicates the third luminance data of each overlapping region.
[0091] The second embodiment of the present application provides a method for correcting the brightness difference at the seam. As Figure 5 Shown, the method includes:
[0092] S502: Stitch the images separately collected by the multi-view cameras, divide the stitched image into several second blocks, and divide the several second blocks into several first blocks.
[0093] S504: Obtain the first luminance data of each of the first blocks and determine the light source type of the current scene.
[0094] The method for obtaining the first luminance data can refer to the above embodiments.
[0095] The light source type includes a fixed light source and a non-fixed light source.
[0096] By judging the light source type of the current scene, it is confirmed whether it is the influence of the actual scene brightness or the influence brought by moving objects, such as non-fixed light source situations such as the movement of vehicle lights, street lamp illumination, and reflection of close-range fill lights.
[0097] S506: If the light source type is a fixed light source, then based on the first luminance data of each of the first blocks, determine the first weight of each of the first blocks.
[0098] When it is judged as a non-fixed light source such as a vehicle light, the fill light is not adjusted temporarily to avoid frequent adjustment of the fill light caused by changes in vehicle lights, etc., resulting in obvious changes in the picture brightness and affecting the user experience. For fixed light sources such as street lights and near-range reflections, the fill light is adjusted.
[0099] S508: Determine the fourth luminance data of each of the second blocks based on the first weights of each of the first blocks in each of the second blocks.
[0100] S510: Determine the second target luminance data of the light supplement areas of each of the fill lights based on the fourth luminance data of each of the second blocks.
[0101] After obtaining the fourth luminance data of each of the second blocks, the second target luminance data of each of the light supplement areas can be calculated according to the light supplement areas of the fill lights.
[0102] S512: Correct the light supplement parameters of each of the fill lights based on the second target luminance data of the light supplement areas of each of the fill lights.
[0103] It can be understood that the light supplement parameters of the camera can control the luminance data. Therefore, the corresponding light supplement parameters of the fill lights can be determined according to the second target luminance data, and the luminance difference at the seam can be corrected by correcting the light supplement parameters.
[0104] This embodiment has the following technical effects: Judging the light source type of the current scene, correcting the luminance difference at the seam under the condition of a fixed light source, and improving the correction effect. Correcting the light supplement parameters of each of the fill lights according to the second target luminance data of the light supplement areas of the fill lights, the correction is more accurate, and the correction effect is further improved.
[0105] In some embodiments, as Figure 6 shown, the obtaining of the first luminance data of each of the first blocks and the determination of the light source type of the current scene include:
[0106] S602: Determine the second luminance factor based on the first luminance data of each of the first blocks;
[0107] S604: If the second luminance factor is greater than the third luminance factor threshold, obtain the similarity between the stitched image corresponding to the current frame and the stitched image corresponding to the adjacent frame; if the similarity is greater than the similarity threshold, determine that the light source type of the current scene is a non-fixed light source; otherwise, determine that the light source type of the current scene is a fixed light source.
[0108] The similarity can be the sum absolute difference (SAD), or other similarity representations.
[0109] In some embodiments, determining the first weight of each of the first blocks based on the first luminance data of each of the first blocks includes: if the first luminance data is less than the first luminance threshold, the first weight is the first weight value; if the first luminance data is greater than the second luminance threshold, the first weight is the second weight value; the second weight value is greater than the first weight value; if the first luminance data is greater than the first luminance threshold and less than the second luminance threshold, calculate an intermediate difference based on the first luminance data, the first weight value, and the second weight value as the first weight.
[0110] In an exemplary embodiment, the present method is elaborated in detail taking a four-camera stitching product as an example. Figure 7 is an image after stitching four images of a four-camera. Each image is divided into two second blocks, and each second block is divided into J×K first blocks. The stitched image acts as the central area, the surrounding area, and the outer area from the inside out. The innermost rectangle in the figure represents the range of the fill light in the central area, the outer rectangle represents the range of the fill light in the surrounding area, and the outermost rectangle represents the range of the fill light in the outer area. At the same time, in combination with the field of view angle of the camera, several groups of fill lights with different angles are designed in each area. The fill light range in the central area is small and the energy is concentrated, mainly used for observing far away. The fill light range in the surrounding area is moderate and acts on the normal monitoring range. The fill light range in the outer area is large and the energy is weak, mainly used for observing nearby. The specific steps of the present method are as follows:
[0111] Step 1: Obtain the first luminance data of each first block and determine the light source type of the current scene. For each image, obtain the average value of the first luminance data of the bright area blocks and the average value of the first luminance data of multiple first blocks in a circle around the perimeter , and calculate the corresponding second luminance factor When , it is determined as a suspected non-fixed light source, where is the third luminance factor threshold. Then, using the frame difference information, obtain the SAD of adjacent frames, and count whether the SAD in a period of video is greater than the similarity threshold. When the SAD is greater than the similarity threshold and is close to and is a suspected non-fixed light source, the light source type of the current scene is a non-fixed light source, and the fill light of the fill light is not adjusted temporarily. Among them, and are calculated in the same way as in the first embodiment and will not be elaborated here.
[0112] Step 2: When it is determined as a fixed light source such as a street lamp, calculate the fourth luminance data of the corresponding 8 second blocks. When calculating the fourth luminance data, use a dynamic weighting method to calculate, and determine the corresponding weight according to the value of the first luminance data of each first block :
[0113]
[0114] Among them represents the statistical brightness of the nth block in the mth second block represents the first brightness threshold represents the second brightness threshold represents the first weight value represents the second weight value, for example , so as to obtain the fourth brightness data of each second block . , where represents the number of the first blocks in the second block
[0115] Step 3, according to the brightness values of each second block , combined with the light supplement areas of each supplementary light, determine the second target brightness data of the light supplement areas of each supplementary light, that is, the second target brightness data of the central area, the surrounding area, and the peripheral area , respectively judge the second target brightness data with the corresponding third brightness threshold to confirm the adjustment direction of the supplementary light. For example when, the environment is dim, increase the intensity of the supplementary light, when when, the environment is too bright, reduce the intensity of the supplementary light are two third brightness thresholds
[0116] The third embodiment of the present application provides a method for correcting the brightness difference of the seam, and the method includes:
[0117] In the natural light scene, use the method described in the first embodiment to correct the exposure parameters of each target camera
[0118] In the non-natural light scene, use the method described in the second embodiment to correct the light supplement parameters of each of the supplementary lights
[0119] This embodiment has the following technical effects: Different methods for correcting the brightness difference of the seam are adopted for both the natural light scene and the non-natural light scene, and the light supplement parameters of each of the supplementary lights are corrected, so as to achieve all-weather correction
[0120] The fourth embodiment of the present application provides an intelligent terminal, including a multi-target camera, a display, a memory, and a processor. The memory stores a computer program, and when the processor executes the computer program, it implements the steps of the method described in the first embodiment or the second embodiment or the third embodiment
[0121] In an exemplary embodiment, an intelligent terminal is provided. The intelligent terminal may be a server, and its internal structure diagram may be as Figure 8As shown in the figure. The intelligent terminal includes a processor, a memory, an input / output interface (Input / Output, abbreviated as I / O), and a communication interface. Among them, the processor, the memory, and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the intelligent terminal is used to provide computing and control capabilities. The memory of the intelligent terminal includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the intelligent terminal is used to store data. The input / output interface of the intelligent terminal is used to exchange information between the processor and external devices. The communication interface of the intelligent terminal is used to communicate with external terminals through a network connection. When the computer program is executed by the processor, it implements the method of the above-mentioned embodiment.
[0122] Those skilled in the art can understand that Figure 8 the structure shown in the figure is only a block diagram of some structures related to the solution of this application, and does not constitute a limitation on the intelligent terminal to which the solution of this application is applied. The specific intelligent terminal may include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements.
[0123] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to a memory, storage, database, or other medium used in the various embodiments provided in this application can include at least one of non-volatile and volatile memories. Non-volatile memory may include read-only memory (Read-Only Memory, ROM), magnetic tape, floppy disk, flash memory, or optical memory, etc. Volatile memory may include random access memory (Random Access Memory, RAM) or external cache memory. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), etc.
[0124] The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope described in this specification.
[0125] The embodiments described above merely represent several implementation manners of the present application. The description is relatively specific and detailed, but it should not be construed as a limitation on the scope of the invention patent. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can still be made, and these all fall within the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the appended claims.
Claims
1. A method for correcting the brightness difference of seams, characterized in that The method includes: Stitching the images respectively collected by the multi-view camera, dividing the stitched image into several second blocks, and dividing the several second blocks into several first blocks; wherein, there is an overlapping area between two adjacent images; Obtaining the first brightness data of each of the first blocks, and determining the light source type of the current scene; the light source type includes a fixed light source and a non-fixed light source; If the light source type is a fixed light source, then based on the first brightness data of each of the first blocks, determining the first weight of each of the first blocks; Based on the first weights of the first blocks in each of the second blocks, determining the fourth brightness data of each of the second blocks; Based on the fourth brightness data of each of the second blocks, determining the second target brightness data of the light supplement area of each fill light; Based on the second target brightness data of the light supplement area of each fill light, correcting the light supplement parameters of each fill light; The obtaining the first brightness data of each of the first blocks and determining the light source type of the current scene includes: Based on the first brightness data of each of the first blocks, determining a second brightness factor; If the second brightness factor is greater than a third brightness factor threshold, then obtaining the similarity between the stitched image corresponding to the current frame and the stitched image corresponding to the adjacent frame; If the similarity is greater than the similarity threshold, then determining that the light source type of the current scene is a non-fixed light source; otherwise, determining that the light source type of the current scene is a fixed light source.
2. The method according to claim 1, characterized in that, The determining the first weight of each of the first blocks based on the first brightness data of each of the first blocks includes: If the first brightness data is less than a first brightness threshold, then the first weight is a first weight value; If the first brightness data is greater than a second brightness threshold, then the first weight is a second weight value; the second weight value is greater than the first weight value; If the first brightness data is greater than the first brightness threshold and less than the second brightness threshold, then calculating an intermediate difference based on the first brightness data, the first weight value, and the second weight value as the first weight.
3. A method for correcting the brightness difference of seams, characterized in that, The method includes: In a natural light scene, stitching the images respectively collected by the multi-view camera, dividing each of the images into several first blocks; wherein, there is an overlapping area between two adjacent images; obtaining the first brightness data of each of the first blocks in each of the images, and determining the type of the current scene; the type of the current scene includes a frontlight scene and a backlight scene; based on the type of the current scene, determining the first weight of each of the first blocks in each of the images, and based on each of the first weights, determining the second brightness data of each of the images; obtaining the third brightness data and the second weight of the overlapping area in each of the images, and based on each of the second brightness data, each of the third brightness data, and each of the second weights, determining the first target brightness data after correction of each of the images; based on each of the first target brightness data, correcting the exposure parameters of each multi-view camera; In a non-natural light scene, using the method according to any one of claims 1 to 2 to correct the light supplement parameters of each fill light.
4. The method according to claim 3, wherein The obtaining the first brightness data of each of the first blocks in each of the images and determining the type of the current scene includes: Determine a first brightness factor of the current scene based on the first brightness data of each of the first blocks in each of the images; Determine the type of the current scene based on the first brightness factor.
5. The method according to claim 4, wherein The determining of the first brightness factor of the current scene based on the first brightness data of each of the first blocks in each of the images includes: Based on the first brightness data of each of the first blocks in each of the images, determine the maximum value and the minimum value in each of the first blocks in each of the images; Based on the maximum value in each of the first blocks in each of the images, determine the number of bright area blocks in each of the images and the sum of the first brightness data of the bright area blocks in each of the images; based on the minimum value in each of the first blocks in each of the images, determine the number of dark area blocks in each of the images and the sum of the first brightness data of the dark area blocks in each of the images; Based on the sum of the number of bright area blocks in all images, the total sum of the first brightness data of the bright area blocks, the sum of the number of dark area blocks, and the total sum of the first brightness data of the dark area blocks, determine the first brightness factor of the current scene.
6. The method according to claim 5, wherein The determining of the type of the current scene based on the first brightness factor includes: If the first brightness factor is greater than a first brightness factor threshold, determine it as a backlight scene; If the first brightness factor is greater than a second brightness factor threshold and less than the first brightness factor threshold, determine it as a frontlight scene.
7. The method according to claim 6, wherein In the case where the sum of the number of bright area blocks is greater than a first quantity threshold and the sum of the number of dark area blocks is greater than a second quantity threshold, determine the type of the current scene based on the first brightness factor.
8. An intelligent terminal, comprising a multi-camera, a display, a memory and a processor, the memory storing a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Linked light-supplementing method and device thereof
CN105163038A
Visible light automatic adjustment light supplement algorithm in automatic identification image induction
CN111093040A
Method, device and equipment for controlling on-off of light supplement lamp of camera equipment
CN115835027A
Automatic exposure control method and device and camera equipment
CN118175430A
Imaging control device, imaging system, imaging control method, and program
JP2014123797A