Aperture control method and device, electronic equipment and storage medium
By detecting the position of the aperture blade in the camera module and adjusting it to the target reference position range, the problem of abnormal position of the aperture blade is solved, ensuring the camera's shooting effect and user experience.
Patent Information
- Application Number
- CN202311376528.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-23
- Publication Date
- 2025-04-25
AI Technical Summary
Due to limited space, the camera module in the terminal device cannot ensure that the position of the aperture blades with variable apertures in the camera module remains in normal state, and are easily affected by factors such as movement, resulting in abnormal position, affecting the shooting effect.
During the camera shooting process, the target reference position range is obtained by detecting the current gear of the aperture and the current position of the aperture blade. If the current position is outside the target reference position range, adjust the position of the aperture blade to the target reference position range.
Ensure that the position of the aperture blades in the camera module is always in normal state, avoid abnormal position problems, and improve the camera shooting effect and user experience.
Smart Images

Figure CN119893298A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of camera technology, and in particular to an aperture control method, device, electronic device and storage medium. Background Art
[0002] With the continuous development of terminal technology, users' demands for cameras in terminal devices are increasing, and more and more terminal devices are equipped with variable apertures in camera modules. However, due to the limited space in terminal devices and the high integration of camera modules, it is impossible to ensure that the aperture blades of the variable aperture always maintain a normal position in the camera module. During the shooting process, the position of the aperture blades is easily affected by factors such as movement and deviates from its expected position, resulting in poor shooting effects and seriously affecting the user experience. Summary of the invention
[0003] In order to overcome the problems existing in the related art, the present disclosure provides an aperture control method, device, electronic device and storage medium.
[0004] According to a first aspect of an embodiment of the present disclosure, there is provided an aperture control method, the method comprising:
[0005] During camera shooting, determining the current gear position of the aperture and the current position of the aperture blades in the camera module;
[0006] Acquire a target reference position range, where the target reference position range is a reference position range of the aperture blades at the current gear position;
[0007] If the current position is outside the target reference position range, the position of the aperture blades in the camera module is adjusted to be within the target reference position range.
[0008] In an exemplary embodiment, the method further comprises:
[0009] The calibration information of the aperture is determined according to a preset position range of the motor in the camera module, and the calibration information includes: a reference position range of the aperture blades under different gears.
[0010] In an exemplary embodiment, determining the calibration information of the aperture according to a preset position range of the motor in the camera module includes:
[0011] The calibration information of the aperture is determined according to the limit position of the preset motor in the camera module.
[0012] In an exemplary embodiment, determining the calibration information of the aperture according to the limit position of the preset motor in the camera module includes:
[0013] Determining the gear position of the aperture, adjusting the preset motor in the camera module to be at different extreme positions, and obtaining multiple reference positions of the aperture blades under the gear position;
[0014] A reference position range of the aperture blades under the gear position is determined according to a maximum value and a minimum value among the plurality of reference positions.
[0015] In an exemplary embodiment, determining the calibration information of the aperture according to the limit position of the preset motor in the camera module includes:
[0016] Determine the limit position of the preset motor in the camera module, adjust the aperture to different gears, and obtain the reference position of the aperture blades at different gears of the limit position;
[0017] The reference position range of the aperture blades at different gears is determined according to the reference positions of the aperture blades at different gears of the multiple extreme positions and the maximum and minimum values of the multiple reference positions of the aperture blades at different gears.
[0018] In an exemplary embodiment, when the number of the preset motors is greater than 1, the number of reference positions corresponding to the gear position is the product of the number of limit positions of each preset motor.
[0019] In an exemplary embodiment, the preset motor includes at least one of the following:
[0020] Autofocus motor;
[0021] Anti-shake motor.
[0022] According to a second aspect of an embodiment of the present disclosure, there is provided an aperture control device, the device comprising:
[0023] A detection module is configured to determine the current gear of the aperture and the current position of the aperture blades in the camera module during the camera shooting process;
[0024] an acquisition module, configured to acquire a target reference position range, wherein the target reference position range is a reference position range of the aperture blades at the current gear position;
[0025] The control module is configured to adjust the position of the aperture blade in the camera module to be within the target reference position range if the current position is outside the target reference position range.
[0026] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, including:
[0027] A position detection device for detecting the position of the aperture blades;
[0028] processor;
[0029] a memory for storing processor-executable instructions;
[0030] The processor is configured to execute the method as described in the first aspect of the embodiment of the present disclosure.
[0031] According to a fourth aspect of an embodiment of the present disclosure, a non-temporary computer-readable storage medium is provided. When instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method described in the first aspect of the embodiment of the present disclosure.
[0032] The above method disclosed in the present invention has the following beneficial effects: the position of the aperture blades in the camera module can be kept in a normal state at all times, and the problem of abnormal position of the aperture blades can be avoided, thereby ensuring the camera's shooting effect and improving the user's shooting experience.
[0033] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0035] Figure 1 is a flow chart of an aperture control method according to an exemplary embodiment;
[0036] Figure 2 is a flow chart of an aperture control method according to an exemplary embodiment;
[0037] Figure 3 is a flow chart of an aperture control method according to an exemplary embodiment;
[0038] Figure 4 is a block diagram of an aperture control device according to an exemplary embodiment;
[0039] Figure 5 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0040] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0041] In an exemplary embodiment of the present disclosure, in order to overcome the problem of abnormal aperture position existing in the related art, an aperture control method is provided, including: during camera shooting, determining the current gear of the aperture and the current position of the aperture blades in the camera module, obtaining a target reference position range, the target reference position range being the reference position range of the aperture blades under the current gear, and if the current position is outside the target reference position range, adjusting the position of the aperture blades in the camera module to within the target reference position range. The method in the embodiment of the present disclosure can keep the position of the aperture blades in the camera module in a normal state, avoid the problem of abnormal aperture blade position, thereby ensuring the camera shooting effect and improving the user's shooting experience.
[0042] In an exemplary embodiment of the present disclosure, a method for controlling an aperture is provided. Figure 1 is a flow chart of an aperture control method according to an exemplary embodiment. Figure 1 As shown, the following steps are included:
[0043] Step S101, during camera shooting, determining the current gear position of the aperture and the current position of the aperture blades in the camera module;
[0044] Step S102, obtaining a target reference position range, where the target reference position range is a reference position range of the aperture blades in the current gear position;
[0045] Step S103: if the current position is outside the target reference position range, adjust the position of the aperture blades in the camera module to be within the target reference position range.
[0046] The aperture control method in the disclosed embodiment is applied to electronic devices, including smart phones, tablet computers, smart wearable devices and other electronic devices with camera modules, wherein the camera module includes an aperture and other camera-related hardware structures, such as lenses, motors, image sensors, etc., and the hardware structures included in other camera-related hardware structures may be different in different electronic devices. The aperture in the camera module may be a variable aperture, that is, an aperture that can adjust the aperture value, or other apertures that are easily affected by the internal hardware structure of the camera module or by external influences to change the aperture effect. The variable aperture is taken as an example in the disclosed embodiment.
[0047] When using a camera to shoot, the camera module is in a working state, and the shooting effect to be presented by each hardware structure in the camera module is determined according to user instructions or default settings, that is, the shooting parameters are determined, such as the aperture value of the aperture, focus data, exposure value and other shooting parameters. Different shooting parameters are controlled by different hardware structures. For example, the focus parameter is controlled by the lens and the focus motor, and different focus parameters are set by controlling the lens to move to different positions through the focus motor.
[0048] In step S101, the aperture value of the aperture in the shooting parameters is represented by the aperture gear, and different gears correspond to different aperture values or different aperture value ranges. For example, a higher gear represents a larger aperture value. The aperture gear is determined by the position of the aperture blades in the aperture in the camera module, and the variable aperture includes at least two gears. When the aperture value of the aperture is different, that is, when the aperture gear is different, the position of the aperture blade in the camera module is also different, and the current position of the aperture blade represents the actual position of the aperture blade in the camera module at the current moment.
[0049] During the camera shooting process, the current position of the aperture is determined by the determined shooting parameters, and the current position of the aperture blades in the camera module is determined by the position detection device. The position detection device is pre-set in the camera module, and the position detection device is a device that can detect the position of the aperture blades, such as a Hall sensor.
[0050] In step S102, the target reference position range represents the position range of the aperture blades in the camera module when the aperture value corresponding to the current gear can be reached, that is, the position range of the aperture blades in the current gear when not affected by any factors.
[0051] In some possible implementations, the reference position range of the aperture blades in the current gear is a preset value pre-stored in a memory of the electronic device. The reference position ranges of the aperture blades in different gears are burned into an electrically erasable programmable read-only memory (EEPROM) of the electronic device, that is, a mapping relationship table between the aperture gear and the reference position range of the aperture blades is burned, and after determining the current gear, the target reference position range of the aperture blades in the current gear is queried in the memory.
[0052] In step S103, the current position represents the actual position of the aperture blades in the camera module at the current moment, and the reference position range of the aperture blades in the current gear represents the theoretical position of the aperture blades in the camera module at the current moment. The current position is compared with the reference position range of the aperture blades in the current gear to determine whether the current position deviates from the theoretical position. If the current position is within the reference position range of the aperture blades in the current gear, it means that the actual position has not deviated from the theoretical position, and the current position can make the aperture value of the aperture reach the expected aperture value. At this time, there is no need to adjust the position of the aperture blades in the camera module; if the current position is outside the reference position range of the aperture blades in the current gear, it means that there is an abnormality in the position of the aperture blades, causing the actual position to deviate from the theoretical position. For example, it is affected by motion acceleration and moves to the aperture blade position corresponding to other gears or moves to the aperture blade position between two gears. At this time, the current position cannot make the aperture value of the aperture reach the expected aperture value. In order to ensure the shooting effect, adjust the position of the aperture blades in the camera module and reset the position of the aperture blades to within the reference position range of the aperture blades in the current gear, that is, within the target reference position range.
[0053] In an exemplary embodiment of the present disclosure, during camera shooting, the real-time gear position of the aperture and the real-time position of the aperture blades are obtained by determining the current gear of the aperture and the current position of the aperture blades in the camera module, and whether the real-time position is abnormal is determined by comparing the current position with the reference position range of the aperture blades in the current gear. If the current position is outside the reference position range of the aperture blades in the current gear, that is, when the real-time position is abnormal, the position of the aperture blades in the camera module is adjusted to within the target reference position range. This allows the position of the aperture blades in the camera module to remain normal, avoiding the problem of abnormal position of the aperture blades, thereby ensuring the camera's shooting effect and improving the user's shooting experience.
[0054] In an exemplary embodiment of the present disclosure, a method for controlling an aperture is provided. Figure 2 is a flow chart of an aperture control method according to an exemplary embodiment. Figure 2 As shown, the following steps are included:
[0055] Step S201, determining the calibration information of the aperture according to the preset position range of the motor in the camera module, the calibration information including: the reference position range of the aperture blades under different gears;
[0056] Step S202, during the camera shooting process, determining the current gear of the aperture and the current position of the aperture blades in the camera module;
[0057] Step S203, obtaining a target reference position range in the calibration information, where the target reference position range is a reference position range of the aperture blades in the current gear position;
[0058] Step S204: if the current position is outside the target reference position range, adjust the position of the aperture blades in the camera module to be within the target reference position range.
[0059] Among them, the specific implementation of steps S202 to S204 refers to steps S101 to S103, which will not be repeated here.
[0060] In step S201, when adjusting other shooting parameters other than the aperture value, the hardware structure needs to be controlled by a motor. When adjusting the shooting parameters by a preset motor, the movement of the preset motor will affect the position of the aperture blades. However, the influence of the movement of the preset motor on the position of the aperture blades is a normal influence in the adjustment of the shooting parameters and the influence is small, and will not affect the size of the aperture value. The range of change of the aperture blade position caused by the movement of the preset motor is the reference position range of the aperture blades. Therefore, the reference position range of the aperture blades can be determined according to the position range of the preset motor moving in the camera module. Since the position of the aperture blades is different at different gears, when the aperture is in different gears, the reference position range of the aperture blades at each gear can be determined respectively according to the position range of the preset motor moving in the camera module.
[0061] In one example, the preset motor includes at least one of the following: an auto focus (AF) motor; an optical image stabilization (OIS) motor.
[0062] The position range of the preset motor in the camera module is determined by the position of the preset motor in the camera module when it is in each gear position. The preset motor can be adjusted to different gear positions in sequence, and the position of the iris blades when the motor is in each gear position is recorded, thereby obtaining the reference position range of the aperture blades by statistics; the preset motor can also be adjusted to a preset gear position, and the position of the iris blades when the motor is in the preset gear position is recorded, thereby obtaining the reference position range of the aperture blades by analysis.
[0063] The calibration information of the aperture includes reference position ranges of aperture blades under different gears. If the aperture includes at least one gear, the calibration information includes at least one set of correspondence between the gears and the reference position ranges of the aperture blades. After the calibration information of the aperture is determined, it is stored in a memory of the electronic device, and during the camera shooting process, the target reference position range corresponding to the current gear is queried from the calibration information.
[0064] In this exemplary embodiment, the calibration information of the aperture is determined according to the preset position range of the motor in the camera module, which can avoid detecting the position change of the aperture blades caused by the movement of the motor as an abnormal position state.
[0065] In an exemplary embodiment of the present disclosure, a method for controlling an aperture is provided. Figure 3 is a flow chart of an aperture control method according to an exemplary embodiment. Figure 3 As shown, the following steps are included:
[0066] Step S301, determining the calibration information of the aperture according to the preset limit position of the motor in the camera module, the calibration information including: the reference position range of the aperture blades under different gears;
[0067] Step S302, during the camera shooting process, determining the current gear of the aperture and the current position of the aperture blades in the camera module;
[0068] Step S303, obtaining a target reference position range in the calibration information, where the target reference position range is a reference position range of the aperture blades in the current gear position;
[0069] Step S304: if the current position is outside the target reference position range, adjust the position of the aperture blades in the camera module to be within the target reference position range.
[0070] Among them, the specific implementation of steps S302 to S304 refers to steps S101 to S103, which will not be repeated here.
[0071] In step S301, the limit position indicates the position point corresponding to the extreme value in the position range of the preset motor in the camera module. The number of the limit positions of the preset motor is determined according to the hardware structure requirements of the preset motor. For example, the AF motor includes 2 limit positions, which are the far focus and the near focus, and the OIS motor includes 4 limit positions, which are the 4 diagonal positions of the x-axis and the y-axis. Under each aperture gear, the position of the aperture blade when the preset motor is at the limit position in the camera module is represented by the reference position. The maximum and minimum values in the reference position are the position points corresponding to the extreme values of the reference position range of the aperture blade. Therefore, the reference position range can be determined according to the maximum and minimum values in the reference position.
[0072] In one example, when the number of preset motors is equal to 1, the number of reference positions corresponding to each gear is equal to the number of limit positions of the preset motor. For example, if the number of limit positions of the preset motor is 4, each gear corresponds to 4 reference positions.
[0073] In one example, when the number of preset motors is greater than 1, the number of reference positions corresponding to each gear is the product of the number of limit positions of each preset motor. For example, the preset motors include an AF motor and an OIS motor, the AF motor includes 2 limit positions, and the OIS motor includes 4 limit positions, then each gear corresponds to 2×4=8 reference positions.
[0074] In some possible implementations, according to the preset limit position of the motor in the camera module, the method for determining the calibration information of the aperture is one of the following two methods:
[0075] Method 1 includes the following steps:
[0076] S11, determining the gear position of the aperture, adjusting the preset motor in the camera module to different extreme positions, and obtaining multiple reference positions of the aperture blades under the gear position;
[0077] S12, determining a reference position range of the aperture blades in the gear according to a maximum value and a minimum value among a plurality of reference positions of the gear.
[0078] First, the aperture gear is fixed and unchanged, the aperture gear is determined, and the preset motor is adjusted in different extreme positions in the camera module to obtain multiple reference positions of the aperture blades at the gear. For example, when the preset motor includes one motor and the motor includes two extreme positions, the aperture gear is determined to be gear 1, and the position of the preset motor is first adjusted to be in the first extreme position. At this time, the position of the aperture blade is the reference position of the aperture blade corresponding to the first extreme position at the gear. Then, the position of the preset motor is adjusted to be in the second extreme position. At this time, the position of the aperture blade is the reference position of the aperture blade corresponding to the second extreme position at the gear. Thus, two reference positions of the aperture blade at gear 1 are obtained.
[0079] After obtaining multiple reference positions of the aperture blades at this gear, the reference position range of the aperture blades at this gear is determined according to the maximum value and the minimum value among the multiple reference positions of this gear. For example, in the above example, two reference positions of the aperture blades at gear 1 are obtained, one of which is the maximum value and the other is the minimum value. The position range formed by the two reference positions is the reference position range of the aperture blades at gear 1.
[0080] Then adjust the aperture gear position to obtain multiple reference positions of the aperture blades in each gear position in turn. For example, the aperture in the above example includes three gear positions, namely gear position 1, gear position 2, and gear position 3. After obtaining two reference positions of the aperture blades in gear position 1, adjust the aperture gear position to gear position 2 to obtain two reference positions of the aperture blades in gear position 2, and then adjust the aperture gear position to gear position 3 to obtain two reference positions of the aperture blades in gear position 3.
[0081] After obtaining a plurality of reference positions of the aperture blades in each gear, the reference position range of the aperture blades in each gear is composed of the maximum value and the minimum value among the plurality of reference positions in each gear.
[0082] Method 2 includes the following steps:
[0083] S21, determining the limit position of the preset motor in the camera module, adjusting the aperture to different gears, and obtaining the reference position of the aperture blades at different gears of the limit position;
[0084] S22, determining a reference position range of the aperture blades at different gears according to the reference positions of the aperture blades at different gears at multiple extreme positions and the maximum and minimum values of the multiple reference positions of the aperture blades at different gears.
[0085] First, fix the limit position of the preset motor in the camera module unchanged, determine the limit position, adjust the aperture to different gears, and obtain the reference position of the aperture blades at the limit position at different gears. For example, the preset motor includes one motor, and the aperture includes 3 gears, namely gear 1, gear 2, and gear 3. When it is determined that the preset motor is in the first limit position, first adjust the aperture to gear 1. At this time, the position of the aperture blades is the reference position of the aperture blades at the first limit position gear 1. Then adjust the aperture to gear 2. At this time, the position of the aperture blades is the reference position of the aperture blades at the first limit position gear 2. Then adjust the aperture to gear 3. At this time, the position of the aperture blades is the reference position of the aperture blades at the first limit position gear 3. Thus, the reference position of the aperture blades at the first limit position 3 gears is obtained.
[0086] Then adjust the limit position of the preset motor in the camera module, and obtain the reference position of the aperture blades in different gears at each limit position in turn. For example, the preset motor in the above example includes two limit positions. After obtaining the reference position of the aperture blades at the first limit position in 3 gears, adjust the position of the preset motor to the second limit position to obtain the reference position of the aperture blades at the second limit position in 3 gears.
[0087] After obtaining the reference positions of the aperture blades at each extreme position in different gears, they are summarized and the reference positions of the aperture blades at the same gear are taken as a set. Then, each gear includes multiple reference positions. The maximum and minimum values of the aperture blades at multiple reference positions at different gears constitute the reference position range of the aperture blades at different gears.
[0088] In this exemplary embodiment, when the motor is preset at the extreme position in the camera module, the reference position of the aperture blades is obtained, and the maximum and minimum values in the reference position are the maximum and minimum values of the reference position range, thereby enabling the reference position range to be accurately and quickly obtained.
[0089] In an exemplary embodiment of the present disclosure, an aperture control device is provided. Figure 4 is a block diagram of an aperture control device according to an exemplary embodiment. Figure 4 As shown, the aperture control device includes:
[0090] The detection module 401 is configured to determine the current gear of the aperture and the current position of the aperture blades in the camera module during the camera shooting process;
[0091] An acquisition module 402 is configured to acquire a target reference position range, where the target reference position range is a reference position range of the aperture blades in the current gear position;
[0092] The control module 403 is configured to adjust the position of the aperture blades in the camera module to be within the target reference position range if the current position is outside the target reference position range.
[0093] In an exemplary embodiment, the aperture control device further includes a calibration module 404 configured to:
[0094] According to the preset position range of the motor in the camera module, the calibration information of the aperture is determined, and the calibration information includes: the reference position range of the aperture blades under different gears.
[0095] In an exemplary embodiment, the calibration module 404 is further configured to:
[0096] The aperture calibration information is determined according to the preset limit position of the motor in the camera module.
[0097] In an exemplary embodiment, the calibration module 404 is further configured to:
[0098] Determine the aperture gear position, adjust the preset motor in the camera module to different extreme positions, and obtain multiple reference positions of the aperture blades under the gear position;
[0099] The reference position range of the aperture blades in the gear is determined according to the maximum value and the minimum value among the multiple reference positions.
[0100] In an exemplary embodiment, the calibration module 404 is further configured to:
[0101] Determine the limit position of the preset motor in the camera module, adjust the aperture to different gears, and obtain the reference position of the aperture blades at different gears of the limit position;
[0102] The reference position range of the aperture blades at different gears is determined according to the reference positions of the aperture blades at different gears at multiple extreme positions and the maximum and minimum values of the multiple reference positions of the aperture blades at different gears.
[0103] In an exemplary embodiment, when the number of preset motors is greater than 1, the number of reference positions corresponding to the gear position is the product of the number of limit positions of each preset motor.
[0104] In an exemplary embodiment, the preset motor includes at least one of the following:
[0105] Autofocus motor;
[0106] Anti-shake motor.
[0107] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0108] In an exemplary embodiment of the present disclosure, there is provided an electronic device, including:
[0109] A position detection device for detecting the position of the aperture blades;
[0110] processor;
[0111] a memory for storing processor-executable instructions;
[0112] The processor is configured to execute the aperture control method in any of the above embodiments.
[0113] Figure 5 is a block diagram of an electronic device 500 according to an exemplary embodiment.
[0114] Reference Figure 5 , the electronic device 500 may include one or more of the following components: a processing component 502 , a memory 504 , a power component 506 , a multimedia component 508 , an audio component 510 , an input / output (I / O) interface 512 , a sensor component 514 , and a communication component 516 .
[0115] The processing component 502 generally controls the overall operation of the electronic device 500, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 502 may include one or more processors 520 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 502 may include one or more modules to facilitate the interaction between the processing component 502 and other components. For example, the processing component 502 may include a multimedia module to facilitate the interaction between the multimedia component 508 and the processing component 502.
[0116] The memory 504 is configured to store various types of data to support operations on the electronic device 500. Examples of such data include instructions for any application or method operating on the electronic device 500, contact data, phone book data, messages, pictures, videos, etc. The memory 504 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0117] The power supply component 506 provides power to the various components of the electronic device 500. The power supply component 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 500.
[0118] The multimedia component 508 includes a screen that provides an output interface between the electronic device 500 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 508 includes a front camera and / or a rear camera. When the electronic device 500 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0119] The audio component 510 is configured to output and / or input audio signals. For example, the audio component 510 includes a microphone (MIC), and when the electronic device 500 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 504 or sent via the communication component 516. In some embodiments, the audio component 510 also includes a speaker for outputting audio signals.
[0120] I / O interface 512 provides an interface between processing component 502 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0121] The sensor assembly 514 includes one or more sensors for providing various aspects of status assessment for the electronic device 500. For example, the sensor assembly 514 can detect the open / closed state of the electronic device 500, the relative positioning of components, such as the display and keypad of the electronic device 500, and the sensor assembly 514 can also detect the position change of the electronic device 500 or a component of the electronic device 500, the presence or absence of user contact with the electronic device 500, the orientation or acceleration / deceleration of the electronic device 500, and the temperature change of the electronic device 500. The sensor assembly 514 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 514 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 514 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0122] The communication component 516 is configured to facilitate wired or wireless communication between the electronic device 500 and other devices. The electronic device 500 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 516 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 516 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0123] In an exemplary embodiment, the electronic device 500 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.
[0124] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 504 including instructions, and the instructions can be executed by a processor 520 of an electronic device 500 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0125] A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to execute an aperture control method, the method including any of the above methods.
[0126] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0127] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. An aperture control method, characterized in that: The method comprises: During camera shooting, determining the current gear position of the aperture and the current position of the aperture blades in the camera module; Acquire a target reference position range, where the target reference position range is a reference position range of the aperture blades at the current gear position; If the current position is outside the target reference position range, the position of the aperture blades in the camera module is adjusted to be within the target reference position range.
2. The aperture control method according to claim 1, characterized in that: The method further comprises: The calibration information of the aperture is determined according to a preset position range of the motor in the camera module, and the calibration information includes: a reference position range of the aperture blades under different gears.
3. The aperture control method according to claim 2, characterized in that: The step of determining the calibration information of the aperture according to the preset position range of the motor in the camera module includes: The calibration information of the aperture is determined according to the limit position of the preset motor in the camera module.
4. The aperture control method according to claim 3, characterized in that: The step of determining the calibration information of the aperture according to the limit position of the preset motor in the camera module includes: Determining the gear position of the aperture, adjusting the preset motor in the camera module to be at different extreme positions, and obtaining multiple reference positions of the aperture blades under the gear position; A reference position range of the aperture blades under the gear position is determined according to a maximum value and a minimum value among the plurality of reference positions.
5. The aperture control method according to claim 3, characterized in that: The step of determining the calibration information of the aperture according to the limit position of the preset motor in the camera module includes: Determine the limit position of the preset motor in the camera module, adjust the aperture to different gears, and obtain the reference position of the aperture blades at different gears of the limit position; The reference position range of the aperture blades at different gears is determined according to the reference positions of the aperture blades at different gears of the multiple extreme positions and the maximum and minimum values of the multiple reference positions of the aperture blades at different gears.
6. The aperture control method according to claim 4 or 5, characterized in that: When the number of the preset motors is greater than 1, the number of reference positions corresponding to the gear position is the product of the number of limit positions of each preset motor.
7. The aperture control method according to any one of claims 2 to 5, characterized in that: The preset motor includes at least one of the following: Autofocus motor; Anti-shake motor.
8. An aperture control device, characterized in that: The device comprises: A detection module is configured to determine the current gear of the aperture and the current position of the aperture blades in the camera module during the camera shooting process; an acquisition module, configured to acquire a target reference position range, wherein the target reference position range is a reference position range of the aperture blades at the current gear position; The control module is configured to adjust the position of the aperture blade in the camera module to be within the target reference position range if the current position is outside the target reference position range.
9. An electronic device, characterized in that: include: A position detection device for detecting the position of the aperture blades; processor; a memory for storing processor-executable instructions; The processor is configured to execute the method as claimed in any one of claims 1 to 8.
10. A non-transitory computer-readable storage medium, characterized in that: When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method as claimed in any one of claims 1 to 8.