A method, apparatus, medium and device for image consistency processing
By acquiring the difference parameters of image height and aperture after zoom during multi-view drone lens switching, and adjusting pixel weight and gamma value, the problem of image style difference during lens switching is solved, achieving image style consistency and improved user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- TIANJIN YUNSHENG INTELLIGENT TECH CO LTD
- Filing Date
- 2026-03-10
- Publication Date
- 2026-08-04
AI Technical Summary
The image styles of multi-view drones differ significantly when switching lenses, resulting in low image analysis efficiency and a poor user experience.
By acquiring the zoomed image height of the target image under the current lens, adjusting pixel weights and aperture difference parameters, and eliminating contrast differences, parameter adjustments between lenses are achieved to capture images with a consistent style.
It achieves consistent image style processing in multi-view UAVs, improving the efficiency of image analysis and user experience.
Smart Images

Figure CN121842503B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of image processing technology, and more specifically, to a method, apparatus, medium, and device for image consistency processing. Background Technology
[0002] Multi-view drones are drones equipped with binocular or multi-view vision cameras or multi-lens modules, primarily used for environmental perception, high-precision mapping, and 3D reconstruction. Currently, multi-view drones are becoming increasingly common, and the types of lenses available are also expanding. However, as the differences between lenses become more pronounced, the image styles captured by different lenses in a multi-view drone exhibit significant variations, especially under mixed magnification conditions. Images acquired in this situation cannot provide effective image support for subsequent image analysis and require further processing, resulting in low processing efficiency and a poor user experience.
[0003] Therefore, how to provide a technical solution for efficient image consistency processing has become an urgent technical problem to be solved. Summary of the Invention
[0004] The purpose of some embodiments of this application is to provide a method, apparatus, medium and device for image consistency processing. The technical solutions of the embodiments of this application can achieve efficient processing of image style consistency in multi-view UAVs, provide effective data support for image analysis, and also improve user experience.
[0005] In a first aspect, some embodiments of this application provide an image consistency processing method, comprising: when a multi-view device switches lenses, obtaining the magnified image height of a target image under the current lens; by adjusting the pixel weights of the image region corresponding to the magnified image height, obtaining lens control parameters corresponding to the weighted effective region; obtaining aperture difference parameters between the current lens and the switched lens, and obtaining contrast difference parameters; and adjusting the switched lens based on the lens control parameters, the aperture difference parameters, and the contrast difference parameters to capture an image with a style consistent with the target image.
[0006] Some embodiments of this application, when switching lenses in a multi-view device, first obtain the zoomed image height of the target image under the current lens, then adjust the pixel weights of the image region corresponding to the zoomed image height to obtain lens control parameters; subsequently, combining the aperture difference parameters and contrast difference parameters between lenses, the switching lenses are adjusted to obtain images with consistent style. Embodiments of this application can achieve efficient processing of image style consistency in multi-view UAVs, provide effective data support for image analysis, and also improve the user experience.
[0007] In some embodiments, obtaining the zoomed image height of the target image under the current lens includes: obtaining the original image height and the zoom value of the target image; and solving the ratio of the original image height to the zoom value to obtain the zoomed image height.
[0008] Some embodiments of this application determine the magnified image height by using the original image height and the magnification value of the target image, thereby achieving effective acquisition of image data before and after magnification.
[0009] In some embodiments, the step of obtaining lens control parameters corresponding to the weighted effective area by adjusting the pixel weights of the image region corresponding to the zoomed image height includes: obtaining initial weight values of pixels in the image region; determining vertex coordinates of the weighted effective area based on the original image width, current image width, original image height, and zoomed image height of the image region corresponding to the zoomed image height; calculating the mean of the data in the pixel region corresponding to the initial weight value to obtain the pixel weight; and obtaining the lens control parameters of the weighted effective area corresponding to the pixel weight.
[0010] Some embodiments of this application first determine the weight-effective area using the original data of the image region, and then calculate the pixel weight by combining the data in the pixel area corresponding to the initial weight value, thereby obtaining the lens control parameters to ensure the consistency of image effects between lenses.
[0011] In some embodiments, obtaining the aperture difference parameter between the current lens and the switched lens includes: calculating the difference in sensitivity of the lens aperture under the same exposure time; and using a multiple of the sensitivity difference value as the aperture difference parameter.
[0012] Some embodiments of this application determine aperture difference parameters by using the difference in sensitivity between lenses, thereby achieving effective adjustment of the lens aperture.
[0013] In some embodiments, adjusting the switching lens includes: eliminating the contrast difference parameter by adjusting the gamma value of the switching lens.
[0014] Some embodiments of this application eliminate contrast difference parameters between lenses using gamma values, which can make the grayscale brightness of the two lenses consistent.
[0015] Secondly, some embodiments of this application provide an image consistency processing apparatus, comprising: an acquisition module, configured to acquire the magnified image height of a target image under the current lens when a multi-view device switches lenses; a weight adjustment module, configured to acquire lens control parameters corresponding to the weighted effective area by adjusting the pixel weights of the image area corresponding to the magnified image height; a difference parameter acquisition module, configured to acquire aperture difference parameters and contrast difference parameters between the current lens and the switched lens; and a parameter adjustment module, configured to adjust the switched lens based on the lens control parameters, the aperture difference parameters, and the contrast difference parameters, so as to capture an image with a style consistent with the target image.
[0016] In some embodiments, the acquisition module is used to: acquire the original image height and the magnification value of the target image; and calculate the ratio of the original image height to the magnification value to obtain the magnified image height.
[0017] In some embodiments, the weight adjustment module is used to: obtain the initial weight value of the pixels in the image region; determine the vertex coordinates of the weight effective region based on the original image width, current image width, original image height and zoomed image height of the image region corresponding to the zoomed image height; calculate the mean of the data in the pixel region corresponding to the initial weight value to obtain the pixel weight; and obtain the lens control parameters of the weight effective region corresponding to the pixel weight.
[0018] In some embodiments, the difference parameter acquisition module is used to: calculate the difference in sensitivity of the lens aperture under the same exposure time; and use the multiple of the difference in sensitivity as the aperture difference parameter.
[0019] In some embodiments, the parameter adjustment module is used to eliminate the contrast difference parameter by adjusting the gamma value of the switched lens.
[0020] Thirdly, some embodiments of this application provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, can implement the method described in any embodiment of the first aspect.
[0021] Fourthly, some embodiments of this application provide an electronic device including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the program, can implement the method as described in any embodiment of the first aspect.
[0022] Fifthly, some embodiments of this application provide a computer program product, the computer program product including a computer program, wherein the computer program, when executed by a processor, can implement the method described in any embodiment of the first aspect. Attached Figure Description
[0023] To more clearly illustrate the technical solutions of some embodiments of this application, the accompanying drawings used in some embodiments of this application will be briefly described below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0024] Figure 1 System diagrams of image consistency processing provided for some embodiments of this application; Figure 2 One of the flowcharts for image consistency processing provided in some embodiments of this application; Figure 3 Figure 2 shows the image consistency processing provided for some embodiments of this application; Figure 4 A comparative illustration of image styles provided for some embodiments of this application; Figure 5 Block diagram of an apparatus for image consistency processing provided for some embodiments of this application; Figure 6 A schematic diagram of an electronic device provided for some embodiments of this application. Detailed Implementation
[0025] The technical solutions of some embodiments of this application will now be described with reference to the accompanying drawings.
[0026] It should be noted that similar reference numerals and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. Furthermore, in the description of this application, terms such as "first," "second," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.
[0027] In related technologies, multi-camera drones are becoming increasingly common, leading to a wider range of lens options. This results in greater differences between lenses, particularly between wide-angle and telephoto lenses. During hybrid zoom operations, the dramatic shifts in image style become even more pronounced. Observing current drones, most exhibit noticeable stylistic differences when switching between two lenses, directly impacting the user's sensory experience.
[0028] As can be seen from the above-mentioned technologies, existing multi-camera drones cannot guarantee the consistency of image style when switching lenses.
[0029] In view of this, some embodiments of this application provide an image consistency processing method. This method, when a multi-view device switches lenses, obtains the magnified image height of the target image under the current lens, adjusts the pixel weights of the image region corresponding to this image height to obtain lens control parameters corresponding to the weighted effective region, then obtains aperture difference parameters and contrast difference parameters, and finally adjusts the switched lenses according to the above parameters to ensure that the images captured are consistent in style with the images captured by the current lens. By adjusting the lenses, embodiments of this application can ensure that multi-view drones obtain images with consistent style during shooting, providing effective image data support for subsequent image analysis and processing, and also improving the user's sensory experience.
[0030] The following is in conjunction with the appendix Figure 1 The overall structure of an image consistency processing system provided by some embodiments of this application is illustrated by way of example.
[0031] like Figure 1 As shown, some embodiments of this application provide a system diagram for image consistency processing. This image consistency processing system may include a multi-view drone 100 (as a specific example of a multi-view device) and a processing terminal 200. The multi-view drone 100 can acquire images of a target area. During the acquisition process, when the multi-view drone 100 switches lenses, the processing terminal 200 can first obtain the zoomed image height of the target image under the current lens, then obtain the lens control parameters of the weighted effective area in the target image through weight adjustment, and then obtain the aperture difference parameters and contrast difference parameters of the lenses to comprehensively adjust the parameters of the switched lenses, so that the image style obtained by the switched lens is consistent with the image style effect of the current lens.
[0032] In some embodiments of this application, the processing terminal 200 may be a terminal device that is communicatively connected to the multi-camera drone 100. The terminal device may be a mobile terminal, a non-portable computer terminal, or a server terminal. The embodiments of this application do not specifically limit the specific terminal device.
[0033] In some other embodiments of this application, the processing terminal 200 may also be a processor deployed inside the multi-camera drone 200.
[0034] Specifically, the execution entity for the image consistency processing in this application can be selected according to the actual application scenario, and the embodiments of this application are not specifically limited here. It should be noted that the method embodiments provided in this application are mainly aimed at style adjustment when switching between any two lenses in a multi-camera UAV. By calibrating the lenses in advance, the image style differences generated when switching between two different lenses can be reduced.
[0035] The following is in conjunction with the appendix Figure 2The implementation process of image consistency processing provided by some embodiments of this application is illustrated by way of example.
[0036] Please see the appendix Figure 2 , Figure 2 A flowchart of an image consistency processing method is provided for some embodiments of this application. The image consistency processing method may include: S210: When switching lenses in a multi-view device, obtain the image height of the target image after zooming under the current lens.
[0037] For example, in a specific embodiment of this application, taking a wide-angle lens (as a specific example of the current lens) when performing digital zoom, when a lens switch is required, it is first necessary to calculate the zoomed image height of the target image under the lens after digital zoom.
[0038] In some embodiments of this application, S210 may include: obtaining the original image height and the magnification value of the target image; calculating the ratio of the original image height to the magnification value to obtain the magnified image height.
[0039] For example, in a specific embodiment of this application, the current digital zoom value dzoom and the original image height Height(ori) of the target image are determined; the zoomed image height Height(new) is calculated based on both, that is: Height(new) = Height(ori) / dzoom.
[0040] S220, by adjusting the pixel weights of the image region corresponding to the zoomed image height, the lens control parameters corresponding to the weighted effective region are obtained.
[0041] For example, in a specific embodiment of this application, the pixel weights of the image region corresponding to the zoomed image height are adjusted to obtain the effective area of the actual weights (as a specific example of the effective area of the weights), thereby obtaining 3A data (as a specific example of lens control parameters). Among them, 3A data includes automatic exposure (AE), automatic white balance (AWB), and automatic focus (AF). 3A data is a set of statistical information supporting these three automatic control functions and is the basic data for camera imaging.
[0042] In some embodiments of this application, S220 may include: obtaining initial weight values of pixels in the image region; determining vertex coordinates of the weight-effective region based on the original image width, current image width, original image height, and zoomed image height of the image region corresponding to the zoomed image height; performing mean calculation on the data in the pixel region corresponding to the initial weight value to obtain the pixel weight; and obtaining the lens control parameters of the weight-effective region corresponding to the pixel weight.
[0043] For example, in a specific embodiment of this application, a numerical table representing the current 3A data statistics is read from the target image. For instance, for a region with a weighted area of 15×17, the numerical table represents the value of each pixel, as shown below: 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,\ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,\ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,\ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,\ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,\ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,\ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,\ 1,1,1,1,1,5,5,5,5,5,5,5,1,1,1,1,1,\ 1,1,1,1,1,5,5,5,5,5,5,5,1,1,1,1,1,\ 1,1,1,1,4,4,4,4,4,4,4,4,4,1,1,1,1,\ 1,1,1,1,4,4,4,4,4,4,4,4,4,1,1,1,1,\ 1,1,1,3,3,3,3,3,3,3,3,3,3,3,1,1,1,\ 1,1,1,3,3,3,3,3,3,3,3,3,3,3,1,1,1,\ 1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,\ 1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1.
[0044] The value of each pixel constitutes a corresponding weight table. From the weight table, the data within the pixel area corresponding to the initial weight value of each pixel in the image area of the magnified image height in this embodiment can be obtained (i.e., the values shown above).
[0045] Next, the weights of the effective region (i.e., the weighted effective region) corresponding to the magnified image height are adjusted, and the weights of pixels outside the magnified image height are set to 0. The calculation process for the effective region of the image after digital magnification is as follows: (x0,y0)=((Width(ori)- Width (new)) / 2, (Height(ori)-Height(new)) / 2) (x1,y1)=(x0+Width (new) , y0+ Height(new)) Where (x0, y0) is the coordinate of the upper left corner of the weighted region (as a specific example of vertex coordinates), (x1, y1) is the coordinate of the lower right corner of the weighted region (as a specific example of vertex coordinates), Width(ori) is the original image width, and Width(new) is the actual image width (i.e., the current image width).
[0046] The pixel regions corresponding to the initial weight values read above are subjected to bilinear interpolation and then filled into the new weight setting interface to obtain the pixel weights of the image region corresponding to the magnified image height. Specifically, the implementation steps of bilinear interpolation are as follows: Based on the scaling ratio of dzoom mentioned above, all values within the corresponding image region (i.e., the values of the pixel region corresponding to the initial weight values in the value table above) are read, and the average value is calculated. For example, if the scaling ratio is 2X (as a specific value of dzoom), then all values within the 2×2 squares of the value table are read, averaged, and the value of the scaled weight, i.e., the pixel weight, is calculated, as shown below: 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 0,0,0,0,0,1,1,1,1,1,1,1,1,1,0,0,0,0 0,0,0,0,0,1,1,1,1,1,1,1,1,1,0,0,0,0 0,0,0,0,0,1,1,2,2,2,2,1,1,0,0,0,0 0,0,0,0,0,1,1,2,2,2,2,1,1,0,0,0,0 0,0,0,0,0,1,1,4,4,4,4,2,2,0,0,0,0 0,0,0,0,0,1,1,4,4,4,4,2,2,0,0,0,0 0,0,0,0,0,2,2,2,2,2,2,2,2,0,0,0,0 0,0,0,0,0,2,2,2,2,2,2,2,2,0,0,0,0 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 After setting the pixel weights for the corresponding image effective area as described above, the 3A information of that image effective area can be obtained again. This 3A information allows for identical information between the two lenses, thus achieving the same 3A effect.
[0047] S230: Obtain the aperture difference parameters between the current lens and the switched lens, and obtain the contrast difference parameters.
[0048] For example, in a specific embodiment of this application, the aperture difference parameter is obtained by acquiring the aperture difference between the current lens and the switched lens. Here, the aperture difference represents the ISO (International Organization for Standardization, a sensitivity parameter for camera imaging) difference at the same exposure time. Due to differences in parameters such as aperture between lenses, there will be slight differences in contrast; therefore, it is also necessary to acquire the contrast difference parameter.
[0049] In some embodiments of this application, S230 may include: calculating the difference in sensitivity of the lens aperture under the same exposure time; and using a multiple of the difference in sensitivity as the aperture difference parameter.
[0050] For example, in a specific embodiment of this application, the formula for calculating the sensitivity difference value Ratio between apertures is: Ratio = (Fno.1) / (Fno.1) Fno.1) / (Fno.2) (Fno. 2). The aperture difference parameter is a multiple of the Ratio. That is, when adjusting, the ISO-related parameters need to be adjusted to a multiple of the Ratio difference between Module 1 and Module 2. For example, the difference between an F1.4 and an F1.0 lens is that the effect parameters used by F1.0 at ISO 100 and the effect parameters used by F1.4 at ISO 200 should be the same; only when they are the same can the effect be guaranteed to be identical.
[0051] S240, based on the lens control parameters, the aperture difference parameters, and the contrast difference parameters, adjust the switching lens to capture an image with a style consistent with the target image. Specifically, the contrast difference parameters are eliminated by adjusting the gamma value of the switching lens.
[0052] For example, in a specific embodiment of this application, the switching lens is adjusted by combining the 3A information, aperture difference parameters, and contrast difference parameters obtained above, so that the image styles captured by the current lens and the switching lens are consistent. The contrast difference parameter can be compensated for by adjusting the gamma. Specifically, the contrast is adjusted according to a grayscale chart to ensure consistent brightness at the same grayscale level, and the values between grayscale levels are linearly interpolated.
[0053] The following is in conjunction with the appendix Figure 3 The specific process of image consistency processing provided by some embodiments of this application is illustrated by way of example.
[0054] Please see the appendix Figure 3 , Figure 3 A flowchart of an image consistency processing method provided for some embodiments of this application.
[0055] S310: Obtain the image height of the target image after zooming under the current lens.
[0056] S320: Obtain the initial weight values of the pixels in the image region corresponding to the zoomed image height.
[0057] S330 calculates the mean of the initial weight values to obtain the pixel weights of the effective area of the image.
[0058] S340, obtain the 3A data of the image effective area corresponding to the pixel weight.
[0059] S350: Obtain the aperture difference parameters between the current lens and the switched lens, and obtain the contrast difference parameters.
[0060] The S360 adjusts and switches lenses based on lens control parameters, aperture difference parameters, and contrast difference parameters.
[0061] For example, Figure 4 In the four images shown, the first two images in the first row represent the image styles after switching between the two lenses, before any processing. A clear difference in style is evident between the two. The second two images in the second row are images taken with the binocular lenses after adjusting the switching method described above; the image styles of the two are clearly consistent.
[0062] It is understood that the specific implementation process of S310~S360 can be referred to the method implementation examples provided above. To avoid repetition, detailed descriptions are omitted here.
[0063] As can be seen from the above embodiments of this application, this application can reduce the effect difference between the two lens modules, thereby reducing the visual difference felt when switching between the two lenses, and achieving the goal of seamless switching.
[0064] Please refer to Figure 5 , Figure 5 The diagram illustrates a block diagram of an image consistency processing apparatus provided in some embodiments of this application. It should be understood that this image consistency processing apparatus corresponds to the method embodiments described above and is capable of performing the various steps involved in the method embodiments. The specific functions of this image consistency processing apparatus can be found in the description above; detailed descriptions are omitted here to avoid repetition.
[0065] Figure 5 The image consistency processing apparatus includes at least one software function module that can be stored in a memory or embedded in the image consistency processing apparatus in the form of software or firmware. The image consistency processing apparatus includes: an acquisition module 510, used to acquire the zoomed image height of the target image under the current lens when the multi-view device switches lenses; a weight adjustment module 520, used to acquire lens control parameters corresponding to the weighted effective area by adjusting the pixel weight of the image area corresponding to the zoomed image height; a difference parameter acquisition module 530, used to acquire aperture difference parameters and contrast difference parameters between the current lens and the switched lens; and a parameter adjustment module 540, used to adjust the switched lens based on the lens control parameters, the aperture difference parameters, and the contrast difference parameters to capture an image with a style consistent with the target image.
[0066] In some embodiments of this application, the acquisition module 510 is used to: acquire the original image height and the magnification value of the target image; calculate the ratio of the original image height to the magnification value to obtain the magnified image height.
[0067] In some embodiments of this application, the weight adjustment module 520 is used to: obtain the initial weight value of a pixel in the image region; calculate the mean of the initial weight value to obtain the pixel weight; and obtain the lens control parameters of the weight effective region corresponding to the pixel weight.
[0068] In some embodiments of this application, the difference parameter acquisition module 530 is used to: calculate the difference in sensitivity of the lens aperture under the same exposure time; and use the multiple of the difference in sensitivity as the aperture difference parameter.
[0069] In some embodiments of this application, the parameter adjustment module 540 is used to eliminate the contrast difference parameter by adjusting the gamma value of the switched lens.
[0070] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working process of the device described above can be referred to the corresponding process in the aforementioned method, and will not be elaborated further here.
[0071] Some embodiments of this application also provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, can perform the operation of any of the methods corresponding to the methods provided in the above embodiments.
[0072] Some embodiments of this application also provide a computer program product, which includes a computer program, wherein when the computer program is executed by a processor, it can implement the operation of any of the methods corresponding to the above embodiments provided in the above embodiments.
[0073] Figure 6 A schematic diagram of the structure of an electronic device 600 is shown. (See also...) Figure 6 As shown, the electronic device 600 includes a processor 610 and a memory 620, and optionally may also include a power supply 630, a display unit 640, and an input unit 650.
[0074] The processor 610 is the control center of the electronic device 600. It connects various components through various interfaces and lines, and performs various functions of the electronic device 600 by running or executing software programs and / or data stored in the memory 620, thereby performing overall monitoring of the electronic device 600.
[0075] In this embodiment, when the processor 610 calls the computer program stored in the memory 620, it executes the steps in the above embodiments.
[0076] Optionally, processor 610 may include one or more processing units; preferably, processor 610 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, and the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into processor 610. In some embodiments, the processor and memory may be implemented on a single chip; in some embodiments, they may also be implemented separately on independent chips.
[0077] The memory 620 may primarily include a program storage area and a data storage area. The program storage area may store the operating system, various applications, etc.; the data storage area may store data created based on the use of the electronic device 600, etc. In addition, the memory 620 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device.
[0078] Electronic device 600 also includes a power supply 630 (such as a battery) that supplies power to various components. The power supply can be logically connected to processor 610 through a power management system, thereby enabling the management of charging, discharging, and power consumption.
[0079] The display unit 640 can be used to display information input by the user or information provided to the user, as well as various menus of the electronic device 600. In this embodiment of the invention, it is mainly used to display the display interfaces of various applications in the electronic device 600, as well as text, images, and other objects displayed on the display interfaces. The display unit 640 may include a display panel 641. The display panel 641 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
[0080] The input unit 650 can be used to receive information such as numbers or characters input by the user. The input unit 650 may include a touch panel 651 and other input devices 652. The touch panel 651, also known as a touch screen, can collect touch operations on or near the user (such as operations performed by the user using a finger, stylus, or any suitable object or accessory on or near the touch panel 651).
[0081] Specifically, the touch panel 651 can detect user touch operations and the signals generated by these operations, convert them into touch point coordinates, send them to the processor 610, and receive and execute commands from the processor 610. Furthermore, the touch panel 651 can be implemented using various types of sensors, including resistive, capacitive, infrared, and surface acoustic wave sensors. Other input devices 652 can include, but are not limited to, one or more of the following: physical keyboard, function keys (such as volume control buttons, power buttons, etc.), trackball, mouse, joystick, etc.
[0082] Of course, the touch panel 651 can cover the display panel 641. When the touch panel 651 detects a touch operation on or near it, it transmits the information to the processor 610 to determine the type of touch event. Subsequently, the processor 610 provides corresponding visual output on the display panel 641 according to the type of touch event. Although in Figure 6 In this embodiment, the touch panel 651 and the display panel 641 are two separate components to realize the input and output functions of the electronic device 600. However, in some embodiments, the touch panel 651 and the display panel 641 can be integrated to realize the input and output functions of the electronic device 600.
[0083] The electronic device 600 may also include one or more sensors, such as a pressure sensor, a gravity acceleration sensor, a proximity sensor, etc. Of course, depending on the specific application, the electronic device 600 may also include other components such as a camera. Since these components are not the focus of this application embodiment, therefore... Figure 6 It is not shown in the text and will not be described in detail here.
[0084] Those skilled in the art will understand that Figure 6 This is merely an example of an electronic device and does not constitute a limitation on the electronic device. It may include more or fewer components than shown, or a combination of certain components, or different components.
[0085] The above description is merely an embodiment of this application and is not intended to limit the scope of protection of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of protection of this application. It should be noted that similar reference numerals and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures.
[0086] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
[0087] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
Claims
1. A method of image consistency processing, characterized by, include: When switching lenses in a multi-view device, obtain the image height of the target image after zooming under the current lens; By adjusting the pixel weights of the image region corresponding to the zoomed image height, the lens control parameters corresponding to the weighted effective region are obtained; wherein, the lens control parameters are 3A data; Obtain the aperture difference parameters between the current lens and the switched lens, and obtain the contrast difference parameters; Based on the lens control parameters, the aperture difference parameters, and the contrast difference parameters, the switching lens is adjusted to capture an image with a style consistent with the target image. The step of obtaining the zoomed image height of the target image under the current lens includes: obtaining the original image height and the zoom value of the target image; and solving the ratio of the original image height to the zoom value to obtain the zoomed image height. The step of adjusting the pixel weights of the image region corresponding to the zoomed image height to obtain the lens control parameters corresponding to the weighted effective region includes: obtaining the initial weight values of pixels in the image region; determining the vertex coordinates of the weighted effective region based on the original image width, current image width, original image height, and zoomed image height of the image region corresponding to the zoomed image height; setting the pixel weights outside the zoomed image height to zero; calculating the mean of the data in the pixel region corresponding to the initial weight value according to the scaling ratio of the zoom value to obtain the pixel weight; and obtaining the lens control parameters of the weighted effective region corresponding to the pixel weight.
2. The method as described in claim 1, characterized in that, The step of obtaining the aperture difference parameters between the current lens and the switched lens includes: Calculate the difference in ISO sensitivity for the same exposure time using the lens aperture; The multiple of the sensitivity difference value is used as the aperture difference parameter.
3. The method as described in claim 1, characterized in that, The adjustment of the switching lens includes: eliminating the contrast difference parameter by adjusting the gamma value of the switching lens.
4. An apparatus for image consistency processing, characterized in that, include: The acquisition module is used to acquire the image height of the target image after zooming under the current lens when switching lenses in a multi-view device. The weight adjustment module is used to obtain the lens control parameters corresponding to the weight effective area by adjusting the pixel weights of the image region corresponding to the zoomed image height; wherein, the lens control parameters are 3A data; The difference parameter acquisition module is used to acquire the aperture difference parameters between the current lens and the switched lens, and to acquire the contrast difference parameters. The parameter adjustment module is used to adjust the switching lens based on the lens control parameters, the aperture difference parameters, and the contrast difference parameters, so as to capture an image with the same style as the target image. The acquisition module is used to: acquire the original image height and zoom value of the target image; calculate the ratio of the original image height to the zoom value to obtain the zoomed image height; The weight adjustment module is used to: obtain the initial weight value of pixels in the image region; determine the vertex coordinates of the weight effective region based on the original image width, current image width, original image height, and image height after zooming, corresponding to the image region after zooming; set the pixel weight outside the image height after zooming to zero; calculate the mean of the data in the pixel region corresponding to the initial weight value according to the scaling ratio of the zoom value to obtain the pixel weight; and obtain the lens control parameters of the weight effective region corresponding to the pixel weight.
5. The apparatus as described in claim 4, characterized in that, The difference parameter acquisition module is used for: Calculate the difference in ISO sensitivity for the same exposure time using the lens aperture; The multiple of the sensitivity difference value is used as the aperture difference parameter.
6. The apparatus as claimed in claim 4, characterized in that, The parameter adjustment module is used to eliminate the contrast difference parameter by adjusting the gamma value of the switched lens.
7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, wherein the computer program is executed by a processor to perform the method as described in any one of claims 1-3.
8. An electronic device, characterized in that, The method includes a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the computer program is executed by the processor to perform the method as described in any one of claims 1-3.