Aperture adjustment method and apparatus therefor
Patent Information
- Application Number
- CN202310681549.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-08
- Publication Date
- 2026-10-30
- Estimated Expiration
- 2043-06-08
AI Technical Summary
[0005]本申请实施例的目的是提供一种光圈调整方法及其装置,以解决相关技术中对机械光圈进行校准时成本大且精度低下的问题
[0018]在本申请实施例中,在检测到电子设备的第一摄像头的光圈值发生变化的情况下,电子设备便可获取第一摄像头的第一参数和电子设备的第二摄像头的第二参数,并根据第一参数和第二参数,确定出第一摄像头的目标光圈值,进而将第一摄像头的光圈值调整为目标光圈值。这种通过参考第一摄像头的第一参数以及第二摄像头的第二参数对第一摄像头的光圈值进行调整,能够提高第一摄像头的光圈值的调整精度,而且,用户在使用电子设备的过程中可以实时对第一摄像头的光圈值进行自动调整,无需在工厂中进行校准,成本更低。
Smart Images

Figure CN116679524B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of electronic equipment technology, and specifically relates to an aperture adjustment method and apparatus. Background Technology
[0002] Typically, the mechanical aperture in a camera is a device driven by mechanical gears. Due to problems such as gear meshing errors, misalignment, and loss of synchronization, poor image quality can result.
[0003] To address the aforementioned issues with mechanical apertures, the aperture value needs to be calibrated at the factory. Specifically, this typically involves arranging and combining the following calibration conditions: temperature, typical aperture value, different phone orientations, and aperture movement direction. By arranging and combining these calibration conditions, multiple calibration tables can be obtained. Using these calibration tables, the final aperture value can be obtained.
[0004] However, this method requires adding a calibration station to the production line, which increases production costs; moreover, the aperture value obtained under the above calibration conditions has low accuracy. Summary of the Invention
[0005] The purpose of this application is to provide an aperture adjustment method and apparatus to solve the problems of high cost and low accuracy when calibrating mechanical apertures in related technologies.
[0006] In a first aspect, embodiments of this application provide an aperture adjustment method, the method comprising:
[0007] When a change in the aperture value of the first camera of the electronic device is detected, the first parameter of the first camera and the second parameter of the second camera of the electronic device are acquired.
[0008] The target aperture value of the first camera is determined based on the first parameter and the second parameter;
[0009] Adjust the aperture value of the first camera to the target aperture value.
[0010] Secondly, embodiments of this application provide an aperture adjustment device, the device comprising:
[0011] The acquisition module is used to acquire a first parameter of the first camera and a second parameter of the second camera of the electronic device when a change in the aperture value of the first camera of the electronic device is detected.
[0012] The determining module is used to determine the target aperture value of the first camera based on the first parameter and the second parameter;
[0013] An adjustment module is used to adjust the aperture value of the first camera to the actual aperture value.
[0014] Thirdly, embodiments of this application provide an electronic device including a processor and a memory, wherein the memory stores a program or instructions executable on the processor, and the program or instructions, when executed by the processor, implement the steps of the aperture adjustment method as described in the first aspect.
[0015] Fourthly, embodiments of this application provide a readable storage medium storing a program or instructions that, when executed by a processor, implement the steps of the aperture adjustment method as described in the first aspect.
[0016] Fifthly, embodiments of this application provide a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the method as described in the first aspect.
[0017] In a sixth aspect, embodiments of this application provide a computer program product stored in a storage medium, which is executed by at least one processor to implement the method described in the first aspect.
[0018] In this embodiment, when a change in the aperture value of the first camera of the electronic device is detected, the electronic device can acquire the first parameter of the first camera and the second parameter of the second camera, and determine the target aperture value of the first camera based on the first and second parameters, thereby adjusting the aperture value of the first camera to the target aperture value. This adjustment of the aperture value of the first camera by referencing the first parameter of the first camera and the second parameter of the second camera improves the adjustment accuracy of the aperture value. Furthermore, the user can automatically adjust the aperture value of the first camera in real time while using the electronic device, eliminating the need for factory calibration and reducing costs. Attached Figure Description
[0019] Figure 1 This is a flowchart of the aperture adjustment method provided in the embodiments of this application;
[0020] Figure 2 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application;
[0021] Figure 3 This is a schematic diagram of the structure of an electronic device provided in another embodiment of this application;
[0022] Figure 4 This is a schematic diagram of the aperture adjustment device provided in the embodiments of this application;
[0023] Figure 5 This is a schematic diagram of the structure of an electronic device provided in another embodiment of this application;
[0024] Figure 6 This is a schematic diagram of the structure of an electronic device provided in another embodiment of this application. Detailed Implementation
[0025] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.
[0026] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such terms can be used interchangeably where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0027] The aperture adjustment method provided in this application will be described in detail below with reference to the accompanying drawings, through specific embodiments and application scenarios.
[0028] Please refer to Figure 1 This is a flowchart illustrating an aperture adjustment method provided in an embodiment of this application. This method can be applied to electronic devices, such as mobile phones, tablets, and laptops. (Refer to...) Figure 2 The electronic device includes a camera unit 20, which comprises a first camera 21, a second camera 22, and an image signal processor (ISP) 25. The image signal processor 25 is connected to both the first camera 21 and the second camera 22. The first camera 21 is a variable aperture camera, meaning its aperture value can change. The second camera 22 is a fixed aperture camera, meaning its aperture value cannot change. Figure 1 As shown, the method may include steps 1100 to 1300, which will be described in detail below.
[0029] Step 1100: When a change in the aperture value of the first camera of the electronic device is detected, the first parameter of the first camera and the second parameter of the second camera of the electronic device are obtained.
[0030] Optionally, the electronic device provides a first adjustment control for manually adjusting the aperture value of the first camera. The user can manually adjust the aperture value of the first camera by clicking the first adjustment control.
[0031] Optionally, the electronic device also includes a second adjustment control for automatically adjusting the aperture value of the first camera. The user can activate the automatic adjustment of the aperture value of the first camera by clicking the second adjustment control. Specifically, the electronic device will adjust the aperture value of the first camera accordingly, either widening or narrowing it, based on the illumination of the subject and feedback from the video signal.
[0032] It should be noted that if the aperture value of the first camera changes, the aperture value of the first camera needs to be adjusted to obtain the optimal aperture value of the first camera, replacing the aperture value fed back by the first camera itself.
[0033] Specifically, the electronic device monitors the aperture value of the first camera in real time. Whether the user manually adjusts the aperture value or the electronic device adjusts it automatically, the electronic device will detect a change in the aperture value. Upon detecting a change in the aperture value, the electronic device can activate the real-time calibration function. When the real-time calibration function is enabled, the electronic device can calibrate the aperture value of the first camera in real time.
[0034] The first parameters of the first camera include first shooting parameters and first brightness calibration parameters when the first camera captures the first image. The second parameters of the second camera include second shooting parameters and second brightness calibration parameters when the second camera captures the second image. Typically, the first camera captures the Nth frame of the first image when a change in the aperture value of the first camera is detected, and the second camera captures the Nth frame of the second image.
[0035] The first shooting parameters include a first exposure parameter and a first 3A statistical parameter, and the second shooting parameters include a second exposure parameter and a second 3A statistical parameter.
[0036] The first exposure parameter can include aperture value, shutter speed, and ISO (International Organization for Standardization). The second exposure parameter can also include aperture value, shutter speed, and ISO.
[0037] The first 3A statistical parameters can include autofocus (AF), auto exposure (AE), and auto white balance (AWB). The second 3A statistical parameters can also include autofocus (AF), auto exposure (AE), and auto white balance (AWB). Generally, the 3A statistical parameters can be referred to as the auto exposure (AE) statistical values.
[0038] The first brightness calibration parameter and the second brightness calibration parameter are pre-calibrated ISO data. For example, the first brightness calibration parameter could be the light sensitivity of the first camera 21 at a reference ISO of 100. Similarly, the second brightness calibration parameter could be the light sensitivity of the second camera 22 at a reference ISO of 100.
[0039] Specifically, when the first camera 21 captures the Nth frame of the first image fA(N) and the second camera 22 captures the Nth frame of the second image fB(N), if the electronic device detects a change in the aperture value of the first camera 21, the electronic device will capture both the Nth frame of the first image fA(N) captured by the first camera 21 and the Nth frame of the second image fB(N) captured by the second camera 22. The AE statistics module in the image signal processor processes the first image fA(N) and the second image fB(N) to obtain the aperture value FnumA(N), shutter speed ShuA(N), ISO sensitivity ISOA(N), and AE statistics value YA(N) when the first camera 21 captures the Nth frame of the first image fA(N). It also obtains the aperture value FnumB(N), shutter speed ShuB(N), ISO sensitivity ISOB(N), and AE statistics value YB(N) when the second camera 22 captures the Nth frame of the second image fB(N).
[0040] Step 1200: Determine the target aperture value of the first camera based on the first parameter and the second parameter.
[0041] Among them, the target aperture value of the first camera is the optimal aperture value of the first camera.
[0042] In this embodiment, step 1200, which determines the target aperture value of the first camera based on the first parameter and the second parameter, may further include the following steps 1210 to 1240:
[0043] Step 1210: Determine the first brightness value of the first camera in the public field of view area based on the first 3A statistical parameters.
[0044] The common field of view (FOV) is the area shared by the first camera and the second camera. It should be noted that the method for obtaining the common FOV of the first camera 21 and the second camera 22 is existing technology. For example, the common FOV of the first camera 21 and the second camera 22 can be obtained through image matching. Alternatively, it can be obtained through pre-calibration combined with actual distance measurement. Of course, other methods can also be used to obtain the common FOV of the first camera 21 and the second camera 22; this embodiment does not limit this method.
[0045] In step 1210, the electronic device can obtain the first brightness value lumaA(N) of the first camera 21 in the public field of view based on the AE statistical value YA(N) when the first camera 21 acquires the first image fA(N) in the Nth frame.
[0046] Step 1220: Determine the second brightness value of the second camera in the public field of view area based on the second 3A statistical parameters.
[0047] In step 1220, the electronic device can obtain the second brightness value lumaB(N) of the second camera 22 in the common field of view based on the AE statistical value YB(N) when the second camera 21 acquires the second image fB(N) in the Nth frame.
[0048] Step 1230: Determine the calibrated brightness deviation between the first camera and the second camera based on the first brightness calibration parameter and the second brightness calibration parameter.
[0049] In step 1230, the electronic device can obtain the calibration brightness deviation ratio1 between the first camera 21 and the second camera 22 based on the first brightness calibration parameter and the second brightness calibration parameter.
[0050] Step 1240: Determine the target aperture value of the first camera based on the first brightness value, the second brightness value, the calibrated brightness deviation, the first exposure parameter, and the second exposure parameter.
[0051] In this step 1240, the first brightness value lumaA(N) and the second brightness value lumaB(N) usually satisfy the following formula (1):
[0052]
[0053] Wherein, ShuA(N) represents the shutter speed when the first camera 21 captures the first image fA(N) in the Nth frame, ShuB(N) represents the shutter speed when the second camera 22 captures the second image fB(N) in the Nth frame, FnumB(N) represents the aperture value when the second camera 22 captures the second image fB(N) in the Nth frame, RealFnumA(N) represents the target aperture value of the first camera 21, ISOA(N) represents the ISO sensitivity when the first camera 21 captures the first image fA(N) in the Nth frame, ISOB(N) represents the ISO sensitivity when the second camera 22 captures the second image fB(N) in the Nth frame, ISO100(A) represents the reference ISO sensitivity of the first camera 21, and ISO100(B) represents the reference ISO sensitivity of the second camera 22.
[0054] Based on the above formula (1), the target aperture value when the first camera captures the first image in the Nth frame can be obtained:
[0055]
[0056] The ratio between the reference sensitivity ISO100 (A) of the first camera 21 and the reference sensitivity ISO100 (B) of the second camera 22 is the calibration brightness deviation ratio1.
[0057] Here, the electronic device can directly use the target aperture value RealFnumA(N) of the first camera when it captures the first image in the Nth frame as the target aperture value RealFnumA of the first camera.
[0058] Step 1300: Adjust the aperture value of the first camera to the target aperture value.
[0059] In this embodiment, after obtaining the target aperture value RealFnumA of the first camera, the electronic device can adjust the aperture value of the first camera to the target aperture value RealFnumA.
[0060] According to an embodiment of this application, when a change in the aperture value of the first camera of an electronic device is detected, the electronic device can acquire the first parameter of the first camera and the second parameter of the second camera of the electronic device, and determine the target aperture value of the first camera based on the first and second parameters, thereby adjusting the aperture value of the first camera to the target aperture value. This adjustment of the aperture value of the first camera by referring to the first parameter of the first camera and the second parameter of the second camera improves the adjustment accuracy of the aperture value of the first camera. Moreover, the user can automatically adjust the aperture value of the first camera in real time during the use of the electronic device, eliminating the need for calibration in the factory and reducing costs.
[0061] In one embodiment, step 1100 above, when a change in the aperture value of the first camera of the electronic device is detected, may further include: when a change in the aperture value of the first camera of the electronic device is detected, obtaining the first shooting parameters when the first camera continuously captures the i-th frame of the first image in K consecutive first images, and the second shooting parameters when the second camera continuously captures the i-th frame of the second image in K consecutive second images.
[0062] Where K is an integer greater than 1, and i is an integer from N to N+K-1. i can represent the sequence number of a first image captured by the first camera among all the first images captured. i can also represent the sequence number of a second image captured by the second camera among all the second images captured.
[0063] Specifically, when a change in the aperture value of the first camera is detected, the first camera captures the first image in the Nth frame, and the second camera captures the second image in the Nth frame.
[0064] Specifically, when the first camera 21 captures the Nth frame first image fA(N) and the second camera 22 captures the Nth frame second image fB(N), if the electronic device detects a change in the aperture value of the first camera 21, the first camera can continuously capture K frames of the first image. For each frame in the K frames, such as the Nth frame, the electronic device will capture the Nth frame first image fA(N) captured by the first camera 21 and the Nth frame second image fB(N) captured by the second camera 22. The AE statistics module in the image signal processor processes the first image fA(N) and the second image fB(N) respectively to obtain the aperture value FnumA(N), shutter speed ShuA(N), ISOA(N), and AE statistics value YA(N) when the first camera 21 captures the Nth frame first image fA(N). It also obtains the aperture value FnumB(N), shutter speed ShuB(N), ISOB(N), and AE statistics value YB(N) when the second camera 22 captures the Nth frame second image fB(N).
[0065] Through this embodiment, the first shooting parameters when the first camera 21 captures each frame of the first image in K frames of the first image, and the second shooting parameters when the second camera 22 captures each frame of the second image in K frames of the second image can be obtained.
[0066] Here, step 1200 above, which determines the target aperture value of the first camera based on the first parameter and the second parameter, may further include: determining the target aperture value of the first camera when acquiring the first image in the i-th frame based on the first brightness calibration parameter, the second brightness calibration parameter, the first shooting parameter corresponding to the i-th frame of the first image in K frames of the first image, and the second shooting parameter corresponding to the i-th frame of the second image in K frames of the second image; and determining the target aperture value of the first camera based on the target aperture value of each frame of the first image in K frames of the first image.
[0067] In this embodiment, for the i-th frame in the K consecutively acquired frames, the electronic device uses the above steps 1210 to 1240 to calculate the target aperture value RealFnumA(i) when the first camera acquires the first image of the i-th frame, thus obtaining K target aperture values RealFnumA(i). The target aperture value RealFnumA of the first camera satisfies the following formula (3):
[0068]
[0069] Where i takes the value of an integer from N to N+K-1, RealFnumA(i) represents the target aperture value when the first camera captures the first image in the first frame of K frames, and W(o) represents the weight of the target aperture value RealFnumA(i) when the first camera 21 captures the first image in the first frame. The larger W(i) is, the greater the influence of the corresponding target aperture value RealFnumA(i) on RealFnumA.
[0070] In this embodiment, after obtaining the target aperture value RealFnumA of the first camera 21, the electronic device can adjust the aperture value of the first camera to the target aperture value RealFnumA.
[0071] According to this embodiment, the final target aperture value of the first camera is determined based on the target aperture values corresponding to the K frames of the first image captured by the first camera, which is more accurate.
[0072] In one embodiment, the electronic device may include multiple second cameras, as referenced. Figure 3 The camera device 20 includes a first camera 21, a second camera 22, a second camera 23, a second camera 24, and an image signal processor 25. The image signal processor 25 is connected to the first camera 21, the second camera 22, and the second camera 23, respectively.
[0073] Here, step 1100 above, which obtains the first parameter of the first camera and the second parameter of the second camera of the electronic device, may further include: obtaining the first parameter of the first camera and the second parameters corresponding to the multiple second cameras of the electronic device.
[0074] Reference Figure 3 The electronic device will acquire the first shooting parameters when the first camera 21 captures the first image, the second shooting parameters when the second camera 22 captures the second image, the second shooting parameters when the second camera 23 captures the second image, and the second shooting parameters when the second camera 24 captures the second image. It will also acquire the first brightness calibration parameters corresponding to the first camera 21, the second brightness calibration parameters corresponding to the second camera 22, the second brightness calibration parameters corresponding to the second camera 23, and the second brightness calibration parameters corresponding to the second camera 24.
[0075] Here, step 1200 above, which determines the target aperture value of the first camera based on the first parameter and the second parameter, may further include: determining the target aperture value of the first camera corresponding to each second camera based on the first parameter and the second parameter corresponding to each second camera; and determining the target aperture value of the first camera based on the target aperture value of the first camera corresponding to each second camera.
[0076] Continuing with the example above, the electronic device will obtain the target aperture value of the first camera 21 calibrated by the second camera 22 based on the first shooting parameters when the first camera 21 captures the first image, the first brightness calibration parameters of the first camera 21, the second shooting parameters when the second camera 22 captures the second image, and the second brightness calibration parameters of the second camera 22.
[0077] Furthermore, based on the first shooting parameters when the first camera 21 captures the first image, the first brightness calibration parameters of the first camera 21, the second shooting parameters when the second camera 23 captures the second image, and the second brightness calibration parameters of the second camera 23, the target aperture value of the first camera 21 calibrated by the second camera 23 is obtained.
[0078] Furthermore, based on the first shooting parameters when the first camera 21 captures the first image, the first brightness calibration parameters of the first camera 21, the second shooting parameters when the second camera 24 captures the second image, and the second brightness calibration parameters of the second camera 24, the target aperture value of the first camera 21 calibrated by the second camera 24 is obtained.
[0079] At the same time, the electronic device can perform weighted processing on the target aperture value of the first camera 21 calibrated by the second camera 22, the target aperture value of the first camera 21 calibrated by the second camera 23, and the target aperture value of the first camera 21 calibrated by the second camera 24 to obtain the target aperture value of the first camera 21.
[0080] According to this embodiment, the aperture value of the first camera is calibrated based on multiple second cameras, resulting in higher accuracy.
[0081] It should be noted that the aperture adjustment device provided in this application embodiment can achieve... Figure 1 The various processes implemented in the method implementation examples will not be described again here to avoid repetition.
[0082] It should be noted that the aperture adjustment method provided in this application embodiment can be executed by an aperture adjustment device. This application embodiment uses an aperture adjustment device to execute the aperture adjustment method as an example to illustrate the aperture adjustment device provided in this application embodiment.
[0083] See Figure 4 This application embodiment also provides an aperture adjustment device 400, which includes an acquisition module 401, a determination module 402, and an adjustment module 403.
[0084] The acquisition module 401 is used to acquire the first parameter of the first camera and the second parameter of the second camera of the electronic device when a change in the aperture value of the first camera of the electronic device is detected.
[0085] The determining module 402 is used to determine the target aperture value of the first camera based on the first parameter and the second parameter;
[0086] The adjustment module 403 is used to adjust the aperture value of the first camera to the target aperture value.
[0087] In one embodiment, the first parameters of the first camera include first shooting parameters when the first camera captures the first image and first brightness calibration parameters of the first camera. The first shooting parameters include first exposure parameters and first 3A statistical parameters.
[0088] The second parameters of the second camera include second shooting parameters when the second camera acquires the second image, and second brightness calibration parameters of the second camera. The second shooting parameters include second exposure parameters and second 3A statistical parameters.
[0089] The determining module 402 is specifically configured to: determine a first brightness value of the first camera in a common field of view area based on the first 3A statistical parameters; wherein the common field of view area is a field of view area shared by the first camera and the second camera; determine a second brightness value of the first camera in the common field of view area based on the second 3A statistical parameters; determine a calibrated brightness deviation between the first camera and the second camera based on the first brightness calibration parameters and the second brightness calibration parameters; and determine a target aperture value of the first camera based on the first brightness value, the second brightness value, the calibrated brightness deviation, the first exposure parameters, and the second exposure parameters.
[0090] In one embodiment, the first parameters of the first camera include first shooting parameters when the first camera captures the first image, and the second parameters of the second camera include second shooting parameters when the second camera captures the second image.
[0091] The acquisition module 401 is specifically used to: when the aperture value of the electronic device is detected to change, acquire the first shooting parameters when the first camera continuously acquires the first image in the i-th frame of K frames of first images, and the second shooting parameters when the second camera continuously acquires the second image in the i-th frame of K frames of second images;
[0092] Where K is an integer greater than 1, and i is an integer from N to N+K-1;
[0093] Specifically, when a change in the aperture value of the first camera is detected, the first camera captures the first image in the Nth frame, and the second camera captures the second image in the Nth frame.
[0094] In one embodiment, the first parameter of the first camera further includes a first brightness calibration parameter of the first camera, and the second parameter of the second camera further includes a second brightness calibration parameter of the second camera.
[0095] The determining module 402 is specifically used to: determine the target aperture value when the first camera captures the first image in the first frame based on the first brightness calibration parameter, the second brightness calibration parameter, the first shooting parameter corresponding to the first image in the first frame of K frames of the first image, and the second shooting parameter corresponding to the second image in the first frame of K frames of the second image; and determine the target aperture value of the first camera based on the target aperture value when the first camera captures each frame of the first image in K frames of the first image.
[0096] In one embodiment, the acquisition module 401 is further configured to acquire the first parameter of the first camera and the second parameters corresponding to the plurality of second cameras of the electronic device, respectively;
[0097] The determining module 402 is further configured to determine the target aperture value of the first camera corresponding to each second camera based on the first parameter and the second parameter corresponding to each second camera; and to determine the target aperture value of the first camera based on the target aperture value of the first camera corresponding to each second camera.
[0098] In this embodiment, when a change in the aperture value of the first camera of the electronic device is detected, the electronic device can acquire the first parameter of the first camera and the second parameter of the second camera, and determine the target aperture value of the first camera based on the first and second parameters, thereby adjusting the aperture value of the first camera to the target aperture value. This adjustment of the aperture value of the first camera by referencing the first parameter of the first camera and the second parameter of the second camera improves the adjustment accuracy of the aperture value. Furthermore, the user can automatically adjust the aperture value of the first camera in real time while using the electronic device, eliminating the need for factory calibration and reducing costs.
[0099] It should be noted that the aperture adjustment device provided in this application embodiment can achieve... Figure 1 The various processes implemented in the method implementation examples will not be described again here to avoid repetition.
[0100] It should be noted that the aperture adjustment method provided in this application embodiment can be executed by an aperture adjustment device. This application embodiment uses an aperture adjustment device to execute the aperture adjustment method as an example to illustrate the aperture adjustment device provided in this application embodiment.
[0101] The aperture adjustment device in this application embodiment can be an electronic device or a component within an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television set (TV), ATM, or self-service machine, etc. This application embodiment does not specifically limit the device.
[0102] The aperture adjustment device in this embodiment can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this embodiment does not specifically limit the specific operating system used.
[0103] The aperture adjustment device provided in this application embodiment can achieve... Figure 1 The various processes implemented in the method implementation examples will not be described again here to avoid repetition.
[0104] Optionally, such as Figure 5 As shown, this application embodiment also provides an electronic device 500, including a processor 501 and a memory 502. The memory 502 stores a program or instructions that can run on the processor 501. When the program or instructions are executed by the processor 501, they implement the various steps of the aperture adjustment method embodiment described above and can achieve the same technical effect. To avoid repetition, they will not be described again here.
[0105] It should be noted that the electronic devices in the embodiments of this application include the mobile electronic devices and non-mobile electronic devices described above.
[0106] Figure 6 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of this application.
[0107] The electronic device 600 includes, but is not limited to, components such as: a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 605, a display unit 606, a user input unit 607, an interface unit 608, a memory 609, a processor 610, and an image processing chip. The electronic device 600 also includes a variable aperture camera and a fixed aperture camera.
[0108] Those skilled in the art will understand that the electronic device 600 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 610 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 6 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.
[0109] The processor 610 is configured to, upon detecting a change in the aperture value of the first camera of the electronic device, acquire a first parameter of the first camera and a second parameter of the second camera of the electronic device; determine a target aperture value of the first camera based on the first parameter and the second parameter; and adjust the aperture value of the first camera to the target aperture value.
[0110] In this embodiment, when a change in the aperture value of the first camera of the electronic device is detected, the electronic device can acquire the first parameter of the first camera and the second parameter of the second camera, and determine the target aperture value of the first camera based on the first and second parameters, thereby adjusting the aperture value of the first camera to the target aperture value. This adjustment of the aperture value of the first camera by referencing the first parameter of the first camera and the second parameter of the second camera improves the adjustment accuracy of the aperture value. Furthermore, the user can automatically adjust the aperture value of the first camera in real time while using the electronic device, eliminating the need for factory calibration and reducing costs.
[0111] In one embodiment, the first parameters of the first camera include first shooting parameters when the first camera captures the first image and first brightness calibration parameters of the first camera. The first shooting parameters include first exposure parameters and first 3A statistical parameters. The second parameters of the second camera include second shooting parameters when the second camera captures the second image and second brightness calibration parameters of the second camera. The second shooting parameters include second exposure parameters and second 3A statistical parameters.
[0112] The processor 610 is configured to: determine a first brightness value of the first camera in a common field of view region based on the first 3A statistical parameters; wherein the common field of view region is a field of view region shared by the first camera and the second camera; determine a second brightness value of the second camera in the common field of view region based on the second 3A statistical parameters; determine a calibrated brightness deviation between the first camera and the second camera based on the first brightness calibration parameters and the second brightness calibration parameters; and determine a target aperture value of the first camera based on the first brightness value, the second brightness value, the calibrated brightness deviation, the first exposure parameters, and the second exposure parameters.
[0113] In one embodiment, the first parameter of the first camera includes the first shooting parameter when the first camera captures the first image, and the second parameter of the second camera includes the second shooting parameter when the second camera captures the second image.
[0114] The processor 610 is configured to, when detecting a change in the aperture value of the first camera of the electronic device, acquire the first shooting parameters when the first camera continuously captures the first image in the i-th frame of K consecutive first images, and the second shooting parameters when the second camera continuously captures the second image in the i-th frame of K consecutive second images;
[0115] Where K is an integer greater than 1, and i is an integer from N to N+K-1;
[0116] Specifically, when a change in the aperture value of the first camera is detected, the first camera captures the first image in the Nth frame, and the second camera captures the second image in the Nth frame.
[0117] In one embodiment, the first parameter of the first camera further includes a first brightness calibration parameter of the first camera, and the second parameter of the second camera further includes a second brightness calibration parameter of the second camera.
[0118] The processor 610 is configured to determine the target aperture value when the first camera captures the first image in the i-th frame based on the first brightness calibration parameter, the second brightness calibration parameter, the first shooting parameter corresponding to the first image in the i-th frame of the K-frame first images, and the second shooting parameter corresponding to the second image in the i-th frame of the K-frame second images; and to determine the target aperture value of the first camera based on the target aperture value when the first camera captures the first image in each frame of the K-frame first images.
[0119] In one embodiment, the processor 610 is further configured to acquire a first parameter of the first camera and a second parameter corresponding to each of the plurality of second cameras of the electronic device; determine a target aperture value of the first camera corresponding to each second camera based on the first parameter and the second parameter corresponding to each second camera; and determine a target aperture value of the first camera based on the target aperture value of the first camera corresponding to each second camera.
[0120] It should be understood that, in this embodiment, the input unit 604 may include a graphics processing unit (GPU) 6041 and a microphone 6042. The GPU 6041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 606 may include a display panel 6061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 607 includes at least one of a touch panel 6071 and other input devices 6072. The touch panel 6071 is also called a touch screen. The touch panel 6071 may include two parts: a touch detection device and a touch controller. Other input devices 6072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, power buttons, etc.), a trackball, a mouse, and a joystick, which will not be described in detail here.
[0121] The memory 609 can be used to store software programs and various data. The memory 609 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 609 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 609 in this embodiment includes, but is not limited to, these and any other suitable types of memory.
[0122] Processor 610 may include one or more processing units; optionally, processor 610 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into processor 610.
[0123] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described camera calibration method embodiments and achieve the same technical effect. To avoid repetition, they will not be described again here.
[0124] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.
[0125] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above-described camera calibration method embodiment and achieve the same technical effect. To avoid repetition, it will not be described again here.
[0126] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.
[0127] This application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the various processes of the above-described camera calibration method embodiment, and achieves the same technical effect. To avoid repetition, it will not be described again here.
[0128] It should be noted that, in this document, 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 that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0129] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0130] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
Claims
1. An aperture adjustment method, characterized in that, The method includes: When a change in the aperture value of the first camera of the electronic device is detected, the first parameter of the first camera and the second parameter of the second camera of the electronic device are acquired; wherein the first camera is a variable aperture camera and the second camera is a fixed aperture camera; The target aperture value of the first camera is determined based on the first parameter and the second parameter; Adjust the aperture value of the first camera to the target aperture value; The first parameters of the first camera include first shooting parameters when the first camera captures the first image and first brightness calibration parameters of the first camera. The first shooting parameters include first exposure parameters and first 3A statistical parameters. The second parameters of the second camera include second shooting parameters when the second camera captures the second image and second brightness calibration parameters of the second camera. The second shooting parameters include second exposure parameters and second 3A statistical parameters. Determining the target aperture value of the first camera based on the first parameter and the second parameter includes: determining a first brightness value of the first camera in a common field of view area based on the first 3A statistical parameter; wherein the common field of view area is a field of view area shared by the first camera and the second camera; determining a second brightness value of the second camera in the common field of view area based on the second 3A statistical parameter; determining a calibrated brightness deviation between the first camera and the second camera based on the first brightness calibration parameter and the second brightness calibration parameter; and determining the target aperture value of the first camera based on the first brightness value, the second brightness value, the calibrated brightness deviation, the first exposure parameter, and the second exposure parameter.
2. An aperture adjustment device, characterized in that, The device includes: The acquisition module is used to acquire first parameters of the first camera and second parameters of the second camera of the electronic device when a change in the aperture value of the first camera of the electronic device is detected; wherein the first camera is a variable aperture camera and the second camera is a fixed aperture camera; The determining module is used to determine the target aperture value of the first camera based on the first parameter and the second parameter; The adjustment module is used to adjust the aperture value of the first camera to the target aperture value; The first parameters of the first camera include first shooting parameters when the first camera captures the first image and first brightness calibration parameters of the first camera. The first shooting parameters include first exposure parameters and first 3A statistical parameters. The second parameters of the second camera include second shooting parameters when the second camera captures the second image and second brightness calibration parameters of the second camera. The second shooting parameters include second exposure parameters and second 3A statistical parameters. The determining module is specifically configured to: determine a first brightness value of the first camera in a common field of view area based on the first 3A statistical parameters; wherein the common field of view area is a field of view area shared by the first camera and the second camera; determine a second brightness value of the first camera in the common field of view area based on the second 3A statistical parameters; determine a calibrated brightness deviation between the first camera and the second camera based on the first brightness calibration parameters and the second brightness calibration parameters; and determine a target aperture value of the first camera based on the first brightness value, the second brightness value, the calibrated brightness deviation, the first exposure parameters, and the second exposure parameters.
Citation Information
Patent Citations
Automatic exposure parameter calibrating method and device based on double-camera system
CN106851122A
Image processing method and terminal device
CN109167917A
Differential calibration method, binocular vision system, and computer readable storage medium
CN109417604A
Exposure method and device
CN112672069A
Image processing method and device and electronic equipment
CN113572970A
