WO2024051684A1 - 电压调整方法及相关装置 - Google Patents
电压调整方法及相关装置 Download PDFInfo
- Publication number
- WO2024051684A1 WO2024051684A1 PCT/CN2023/116991 CN2023116991W WO2024051684A1 WO 2024051684 A1 WO2024051684 A1 WO 2024051684A1 CN 2023116991 W CN2023116991 W CN 2023116991W WO 2024051684 A1 WO2024051684 A1 WO 2024051684A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- aperture
- electronic device
- lens
- motor
- voltage
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/65—Control of camera operation in relation to power supply
- H04N23/651—Control of camera operation in relation to power supply for reducing power consumption by affecting camera operations, e.g. sleep mode, hibernation mode or power off of selective parts of the camera
-
- G—PHYSICS
- G02—OPTICS
- G02B—OPTICAL ELEMENTS, SYSTEMS OR APPARATUS
- G02B7/00—Mountings, adjusting means, or light-tight connections, for optical elements
- G02B7/02—Mountings, adjusting means, or light-tight connections, for optical elements for lenses
- G02B7/04—Mountings, adjusting means, or light-tight connections, for optical elements for lenses with mechanism for focusing or varying magnification
-
- G—PHYSICS
- G03—PHOTOGRAPHY; CINEMATOGRAPHY; ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ELECTROGRAPHY; HOLOGRAPHY
- G03B—APPARATUS OR ARRANGEMENTS FOR TAKING PHOTOGRAPHS OR FOR PROJECTING OR VIEWING THEM; APPARATUS OR ARRANGEMENTS EMPLOYING ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ACCESSORIES THEREFOR
- G03B13/00—Viewfinders; Focusing aids for cameras; Means for focusing for cameras; Autofocus systems for cameras
- G03B13/32—Means for focusing
- G03B13/34—Power focusing
- G03B13/36—Autofocus systems
-
- G—PHYSICS
- G03—PHOTOGRAPHY; CINEMATOGRAPHY; ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ELECTROGRAPHY; HOLOGRAPHY
- G03B—APPARATUS OR ARRANGEMENTS FOR TAKING PHOTOGRAPHS OR FOR PROJECTING OR VIEWING THEM; APPARATUS OR ARRANGEMENTS EMPLOYING ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ACCESSORIES THEREFOR
- G03B30/00—Camera modules comprising integrated lens units and imaging units, specially adapted for being embedded in other devices, e.g. mobile phones or vehicles
-
- G—PHYSICS
- G03—PHOTOGRAPHY; CINEMATOGRAPHY; ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ELECTROGRAPHY; HOLOGRAPHY
- G03B—APPARATUS OR ARRANGEMENTS FOR TAKING PHOTOGRAPHS OR FOR PROJECTING OR VIEWING THEM; APPARATUS OR ARRANGEMENTS EMPLOYING ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ACCESSORIES THEREFOR
- G03B7/00—Control of exposure by setting shutters, diaphragms or filters, separately or conjointly
- G03B7/26—Power supplies; Circuitry or arrangement to switch on the power source; Circuitry to check the power source voltage
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02P—CONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
- H02P3/00—Arrangements for stopping or slowing electric motors, generators, or dynamo-electric converters
- H02P3/02—Details of stopping control
- H02P3/025—Details of stopping control holding the rotor in a fixed position after deceleration
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02P—CONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
- H02P7/00—Arrangements for regulating or controlling the speed or torque of electric DC motors
- H02P7/02—Arrangements for regulating or controlling the speed or torque of electric DC motors the DC motors being of the linear type
- H02P7/025—Arrangements for regulating or controlling the speed or torque of electric DC motors the DC motors being of the linear type the DC motors being of the moving coil type, e.g. voice coil motors
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/50—Constructional details
- H04N23/55—Optical parts specially adapted for electronic image sensors; Mounting thereof
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/57—Mechanical or electrical details of cameras or camera modules specially adapted for being embedded in other devices
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/67—Focus control based on electronic image sensor signals
- H04N23/673—Focus control based on electronic image sensor signals based on contrast or high frequency components of image signals, e.g. hill climbing method
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/67—Focus control based on electronic image sensor signals
- H04N23/675—Focus control based on electronic image sensor signals comprising setting of focusing regions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/70—Circuitry for compensating brightness variation in the scene
- H04N23/75—Circuitry for compensating brightness variation in the scene by influencing optical camera components
Definitions
- the present application relates to the field of terminals, and in particular to voltage adjustment methods and related devices.
- the camera module is a research focus of developers on how to reduce the power consumption of the camera module.
- terminal equipment generally includes multiple camera modules, such as telephoto camera modules, wide-angle camera modules, ultra-wide-angle camera modules, etc.
- one method is to switch the camera module used in the shooting mode to the working mode according to the shooting mode selected by the user, and switch the working mode of other camera modules to low Power consumption mode to reduce the power consumption of other camera modules as much as possible.
- the wide-angle camera module is switched to the working mode, the images collected by the wide-angle camera are displayed in the user interface, and other camera modules are switched to the low-power mode.
- this method can only reduce the power consumed by other camera modules that are not related to the current shooting process, and does not improve the power consumption of the camera module being used during the current shooting process. Therefore, how to reduce the power consumption of the camera module used in the current shooting process is an issue that needs to be solved urgently.
- This application provides a voltage adjustment method and related devices, which enables dynamic adjustment of the driving voltage of the driving chip in the camera and reduces the power consumption of the camera.
- Embodiments of the present application provide a voltage adjustment method.
- the method is applied to an electronic device including a camera.
- the camera includes a lens, a motor and a drive chip.
- the method includes: the electronic device starts the camera and collects images through the camera; the electronic device provides a third A driving voltage is provided to the driving chip to drive the motor to move the lens to the first position; the electronic device provides a second driving voltage to the driving chip to drive the motor to move the lens to the second position; the second driving voltage is different from the first driving voltage , the second position is different from the first position.
- the electronic device can dynamically adjust the driving voltage of the driver chip according to the moving position of the lens during the process of using the camera to collect images, thereby preventing the driver chip from being in a high voltage state all the time and reducing the power consumption of the driver chip. This in turn reduces the power consumption of the camera used during shooting.
- the second driving voltage is greater than the first driving voltage, and the distance between the second position and the third position is greater than the distance between the first position and the third position; the third position It is the position of the lens when the motor is not moving the lens.
- the closer the lens moves to the initial position the smaller the driving voltage of the driver chip. Then, when the lens moves closer, the driving voltage of the driver chip can be reduced to prevent the lens from still applying high voltage to the driver chip when the lens moves closer, thereby achieving the premise that the driver chip can move the lens to the specified position. down, and can reduce the power consumption of the driver chip.
- the method further includes: the electronic device provides a third driving voltage to the driving chip to drive the motor to move the lens to the first position; wherein the posture when the electronic device provides the third driving voltage , different from the posture when the electronic device provides the first driving voltage; the third driving voltage is different from the first driving voltage.
- the electronic device controls the lens to move to a designated position, it further determines the voltage that needs to be applied to the driver chip based on the posture of the electronic device, so that the electronic device can further lower the driver chip when it is in a posture where the motor can easily push the lens.
- the voltage further reduces the power consumption of the driver chip, thereby reducing the power consumption of the camera during operation as much as possible.
- the posture of the electronic device refers to the angle between the plane of the lens and the horizontal plane.
- the electronic device provides the third driving voltage
- the angle between the plane of the lens and the horizontal plane is at the first angle.
- the device provides the first driving voltage the plane of the lens and the horizontal plane are at a second included angle; the first included angle is smaller than the second included angle, and the third driving voltage is greater than the first driving voltage.
- the attitude of the electronic device that is, the angle between the lens and the horizontal plane
- the attitude of the electronic device can be used to characterize the direction in which the motor moves the lens, and then determine the driver chip. the driving voltage.
- the angle between the plane of the lens and the horizontal plane is larger, that is, the plane of the lens is more perpendicular to the horizontal plane, the motor is closer to moving the lens in the horizontal direction.
- the voltage required to drive the chip is higher. Small.
- the clarity of the image captured by the camera when the lens is located at the second position is higher than the clarity of the image captured by the camera when the lens is located at other positions than the second position; After the electronic device provides the second driving voltage to the driving chip to drive the motor to move the lens to the second position, the method further includes: the electronic device continues to provide the fourth driving voltage to the driving chip to drive the motor to keep the lens in the second position.
- the electronic device can move the position of the lens during the autofocus process, adjust the clarity of the image collected by the camera, and adjust the voltage of the driver chip according to the position of the lens movement until the clarity of the image reaches the highest level and the electronic device ends the automatic Focus and hold the lens at the position corresponding to the current sharpest point. In this way, the power consumption of the camera during the autofocus process can be reduced.
- the first position and the second position are determined according to an operation of adjusting the position of the lens input by the user.
- the electronic device can move the position of the lens during manual focusing, determine the position of the lens based on the operation input by the user, and then adjust the voltage of the driver chip based on the position. In this way, the power consumption of the camera during manual focusing can be reduced.
- the electronic device provides a first driving voltage to the driving chip to drive the motor to move the lens to the first position; the electronic device provides a second driving voltage to the driving chip to drive the motor to move the lens. to the second position, specifically including: the electronic device provides a first driving voltage to the driver chip, and provides the first current to the motor through the driver chip according to the first proportional integral differential PID parameter to drive the motor to move the lens to the first position; electronically The device provides a second driving voltage to the driver chip, and provides a second current to the motor through the driver chip according to the second proportional integral differential PID parameter to drive the motor to move the lens to the second position.
- the proportional integral differential PID parameters can be used to improve the accuracy of lens movement when the driver chip controls the motor to move the lens, and speed up the lens movement to the target position during the focusing process. Then, when the voltage of the driver chip needs to be adjusted, the electronic device can update the PID parameters to ensure the accuracy of the lens movement.
- the electronic device pre-stores the first proportional-integral-derivative PID parameters and the second proportional-integral-derivative PID parameters.
- the method further includes: the electronic device displays the image collected through the camera, wherein the image collected by the electronic device when the lens is in the first position and the lens in The sharpness of the images collected in the second position is different.
- the user can see through the display screen of the electronic device that the sharpness of the image captured by the camera changes dynamically as the lens position changes.
- the method further includes: when the electronic device starts the camera, providing a fourth driving voltage to the driving chip to drive the motor to move the lens to the fourth position; the fourth driving voltage is a preset Voltage.
- the electronic device can provide a preset voltage to the driver chip, so that the motor can quickly move the lens to an initial position and quickly start the focus of the camera.
- the preset voltage is a high voltage.
- the high voltage may refer to a voltage whose voltage value is greater than a certain threshold.
- the electronic device can provide a high voltage to the driver chip by default when starting the camera.
- embodiments of the present application provide a voltage adjustment method, which method is applied to an electronic device including a camera.
- the camera includes an aperture, a motor and a drive chip.
- the method includes: the electronic device starts the camera and collects images through the camera; The electronic device provides a first driving voltage to the driving chip to drive the motor to change the aperture size of the aperture so that the aperture value of the aperture is adjusted to the first value; the electronic device adjusts the first driving voltage to the second driving voltage; the first driving voltage is greater than Second driving voltage.
- the electronic device can provide high voltage to the driver chip when adjusting the aperture, and provide low voltage to the driver chip after the aperture adjustment is completed.
- the driver chip can be prevented from being at a high voltage all the time, which reduces the driver chip. power consumption, thereby reducing the power consumption of the camera used during shooting.
- the electronic device provides a first driving voltage to the driving chip, specifically including: the electronic device adjusts the voltage provided to the driving chip from the third driving voltage to the first driving voltage, and the third driving voltage is less than the first driving voltage.
- the electronic device can also provide low voltage to the driver chip before the electronic device adjusts the aperture.
- the driver chip is at a high voltage, thereby achieving the purpose of dynamically adjusting the voltage of the driver chip according to whether the aperture is adjusted or not.
- the third driving voltage is equal to the second driving voltage.
- the driver chip has a total of two voltages, one with a higher voltage and one with a lower voltage.
- the driving voltage of the driver chip is the higher voltage.
- the driver chip of the driver chip for this lower voltage.
- the electronic device provides a first driving voltage to the driving chip to drive the motor to change the aperture size of the aperture so that the aperture value of the aperture is adjusted to the first value.
- the electronic device provides the first driving voltage.
- the driving voltage is provided to the driving chip, and one or more currents are provided to the motor through the driving chip to drive the motor to adjust the aperture size of the aperture to the first size, so that the aperture value of the aperture is adjusted to the first value; wherein, the plurality of currents include The first current and the second current, the second current is determined according to the aperture size of the aperture adjusted by the motor under the action of the first current.
- the driver chip can reversely adjust the thrust applied to the aperture blades by the motor based on the position of the aperture blade movement, so that the aperture size of the aperture is adjusted to a more accurate size corresponding to the aperture value.
- the method further includes: the electronic device provides one or more currents to the motor through the driving chip to drive the motor to move the aperture.
- the aperture size remains at the first size.
- the driver chip can dynamically adjust the thrust of the motor to keep the aperture size of the aperture unchanged, thus avoiding the change in the voltage of the driver chip causing the aperture to change. Jitter affects the camera's picture rendering effect.
- the first value is an aperture value other than the maximum aperture value and the minimum aperture value.
- the above-mentioned driver chip can be used to adjust the aperture by reversely adjusting the thrust of the motor according to a certain position of the aperture blade, making the aperture adjustment more precise.
- the electronic device provides a first driving voltage to the driving chip to drive the motor to change the aperture size of the aperture so that the aperture value of the aperture is adjusted to the first value.
- the electronic device provides the first driving voltage.
- the driving voltage is provided to the driving chip, and a third current is provided to the motor through the driving chip, so that the motor generates a first thrust to change the aperture size of the aperture, so that the aperture value of the aperture is adjusted to the first value.
- the driver chip can also reversely adjust the thrust exerted by the motor based on the position of the aperture blade movement.
- the driver chip can only provide a fixed current to the motor, so that the motor generates thrust to adjust the aperture under the action of the current. aperture size to quickly adjust the aperture.
- the method further includes: the electronic device provides the second voltage to the driving chip, and provides the fourth current to the driving chip through the driving chip.
- the motor keeps the aperture size changing under the action of the second thrust force.
- the fourth current may be less than the maximum current that the driver chip can provide to the motor when driven at the second voltage. In this way, the power consumption of the driver chip can be further reduced and the power consumption of the camera used in the current shooting process can be improved.
- the first value is the maximum aperture value or the minimum aperture value of the aperture.
- the aperture when the aperture needs to be adjusted to the maximum aperture or the minimum aperture, the aperture can be adjusted by using the above-mentioned driver chip to only provide a fixed current to the motor.
- the electronic device is pre-stored with the third current and/or the fourth current.
- the first value is an aperture value of the aperture when the brightness of the image collected by the electronic device is equal to the threshold value.
- Electronics can adjust the aperture size so that the brightness of the image captured by the camera reaches a threshold so that the brightness of the image is neither too bright nor too dark.
- the electronic device can dynamically change the voltage of the driver chip according to the adjustment of the aperture during the automatic exposure process, thereby reducing the power consumption of the camera during the automatic exposure process.
- the method further includes: the electronic device detects a second operation, and the second operation is used to indicate the first value.
- the electronic device can dynamically change the voltage of the driver chip according to the adjustment of the aperture when the user manually adjusts the aperture, thereby reducing the power consumption generated by the camera during the user's manual adjustment of the aperture.
- the method further includes: the electronic device displays the image collected through the camera, wherein the electronic device adjusts the aperture value to the first value before and to After the first value, the acquired images differ in brightness and/or depth of field.
- the electronic device can display an image in which the brightness and/or depth of field of the image changes following the adjustment of the aperture.
- embodiments of the present application provide an electronic device, including a camera, a memory, one or more processors, and one or more programs, wherein the camera includes a lens, a motor, and a driver chip; one or more processors When executing one or more programs, the electronic device causes the electronic device to implement the method described in the first aspect or any one of the implementation modes of the first aspect.
- embodiments of the present application provide an electronic device, including a camera, a memory, one or more processors, and one or more programs, wherein the camera includes an aperture, a motor, and a driver chip; one or more processors When executing one or more programs, the electronic device causes the electronic device to implement the method described in the first aspect or any one of the implementation modes of the first aspect.
- embodiments of the present application provide a computer-readable storage medium, including instructions.
- the electronic device When the instructions are run on an electronic device, the electronic device causes the electronic device to execute the first aspect or any one of the implementations in the first aspect, The method described in the second aspect or any one of the embodiments of the second aspect.
- embodiments of the present application provide a computer program product.
- the computer program product When the computer program product is run on a computer, it causes the computer to execute the first aspect or any one of the first aspects, the second aspect or the third aspect. The method described in any one of the two aspects.
- the voltage adjustment method provided by the embodiments of the present application can adjust the voltage of the driver chip in the camera.
- the driving voltage of the driver chip can be dynamically adjusted according to the thrust required to move the lens to the target position to avoid control.
- the driver chip that moves the lens is always at a high voltage; or, for the driver chip that controls the change of the aperture size, the drive voltage of the driver chip can be adjusted according to whether the aperture changes or not, so as to avoid the driver chip that controls the change of the aperture from being at a high voltage. In this way, the power consumption of the camera used during current shooting can be reduced and the standby time of the electronic device during use of the camera can be extended.
- FIG. 1A is a schematic diagram of the hardware structure of the electronic device 100 provided by an embodiment of the present application.
- Figure 1B is a software structure block diagram of the electronic device 100 provided by the embodiment of the present application.
- Figure 2 is a schematic structural diagram of a voltage adjustment device provided by an embodiment of the present application.
- Figure 3 is a schematic diagram of focusing provided by the embodiment of the present application.
- Figure 4 is a schematic flow chart of a voltage adjustment method provided by an embodiment of the present application.
- Figure 5 is a schematic diagram of the mapping relationship between the position of the lens and the voltage provided by the embodiment of the present application.
- Figure 6 is a schematic diagram involved in adjusting the aperture provided by the embodiment of the present application.
- Figure 7 is a schematic flow chart of another voltage adjustment method provided by an embodiment of the present application.
- FIG. 8 shows the aperture value included in the electronic device 100 provided by the embodiment of the present application.
- first and second are used for descriptive purposes only and shall not be understood as implying or implying relative importance or implicitly specifying the quantity of indicated technical features. Therefore, the features defined as “first” and “second” may explicitly or implicitly include one or more of the features. In the description of the embodiments of this application, unless otherwise specified, “plurality” The meaning is two or more.
- a camera module is composed of multiple components.
- a camera module can include: lens, aperture, motor, photosensitive chip, driver chip and other components.
- the camera module is in working condition during the shooting process, some components in the actual camera module may not need to be in working condition at all times.
- the motor can be used to drive the movement of the lens, adjust the clarity of the image displayed by the device, and achieve focus during shooting. If the motor only needs a small thrust to push the lens or does not need to push the lens, the power of the driver chip that controls the motor can be reduced. driving voltage, thereby reducing the power consumption of the driver chip and improving the power consumption of the camera module used in the shooting process.
- the motor that drives the lens movement will be referred to as the focus motor below.
- the aperture can be used to change the amount of light entering.
- the size of the aperture through the motor By adjusting the size of the aperture through the motor, the brightness or depth of field of the image displayed by the device can be adjusted. If the aperture does not need to be adjusted, the driving voltage of the driver chip that controls the motor can be reduced, reducing the power of the driver chip. Power consumption, to improve the power consumption of the camera module used in the shooting process.
- the motor that drives the aperture blades to move will be called an aperture motor in the following.
- Embodiments of the present application provide a voltage adjustment method, which can be used to dynamically adjust the driving voltage of the driving chip that controls the focus motor according to the moving position of the lens.
- a voltage adjustment method which can be used to dynamically adjust the driving voltage of the driving chip that controls the focus motor according to the moving position of the lens.
- images are collected through the camera.
- the driving voltage of the driver chip based on the target position, so that the driver chip, driven by the driving voltage, controls the focus motor to push the lens to the target position and adjust the clarity of the image.
- the driving voltage of the driving chip is dynamically adjusted according to the moving position of the lens, which can prevent the driving voltage of the driving chip from always being at a high voltage and improve the power consumption of the camera module during operation.
- embodiments of the present application also provide a voltage adjustment method, which can be used to dynamically adjust the driving voltage of the driving chip that controls the aperture motor according to whether the aperture size changes.
- the driving voltage of the driver chip is low voltage by default.
- the control The aperture motor changes the aperture size of the aperture, adjusts the aperture value of the aperture to the target aperture value, so as to obtain the image collected by the camera after the aperture value is adjusted, and finally adjusts the driving voltage of the driver chip to a low voltage.
- the target aperture value can be the aperture value set when the user manually adjusts the aperture, or it can be the aperture value calculated by the automatic exposure algorithm when the electronic device activates the automatic exposure function.
- the specific determination of the target aperture value please refer to the subsequent details, which will not be discussed here.
- the driving voltage of the driver chip of the aperture motor is low voltage by default. Only when the aperture needs to be adjusted, the driving voltage of the driver chip is temporarily adjusted to a high voltage, which avoids the driving voltage of the driver chip being always at a high voltage and improves the Power loss during the operation of the camera module.
- FIG. 1A shows a schematic diagram of the hardware structure of the electronic device 100 .
- the electronic device 100 may be a mobile phone, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a personal digital assistant (personal digital assistant) digital assistant (PDA), augmented reality (AR) device, virtual reality (VR) device, artificial intelligence (AI) device, wearable device, vehicle-mounted device, smart home device and/or Smart city equipment, the embodiment of this application does not place special restrictions on the specific type of electronic equipment.
- PDA personal digital assistant
- AR augmented reality
- VR virtual reality
- AI artificial intelligence
- wearable device wearable device
- vehicle-mounted device smart home device and/or Smart city equipment
- the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module (Power Management Unit, PMU) 141, and a battery. 142.
- SIM subscriber identification module
- the sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.
- the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100 .
- the electronic device 100 may include more or fewer components than shown in the figures, or some components may be combined, some components may be separated, or some components may be arranged differently.
- the components illustrated may be implemented in hardware, software, or a combination of software and hardware.
- the processor 110 may include one or more processing units.
- the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU), etc.
- application processor application processor, AP
- modem processor graphics processing unit
- GPU graphics processing unit
- image signal processor image signal processor
- ISP image signal processor
- controller video codec
- digital signal processor digital signal processor
- DSP digital signal processor
- baseband processor baseband processor
- neural network processor neural-network processing unit
- the controller can generate operation control signals based on the instruction operation code and timing signals to complete the control of fetching and executing instructions.
- the processor 110 may also be provided with a memory for storing instructions and data.
- the memory in processor 110 is cache memory. This memory may hold instructions or data that have been recently used or recycled by processor 110 . If the processor 110 needs to use the instructions or data again, it can be called directly from the memory. Repeated access is avoided and the waiting time of the processor 110 is reduced, thus improving the efficiency of the system.
- the processor 110 can calculate the sharpness of the image collected by the camera 193, and calculate the parameters input to the driver chip 193E of the focus motor 193C through the auto-focus algorithm, such as a code value, or based on the lens position input by the user. , calculate the parameter corresponding to the lens position.
- this parameter can be used to control the current size output by the driver chip 193E to the focus motor 193C, so that the focus motor 193C can generate different sizes of thrust to push the lens 193A according to the different sizes of current, so that the lens 193A moves to Different positions, thereby adjusting the clarity of the image collected by the camera 193.
- the processor 110 may specifically calculate the sharpness of the image through ISP to determine the parameter.
- the specific description of the focus motor 193C and the driver chip 193E can be found in the subsequent content, and will not be described in detail here.
- the processor 110 can calculate the brightness of the image collected by the camera 193 and determine the target aperture value through an automatic exposure algorithm, or obtain the target aperture value set by the user and calculate the input to the driver chip 193E of the aperture motor 193D. parameters, such as code value. This parameter can be used to control the current size output by the driver chip 193E to the aperture motor 193D, so that the aperture motor 193D can generate different sizes of thrust to push the blades of the aperture 193B according to the different sizes of current, so that the aperture value of the aperture 193B is adjusted to the target aperture. value, so that after the aperture value is adjusted to the target aperture value, the brightness of the image reaches the threshold value, thereby realizing automatic exposure of the camera 193 .
- the processor 110 may specifically calculate the brightness of the image through ISP to determine the parameter.
- the specific description of the aperture motor 193D and the driver chip 193E can be found in the following content, and will not be described in detail here.
- the charging management module 140 is used to receive charging input from the charger. While the charging management module 140 charges the battery 142, it can also provide power to the electronic device through the power management module 141.
- the power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110.
- the power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, the wireless communication module 160, and the like.
- the power management module 141 can also be used to monitor battery capacity, battery cycle times, battery health status (leakage, impedance) and other parameters.
- the power management module 141 may also be provided in the processor 110 .
- the power management module 141 and the charging management module 140 may also be provided in the same device.
- power management module 141 may be used to power one or more components in camera 193 .
- the power management module 141 can supply power to the driver chip 193E of the focus motor 193C or the aperture motor 193D in the camera 193 .
- the power management module 141 can provide two or more voltage output pins, and different pins can be used to provide voltages of different sizes.
- the driving chip 193E can be switched to connect to different voltage output pins to achieve the effect of dynamically adjusting the driving voltage of the driving chip 193E.
- the driving voltage of the driving chip 193E of the focus motor 193C can be controlled according to the moving position of the lens 193A; and the driving voltage of the driving chip 193E of the aperture motor 193D can be controlled according to whether the aperture size changes.
- the driving voltage of the driving chip 193E of the focus motor 193C and the aperture motor 193D can be controlled according to whether the aperture size changes.
- the wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
- Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
- Each antenna in electronic device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
- the mobile communication module 150 can provide solutions for wireless communication including 2G/3G/4G/5G applied on the electronic device 100 .
- the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc.
- a modem processor may include a modulator and a demodulator.
- the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal.
- the demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal.
- the demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
- the application processor outputs sound signals through audio devices (not limited to speaker 170A, receiver 170B, etc.), or displays images or videos through display screen 194.
- the wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), Bluetooth (bluetooth, BT), and global navigation satellites.
- WLAN wireless local area networks
- WiFi wireless fidelity
- BT Bluetooth
- global navigation satellites System (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions.
- the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
- the electronic device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like.
- the GPU is an image processing microprocessor and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
- Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
- the display screen 194 is used to display images, videos, etc.
- the display screen 194 may be used to display images captured by the camera 193 in real time.
- the electronic device 100 can implement the shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
- the ISP is used to process the data fed back by the camera 193. For example, when taking a photo, the shutter is opened and the light is transmitted to the camera photosensitive chip through the lens. The optical signal is converted into an electrical signal. The camera photosensitive chip transfers the electrical signal to the ISP for processing and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on image noise and brightness. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP may be provided in the camera 193.
- Camera 193 is used to capture still images or video. The object passes through the lens to generate an optical image that is projected onto the photosensitive chip.
- the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
- the camera 193 may include: lens 193A, aperture 193B, focus motor 193C, aperture motor 193D, driver chip 193E, photosensitive chip 193F and other components.
- the camera since the camera is composed of multiple components, the camera may also be called a camera module. in:
- the lens 193A can change the propagation direction of light and focus the reflected light of the subject on the photosensitive chip 193F. In addition, changing the position of the lens 193A can change the clarity of the image collected by the camera 193.
- Aperture 193B is composed of multiple aperture blades. Moving the position of aperture blades can change the aperture size of aperture 193B, changing the amount of light reflected from the subject through lens 193A and gathering on photosensitive chip 193F, that is, changing the amount of light entering, and thus changing Display effects such as image brightness or depth of field.
- different aperture sizes of aperture 193B correspond to different aperture values. The larger the aperture of aperture 193B, the smaller the aperture value, the greater the amount of light entering, the higher the brightness of the image, and the shallower the depth of field (the blurrier the background). The aperture of aperture 193B The smaller the value, the larger the aperture value, the smaller the amount of light entering, the lower the brightness of the image, and the deeper the depth of field (the clearer the background).
- the focus motor 193C is used to push the movement of the lens 193A, change the distance between the lens 193A and the photosensitive chip 193F, and thereby change the clarity of the image collected by the camera 193.
- the focus motor 193C can convert electrical energy, electromagnetic energy, etc. into mechanical energy to drive the movement of the lens 193A.
- the focus motor 193C may be a voice coil motor, an ultrasonic motor, a stepper motor, a memory alloy motor, or other types of motors.
- the voice coil motor can drive the shrapnel or spring to operate by controlling the current, thereby adjusting the position of the lens 193A to achieve a clear image of the object being photographed.
- the aperture motor 193D is used to push the aperture blades in the aperture 193B to move, change the aperture size of the aperture 193B, and thereby change the brightness or depth of the image collected by the camera 193.
- the driver chip 193E is used to deliver current to one or more components in the camera 193 and control the driving of the one or more components. Among them, the driver chip 193E can control the amount of current delivered according to the obtained code value.
- the camera 193 may include 1 or M driver chips 193E, where M is a positive integer greater than 1.
- the driving chip 193E may include a driving chip for the focus motor 193C and a driving chip for the aperture motor 193D.
- the driver chip of the focus motor 193C is used to drive the focus motor 193C and control the focus motor 193C to move the lens 193A to the target position.
- the driver chip of the aperture motor 193D is used to drive the aperture motor 193D and control the aperture motor 193D to set the aperture value of the aperture 193B. Adjust to target aperture value.
- the driving chip 193E can control the driving of the focus motor 193C and the aperture motor 193D under the dynamically changing driving voltage provided by the power management module 141 .
- the driving chip of the focus motor 193C can determine the required driving voltage according to the moving position of the lens 193A.
- the driving chip of the focus motor 193C can determine the required driving voltage according to the moving position of the lens 193A.
- the driver chip of the aperture motor 193D can determine the required driving voltage according to whether the aperture 193B is adjusted.
- the driving voltage required by the driving chip of the aperture motor 193D during the adjustment process of the aperture 193B is higher than the driving voltage required when the aperture 193B is not adjusted.
- the power management module 141 provides dynamically changing driving voltages to the driving chip 193E of the focus motor 193C and the aperture motor 193D, please refer to the relevant description in FIG. 2 and will not be described again here.
- the photosensitive chip 193F can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
- CMOS complementary metal-oxide-semiconductor
- the photosensitive chip 193F can convert the optical signal into an electrical signal, and then transfer the electrical signal to the ISP to convert it into a digital image signal.
- ISP outputs digital image signals to DSP for processing.
- DSP converts digital image signals into standard RGB, YUV and other format image signals.
- Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
- Video codecs are used to compress or decompress digital video.
- Electronic device 100 may support one or more video codecs. In this way, the electronic device 100 can play or record videos in multiple encoding formats, such as moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
- MPEG moving picture experts group
- MPEG2 MPEG2, MPEG3, MPEG4, etc.
- the internal memory 121 may include one or more random access memories (RAM) and one or more non-volatile memories (NVM).
- RAM random access memories
- NVM non-volatile memories
- the internal memory 121 can be used to store an auto-focus algorithm, an auto-exposure algorithm, etc.
- the auto-focus algorithm can be used to automatically adjust the clarity of the image collected by the camera 193 so that the clarity of the image collected by the camera 193 reaches
- the automatic exposure algorithm can be used to automatically adjust the brightness of the image collected by the camera 193 so that the brightness of the image collected by the camera 193 is equal to the threshold.
- the internal memory 121 can also be used to store a mapping table, for example, a mapping table between the target position of the motor movement and the target voltage.
- the electronic device 100 can determine the driver chip of the focus motor 193C according to the mapping table when the current lens 193A moves to the target position.
- the required target voltage is another example of a mapping table between the aperture value and the position of the aperture blade.
- the electronic device 100 can determine the target position where the aperture blade needs to move corresponding to the aperture size that currently needs to be adjusted based on the mapping table.
- the mapping table stored in the internal memory 121 please refer to the following content, and will not be described in detail here.
- the external memory interface 120 can be used to connect an external non-volatile memory to expand the storage capacity of the electronic device 100 .
- the external non-volatile memory communicates with the processor 110 through the external memory interface 120 to implement the data storage function. For example, save music, video and other files in external non-volatile memory.
- the electronic device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor. Such as music playback, recording, etc.
- the audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. Audio module 170 may also be used to encode and decode audio signals.
- Speaker 170A also called “speaker” is used to convert audio electrical signals into sound signals.
- the electronic device 100 can listen to music through the speaker 170A, or listen to hands-free calls.
- Receiver 170B also called “earpiece” is used to convert audio electrical signals into sound signals.
- the electronic device 100 answers a call or a voice message, the voice can be heard by bringing the receiver 170B close to the human ear.
- Microphone 170C also called “microphone” or “microphone” is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak close to the microphone 170C with the human mouth and input the sound signal to the microphone 170C.
- the electronic device 100 may be provided with at least one microphone 170C.
- the headphone interface 170D is used to connect wired headphones.
- the pressure sensor 180A is used to sense pressure signals and can convert the pressure signals into electrical signals.
- the gyro sensor 180B may be used to determine the motion posture of the electronic device 100 .
- the angular velocity of electronic device 100 about three axes ie, x, y, and z axes
- the gyro sensor 180B can be used for image stabilization. For example, when the shutter is pressed, the gyro sensor 180B detects the angle at which the electronic device 100 shakes, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shake of the electronic device 100 through reverse movement to achieve anti-shake.
- the gyro sensor 180B can also be used for navigation and somatosensory game scenes.
- Air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
- Magnetic sensor 180D includes a Hall sensor.
- the electronic device 100 may utilize the magnetic sensor 180D to detect opening and closing of the flip holster.
- the acceleration sensor 180E can detect the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices and be used in horizontal and vertical screen switching, pedometer and other applications.
- Distance sensor 180F for measuring distance.
- Electronic device 100 can measure distance via infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 may utilize the distance sensor 180F to measure distance to achieve fast focusing.
- Proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode.
- Electronic device 100 uses photodiodes to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100 . When insufficient reflected light is detected, the electronic device 100 may determine that there is no object near the electronic device 100 .
- the ambient light sensor 180L is used to sense ambient light brightness.
- the electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness.
- the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
- Fingerprint sensor 180H is used to collect fingerprints.
- the electronic device 100 can use the collected fingerprint characteristics to achieve fingerprint unlocking, access to application locks, fingerprint photography, fingerprint answering of incoming calls, etc.
- Temperature sensor 180J is used to detect temperature.
- the electronic device 100 utilizes the temperature detected by the temperature sensor 180J to execute the temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 reduces the performance of a processor located near the temperature sensor 180J in order to reduce power consumption and implement thermal protection.
- Touch sensor 180K also known as “touch device”.
- the touch sensor 180K can be disposed on the display screen 194.
- the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen”.
- the touch sensor 180K is used to detect a touch operation on or near the touch sensor 180K.
- the touch sensor can pass the detected touch operation to the application processor to determine the touch event type.
- Bone conduction sensor 180M can acquire vibration signals.
- the buttons 190 include a power button, a volume button, etc.
- the electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100 .
- the motor 191 can generate vibration prompts.
- the motor 191 can be used for vibration prompts for incoming calls and can also be used for touch vibration feedback.
- the indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, or may be used to indicate messages, missed calls, notifications, etc.
- the SIM card interface 195 is used to connect a SIM card.
- the SIM card can be connected to or separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195 .
- the electronic device may be a portable terminal device equipped with iOS, Android, Microsoft or other operating systems, such as a mobile phone, a tablet, a wearable device, etc., or a laptop computer (Laptop) with a touch-sensitive surface or touch panel.
- Non-portable terminal devices such as desktop computers with touch-sensitive surfaces or touch panels.
- the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. This embodiment of the present invention takes the Android system with a layered architecture as an example to illustrate the software structure of the electronic device 100 .
- FIG. 1B is a software structure block diagram of the electronic device 100 according to the embodiment of the present application.
- the layered architecture divides the software into several layers, and each layer has clear roles and division of labor.
- the layers communicate through software interfaces.
- the Android system is divided into four layers, from top to bottom: application layer, application framework layer, Android runtime and system libraries, and kernel layer.
- the application layer can include a series of application packages.
- the application package can include camera, gallery, calendar, calling, map, navigation, WLAN, Bluetooth, music, video, short message and other applications.
- the application framework layer provides an application programming interface (API) and programming framework for applications in the application layer.
- API application programming interface
- the application framework layer includes some predefined functions.
- the application framework layer can include a window manager, content provider, view system, phone manager, resource manager, notification manager, etc.
- a window manager is used to manage window programs.
- the window manager can obtain the display size, determine whether there is a status bar, lock the screen, capture the screen, etc.
- Content providers are used to store and retrieve data and make this data accessible to applications.
- Said data can include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
- the view system includes visual controls, such as controls that display text, controls that display pictures, etc.
- a view system can be used to build applications.
- the display interface can be composed of one or more views.
- a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.
- the phone manager is used to provide communication functions of the electronic device 100 .
- call status management including connected, hung up, etc.
- the resource manager provides various resources to applications, such as localized strings, icons, pictures, layout files, video files, etc.
- the notification manager allows applications to display notification information in the status bar, which can be used to convey notification-type messages and can automatically disappear after a short stay without user interaction.
- the notification manager is used to notify download completion, message reminders, etc.
- the notification manager can also be notifications that appear in the status bar at the top of the system in the form of charts or scroll bar text, such as notifications for applications running in the background, or notifications that appear on the screen in the form of conversation windows. For example, text information is prompted in the status bar, a beep sounds, the electronic device vibrates, the indicator light flashes, etc.
- Android Runtime includes core libraries and virtual machines. Android runtime is responsible for the scheduling and management of the Android system.
- the core library contains two parts: one is the functional functions that need to be called by the Java language, and the other is the core library of Android.
- the application layer and application framework layer run in virtual machines.
- the virtual machine executes the java files of the application layer and application framework layer into binary files.
- the virtual machine is used to perform object life cycle management, stack management, thread management, security and exception management, and garbage collection and other functions.
- System libraries can include multiple functional modules. For example: surface manager (surface manager), media libraries (Media Libraries), 3D graphics processing libraries (for example: OpenGL ES), 2D graphics engines (for example: SGL), etc.
- the surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
- the media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc.
- the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
- the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, composition, and layer processing.
- 2D Graphics Engine is a drawing engine for 2D drawing.
- the kernel layer is the layer between hardware and software.
- the kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
- the following exemplifies the workflow of the software and hardware of the electronic device 100 in conjunction with capturing the photographing scene.
- the corresponding hardware interrupt is sent to the kernel layer.
- the kernel layer processes touch operations into raw input events (including touch coordinates, timestamps of touch operations, and other information). Raw input events are stored in the kernel layer.
- the application framework layer obtains the original input event from the kernel layer and identifies the control corresponding to the input event. Taking the touch operation as a touch click operation and the control corresponding to the click operation as a camera application icon control as an example, the camera application calls the interface of the application framework layer to start the camera application, and then starts the camera driver by calling the kernel layer. Camera 193 captures still images or video.
- FIG. 2 is a schematic structural diagram of a voltage adjustment device provided by an embodiment of the present application.
- the voltage adjustment device may include: PMU, driver chip 1, and driver chip 2. in:
- PMU can be used to power driver chip 1 and driver chip 2.
- the driver chip 1 may refer to the driver chip of the focus motor mentioned above.
- the driver chip can control the focus motor to move the lens and change the clarity of the image, driven by the driving voltage provided by the PMU.
- the driver chip 1 can also obtain the code value, control the current delivered to the focus motor based on the code value, determine the drive voltage based on the code value, and notify the PMU of the required drive voltage so that the PMU can dynamically adjust the drive chip. 1 driving voltage.
- the driving chip 2 may refer to the driving chip of the aperture motor mentioned above.
- the driver chip can control the aperture motor to change the aperture size under the driving voltage provided by the PMU, thereby changing the brightness or depth of the image.
- the driving chip 2 can also determine the driving voltage according to whether the aperture size needs to be adjusted, and notify the PMU of the required driving voltage, so that the PMU can dynamically adjust the driving voltage of the driving chip 2 .
- the PMU can provide multiple power output pins for the driver chip 1. Different output pins can be used to output different voltages, such as the first voltage, the second voltage, the third voltage, etc., and the PMU can obtain the driver chip 1 According to the required voltage, different power output pins are selected for the driver chip 1, and different driving voltages are provided to the driver chip 1.
- the PMU can provide two power output pins for the driver chip 1, one of which is used to output a high voltage, for example, 3.2V, and the other output pin is used to output a low voltage. , for example, 1.86V.
- the driver chip 1 can be connected to the high-voltage output pin provided by the PMU by default.
- the PMU can provide multiple power output pins for the driver chip 2. Different output pins can be used to output different voltages, such as the first voltage, the second voltage, the third voltage, etc.
- the PMU can obtain the driver chip 2 According to the required voltage, different power output pins are selected for the driver chip 2, and different driving voltages are provided to the driver chip 2.
- the PMU can provide two power output pins for the driver chip 2, one of which is used to output a high voltage, such as 3.2V, and the other output pin is used to output a low voltage. For example 1.86V.
- the driver chip 2 can be connected to the low-voltage output pin provided by the PMU by default.
- the PMU may also provide more or fewer power output pins.
- the PMU can provide three power output pins for the driver chip 1, including a high voltage output pin, a medium voltage output pin, and a low voltage output pin.
- these three power output pins can be used for Output voltages of 3.2V, 2.5V, and 1.86V.
- the PMU can only provide a power output pin for driver chip 2.
- This power output pin can output a dynamically changing voltage.
- driver chip 2 requires high voltage
- the power output pin outputs 3.2V.
- the power output pin adjusts the output voltage to 1.86V.
- the high voltage and low voltage mentioned above are only used to indicate the voltage level compared with the two voltages and are not used to limit the numerical value of the voltage.
- the high voltage and low voltage mentioned below are similar and will not be described again below.
- Figure 2 shows that the driver chip 1 and the driver chip 2 can be integrated on one chip in the camera module. It should be understood that the driver chip 1 and the driver chip 2 are independent of each other, and the embodiments of the present application do not limit the physical locations of the driver chip 1 and the driver chip 2 .
- the voltage adjustment device can only be used to dynamically adjust the driving voltage of the driver chip 1. At this time, the voltage adjustment device does not include the driver chip 2, and the multiple voltage output pins provided by the PMU for the driver chip 2, or only The driver chip 2 provides a constant driving voltage. Alternatively, the voltage adjustment device can only be used to dynamically adjust the driving voltage of the driving chip 2. At this time, the PMU does not include the driving chip 1 and multiple voltage output pins provided for the driving chip 1, or only provides the driving chip 1 with Constant driving voltage.
- FIG. 2 is only an illustrative example and does not constitute a limitation on the embodiment of the present application.
- the voltage adjustment device may also include more or fewer components.
- the voltage adjustment device may also include other components in the camera module, such as a focus motor, an aperture motor, and so on.
- the voltage adjustment method provided by the embodiments of the present application can dynamically adjust the drive of the components in the camera module according to the working conditions of the components. voltage to prevent the component’s driving voltage from remaining at a high voltage, thereby reducing the power consumption of the camera module.
- the following uses two embodiments to introduce the detailed process of dynamically adjusting the driving voltages of different camera components.
- FIG. 3 is a schematic diagram of focusing provided by an embodiment of the present application.
- the reflected light of the subject passes through the lens in the camera and reaches the photosensitive chip for imaging, and then is presented as an image that the user can view on the device.
- Focusing refers to adjusting the position of one or more lenses in the lens so that the image plane of the subject falls on the imaging surface of the photosensitive chip, thereby achieving a clear image of the subject.
- the subject includes objects at different distances from the lens in space, focusing can also focus on the subject of the subject, so that the image plane of the subject falls on the imaging surface of the photosensitive chip, achieving the purpose of capturing the subject.
- the main part of the photographed object is imaged clearly, that is, the distant object in the image is made clear, or the near object in the image is made clear.
- the focus motor can apply thrust to the lens to move the lens and change the clarity of the image.
- the voltage adjustment method provided by the embodiment of the present application can dynamically adjust the drive voltage of the driver chip of the focus motor according to the target position that the lens needs to move. For example, when the thrust force required for the lens to reach the target position is larger, the driving voltage is larger, and when the thrust force required for the lens to reach the target position is smaller, the driving voltage is smaller.
- FIG. 4 is a schematic flowchart of a voltage adjustment method provided by an embodiment of the present application.
- the method includes:
- the electronic device 100 starts the camera, the lens in the camera is at the initial position, and the driving voltage of the driver chip is at the initial voltage.
- the camera of the electronic device 100 may include components such as a lens, a focus motor, a driver chip for the focus motor, a photosensitive chip, and the like.
- the driver chip of the focus motor can drive the focus motor, control the focus motor to generate thrust to move the lens, thereby changing the distance between the lens and the photosensitive chip, and changing the clarity of the image collected by the camera.
- the lens, focus motor, driver chip of the focus motor, and photosensitive chip please refer to the relevant content about the lens 193A, the focus motor 193C, the driver chip 193E, and the photosensitive chip 193F in FIG. 1A , and will not be described again here.
- the electronic device 100 can activate the camera in the following two situations:
- the electronic device 100 can activate the camera when activating the shooting function.
- the shooting function may refer to the photo or video function included in the camera application, or may refer to the related functions included in other applications that can trigger shooting, such as image recognition function, code scanning function, video call function, etc.
- the electronic device 100 may activate the camera after detecting a user's click operation on a camera icon displayed on the desktop.
- the electronic device 100 may activate the camera after detecting the user's voice instruction to open the camera application.
- the electronic device 100 may activate the camera after detecting the user's operation to activate the video call function of the chat application.
- the activated camera may be a preset camera under the shooting function.
- the electronic device starts a video call function, it starts a camera, and the camera can be a front-facing camera.
- the electronic device 100 can activate one of the multiple cameras when switching cameras.
- the electronic device 100 can activate one of the multiple cameras when switching cameras.
- the electronic device 100 may activate the rear camera when detecting that the user switches cameras, for example, switching a front camera to a rear camera.
- the electronic device 100 may activate the camera used in the target shooting mode when detecting that the user switches to the target shooting mode.
- the electronic device 100 can activate the camera corresponding to the target zoom ratio adjusted by the user.
- the lens in the camera is in the initial position, and the driving voltage of the driver chip of the focus motor is in the initial voltage.
- the initial position may be a preset position.
- the initial position may be the farthest end or the center point of the movable range of the lens.
- the initial voltage can also be a preset voltage, such as 3.2V. It should be understood that this initial voltage can ensure that the lens can be in the initial position after starting the camera. If the initial position of the lens requires the focus motor to exert a large force to achieve it, then the initial voltage should be a high voltage. If the initial position of the lens only requires the focus motor to exert a small force to achieve it, then the initial voltage can be High voltage and low voltage. Therefore, preferably, the initial voltage is a high voltage to ensure that the initial position of the lens can be moved to the initial position no matter how much force the focus motor needs to exert.
- the embodiment of the present application does not limit the initial position and initial voltage.
- the initial position may also be called a fourth position
- the initial voltage may also be called a fourth driving voltage
- the electronic device 100 collects images through the camera.
- the image is specifically the reflected light of the subject passing through the lens in the camera, imaging on the photosensitive chip, and further processing by other components, such as ISP, including: linear correction, noise removal, point replacement repair, color interpolation, and white balance. Correction and so on, the resulting image.
- the image collection by the electronic device 100 through the camera will continue during the process of the electronic device 100 using the camera.
- the electronic device 100 has been collecting images through the camera.
- the images collected by the electronic device 100 through the camera include images collected when the lens is at different positions.
- the electronic device 100 can display the image captured by the camera in real time in a user interface, such as a preview interface, or in a viewfinder.
- the electronic device 100 determines the target position of the lens.
- the electronic device 100 may trigger determination of the target position of the lens when starting to focus.
- focus includes manual focus and autofocus.
- Manual focus means that the user manually adjusts the position of the lens so that the subject appears clear in the image.
- Autofocus means that the electronic device 100 automatically adjusts the position of the lens so that the subject appears clearly in the image.
- the electronic device 100 may include a focus ring.
- the electronic device 100 may detect the user's operation on the focus ring, trigger the manual focus, and determine the user's adjustment according to the extent of the user's rotation of the focus ring.
- the target position of the lens may be included in the electronic device 100 .
- the electronic device 100 can trigger autofocus in the following three situations:
- the electronic device 100 can trigger to start the camera when starting the shooting function or switching the camera. That is to say, after activating the shooting function, the electronic device 100 can trigger automatic adjustment of the sharpness of the image collected by the currently activated camera to complete automatic focusing. Alternatively, after switching the camera, the electronic device 100 can adjust the clarity of the image captured by the currently switched camera to complete the autofocus.
- step S101 For details about the timing of starting the camera of the electronic device 100, please refer to the relevant content of the aforementioned step S101, which will not be described again here.
- the electronic device 100 can trigger the autofocus when the distance between the subject and the lens changes.
- the electronic device 100 may calculate the sharpness of the image and determine whether the distance from the subject to the camera changes based on the change in the sharpness of the image.
- the electronic device 100 may detect the distance between the subject and the camera through a sensor, such as an infrared sensor, a distance sensor, etc., to determine whether the distance between the subject and the camera changes.
- the focus point can be presented as a point in the preview interface or viewfinder during the shooting process. This point and the picture around this point are presented with the highest clarity.
- the location of the focus point is where the subject is.
- Changing the focus point can change the subject of the shot and the clearest area of the image. For example, when the subject includes a person in the foreground and a landscape in the background, if the person is taken as the subject of the shot, the person will be the focus point in the image. After focusing, the person will be the clearest in the image. If the scenery is taken as the focus point, If the subject is the subject, then the scenery will be the focus point in the image. After focusing, the scenery will be the clearest in the image.
- the focus point of the electronic device 100 during the focusing process may be the center point or one or more points near the center point in the preview interface or viewfinder.
- the electronic device 100 when the electronic device 100 detects that the user changes the focus point, such as a click operation on a certain point on the preview interface of the image, the electronic device 100 can use the position where the click operation is performed as the focus point changed by the user, and trigger automatic focusing on the image. , by moving the lens, the area of the screen affected by the user's click operation is adjusted to the clearest state.
- the focus point such as a click operation on a certain point on the preview interface of the image
- timing for the electronic device 100 to start autofocus is not limited to the above three types, and the embodiment of the present application does not limit this.
- the electronic device 100 may determine the target position of the lens through the auto-focus algorithm.
- the principle of autofocus is to continuously adjust the distance between the lens and the photosensitive chip, analyze the image clarity obtained by adjusting the lens at different positions, and gradually adjust the lens to the appropriate position to obtain an image with the required clarity, thereby completing The focus of the image.
- the definition of the image meeting the requirements may mean that the definition of the image reaches the peak or the definition of the subject in the image reaches the peak. Therefore, during the autofocus process, the electronic device 100 needs to determine the position of the lens multiple times, obtain images of the lens at different positions, and dynamically adjust the voltage of the driver chip while moving the lens, that is, repeat steps S103-S106 until The electronic device 100 finds the lens position when the image definition reaches the required level.
- subsequent steps please refer to the following content.
- the electronic device 100 can move from one end of the lens movable range to the other end, traverse the values, move the lens to each position of the traversal in turn, and calculate the image clarity of the lens at each position, find the point with the highest clarity, and finally return to the point with the highest clarity, The lens is positioned to achieve autofocus.
- the electronic device 100 can determine the target position of the next movement by comparing the image clarity of the lens at the previously moved position during the movement of the lens.
- the next target position when the clarity of the lens at position A is lower than that at position B, the next target position will be closer to position B and farther away from position A. Otherwise, the next target position will be farther away from position B. And take the value close to the A position until the lens gradually gets closer and reaches the position with the highest clarity.
- image clarity refers to the sensitivity of image detail transformation changes.
- the electronic device 100 can analyze the clarity of the image through frequency domain functions, grayscale functions, information entropy functions, statistical functions, and other algorithms.
- the electronic device 100 may determine a parameter, such as a code value, used to indicate the target position of the lens.
- a parameter such as a code value
- the current value output by the driver chip to the focus motor can be controlled by this code value.
- a code value corresponds to a current value.
- the driver chip can identify the current output to the focus motor based on the code value.
- the focus motor can generate thrust of different sizes under different currents to push the lens and move the lens to different positions. For example, assuming that the code values corresponding to all movable positions of the lens include 1024 values from 0 to 1023, in the contrast focusing method, the electronic device 100 may perform steps S103-S106 while repeatedly adjusting the lens position. , when determining the target position, determine the code value in sequence including: a code value that increases from 0 to 1023 or a code value that decreases from 1023 to 0, and a code value that returns to the highest point of image clarity.
- the electronic device 100 determines the target voltage according to the target position.
- the focus motor changes the position of the lens by applying thrust to the lens.
- the focus motor needs to exert different thrusts.
- the driving voltage of the driver chip that drives the focus motor can be determined based on the thrust required by the focus motor. The greater the thrust, the greater the driving voltage; the smaller the thrust, the smaller the driving voltage. In other words, when the thrust required when the lens moves to the first position is greater than the thrust required when the lens moves to the second position, then the target voltage when the target position is the first position is greater than when the target position is the second position. target voltage at the position.
- the electronic device 100 can be preset with a mapping relationship between lens position and voltage in advance.
- the mapping relationship indicates the driving voltage required to drive the chip when the lens is moved to different positions.
- the electronic device 100 is preset with a mapping relationship between a lens position in a first range and a first voltage, and a mapping relationship between a lens position in a second range and a second voltage.
- the first voltage is to move the lens to the first range.
- the second voltage is the driving voltage required to drive the chip when the lens is moved to the second range.
- the first voltage is higher than the second voltage, or if moving the lens to the first range is greater than the thrust force exerted to move the lens to the second range.
- the thrust force applied when moving into the second range is small, the first voltage is lower than the second voltage. Then, when the target position is within the first range, the target voltage is the first voltage, and when the target position is within the second range, the target voltage is the second voltage.
- the mapping relationship between the lens position and the voltage can be obtained by the developer applying different driving voltages to the driving chip and testing the lens movement distance during the focusing test experiment. Developers can preset the mapping relationship between lens position and voltage in the electronic device 100 in advance.
- FIG. 5 illustrates a schematic diagram of the mapping relationship between the position of the lens and the voltage.
- the voice coil motor drives the shrapnel or spring to operate through current, which can control the lens to move in two opposite directions.
- the thrust exerted by the voice coil motor is the smallest.
- the lens can move within the range (a, d).
- Point 0 is the center point of the lens' movable range (a, d) and is also the starting point of the lens.
- the code value corresponding to point 0 is 512. That is to say, when the code value received by the driver chip of the aperture motor is 512, the driver chip can control the aperture motor to move the lens to point 0.
- point a corresponds to The code value is 0, the code value corresponding to point b is c1, the code value corresponding to point c is c2, and the code value corresponding to point d is 1023.
- the target voltage when the target position of the lens is within the range of (b, c), the target voltage is low voltage.
- the target position of the lens When the target position of the lens is within the range of (a, b) or (c, d), the target voltage is low.
- the voltage is high voltage. That is to say, when the target position of the lens is farther from the starting point of the lens, the target voltage is larger, and when the target position of the lens is closer to the starting point of the lens, the target voltage is smaller.
- Figure 5 is only an illustrative example.
- the code value representing the lens position and the mapping relationship between the lens position and the voltage do not constitute a limitation on the embodiment of the present application. More can be divided within the movable range of the lens.
- the voltage level includes more mapping relationships between lens positions and voltages. For example, the first range of lens positions corresponds to voltage A, the second range corresponds to voltage B, and the third range corresponds to voltage C.
- the electronic device 100 can dynamically adjust the driving voltage of the driving chip according to the moving position of the lens.
- the driving voltage of the driving chip is the first driving voltage.
- the driving voltage of the driving chip is the second driving voltage, where the first driving voltage and the second driving voltage Voltage, first position is different than second position.
- the thrust required by the focus motor to move the lens to the first position is greater, that is, the first position is further away from the position where the lens is not moved (for example, the third position) than the second position, then the third position The first driving voltage is greater than the second driving voltage.
- the mapping relationship between the lens position and the voltage may be different. This is because when the posture of the electronic device 100 is different and the lens moves in different directions, the thrust force exerted by the focus motor on the lens is also different, thereby affecting the driving voltage of the driving chip.
- the direction of lens movement is more horizontal than the vertical direction, the thrust required to move the lens to the target position is smaller, and the driving voltage of the driver chip is smaller. In the vertical direction, the thrust required to move the lens to the target position is greater, and the driving voltage of the driver chip is greater.
- the lens moves horizontally in the horizontal direction during the focusing process.
- the lens moves up and down in the vertical direction during the focusing process. Due to the force of the focus motor on the lens, Movement will be affected by gravity, inertia and other factors to a certain extent.
- the focus motor exerts less thrust when the lens moves in the horizontal direction than when the lens moves in the vertical direction. That is, it is easier for the focus motor to push the lens horizontally than vertically.
- the corresponding target voltage may be different when the posture of the electronic device 100 is different. That is to say, when the posture of the electronic device 100 is different, the electronic device 100 may have different mapping tables of lens positions and voltages. Taking the schematic diagram of the mapping relationship between the position of the lens and the voltage as shown in Figure 5, compared to when the lens is in the vertical movement direction, when the lens is in the horizontal movement direction, the range of the lens corresponding to low voltage is wider, and the range of the lens corresponding to high voltage is wider. The lens range is narrower, or when the lens moves in the horizontal direction, the voltage of the lens position at any point in (a, d) is lower than the voltage corresponding to the lens position at that point when the lens position moves in the vertical direction.
- the driving voltage of the driving chip may be different.
- the posture of the electronic device 100 may refer to the angle between the lens plane and the horizontal plane.
- the lens tends to move in the horizontal direction.
- the driving chip of the driver chip The voltage will be smaller.
- the electronic device 100 may first determine the attitude of the electronic device 100 before determining the target voltage according to the target position. For example, the electronic device 100 may determine the posture of the electronic device 100 through an acceleration sensor, a gyroscope sensor, or the like. After that, the mapping relationship between the lens position and the voltage is adjusted according to the posture of the electronic device 100, and the target voltage is determined based on the adjusted mapping relationship and the target position.
- the electronic device 100 causes the driver chip to control the focus motor to move the lens to the target position under the drive of the target voltage.
- the driver chip when the electronic device 100 controls the focus motor to move the lens through the driver chip, the driver chip, driven by the target voltage, can output a corresponding current to the focus motor according to the parameters given by the electronic device 100, such as the code value. , the focus motor generates thrust to push the lens under the action of the certain current, causing the lens to move to a certain position. Moreover, in the closed-loop working mode, the electronic device 100 can also reversely adjust the focus motor to generate the force according to the position of the lens movement. The thrust, that is, adjusting the amount of current applied to the focus motor by the driving voltage, allows the lens to move accurately and maintain it at the target position.
- the electronic device 100 may determine whether the driving voltage of the driving chip needs to be adjusted based on whether the target voltage is the same as the driving voltage of the current driving chip. Wherein, if the target voltage is the same as the driving voltage of the current driving chip, there is no need to adjust the driving voltage of the driving chip; otherwise, the driving voltage of the driving chip needs to be adjusted to the target voltage.
- the driving voltage of the current driving chip is the initial voltage of the driving chip when starting the camera. If the target voltage is not determined for the first time, the driving voltage of the current driving chip is The driving voltage is the target voltage determined the last time the lens was moved.
- the electronic device 100 needs to adjust the driving voltage of the driver chip, for example, referring to FIG. voltage provided. For example, adjust the driving voltage of the driver chip from high voltage to low voltage.
- the electronic device 100 can also change the Proportion Integration Differentiation (PID) of the driving chip according to the target voltage.
- PID Proportion Integration Differentiation
- This PID parameter is pre-stored in the register of the driver chip and is a parameter used by the focus motor to adjust the lens position based on the error in the lens position when the focus motor moves in the closed-loop operating mode.
- the electronic device 100 can calculate the lens adjustment position according to the PID parameter.
- the lens reaches There may be a certain error between the position and the ideal target position, resulting in an error in the lens position, or the lens cannot be maintained in a stable position.
- the focus motor can be made to work in closed-loop mode during the process of pushing the lens.
- closed-loop mode when the focus motor controls the movement of the lens, the actual position of the lens moved based on the thrust exerted by the focus motor can be used as the feedback amount to reversely adjust the thrust of the focus motor, thereby adjusting the moving position of the lens so that the lens
- the movement is more precise.
- the actual position of the lens movement can be obtained through a Hall sensor.
- the driver chip can control the focus motor to reduce the thrust force to a thrust force 2 that is less than thrust force 1. Push the lens to move to the B position. If the B position does not reach the ideal target position, the driver chip can then control the focus motor to increase the thrust and push the lens with a thrust 3 greater than the thrust 2, thereby moving the lens. and maintain the target position in that ideal state.
- the electronic device 100 can use the PID parameters to calculate and fine-tune the focus motor thrust to move the lens to the target position under the ideal state.
- the driver chip calculates the next fine-tuning based on the actual position and the target position under the ideal state.
- the PID parameters include: P (proportional), I (integral), and D (differential).
- the P value is used to quickly reach the target position during the movement of the lens, and the I value is used to eliminate the difference between the target position and the actual position. Error, D value is used to suppress position oscillation.
- this PID parameter can be used to improve the accuracy of lens movement when the driver chip controls the focus motor to move the lens, and speed up the speed of the lens moving to the target position during the autofocus process.
- the PID parameter is related to the driving voltage of the driving chip, when the driving voltage of the driving chip needs to be adjusted, the PID parameter stored inside the driving chip also needs to be adjusted synchronously based on the target voltage.
- the electronic device 100 may determine the PID parameter according to the target voltage and the type of the focus motor.
- the electronic device 100 may have a pre-stored mapping table of voltage, motor type and PID parameters.
- the electronic device 100 may use the mapping table to find the corresponding PID parameters under the current target voltage and the motor type.
- Table 1 shows a mapping table of voltage, motor type and PID parameters.
- the PID parameter can be determined to be PID_A1.
- Voltage A and voltage B can respectively correspond to the aforementioned high voltage and low voltage according to the magnitude of the voltage.
- Table 1 is only an illustrative example and does not constitute a limitation on the embodiments of the present application.
- the mapping table may also contain more voltage values and more or less motor types, where the number of voltage values may Corresponding to the number of voltages divided by the aforementioned lens position range, for example, the lens position range is divided into three voltage levels: the first range corresponds to voltage A, the second range corresponds to voltage B, and the third range corresponds to voltage C, then the table The mapping table shown in 1 should contain the PID parameters corresponding to voltages A, B, and C respectively.
- the electronic device 100 can also display the images collected by the camera in real time.
- the electronic device 100 can display continuously changing clarity. Image.
- the electronic device 100 can display clear images. The image goes from blurry to clear, clear to blurry, and finally back to a clear image.
- the electronic device 100 determines whether to complete the adjustment of the lens position.
- the electronic device 100 may determine whether the electronic device 100 has finished adjusting the lens position based on whether it receives an operation from the user to adjust the lens position again. Specifically, after the electronic device 100 adjusts the lens to the target position according to the lens position input by the user, if the electronic device 100 receives the lens position input by the user again, the electronic device again causes the driver chip to be in the target position according to the lens position input by the user. Driven by the driving voltage corresponding to the lens position, the focus motor is controlled to move the lens to the lens input by the user. head position to determine whether to end the adjustment of the lens position, and so on.
- the electronic device 100 may repeatedly perform steps S103-S106 according to the multiple lens positions in sequence while receiving multiple lens positions input by the user, until the user ends the manual focusing. .
- the electronic device 100 can determine whether to end the adjustment of the lens position based on whether the lens position corresponding to the highest image definition is found. Specifically, when the electronic device 100 finds the lens position corresponding to the highest image definition, it will end the adjustment of the lens position and complete the automatic focusing. Otherwise, the electronic device 100 will continue to adjust the lens position and make the driver chip locate at the lens position. Driven by the corresponding driving voltage, the focus motor is controlled to move the lens to the lens position until the electronic device 100 finds the lens position corresponding to the highest image definition.
- the electronic device 100 can continuously provide a voltage (for example, the fourth driving voltage) to the driver chip, so that the driver chip can control
- the focus motor keeps the lens at the position corresponding to the highest image definition until the electronic device 100 needs to move the lens position again, such as performing manual focus or autofocus or turning off the camera, and adjusts the lens to the starting position.
- the fourth driving chip can be less than the driving voltage of the driving chip when the focus motor pushes the lens to the position corresponding to the highest definition.
- the electronic device 100 can continuously adjust the position of the lens to find the lens position corresponding to the highest image definition, that is, repeat steps S103-S106 until the electronic device 100 finds the highest image definition. to the corresponding lens position to end autofocus.
- step S103 if the electronic device 100 determines not to end the adjustment of the lens, the electronic device 100 executes step S103; otherwise, the electronic device 100 executes step S107.
- the electronic device 100 stops adjusting the driving voltage of the driving chip.
- the electronic device 100 can stop adjusting the driving voltage of the driving chip, so that the focusing motor maintains the current thrust applied to the lens and no longer changes the position of the lens. In this way, the electronic device 100 can continuously obtain images collected by the camera while the lens remains at the current position.
- the electronic device 100 can also receive the user's manual focusing operation again and perform steps S103-S106 again, or the electronic device 100 can repeatedly perform steps S103-S106. , start the automatic focusing of the image, and adjust the sharpness of the image until the sharpness of the image meets the requirements.
- the electronic device 100 can dynamically adjust the driving voltage of the driving chip according to the target position where the lens needs to move.
- the driving voltage is lower.
- the driving voltage is lower.
- the driving voltage is higher. In this way, the driving voltage of the driving chip can be prevented from being kept at a high voltage, and the power consumption of the driving chip during the focusing process can be reduced as much as possible, thereby improving the power consumption of the currently working camera module and prolonging the operation time of the electronic device 100. Standby time while using the camera.
- FIG. 6 is a schematic diagram of adjusting the aperture provided by the embodiment of the present application.
- the reflected light from the subject passes through the lens in the camera, reaches the photosensitive chip for imaging, and is then presented as an image that the user can view on the device.
- the adjustment of the aperture can change the aperture size of the aperture, adjust the amount of light entering the lens, and then change the display effect of the image, such as the brightness of the image, depth of field, etc.
- the aperture of the aperture is larger, the amount of light entering is greater, the brightness of the image is higher, and the depth of field is shallower (the background is blurry); when the aperture of the aperture is smaller, the amount of light entering is smaller, the brightness of the image is lower, and the depth of field is deeper. (The background is clearer).
- the aperture motor can be used to drive the movement of the aperture blades, thereby changing the aperture size of the aperture.
- the voltage adjustment method provided by the embodiment of the present application can dynamically adjust the driving voltage of the driving chip of the aperture motor according to whether the aperture needs to be adjusted. Among them, when the aperture is adjusted, the driving voltage of the driving chip is larger, and when the aperture is not adjusted, the driving voltage of the driving chip is smaller.
- FIG. 7 is a schematic flowchart of another voltage adjustment method provided by an embodiment of the present application.
- the method includes:
- the electronic device 100 starts the camera, the aperture in the camera is at the initial aperture value, and the driving voltage of the driving chip is at low voltage.
- the camera of the electronic device 100 may include components such as a lens, an aperture, an aperture motor, a driver chip for the aperture motor, a photosensitive chip, and the like.
- the driver chip of the aperture motor can drive the aperture motor and control the focus motor to move the blades in the aperture, thereby changing the size of the aperture, changing the amount of light captured on the photosensitive chip, and changing the display effect of the image collected by the camera.
- the lens, aperture, aperture motor, driver chip of the aperture motor, and photosensitive chip please refer to the lens 193A, aperture 193B, aperture motor 193D, and The relevant contents of the driver chip 193E and the photosensitive chip 193F will not be described in detail here.
- the aperture value is used to characterize the aperture size of the aperture, where the aperture value can be represented by F.
- F/1.4 means that the aperture value is 1.4.
- the larger the F number the smaller the aperture, and the smaller the F number, the larger the aperture.
- FIG. 8 exemplarily shows the aperture value contained in the electronic device 100.
- the electronic device 100 may include eight aperture values: F/2, F/2.8, F/4, F/5.6, F/8, F/11, F/16, and F/22.
- the aperture size gradually decreases, where F/2 corresponds to the maximum aperture and F/22 corresponds to the minimum aperture.
- FIG. 8 is only an illustrative example and does not constitute a limitation on the embodiments of the present application.
- the electronic device 100 can activate the camera in the following two situations:
- the electronic device 100 can activate the camera when activating the shooting function.
- the electronic device 100 can activate the switched camera when switching cameras.
- step S101 For specific details about the timing of starting the camera of the electronic device 100, please refer to the relevant content in the aforementioned step S101, and will not be described again here.
- the aperture in the camera is at the initial aperture value, and the driving voltage of the driver chip of the aperture motor is at low voltage.
- the initial aperture may be a preset aperture value.
- the aperture value defaults to F2.8.
- the low voltage may be a preset voltage, for example, 1.8V.
- the embodiment of the present application places no limit on the initial aperture value and initial voltage.
- the low voltage may also be called the third driving voltage.
- the electronic device 100 collects images through the camera.
- the image is specifically the reflected light of the subject passing through the lens in the camera, imaging on the photosensitive chip, and further processing by other components, such as ISP, including: linear correction, noise removal, point replacement repair, color interpolation, and white balance. Correction and so on, the resulting image.
- the image collection by the electronic device 100 through the camera will continue during the process of the electronic device 100 using the camera.
- the electronic device 100 has been collecting images through the camera after adjusting the aperture.
- the electronic device 100 can acquire images collected by the camera before and after the aperture adjustment.
- the electronic device 100 can display the image captured by the camera in real time in a user interface, such as a preview interface, or in a viewfinder.
- the electronic device 100 determines the target aperture value.
- the electronic device 100 may trigger the determination of the target aperture value in the following two situations:
- the electronic device 100 detects the user's operation of adjusting the aperture and triggers the determination of the target aperture value.
- the user operation may be an operation to adjust the aperture value.
- the user operation may be an operation to act on a control that adjusts the aperture parameter in the user interface, or the user operation may also be an operation to act on the aperture value on the electronic device 100 Corresponding physical button or wheel operation.
- the electronic device 100 may determine the target aperture value set by the user based on the user operation.
- the electronic device 100 When starting the automatic exposure, the electronic device 100 triggers the determination of the target aperture value.
- Automatic exposure means that the electronic device 100 automatically adjusts the exposure parameters when the camera collects images, so that the image reaches a reasonable grayscale range, that is, the brightness of the image is equal to the threshold, to avoid overexposure or underexposure of the image.
- the reasonable grayscale range may refer to an intermediate grayscale value of 18%.
- the exposure parameters include: aperture value, shutter speed and brightness gain.
- the electronic device 100 can adjust the exposure parameters through a table lookup method, an iterative method, a numerical statistical method, or other methods. For example, when the electronic device 100 adjusts the exposure parameters through a look-up table method, the electronic device 100 can pre-store a look-up table of exposure parameters and image brightness, and the electronic device 100 can find appropriate exposure parameters according to the brightness of the current image, and then obtain Target aperture value, where the brightness of the image captured by the camera under the appropriate exposure parameters is equal to the threshold value. It should be understood that the embodiment of the present application does not limit the method of determining the target aperture value during the automatic exposure process.
- the electronic device 100 can determine the target aperture value according to the brightness of the current image. Specifically, when the brightness of the current image is less than the threshold, you need to increase the aperture, that is, reduce the aperture value based on the initial aperture value, and increase the amount of light so that the image brightness is equal to the threshold. At this time, the target aperture value is smaller than the initial aperture value. Aperture value. When the brightness of the current image is greater than the threshold, you need to reduce the aperture, that is, increase the aperture value based on the initial aperture value, and reduce the amount of light entering, so that the brightness of the image is equal to the threshold. At this time, the target aperture value is greater than the initial aperture value. .
- the brightness of the image refers to the brightness of the screen.
- the electronic device 100 can determine the brightness of the image by calculating the average value of the brightness of the image in each channel, or convert the image into a grayscale image and use the average pixel value as the brightness of the image. It should be understood that the embodiment of the present application does not limit the method of calculating the brightness of the image.
- the electronic device 100 may trigger automatic exposure when the shooting function is just started, or the electronic device 100 may detect When the illumination of the surrounding environment changes, automatic exposure is triggered, or the electronic device 100 can trigger automatic exposure when switching cameras, and so on.
- the embodiment of the present application does not limit the timing when the electronic device 100 triggers automatic exposure.
- the solution of the present application can also adjust the shutter speed and brightness gain during the actual automatic exposure process.
- the electronic device 100 when calculating exposure parameters, in addition to determining the aperture value based on the brightness of the image, the electronic device 100 also calculates the shutter speed and brightness gain, and while adjusting the aperture size, the electronic device 100 also calculates the shutter speed and brightness gain based on the calculated shutter speed and brightness. Gain, adjust shutter speed and brightness gain so that the brightness of the image is equal to the threshold.
- the target aperture value may also be referred to as the first value.
- the electronic device 100 determines the working mode of the aperture motor according to the target aperture value.
- the aperture motor works in open-loop mode. Specifically, when the electronic device 100 determines that the target aperture value is the maximum value or the minimum value, the electronic device 100 determines the working mode of the aperture motor as the open-loop mode, so that the aperture motor adjusts the aperture to the maximum aperture or the minimum value in the open-loop mode. aperture.
- the aperture motor needs to generate a certain thrust to push the blades of the aperture based on a given current, so that the aperture can be adjusted to the maximum aperture or the minimum aperture.
- the aperture motor works in closed-loop mode. Specifically, when the electronic device 100 determines that the target aperture value is between the maximum value and the minimum value, the electronic device 100 determines the working mode of the aperture motor as the closed-loop mode, so that the aperture motor adjusts the aperture value of the aperture to Target aperture value.
- the driver chip can use the position of the aperture motor pushing the aperture blades as feedback, and reversely adjust the thrust of the aperture motor to push the aperture blades more accurately to the target position corresponding to the target aperture value. For example, when the aperture motor pushes the aperture blades under the action of thrust 1, causing the aperture blades to move beyond the target position, then reduce the thrust of the aperture motor and push the aperture blades with a thrust less than thrust 1, so that the aperture blades approach or move to At this target position, when the aperture motor pushes the aperture blade under the action of thrust force 2, so that the moving position of the aperture blade does not reach the target position, then the thrust of the aperture motor is increased, so that the aperture motor pushes the aperture blade with a thrust greater than thrust force 2, in sequence By analogy, the aperture blades are brought to and held at this target position.
- the aperture motor needs to push the aperture blades to the target position based on the given target position of the aperture blades under the dynamically changing current provided by the driver chip, so that the aperture value can be adjusted to the target aperture value.
- the target position of the aperture blade may also refer to the motor stroke of the aperture motor, and the embodiment of the present application does not limit this name.
- the target aperture value determines the working mode of the aperture motor. Specifically, when the target aperture value is the maximum value or the minimum value of the aperture, the electronic device 100 determines that the working mode of the aperture motor is the open-loop mode. Otherwise, the aperture motor The working mode is closed loop mode.
- the aperture motor can also only include a closed-loop working mode.
- the aperture motor changes the aperture size of the aperture in the closed-loop working mode, so that the aperture value is adjusted to the target aperture value, or the aperture
- the motor may also only include an open-loop working mode.
- the aperture motor changes the aperture size of the aperture in the open-loop working mode, so that the aperture value is adjusted to the target aperture value.
- the embodiments of the present application do not limit the working mode of the aperture motor and the size of the target aperture value for aperture adjustment in different working modes.
- the electronic device 100 determines whether the working mode is an open-loop mode.
- the electronic device 100 executes step S206; otherwise, the electronic device 100 executes step S210.
- step S204 and step S205 are optional steps.
- the electronic device 100 may directly perform step S206 after performing step S203; or, when the aperture in the electronic device 100 only includes the closed-loop mode, the electronic device 100 may After executing step S203, step S210 is directly executed; or, when the aperture in the electronic device 100 includes two working modes: open loop and closed loop, then the electronic device 100, after executing step S203, will also execute step S204 to determine the aperture.
- the working mode of the aperture is selected, and steps S206-S209 or steps S210-S213 are selected to be executed according to the working mode of the aperture.
- the electronic device 100 determines the current of the aperture motor at high voltage and low voltage respectively according to the target aperture value.
- the currents under high voltage and low voltage are the currents delivered to the aperture motor by the driver chip under the driving of high voltage and low voltage respectively.
- the current under the high voltage can cause the aperture motor to move the aperture blade to a certain position, and the current under the low voltage can keep the aperture blade at that position.
- the focus motor can generate a certain thrust to push the aperture blades to a certain position based on the current provided by the driver chip, so that the aperture value of the aperture is adjusted to the corresponding aperture value under the current. Furthermore, after the aperture blades reach a certain position, due to the influence of friction, the focus motor can provide a smaller thrust, so that the aperture blades can still remain at the currently reached position, ensuring that the aperture value remains unchanged.
- the driver chip can reduce the current provided to the focus motor. It can be seen that the driver chip reduces the current provided to the focus motor, thus reducing the current of the driver chip itself and further reducing the power consumption of the driver chip.
- the electronic device can also simultaneously adjust the current provided by the driver chip to the aperture motor from the current under the high voltage to the current under the low voltage.
- the electronic device 100 may pre-store a mapping table of the aperture value, the voltage of the driving chip, and the current of the aperture motor.
- the mapping table indicates the corresponding current of the aperture motor under different aperture values and different voltages of the driving chip.
- Table 2 shows a mapping table of aperture value, voltage and current of the driving chip.
- the current and voltage in Table 2 are the current of the aperture motor and the voltage of the driver chip when driving the aperture blade to move.
- the driver chip driven by a certain voltage, inputs a certain current to the aperture motor, which can cause the aperture motor to move toward the aperture.
- the blades exert a certain thrust to move the aperture blades to a certain position, so that the aperture value reaches a corresponding value.
- the driver chip driven by voltage A, provides a current of I A1 to the aperture motor, which can adjust the aperture value of the aperture to F1.
- voltage A and voltage B can respectively represent high voltage and low voltage according to the magnitude of their voltages, and are used to respectively represent the voltages of the driver chip when the aperture is adjusted and when the aperture is not adjusted. It can be seen from Table 2 that after the target aperture value is determined, the current at high voltage and the current at low voltage corresponding to the target aperture value can be found.
- mapping table of the aperture value, the voltage of the driver chip and the current of the aperture motor can be used by developers in advance to test the driver chip by keeping the position of the aperture blade unchanged after adjusting the aperture to a certain aperture value.
- the current delivered to the aperture motor is driven by different voltages.
- the focus motor adjusts the aperture to a certain value, and the current required by the focus motor is the maximum current that the driver chip can provide when driven by a certain voltage, the electronic device 100 does not need to store the aperture. value, the current corresponding to this voltage. Then, when the actual driver chip is driven by a certain voltage, it can provide the maximum current that can be provided at that voltage to the aperture motor by default.
- the current can be represented as a code value that can be recognized by the driver chip. Different code values are used to correspond to different current sizes.
- the electronic device 100 can determine the code values at high voltage and low voltage according to the target aperture value.
- the driver chip can determine the amount of current delivered to the aperture motor based on the code value.
- the specific description of the code value is similar to the parameter code value used by the electronic device 100 to determine the target position of the lens mentioned in step S103, and may be referenced accordingly, and will not be described again here.
- the electronic device 100 may also determine the current at low voltage and only determine the current at high voltage.
- the driver chip may adjust the voltage of the driver chip to low voltage after the aperture adjustment is completed. By default, it provides the maximum current that the driver chip can provide to the aperture motor under low voltage, so that the aperture motor can maintain the position of the aperture blades unchanged under the action of the maximum current.
- the current under high voltage may also be called a third current
- the current under low voltage may also be called a fourth current
- the electronic device 100 adjusts the driving voltage of the driving chip to a high voltage.
- the driver chip Before adjusting the size of the aperture, first adjust the driving voltage of the driver chip of the aperture motor to a high voltage. Before driving the aperture motor, the driver chip can transmit the instruction information to increase the voltage to the power management module, and the power management module increases the voltage provided to the driver chip.
- the power management module can switch the voltage pin connected to the driver chip 2 from a low voltage pin to a high voltage pin, so that the voltage provided by the power management module to the driver chip 2 is adjusted from a low voltage to a high voltage pin. high voltage.
- the value of the high voltage is different.
- the high voltage is the first voltage
- the target aperture value is the second value
- the high voltage is the second voltage
- the electronic device 100 can dynamically adjust the driving voltage of the driver chip when adjusting the aperture according to the thrust applied by adjusting the aperture. For example, when the aperture value is smaller and the thrust applied is smaller, the aperture is adjusted. The lower the driving voltage of the driver chip at that time.
- the driver chip uses the same high voltage as the driving voltage every time the aperture is adjusted, which can save the time of determining the driving voltage of the driver chip based on the aperture value before adjusting the aperture, and speed up the aperture. The speed of adjustment. Then, in this case, the high voltage needs to ensure that when adjusting the aperture of the electronic device 100 to any aperture value, the current provided by the driver chip to the aperture motor can meet the sufficient current required by the aperture motor during the adjustment process. size thrust.
- the focus motor is a central motor and the focus motor exerts the greatest thrust when adjusting the aperture to the maximum aperture or minimum aperture
- the maximum current that the driver chip can provide to the aperture motor under this high voltage should ensure that the aperture motor can Adjust aperture to maximum aperture or minimum aperture.
- the high voltage may also be called the first driving voltage.
- the electronic device 100 causes the driver chip to drive the high-voltage current to the aperture motor, and controls the aperture motor to adjust the aperture value of the aperture to the target aperture value.
- the aperture motor can generate a certain thrust (such as a first thrust) to push the position of the aperture blades, so that the aperture blades reach a certain position, so that the aperture value of the aperture is adjusted to the target aperture value.
- a certain thrust such as a first thrust
- the electronic device 100 adjusts the driving voltage of the driving chip to a low voltage, and adjusts the current delivered by the driving chip to the aperture motor to a current at a low voltage.
- the current provided by the driving chip to the aperture motor can enable the aperture motor to apply thrust (for example, the second thrust) to the aperture blade to ensure that the position of the aperture blade remains unchanged.
- the electronic device 100 can adjust the driving voltage of the driving chip back to a low voltage to reduce the power consumption of the driving chip. Furthermore, the driver chip can also adjust the current of the aperture motor to the current at the low voltage, so that the aperture motor can further reduce the power of the driver chip while maintaining the position of the aperture blades under the action of the current. Consumption.
- the electronic device 100 can also only adjust the driving voltage of the driving chip to a low voltage.
- the driving chip can provide the maximum current that the driving chip can provide under the low voltage to the aperture motor by default. .
- the low voltage here may also be called the second driving voltage.
- the electronic device 100 determines the target position of the aperture blade according to the target aperture value.
- the electronic device 100 can adjust the thrust applied by the focus motor to the aperture blades according to the moving position of the aperture blades, so that the aperture blades can move and remain at the target position corresponding to the target size.
- the electronic device 100 may pre-store a mapping table of the aperture value and the position of the aperture blade, and the mapping table indicates the corresponding relationship between the aperture value and the position of the aperture blade.
- the electronic device 100 determines the target position of the aperture blade, the electronic device 100 can determine the target position of the aperture blade corresponding to the target aperture value through the mapping table.
- the mapping table can be obtained by developers by testing the position of the aperture blades at different aperture values.
- the aperture aperture size can be made to be at the target size (eg, the first size).
- determining the target position of the aperture blades based on the target aperture value is equivalent to determining the target size of the aperture aperture.
- controlling the movement of the aperture blades to the target position is equivalent to controlling the aperture aperture to be adjusted to the target size.
- the position of the aperture blades and the size of the aperture aperture can be replaced equally, which will not be described in detail below.
- the electronic device 100 adjusts the driving voltage of the driving chip to a high voltage.
- step S207 Similar to step S207, before adjusting the size of the aperture, the driving voltage of the driving chip of the aperture motor is adjusted to a high voltage.
- the driving voltage of the driving chip of the aperture motor is adjusted to a high voltage.
- the electronic device 100 causes the driver chip to control the aperture motor to move the aperture blades to the target position under the driving of high voltage, so that the aperture value of the aperture is adjusted to the target aperture value.
- the drive chip outputs current to the aperture motor.
- the aperture motor generates thrust under the action of the current to push the aperture blades.
- the drive chip adjusts the current output to the aperture motor according to the position of the aperture blade movement, thereby adjusting the movement of the aperture blades. position until the aperture blades move to the target position so that the aperture value of the aperture is adjusted to the target aperture value.
- the driver chip can provide one or more currents to the aperture motor to drive the aperture motor to move the aperture to the target position so that the aperture value of the aperture is adjusted to the target aperture value.
- the driver chip provides multiple currents to control the thrust exerted by the aperture motor, one of the currents is determined by the driver chip based on the adjustment effect of the aperture motor on the aperture when it was previously provided to the aperture motor.
- the electronic device 100 adjusts the driving voltage of the driving chip to a low voltage.
- the electronic device 100 can adjust the driving voltage of the driving chip to a low voltage to reduce the power consumption of the driving chip.
- the current provided by the driving chip to the aperture motor can cause the aperture motor to apply thrust to the aperture blade to ensure that the position of the aperture blade remains unchanged.
- the electronic device 100 can reversely adjust the thrust of the aperture motor according to the moving position of the aperture blades to ensure that the position of the aperture blades remains unchanged, therefore, the electronic device 100 adjusts the driving voltage of the driving chip to low Even if the voltage of the driver chip changes, the current that the driver chip can provide to the aperture motor changes.
- the driver chip can also dynamically adjust the current provided to the aperture motor according to the position of the aperture blade. That is, the driver chip provides one or more A current is supplied to the aperture motor, so that the thrust exerted by the aperture motor on the aperture blades under the action of the current can still keep the position of the aperture blades unchanged.
- the electronic device 100 Since the electronic device 100 is always in a state of collecting images through the camera after the camera is started, after the aperture is adjusted, the electronic device 100 can obtain the image collected by the camera after the aperture is adjusted. In addition, since the electronic device 100 can display the image collected by the camera in real time, during the process of adjusting the aperture, the electronic device 100 can display the display effect of the image, such as an image in which the brightness and depth of field change with the change of the aperture.
- the image captured by the camera after the aperture is adjusted is the image corresponding to the aperture value set by the user.
- the user can see that the brightness or depth of field follows the user's adjustment of the aperture during the aperture adjustment process. And the image changes.
- the image captured by the camera after the aperture is adjusted is an image with a brightness equal to the threshold.
- the image is neither too dark nor too bright, and truly restores the color and illumination of the scene observed by the human eye. Users can An image in which the brightness of the image changes automatically is viewed through the electronic device 100 .
- the electronic device 100 can dynamically adjust the voltage of the driver chip of the aperture motor according to whether the aperture is adjusted.
- the voltage of the driver chip is reduced. Only when the aperture is adjusted, the voltage of the driver chip is increased. High voltage of the driver chip. In this way, the driving voltage of the driver chip can be prevented from maintaining a high voltage, and the power consumption of the driver chip during the automatic exposure process can be reduced as much as possible, thereby improving the power consumption of the currently working camera module and extending the The standby time of the electronic device 100 when using the camera is determined.
- each step in the above method embodiment can be completed by an integrated logic circuit of hardware in the processor or instructions in the form of software.
- the method steps disclosed in conjunction with the embodiments of this application can be directly implemented by a hardware processor, or executed by a combination of hardware and software modules in the processor.
- This application also provides an electronic device, which may include a memory and a processor.
- the memory can be used to store computer programs; the processor can be used to call the computer program in the memory, so that the electronic device executes the method executed by the electronic device 100 in any of the above embodiments.
- the present application also provides a chip system, which includes at least one processor for implementing the functions involved in the method performed by the electronic device 100 in any of the above embodiments.
- the chip system further includes a memory, the memory is used to store program instructions and data, and the memory is located within the processor or outside the processor.
- the chip system can be composed of chips or include chips and other discrete devices.
- processors in the chip system there may be one or more processors in the chip system.
- the processor can be implemented in hardware or software.
- the processor may be a logic circuit, an integrated circuit, or the like.
- the processor may be a general-purpose processor implemented by reading software code stored in memory.
- the memory may be integrated with the processor or may be provided separately from the processor, which is not limited by the embodiments of the present application.
- the memory may be a non-transient processor, such as a read-only memory ROM, which may be integrated with the processor on the same chip, or may be separately provided on different chips.
- the embodiments of this application vary on the type of memory, and The arrangement of the memory and processor is not specifically limited.
- the chip system can be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), or a system on chip (SoC). It can also be a central processor (central processor unit, CPU), a network processor (network processor, NP), a digital signal processing circuit (digital signal processor, DSP), or a microcontroller (micro controller unit (MCU), or a programmable logic device (PLD) or other integrated chip.
- FPGA field programmable gate array
- ASIC application specific integrated circuit
- SoC system on chip
- CPU central processor unit
- NP network processor
- DSP digital signal processing circuit
- MCU microcontroller
- PLD programmable logic device
- the computer program product includes: a computer program (which can also be called a code, or an instruction).
- a computer program which can also be called a code, or an instruction.
- the computer program When the computer program is run, it causes the computer to execute the electronic device in any of the above embodiments. 100 any method of execution.
- This application also provides a computer-readable storage medium that stores a computer program (which may also be called a code, or an instruction).
- a computer program which may also be called a code, or an instruction.
- the computer program When the computer program is run, the computer is caused to perform the method performed by any one of the electronic devices 100 in any of the above embodiments.
- the processor in the embodiment of the present application may be an integrated circuit chip with signal processing capabilities.
- each step of the above method embodiment can be completed through an integrated logic circuit of hardware in the processor or instructions in the form of software.
- the above-mentioned processor can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (AP 800plication specific integrated circuit, ASIC), a field programmable gate array (field programmable gate array, FPGA) or other Programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
- DSP digital signal processor
- ASIC application-specific integrated circuit
- FPGA field programmable gate array
- a general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
- the steps of the method disclosed in conjunction with the embodiments of the present application can be directly implemented by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor.
- the software module can be located in random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers and other mature storage media in this field.
- the storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
- the embodiment of the present application also provides a device.
- the device may specifically be a component or module, and the device may include one or more connected processors and memories. Among them, memory is used to store computer programs. When the computer program is executed by one or more processors, the device is caused to execute the methods in each of the above method embodiments.
- the devices, computer-readable storage media, computer program products or chips provided by the embodiments of the present application are all used to execute the corresponding methods provided above. Therefore, the beneficial effects it can achieve can be referred to the beneficial effects in the corresponding methods provided above, and will not be described again here.
- the computer program product includes one or more computer instructions.
- the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device.
- the computer instructions may be stored in or transmitted from one computer-readable storage medium to another, e.g., the computer instructions may be transferred from a website, computer, server, or data center Transmission to another website, computer, server or data center through wired (such as coaxial cable, optical fiber, digital subscriber line) or wireless (such as infrared, wireless, microwave, etc.) means.
- the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains one or more available media integrated.
- the available media may be magnetic media (eg, floppy disk, hard disk, magnetic tape), optical media (eg, DVD), or semiconductor media (eg, solid state disk (SSD)), etc.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Power Engineering (AREA)
- Optics & Photonics (AREA)
- Studio Devices (AREA)
Abstract
Description
Claims (24)
- 一种电压调整方法,其特征在于,所述方法应用于包括摄像头的电子设备,所述摄像头包括镜头、马达和驱动芯片,所述方法包括:所述电子设备启动所述摄像头,并通过所述摄像头采集图像;所述电子设备提供第一驱动电压给所述驱动芯片,以驱动所述马达将所述镜头移动到第一位置;所述电子设备提供第二驱动电压给所述驱动芯片,以驱动所述马达将所述镜头移动到第二位置;所述第二驱动电压不同于所述第一驱动电压,所述第二位置不同于所述第一位置。
- 根据权利要求1所述的方法,其特征在于,所述第二驱动电压大于所述第一驱动电压,所述第二位置和第三位置之间的距离,大于,所述第一位置和第三位置之间的距离;所述第三位置为所述马达未移动所述镜头时,所述镜头所处的位置。
- 根据权利要求1或2所述的方法,其特征在于,所述方法还包括:所述电子设备提供第三驱动电压给所述驱动芯片,以驱动所述马达将所述镜头移动到所述第一位置;其中,所述电子设备提供所述第三驱动电压时的姿态,不同于,所述电子设备提供所述第一驱动电压时的姿态;所述第三驱动电压不同于所述第一驱动电压。
- 根据权利要求3所述的方法,其特征在于,所述电子设备的姿态是指所述镜头的平面与水平面的夹角,所述电子设备提供所述第三驱动电压时,所述镜头的平面与水平面处于第一夹角,所述电子设备提供所述第一驱动电压时,所述镜头的平面与水平面处于第二夹角;所述第一夹角小于所述第二夹角,所述第三驱动电压大于所述第一驱动电压。
- 根据权利要求1-4任一项所述的方法,其特征在于,所述摄像头在所述镜头位于所述第二位置时所采集的图像的清晰度,高于,所述摄像头在所述镜头位于所述第二位置以外的其他位置时所采集的图像的清晰度;所述电子设备提供第二驱动电压给所述驱动芯片,以驱动所述马达将所述镜头移动到第二位置之后,所述方法还包括:所述电子设备持续提供第四驱动电压给所述驱动芯片,以驱动所述马达将所述镜头保持在第二位置。
- 根据权利要求1-5任一项所述的方法,其特征在于,所述第一位置和所述第二位置为根据用户输入的调整所述镜头的位置的操作确定。
- 根据权利要求1-6任一项所述的方法,其特征在于,所述电子设备通过所述摄像头采集图像之后,所述方法还包括:所述电子设备显示通过所述摄像头采集的图像,其中,所述电子设备在镜头处于所述第一位置时采集的图像和镜头处于所述第二位置时采集的图像的清晰度不同。
- 根据权利要求1-7任一项所述的方法,其特征在于,所述方法还包括:所述电子设备在启动所述摄像头时,提供第四驱动电压给所述驱动芯片,以驱动所述马达将所述镜头移动到第四位置;所述第四驱动电压为预设电压。
- 一种电压调整方法,其特征在于,所述方法应用于包括摄像头的电子设备,所述摄像头包括光圈、马达和驱动芯片,所述方法包括:所述电子设备启动所述摄像头,并通过所述摄像头采集图像;所述电子设备提供第一驱动电压给所述驱动芯片,以驱动所述马达改变所述光圈的孔径大小,使得所述光圈的光圈值调整为第一值;所述电子设备将所述第一驱动电压调整为第二驱动电压;所述第一驱动电压大于所述第二驱动电压。
- 根据权利要求9所述的方法,其特征在于,所述电子设备提供第一驱动电压给所述驱动芯片,具体 包括:所述电子设备将提供给所述驱动芯片的电压由第三驱动电压调整为第一驱动电压,所述第三驱动电压小于所述第一驱动电压。
- 根据权利要求9或10所述的方法,其特征在于,所述电子设备提供第一驱动电压给所述驱动芯片,以驱动所述马达改变所述光圈的孔径大小,使得所述光圈的光圈值调整为第一值,具体包括:所述电子设备提供第一驱动电压给所述驱动芯片,并通过所述驱动芯片提供一个或多个电流给所述马达,以驱动所述马达将所述光圈的孔径大小调整为第一大小,使得所述光圈的光圈值调整为第一值;其中,所述多个电流包括第一电流和第二电流,所述第二电流为根据所述马达在所述第一电流的作用下调整的所述光圈的孔径大小确定。
- 根据权利要求11所述的方法,其特征在于,所述电子设备将所述第一驱动电压调整为第二驱动电压之后,所述方法还包括:所述电子设备通过所述驱动芯片提供一个或多个电流给所述马达,以驱动所述马达将所述光圈的孔径大小保持为所述第一大小。
- 根据权利要求11或12所述的方法,其特征在于,所述第一值为所述光圈除最大光圈值和最小光圈值之外的光圈值。
- 根据权利要求9或10所述的方法,其特征在于,所述电子设备提供第一驱动电压给所述驱动芯片,以驱动所述马达改变所述光圈的孔径大小,使得所述光圈的光圈值调整为第一值,具体包括:所述电子设备提供第一驱动电压给所述驱动芯片,并通过所述驱动芯片提供第三电流给所述马达,使所述马达产生第一推力改变所述光圈孔径大小,使得所述光圈的光圈值调整为第一值。
- 根据权利要求14所述的方法,其特征在于,所述电子设备将所述第一驱动电压调整为第二驱动电压之后,所述方法还包括:所述电子设备通过所述驱动芯片提供第四电流给所述马达,使所述马达在第二推力的作用下,保持所述光圈孔径大小的改变。
- 根据权利要求14或15所述的方法,其特征在于,所述第一值为所述光圈的最大光圈值或最小光圈值。
- 根据权利要求15或16所述的方法,其特征在于,所述电子设备预存有所述第三电流和/或所述第四电流。
- 根据权利要求9-17任一项所述的方法,其特征在于,所述第一值为所述电子设备采集的图像的亮度等于阈值时,所述光圈的光圈值。
- 根据权利要求9-18任一项所述的方法,其特征在于,所述方法还包括:所述电子设备检测到第二操作,所述第二操作用于指示所述第一值。
- 根据权利要求9-19任一项所述的方法,其特征在于,所述电子设备通过所述摄像头采集图像之后,所述方法还包括:所述电子设备显示通过所述摄像头采集的图像,其中,所述电子设备在将所述光圈值调整为所述第一值之前和调整为所述第一值之后,采集的图像的亮度和/或景深不同。
- 一种电子设备,其特征在于,包括摄像头,存储器,一个或多个处理器,以及一个或多个程序,其中,所述摄像头包括镜头、马达、驱动芯片;所述一个或多个处理器在执行所述一个或多个程序时,使得所述电子设备实现如权利要求1至8任一项所述的方法。
- 一种电子设备,其特征在于,包括摄像头,存储器,一个或多个处理器,以及一个或多个程序,其中,所述摄像头包括光圈、马达、驱动芯片;所述一个或多个处理器在执行所述一个或多个程序时,使得所述电子设备实现如权利要求9至20任一项所述的方法。
- 一种计算机可读存储介质,包括指令,其特征在于,当所述指令在电子设备上运行时,使得所述电子设备执行如权利要求1至8,或,9至20任一项所述的方法。
- 一种计算机程序产品,其特征在于,当所述计算机程序产品在计算机上运行时,使得计算机执行如权利要求1至8,或,9至20任一项所述的方法。
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US18/994,917 US20260025573A1 (en) | 2022-09-06 | 2023-09-05 | Voltage adjustment method and related apparatus |
| EP23862378.9A EP4531410A4 (en) | 2022-09-06 | 2023-09-05 | VOLTAGE ADJUSTMENT METHOD AND ASSOCIATED APPARATUS |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211083452.1A CN117729411A (zh) | 2022-09-06 | 2022-09-06 | 电压调整方法及相关装置 |
| CN202211083452.1 | 2022-09-06 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2024051684A1 true WO2024051684A1 (zh) | 2024-03-14 |
Family
ID=90192055
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2023/116991 Ceased WO2024051684A1 (zh) | 2022-09-06 | 2023-09-05 | 电压调整方法及相关装置 |
Country Status (4)
| Country | Link |
|---|---|
| US (1) | US20260025573A1 (zh) |
| EP (1) | EP4531410A4 (zh) |
| CN (1) | CN117729411A (zh) |
| WO (1) | WO2024051684A1 (zh) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN119882330A (zh) * | 2025-01-09 | 2025-04-25 | 华为技术有限公司 | 可变光圈、控制方法、摄像模组及电子设备 |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN118075602B (zh) * | 2024-04-24 | 2024-08-02 | 上海艾为微电子技术有限公司 | 驱动装置、图像采集模组和电压调整方法 |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2002250955A (ja) * | 2001-02-23 | 2002-09-06 | Matsushita Electric Ind Co Ltd | 光学撮像系制御装置 |
| JP2005266647A (ja) * | 2004-03-22 | 2005-09-29 | Casio Comput Co Ltd | 撮像装置、レンズ移動制御方法、及びプログラム |
| JP2006189506A (ja) * | 2004-12-28 | 2006-07-20 | Fuji Photo Film Co Ltd | カメラ |
| JP2006227101A (ja) * | 2005-02-15 | 2006-08-31 | Sony Corp | レンズ駆動制御装置及びレンズ駆動制御方法、撮像装置 |
| WO2019155734A1 (ja) * | 2018-02-09 | 2019-08-15 | ソニー株式会社 | モータ制御装置、光学装置、撮像装置、モータ制御方法 |
Family Cites Families (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2006317847A (ja) * | 2005-05-16 | 2006-11-24 | Canon Inc | レンズ駆動装置 |
| JP2007187983A (ja) * | 2006-01-16 | 2007-07-26 | Sony Corp | 撮像装置、およびレンズ位置調整方法 |
| JP5114991B2 (ja) * | 2007-03-26 | 2013-01-09 | 株式会社ニコン | モータ駆動装置、レンズ鏡筒及びカメラ |
| JP2009237530A (ja) * | 2007-11-14 | 2009-10-15 | Ricoh Co Ltd | レンズ駆動装置、撮像装置およびレンズ駆動方法 |
| JP2017161662A (ja) * | 2016-03-09 | 2017-09-14 | キヤノン株式会社 | 撮像装置および絞り制御方法 |
| JP2018045029A (ja) * | 2016-09-13 | 2018-03-22 | キヤノン株式会社 | 撮像装置およびその制御方法、レンズ装置 |
-
2022
- 2022-09-06 CN CN202211083452.1A patent/CN117729411A/zh active Pending
-
2023
- 2023-09-05 US US18/994,917 patent/US20260025573A1/en active Pending
- 2023-09-05 WO PCT/CN2023/116991 patent/WO2024051684A1/zh not_active Ceased
- 2023-09-05 EP EP23862378.9A patent/EP4531410A4/en active Pending
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2002250955A (ja) * | 2001-02-23 | 2002-09-06 | Matsushita Electric Ind Co Ltd | 光学撮像系制御装置 |
| JP2005266647A (ja) * | 2004-03-22 | 2005-09-29 | Casio Comput Co Ltd | 撮像装置、レンズ移動制御方法、及びプログラム |
| JP2006189506A (ja) * | 2004-12-28 | 2006-07-20 | Fuji Photo Film Co Ltd | カメラ |
| JP2006227101A (ja) * | 2005-02-15 | 2006-08-31 | Sony Corp | レンズ駆動制御装置及びレンズ駆動制御方法、撮像装置 |
| WO2019155734A1 (ja) * | 2018-02-09 | 2019-08-15 | ソニー株式会社 | モータ制御装置、光学装置、撮像装置、モータ制御方法 |
Non-Patent Citations (1)
| Title |
|---|
| See also references of EP4531410A4 |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN119882330A (zh) * | 2025-01-09 | 2025-04-25 | 华为技术有限公司 | 可变光圈、控制方法、摄像模组及电子设备 |
| CN119882330B (zh) * | 2025-01-09 | 2026-01-02 | 华为技术有限公司 | 可变光圈、控制方法、摄像模组及电子设备 |
Also Published As
| Publication number | Publication date |
|---|---|
| EP4531410A4 (en) | 2025-10-01 |
| US20260025573A1 (en) | 2026-01-22 |
| EP4531410A1 (en) | 2025-04-02 |
| CN117729411A (zh) | 2024-03-19 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11949978B2 (en) | Image content removal method and related apparatus | |
| CN113132620B (zh) | 一种图像拍摄方法及相关装置 | |
| KR102724876B1 (ko) | 촬영 방법 및 전자 장치 | |
| CN111212235B (zh) | 一种长焦拍摄的方法及电子设备 | |
| KR102577396B1 (ko) | 녹화 프레임 레이트 제어 방법 및 관련 장치 | |
| US12301993B2 (en) | Photographing method and apparatus | |
| CN115967851B (zh) | 快速拍照方法、电子设备及计算机可读存储介质 | |
| CN110248081A (zh) | 图像捕捉方法及电子设备 | |
| CN113556466B (zh) | 一种对焦方法和电子设备 | |
| CN113709355A (zh) | 滑动变焦的拍摄方法及电子设备 | |
| WO2023160224A9 (zh) | 一种拍摄方法及相关设备 | |
| CN116723383B (zh) | 一种拍摄方法及相关设备 | |
| EP4531410A1 (en) | Voltage adjustment method and related apparatus | |
| CN118552452A (zh) | 去除摩尔纹的方法及相关装置 | |
| CN116055871B (zh) | 视频处理方法及其相关设备 | |
| CN117135449A (zh) | 一种自动对焦方法及电子设备 | |
| CN116709018B (zh) | 一种变焦条分割方法及电子设备 | |
| RU2782255C1 (ru) | Способ управления частотой кадров записи и соответствующее устройство | |
| CN120224015A (zh) | 一种具有多摄像头设备变焦的方法及装置 | |
| CN120980350A (zh) | 拍摄方法及电子设备 | |
| CN120128791A (zh) | 一种拍摄参数调节方法、电子设备及存储介质 | |
| CN119854631A (zh) | 对焦方法及电子设备 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 23862378 Country of ref document: EP Kind code of ref document: A1 |
|
| WWE | Wipo information: entry into national phase |
Ref document number: 2023862378 Country of ref document: EP |
|
| ENP | Entry into the national phase |
Ref document number: 2023862378 Country of ref document: EP Effective date: 20241224 |
|
| WWE | Wipo information: entry into national phase |
Ref document number: 18994917 Country of ref document: US |
|
| WWP | Wipo information: published in national office |
Ref document number: 2023862378 Country of ref document: EP |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| WWP | Wipo information: published in national office |
Ref document number: 18994917 Country of ref document: US |