Method for activating camera, and related apparatus

By selecting multiple sound effects and controlling motor parameters in the telescopic camera, the sound effects and lens extension speed are dynamically adjusted, solving the problems of monotonous sound effects and inconsistent height under different postures, thus improving user experience and device stability.

WO2026021274A1PCT designated stage Publication Date: 2026-01-29HUAWEI TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/107853
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-07-24
Filing Date
2025-07-10
Publication Date
2026-01-29

AI Technical Summary

Technical Problem

Existing retractable cameras have a single sound effect when they are turned on and off, and cannot be dynamically adjusted. Furthermore, the pop-up height is inconsistent under different device postures, which affects user experience and device power consumption.

Method used

By selecting multiple sound effects and controlling the motor voltage and PPS, the startup and shutdown sound effects of the telescopic camera are dynamically adjusted, and the extension speed and distance of the lens are adjusted according to the device's battery level and posture, ensuring sound effect diversity and power consumption optimization.

Benefits of technology

It enables dynamic adjustment of the audio effects of the retractable camera, enhancing the fun of the user experience, and optimizes power consumption under low battery and different postures to ensure stable operation of the device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025107853_29012026_PF_FP_ABST
    Figure CN2025107853_29012026_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed in the present application are a method for activating a camera, and a related apparatus. The method comprises: selecting a first sound effect from among a plurality of sound effects; and then, when a telescopic camera is activated, a motor driving the extension of a lens of the telescopic camera, wherein the motor produces the first sound effect during the process of driving the extension of the lens of the telescopic camera. In this way, it is possible to adjust the sound effect for when a telescopic camera is activated, so as to preventing the telescopic camera from operating with only one sound effect, thereby achieving the dynamic adjustment of sound effects.
Need to check novelty before this filing date? Find Prior Art

Description

Method for starting camera and related device

[0001] The present application claims priority to the Chinese patent application No. 202411002624.7, filed on July 24, 2024, and entitled "Method for starting camera and related device", the content of which is incorporated herein by reference in its entirety. TECHNICAL FIELD

[0002] The present application relates to the technical field of computer, and in particular, to a method for starting a camera and related device. BACKGROUND

[0003] In recent years, image technology has developed rapidly in the terminal field, and telescopic cameras have gradually emerged in the terminal field. When taking a photo, the telescopic camera will automatically rise to achieve perfect image quality, and after exiting the photo taking, the telescopic camera will automatically lower to maintain the overall thinness of the body. It can be seen that the introduction of telescopic cameras has improved the terminal image technology to a new level. SUMMARY

[0004] The present application provides a method for starting a camera and related device, which realizes dynamic adjustment of the sound effect when the telescopic camera is started.

[0005] In a first aspect, the present application provides a method for starting a camera, which is applied to an electronic device comprising a telescopic camera. The method comprises: selecting a first sound effect from a plurality of sound effects; starting the telescopic camera; and driving a lens of the telescopic camera to extend out through a motor in the telescopic camera during the process of starting the telescopic camera, wherein the motor emits the first sound effect during the process of driving the lens of the telescopic camera to extend out.

[0006] The method provided by the first aspect can adjust the sound effect of the telescopic camera when it is started, avoid the telescopic camera running with only one sound effect, and realize dynamic adjustment of the sound effect.

[0007] In combination with the first aspect, in a possible implementation manner, after the first sound effect is selected from the plurality of sound effects, the method further comprises: determining a first voltage and / or a first pulse per second (PPS) based on the first sound effect; and driving the lens of the telescopic camera to extend out through the motor, specifically comprising: inputting the first voltage to the motor, and / or controlling the PPS of the motor to be the first PPS, so as to drive the lens of the telescopic camera to extend out through the motor, wherein the sound emitted by the motor under the first voltage and / or the first PPS is the first sound effect.

[0008] That is, the voltage and / or PPS of the motor can be set to control the motor to emit a specified sound effect.

[0009] With reference to the first aspect, in a possible implementation manner, the first voltage includes a plurality of voltage values at different time periods when the lens of the telescopic camera is extended, and / or the first PPS includes a plurality of PPSs at different time periods when the lens of the telescopic camera is extended.

[0010] In this way, the sound effect of the motor can present a plurality of sound effects over time, and the level of the new school is increased.

[0011] With reference to the first aspect, in a possible implementation manner, the method further includes: closing the telescopic camera; and driving the lens of the telescopic camera to retract by the motor in the process of closing the telescopic camera, wherein the motor emits the first sound effect in the process of driving the lens of the telescopic camera to retract.

[0012] That is, if the electronic device selects the first sound effect from the plurality of sound effects, the motor emits the first sound effect when the camera is started and closed, so that the telescopic camera is accompanied by the same sound effect when it is started and closed.

[0013] With reference to the first aspect, in a possible implementation manner, the method further includes: closing the telescopic camera; and driving the lens of the telescopic camera to retract by the motor in the process of closing the telescopic camera, wherein the motor emits the second sound effect in the process of driving the lens of the telescopic camera to retract; and wherein the first sound effect includes the first audio and the second audio in sequence, and the second sound effect includes the second audio and the first audio in sequence. That is, the sound effect emitted when the telescopic camera is started and closed can present a related sound effect, and the interest of the sound effect is increased.

[0014] With reference to the first aspect, in a possible implementation manner, the electronic device is preset with a plurality of sound effects corresponding to the voltage and / or PPS of the motor.

[0015] That is, after the electronic device determines the specified sound effect, the motor can be accurately controlled to emit the specified sound effect according to the correspondence between the sound effect and the parameter of the motor preset by the system.

[0016] With reference to the first aspect, in a possible implementation manner, the first sound effect is selected from the plurality of sound effects, specifically including: determining the first sound effect from the plurality of sound effects based on a user operation, or selecting the first sound effect from the plurality of sound effects by default, or selecting the first sound effect from the plurality of sound effects based on the power of the electronic device, and the lower the power of the electronic device, the lower the frequency of the first sound effect.

[0017] That is, the electronic device can select the sound effect in a plurality of ways.

[0018] With reference to the first aspect, in a possible implementation manner, the first sound effect is selected from the plurality of sound effects based on the power level of the electronic device, and the lens of the telescopic camera is extended at a first speed, wherein the lower the power level of the electronic device, the slower the first speed.

[0019] It can be seen that the electronic device can select a sound effect according to the power level, and the lens of the telescopic camera is extended at different speeds under different sound effects. In this way, the electronic device can not only adjust the sound effect of the telescopic camera by the power level, but also adjust the lens extension speed of the telescopic camera.

[0020] With reference to the first aspect, in a possible implementation manner, before the first sound effect is selected from the plurality of sound effects, the method further includes:

[0021] It is detected that the power level of the electronic device is greater than a threshold, or the electronic device does not enter the power saving mode.

[0022] That is, the electronic device can provide a plurality of sound effects to adjust the sound effect of the telescopic camera when there is no power saving demand.

[0023] With reference to the first aspect, in a possible implementation manner, the method further includes: detecting that the power level of the electronic device is less than a threshold, or the electronic device enters the power saving mode; receiving a user operation of starting the telescopic camera; starting the telescopic camera; and controlling the lens of the telescopic camera to extend at a first speed during the process of starting the telescopic camera, wherein the lower the power level of the electronic device, the slower the first speed.

[0024] That is, the electronic device can adjust the lens extension speed of the telescopic camera based on the power level of the device when there is a power saving demand, so as to reduce the power consumption of the telescopic camera as much as possible when the electronic device is in a low power level.

[0025] With reference to the first aspect, in a possible implementation manner, after the user operation of starting the telescopic camera is received, the method further includes: determining a second voltage and / or a second PPS based on the first power level of the electronic device; and controlling the lens of the telescopic camera to extend at a first speed, specifically including: inputting the second voltage to the motor, and / or controlling the PPS of the motor to be the second PPS, so as to drive the lens of the telescopic camera to extend at the first speed by the motor.

[0026] That is, the electronic device can control the telescopic camera to extend the lens at a specified speed by setting the voltage and / or PPS of the motor.

[0027] With reference to the first aspect, in a possible implementation manner, the method further includes: receiving a user operation of closing the telescopic camera; closing the telescopic camera; and controlling the lens of the telescopic camera to retract at a second speed in the process of closing the telescopic camera, wherein the lower the power of the electronic device, the slower the second speed.

[0028] That is, when the electronic device closes the telescopic camera, the retracting speed of the lens of the telescopic camera can also be controlled based on the power of the electronic device, so as to reduce the power consumption of the telescopic camera as much as possible when the electronic device is in a low power state.

[0029] With reference to the first aspect, in a possible implementation manner, before starting the telescopic camera, the method further includes: determining a first step number based on the posture of the electronic device, wherein the smaller the included angle between the pop-up direction of the telescopic camera and the gravity direction, the smaller the first step number; and wherein, in the process of starting the telescopic camera, the distance by which the lens of the telescopic camera is driven to pop up by the motor in the telescopic camera is a first distance, and the rotating step number of the motor in the process of driving the lens of the telescopic camera to pop up is the first step number.

[0030] It can be seen that, in addition to adjusting the sound effect when the telescopic camera is started, the electronic device can also adjust the distance by which the lens of the telescopic camera is popped up based on the posture of the device, so that the electronic device can control the distance by which the lens of the telescopic camera is popped up.

[0031] With reference to the first aspect, in a possible implementation manner, the method further includes: receiving a user operation of starting the telescopic camera; determining a second step number based on the posture of the electronic device, wherein the smaller the included angle between the pop-up direction of the telescopic camera and the gravity direction, the smaller the second step number; starting the telescopic camera; and in the process of starting the telescopic camera, driving the lens of the telescopic camera to pop up by a first distance by the motor, wherein the rotating step number of the motor in the process of driving the lens of the telescopic camera to pop up is the second step number.

[0032] In this way, it can be ensured that the electronic device can make the distance by which the lens of the telescopic camera is popped up consistent when the electronic device is in different postures, so as to ensure that the shooting effect of the electronic device 100 remains consistent in various postures.

[0033] With reference to the first aspect, in a possible implementation manner, the electronic device is preconfigured with corresponding rotating step numbers of the motor when the telescopic camera is started in different postures.

[0034] That is, the electronic device can quickly find out the corresponding rotating step number of the motor in the posture of the device through the preconfigured correspondence between the posture and the rotating step number, so as to control the pop-up distance of the telescopic camera.

[0035] With reference to the first aspect, in a possible implementation manner, the method further includes: receiving a user operation of closing the retractable camera; determining a third step number based on the posture of the electronic device, wherein the smaller the included angle between the retracting direction of the retractable camera and the gravity direction, the smaller the third step number; closing the retractable camera; in the process of closing the retractable camera, driving the lens of the retractable camera to retract by a first distance through the motor, wherein the rotation step number of the motor in the process of driving the lens of the retractable camera to retract is the third step number.

[0036] It can be seen that when the electronic device closes the camera, the electronic device can continue to determine the rotation step number of the motor according to the current posture of the electronic device, so as to ensure that the retractable camera can restore the lens to the state before the lens is extended when the lens is retracted.

[0037] With reference to the first aspect, in a possible implementation manner, the lens of the retractable camera is located behind the electronic device when the lens is extended, and the motor is configured to drive the lens of the retractable camera to retract along the vertical direction of the back of the electronic device; or the lens of the retractable camera is located above the electronic device when the lens is extended, and the motor is configured to drive the lens of the retractable camera to retract along the horizontal direction of the back of the electronic device.

[0038] The second aspect, the embodiment of the application further provides a method for starting a camera, the method is applied to an electronic device comprising a retractable camera, and the method comprises the following steps: receiving a user operation of starting the retractable camera; starting the retractable camera; in the process of starting the retractable camera, controlling the lens of the retractable camera to extend at a first speed, wherein the lower the power of the electronic device, the slower the first speed.

[0039] The method provided by the second aspect can dynamically adjust the retracting speed of the retractable camera according to the power of the device, while ensuring the stable operation of the camera function at low power as much as possible, and reducing the power consumption of the device.

[0040] With reference to the second aspect, in a possible implementation manner, the retractable camera further comprises a motor, and after receiving the user operation of starting the retractable camera, the method further comprises the following steps: determining a second voltage and / or a second PPS based on the first power of the electronic device; controlling the lens of the retractable camera to extend at the first speed, specifically comprising: inputting the second voltage to the motor, and / or controlling the PPS of the motor to be the second PPS, so as to drive the lens of the retractable camera to extend at the first speed through the motor.

[0041] With reference to the second aspect, in a possible implementation manner, before receiving the user operation of starting the retractable camera, the method further comprises the following step: detecting that the power of the electronic device is less than a threshold value.

[0042] With reference to the second aspect, in a possible implementation manner, before the user operation of starting the telescopic camera is received, the method further includes: the electronic device enters a power saving mode.

[0043] With reference to the second aspect, in a possible implementation manner, the method further includes: receiving a user operation of closing the telescopic camera; closing the telescopic camera; and in the process of closing the telescopic camera, controlling the lens of the telescopic camera to retract at a second speed, wherein the lower the power of the electronic device, the slower the second speed.

[0044] With reference to the third aspect, the embodiments of the present application further provide a method for starting a camera, the method being applied to an electronic device including a telescopic camera, and the method including: receiving a user operation of starting the telescopic camera; determining a first step number based on a posture of the electronic device, wherein the smaller the included angle between the pop-up direction of the telescopic camera and the gravity direction, the smaller the first step number; starting the telescopic camera; and in the process of starting the telescopic camera, driving the lens of the telescopic camera to extend by a first distance through a motor in the telescopic camera, wherein the rotation step number of the motor in the process of driving the lens of the telescopic camera to extend is the first step number.

[0045] The method provided by the third aspect can be used to determine the rotation step number of the motor based on the posture of the electronic device when starting the telescopic camera, so that the motor can control the extension distance of the lens of the telescopic camera at a specified step number, and the extension distance of the lens can be as small as possible in different postures of the electronic device.

[0046] With reference to the third aspect, in a possible implementation manner, the method further includes: receiving a user operation of starting the telescopic camera; determining a second step number based on a posture of the electronic device, wherein the smaller the included angle between the pop-up direction of the telescopic camera and the gravity direction, the smaller the first step number; starting the telescopic camera; and in the process of starting the telescopic camera, driving the lens of the telescopic camera to extend by a first distance through a motor, wherein the rotation step number of the motor in the process of driving the lens of the telescopic camera to extend is the second step number.

[0047] With reference to the third aspect, in a possible implementation manner, the electronic device is preconfigured with different rotation step numbers of the motor corresponding to different postures of the electronic device when starting the telescopic camera.

[0048] With reference to the third aspect, in a possible implementation manner, the method further includes: receiving a user operation of closing the telescopic camera; determining a third step number based on a posture of the electronic device, wherein the smaller the included angle between the retracting direction of the telescopic camera and the gravity direction, the smaller the third step number; closing the telescopic camera; and in the process of closing the telescopic camera, driving the lens of the telescopic camera to retract by a first distance through a motor, wherein the rotation step number of the motor in the process of driving the lens of the telescopic camera to retract is the third step number.

[0049] With reference to the first aspect, the second aspect or the third aspect, in a possible implementation, the lens of the telescopic camera is located behind the electronic device when the lens is extended, and the motor is configured to drive the lens of the telescopic camera to extend or retract along a vertical direction of the back surface of the electronic device; or the lens of the telescopic camera is located above the electronic device when the lens is extended, and the motor is configured to drive the lens of the telescopic camera to extend or retract along a horizontal direction of the back surface of the electronic device.

[0050] In a fourth aspect, an embodiment of the present application provides an electronic device, including a telescopic camera, a memory, a processor and a computer program stored in the memory, the telescopic camera extends the lens when starting, and the processor executes the computer program to implement the method described in the first aspect or any of the implementation manners of the first aspect, the second aspect or any of the implementation manners of the second aspect, the third aspect or any of the implementation manners of the third aspect.

[0051] In a fifth aspect, an embodiment of the present application provides a computer readable storage medium, including instructions, when the instructions are executed on an electronic device, the electronic device executes the method described in the first aspect or any of the implementation manners of the first aspect, the second aspect or any of the implementation manners of the second aspect, the third aspect or any of the implementation manners of the third aspect.

[0052] In a sixth aspect, an embodiment of the present application provides a computer program product, when the computer program product is executed on a computer, the computer executes the method described in the first aspect or any of the implementation manners of the first aspect, the second aspect or any of the implementation manners of the second aspect, the third aspect or any of the implementation manners of the third aspect. BRIEF DESCRIPTION OF DRAWINGS

[0053] FIG. 1 is a schematic diagram of an appearance of an electronic device 100 according to an embodiment of the present application;

[0054] FIG. 2 is a schematic diagram of a telescopic principle of a telescopic camera according to an embodiment of the present application;

[0055] FIG. 3 is a schematic diagram of a method of starting a camera according to an embodiment of the present application;

[0056] FIG. 4 is a user interface 10 for setting a sound effect of a telescopic camera of the electronic device 100 according to an embodiment of the present application;

[0057] FIG. 5 is a schematic diagram of another method of starting a camera according to an embodiment of the present application;

[0058] FIG. 6 is a schematic diagram of another method of starting a camera according to an embodiment of the present application;

[0059] FIG. 7 is a schematic diagram of a hardware structure of the electronic device 100 according to an embodiment of the disclosure;

[0060] FIG. 8 is a block diagram of a software structure of the electronic device 100 according to an embodiment of the disclosure. DETAILED DESCRIPTION

[0061] The technical solutions in the embodiments of the disclosure will be clearly and completely described below with reference to the drawings.

[0062] The term "user interface (UI)" in the embodiments of the disclosure is a medium interface for interaction and information exchange between an application program or an operating system and a user, which realizes conversion between an internal form of information and a form acceptable by the user. The user interface is source code written in a specific computer language such as Java or extensible markup language (XML), and the interface source code is parsed, rendered, and finally presented as content recognizable by the user on the electronic device. A commonly used form of the user interface is a graphic user interface (GUI), which refers to a user interface related to computer operation displayed in a graphical manner. It can be a visual interface element such as text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, Widgets, and the like displayed in the display screen of the electronic device.

[0063] For the electronic device configured with the retractable camera, the electronic device can realize the extension and retraction of the retractable camera by issuing a pulse signal to the stepping motor, but the movement rhythm of the retractable camera is relatively single at present, and the retractable camera only adopts a fixed speed for extension and retraction.

[0064] In addition, during the extension and retraction of the lens, the operation of the internal mechanism (stepping motor) of the retractable camera will produce a certain sound, so that the retractable camera has a certain sound effect during the lifting process. However, since the retractable camera only adopts a fixed speed for lifting at present, the sound effect of the retractable camera during extension and retraction is also fixed and cannot be dynamically adjusted.

[0065] In addition, due to the influence of gravity, the pop-up height of the retractable camera may be different when the electronic device is in different postures. For example, if the pop-up direction of the retractable camera is the gravity direction, the retractable camera will have a higher pop-up height under the driving of the stepping motor due to the influence of gravity, and if the pop-up direction of the retractable camera is away from the gravity direction, the retractable camera will have a lower pop-up height under the driving of the stepping motor due to the influence of gravity.

[0066] The method provided in the embodiments of the present application can select a first sound effect from multiple sound effects, and then drive the lens of the telescopic camera to extend by a motor when starting the telescopic camera, wherein the motor can emit the first sound effect during the process of driving the lens of the telescopic camera to extend.

[0067] In this way, the sound effect of the telescopic camera when starting can be adjusted, the telescopic camera is prevented from running in only one sound effect, and dynamic adjustment of the sound effect is achieved.

[0068] The method provided in the embodiments of the present application can also adjust the speed of the lens of the telescopic camera extending based on the power of the electronic device when starting the telescopic camera, wherein the lower the power of the electronic device, the slower the speed of the lens extending.

[0069] This is because the stepping motor needs to provide a larger voltage when the telescopic camera extends at a faster speed, resulting in a larger power consumption of the stepping motor, which is not conducive to maintaining the long-time operation of the device when the power is low. Therefore, the telescopic speed of the telescopic camera can be dynamically adjusted according to the power of the device, while the stable operation of the camera function at low power is ensured as much as possible, and the power consumption of the device is reduced.

[0070] The method provided in the embodiments of the present application can also determine the rotation steps of the motor based on the posture of the electronic device after receiving a user operation of starting the telescopic camera by the user, and then drive the lens of the telescopic camera to extend by the motor when starting the telescopic camera, wherein the rotation steps of the motor during the process of driving the lens of the telescopic camera to extend can be the rotation steps determined based on the posture of the electronic device.

[0071] This is because the telescopic camera will have inconsistent pop-up heights when popping up due to the posture of the electronic device. Therefore, the rotation steps of the motor can be directly determined based on the posture of the electronic device when starting the telescopic camera, so that the motor can control the distance of the lens of the telescopic camera extending at a specified number of steps, and the gap in the distance of the lens popping up under different postures of the electronic device is minimized as much as possible.

[0072] FIG. 1 is a schematic diagram of the appearance of an electronic device 100 provided in the embodiments of the present application.

[0073] As shown in FIG. 1, the electronic device 100 includes a telescopic camera, which can be located at the back of the electronic device 100 and face away from the display screen of the electronic device 100.

[0074] Among them, (a) in FIG. 1 shows a schematic diagram when the telescopic camera is not popped up, and (b) in FIG. 1 shows a schematic diagram after the telescopic camera is popped up.

[0075] As shown in (a) of FIG. 1, when the retractable camera is not popped out, the outer plane of the lens is in the same plane as the back of the body of the electronic device 100 or is close to the back of the body of the electronic device 100, and at this time, the whole body of the electronic device 100 is relatively thin.

[0076] As shown in (b) of FIG. 1, when the retractable camera is popped out, the outer plane of the lens is away from the back of the body of the electronic device 100, and the distance between the lens and the sensor in the retractable camera is increased.

[0077] Exemplarily, when the retractable camera is not used, the electronic device 100 can make the retractable camera in the state shown in (a) of FIG. 1, and when the retractable camera is used, the electronic device 100 can make the retractable camera in the state shown in (b) of FIG. 1.

[0078] Further, during the use of the retractable camera by the electronic device 100, the pop-out height of the retractable camera can also be dynamically adjusted to realize the adjustment of the focal length during shooting.

[0079] It should be understood that the position of the retractable camera is not limited in the embodiments of the present application, for example, the retractable camera can also be located at the top or the front of the electronic device 100. In addition, the method for starting the camera provided in the embodiments of the present application is applicable not only to the retractable camera shown in FIG. 1, but also to a lifting camera whose main body can be extended from the inside of the body to the outside of the body. Exemplarily, the lens of the lifting camera is located at the top of the electronic device when it is extended, and the lifting camera is extended in the horizontal direction along the back of the electronic device. Therefore, the retractable camera mentioned in the embodiments of the present application can be a general term for cameras with retractable characteristics, and the retractable camera can also be called a lifting camera, a retractable lens, a lifting lens, a telescopic lens, etc., and the name is not limited in the embodiments of the present application.

[0080] FIG. 2 is a schematic diagram of the retracting principle of the retractable camera provided in the embodiments of the present application.

[0081] FIG. 2 shows some components contained in the retractable camera module: a stepping motor, a gear, a rotor and a mover. Among them:

[0082] The stepping motor is used to drive the rotation of the gear under the driving of a pulse signal. Among them, the pulse frequency of the pulse signal can control the rotation speed of the stepping motor, and one pulse signal can be used to control one step of the stepping motor. In addition, the stepping motor will emit a certain sound during operation, and the sound emitted by the stepping motor is different when the stepping motor is at different rotation speeds. Since the stepping motor can drive the extension and retraction of the lens of the retractable camera, the sound emitted by the stepping motor during rotation can be regarded as the sound effect emitted by the retractable camera when it is started or turned off.

[0083] The gear is linked with the stepping motor, and rotation of the stepping motor drives rotation of the gear. The gear is also linked with the rotor, and rotation of the gear further drives the rotor to rotate in the horizontal direction (for example, the horizontal arrow direction shown in FIG.2).

[0084] During horizontal rotation of the rotor, the guide column on the rotor moves along the direction in which the sliding groove is located, thereby causing the mover to move in the vertical direction (for example, the vertical arrow direction shown in FIG.2).

[0085] In the telescopic principle diagram shown in FIG.2, movement of the mover in the vertical direction is telescopic movement of the telescopic camera, movement of the mover in the vertical direction is ejection of the telescopic camera, and downward movement of the mover in the vertical direction is retraction of the telescopic camera.

[0086] It should be understood that the above description of the orientation is developed from the perspective that the lens plane of the telescopic camera is in the horizontal plane. If the telescopic camera is placed in a different posture, the movement direction of the above components should be changed accordingly. For example, if the telescopic camera is in a posture in which the lens plane is perpendicular to the horizontal plane, the rotor should rotate in the vertical direction, and the mover should move in the horizontal direction.

[0087] As can be seen, the stepping motor drives the telescopic camera to telescope under the driving of the pulse signal.

[0088] The driving voltage and the pulse per second (PPS) of the stepping motor can be used to control the rotation speed of the stepping motor. The stepping motor can drive the telescopic camera to telescope the lens at different speeds at different rotation speeds. The rotation steps of the stepping motor can affect the ejection height of the telescopic camera. In other words, the electronic device 100 can control the telescopic speed of the telescopic camera by adjusting the driving voltage and the PPS of the stepping motor, and adjust the ejection height of the telescopic camera by adjusting the rotation steps of the stepping motor.

[0089] The detailed process in which the electronic device 100 controls the telescopic camera to telescope through the driving voltage, the PPS, and the rotation steps of the stepping motor can be referred to the subsequent method flowchart, which will not be described here.

[0090] It should be noted that FIG.2 only shows some devices in the telescopic camera, and some other devices such as the focusing motor, the lens, the lens, and the like are not shown. In addition, the motor in the telescopic camera can also use other motors that can drive the lens of the telescopic camera to telescope, such as a linear motor, a gear motor, and the like, and the embodiments of the present application do not limit this.

[0091] FIG. 3 is a flowchart of a method for starting a camera according to an embodiment of the present application.

[0092] S101. The electronic device 100 selects a first sound effect from a plurality of sound effects.

[0093] The sound effect is a sound emitted when the telescopic camera is telescoped. The sound is a sound produced by the operation of internal mechanisms when the telescopic camera is telescoped, wherein the sound is mainly a sound emitted during the operation of a motor in the telescopic camera, and the motor can emit different sounds at different rotation speeds, and the motor can be used to drive the telescoping of the lens of the telescopic camera.

[0094] In some embodiments, the motor in the telescopic camera can be a stepper motor. For the position of the stepper motor in the telescopic camera and the structure of other devices, please refer to the related content of FIG. 2 described above.

[0095] The electronic device 100 can be pre-provided with a plurality of sound effects, and the sound effects are sounds that can be emitted by the motor during operation. In this way, the electronic device 100 can select a specified sound effect in advance before starting the camera, so that the telescopic camera can be accompanied by the specified sound effect when it is started.

[0096] In a specific implementation, the electronic device 100 can control the driving voltage of the motor and / or the PPS to realize that the telescopic camera emits a specified sound effect during the process of popping out the lens.

[0097] The electronic device 100 can be pre-provided with driving voltages and / or PPSs corresponding to the motor at different sound effects.

[0098] That is, after the electronic device 100 selects a first sound effect from a plurality of sound effects, the electronic device 100 can determine a first voltage and / or a first PPS corresponding to the first sound effect based on the first sound effect, so as to control the operation of the motor using the first voltage and / or the first PPS when the electronic device 100 drives the motor.

[0099] Exemplarily, the electronic device 100 can select a first sound effect from a plurality of sound effects in any of the following ways:

[0100] 1) The electronic device 100 selects a first sound effect from a plurality of sound effects based on a user operation

[0101] That is, the first sound effect can be a sound effect selected by the user from a plurality of sound effects.

[0102] In this way, the electronic device 100 can set the sound effect of the telescopic camera according to the user's preference and willingness, improve the operability of the user, and customize the telescopic sound effect of the camera for the user.

[0103] Exemplarily, the electronic device 100 can set the sound effect of the telescopic camera through the setting application. In this way, the user can select the sound effect of the telescopic camera in the setting application.

[0104] FIG. 4 is a user interface 10 provided by the electronic device 100 according to an embodiment of the present application for setting the sound effect of the telescopic camera.

[0105] The user interface 10 can include a plurality of options, one option corresponding to one sound effect. As shown in FIG. 4, the sound effects corresponding to the plurality of options can include default, mechanical, technological, mute, lively, rock, and the like.

[0106] The electronic device 100 can detect a user operation of the user acting on one of the options, and the sound effect corresponding to the selected option is set as the sound effect when the telescopic camera is popped out or retracted.

[0107] It should be noted that the mute sound effect in FIG. 4 refers to a sound effect with a small sound decibel.

[0108] It can be understood that the electronic device 100 can also set the sound effect of the telescopic camera through the camera application. The user can set the sound effect of the telescopic camera during the use of the camera application, and the embodiments of the present application do not limit this.

[0109] 2) The electronic device 100 selects a first sound effect from a plurality of sound effects

[0110] The electronic device 100 can select the sound effect according to the user's preference, device state, and the like.

[0111] For example, the electronic device 100 can select the sound effect according to the power of the electronic device 100. Wherein, the lower the power, the lower the frequency of the sound effect. This is because when the frequency of the sound effect is high, it means that the rotation speed of the motor is fast, and the power consumption of the motor under the fast rotation speed is large. Therefore, if the power of the electronic device 100 is reduced, a sound effect with a lower frequency can be selected to reduce the power consumption as much as possible when using the telescopic camera.

[0112] For another example, the electronic device 100 can select the sound effect according to the user's music preference. Wherein, if the user likes lively music, a sound effect with a faster rhythm can be selected, and if the user likes soothing music, a sound effect with a slower rhythm can be selected.

[0113] 3) The electronic device 100 selects a first sound effect from a plurality of sound effects by default

[0114] In this case, the first sound effect can be a sound effect that the electronic device 100 uses by default.

[0115] Exemplarily, the electronic device 100 can be provided with a default sound effect, and if the user does not select a sound effect, the electronic device 100 can pop out or retract the telescopic camera according to the default sound effect.

[0116] It can be understood that the electronic device 100 can also select a sound effect in other ways, and the embodiments of the present application do not limit this.

[0117] S102. The electronic device 100 starts the telescopic camera; in the process of starting the telescopic camera, the lens of the telescopic camera is driven out by the motor, wherein the motor emits a first sound effect in the process of driving the lens of the telescopic camera out.

[0118] Specifically, the electronic device 100 can input a first voltage corresponding to the first sound effect to the motor, and / or control the PPS of the motor to be a first PPS corresponding to the first sound effect, so as to drive the lens of the telescopic camera out by the motor. The sound emitted by the motor under the first voltage and / or the first PPS is the first sound effect.

[0119] It can be seen that after the electronic device 100 selects a specified sound effect, when the electronic device 100 starts the telescopic camera, the electronic device 100 can drive the motor with the driving voltage and / or PPS corresponding to the specified sound effect, drive the lens of the telescopic camera out by the motor, and at the same time, the motor can emit the specified sound effect under the driving of the driving voltage and / or PPS corresponding to the specified sound effect.

[0120] In some embodiments, the first voltage can include a plurality of voltage values at different time periods when the lens of the telescopic camera is stretched out, and / or the first PPS can include a plurality of PPS at different time periods when the lens of the telescopic camera is stretched out. Since different voltages and / or PPS can make the stepper motor rotate at different speeds, the motor is at different voltage values and / or PPS at different time points in the process of stretching out the lens of the telescopic camera, which can make the motor emit different sounds, so that the first sound effect can present a plurality of sound effects over time. For example, if the motor starts at a high rotation speed in the process of stretching out the lens of the telescopic camera, the motor emits a higher frequency sound, and then the motor rotates at a slower speed, and the motor emits a lower frequency sound, which makes the first sound effect present a sound effect of sharp at first and low at last, increasing the level of the sound effect.

[0121] In some embodiments, the electronic device 100 can also close the telescopic camera, and in the process of closing the telescopic camera, the lens of the telescopic camera can be driven back by the motor.

[0122] In the process of driving the lens of the telescopic camera back by the motor, any one of the following sound effects can be emitted:

[0123] 1) the same sound effect as when the lens of the telescopic camera is extended (i.e. the first sound effect)

[0124] That is, if the electronic device selects the first sound effect from the plurality of sound effects, the first sound effect is controlled to be emitted by the motor when the telescopic camera is started and stopped, so that the same sound effect is accompanied when the telescopic camera is started and stopped.

[0125] 2) the sound effect played in the opposite order to when the lens of the telescopic camera is extended (i.e. the second sound effect)

[0126] It is considered that the first voltage can include a plurality of voltages, and / or the first PPS can include a plurality of PPS, so the first sound effect can include a plurality of audio with different sound frequencies in turn, for example, the first audio and the second audio.

[0127] The second sound effect can refer to audio composed of a plurality of audio in the first sound effect in reverse, for example, the second audio and the first audio.

[0128] That is, if the first audio and the second audio are emitted by the motor in turn when the lens of the telescopic camera is extended, the second audio and the first audio can be emitted by the motor in turn when the lens of the telescopic camera is retracted. For example, if the first audio is presented with gradually increasing sound frequency, the second audio is presented with gradually decreasing sound frequency.

[0129] In a specific implementation, if the driving voltage of the motor is controlled to be one of the plurality of voltages in turn and / or the PPS of the motor is controlled to be one of the plurality of PPS in turn when the lens of the telescopic camera is extended, the first sound effect can be emitted by the motor. Then, when the lens of the telescopic camera is retracted, the driving voltage of the motor can be controlled to be one of the plurality of voltages in reverse order and / or the PPS of the motor can be controlled to be one of the plurality of PPS in reverse order, so that the second sound effect is emitted by the motor.

[0130] It can be understood that in other embodiments of the present application, the sound effect emitted by the motor when the lens of the telescopic camera is retracted can also have no association with the first sound effect, and the sound effect emitted by the motor can also be one selected by the user from a plurality of sound effects, so that the user can flexibly set the sound effect when the telescopic camera is started and stopped, and improve the flexibility of the user in setting the sound effect.

[0131] In some implementations, during the use of the photo-taking function by the electronic device 100, the electronic device 100 can also adjust the pop-up height of the telescopic camera according to the user's operation of adjusting the zoom ratio, focus, and other photo-taking parameters. At this time, the electronic device 100 can also combine the first sound effect to control the rotation speed of the motor when the telescopic camera adjusts the pop-up height, so that the sound effect emitted by the telescopic camera can still be dynamically adjusted during the user's photo-taking process.

[0132] As can be seen from steps S101-S102, the electronic device 100 can dynamically adjust the sound effects when the telescopic camera pops up and retracts, avoiding the telescopic camera from only maintaining a single sound effect and enhancing the fun of the camera's operation.

[0133] Figure 5 is a flowchart illustrating another method for starting a camera provided in an embodiment of this application.

[0134] S201. Electronic device 100 receives a user operation to activate the telescopic camera.

[0135] For example, the user operation of activating the retractable camera can refer to opening the camera application or switching from another camera, such as the front-facing camera, to the retractable camera. This application embodiment does not limit the user operation.

[0136] S202. Electronic device 100 starts the telescopic camera; during the process of starting the telescopic camera, the lens of the telescopic camera is controlled to extend at a first speed, wherein the lower the battery level of electronic device 100, the slower the first speed.

[0137] Specifically, after receiving a user's operation to activate the telescopic camera, the electronic device 100 can obtain the battery level of the electronic device 100 to adjust the telescopic speed of the camera lens when it extends, ensuring that when the battery level of the electronic device 100 is low, the electronic device 100 can extend the telescopic camera lens at a lower speed.

[0138] The electronic device 100 can set the zoom speed of the telescopic camera in any of the following ways:

[0139] 1) Electronic device 100 divides the device's power into multiple levels, with different levels corresponding to different extension / retraction speeds.

[0140] In this way, the electronic device 100 can identify the current battery level of the device and determine the extension speed of the telescopic camera based on that level.

[0141] For example, assume that the electronic device 100 divides the device power into two levels: the first level of power is at 0%-20%, and the second level of power is at 20%-100%. If the current device power of the electronic device 100 is 25%, the first speed is the extension speed corresponding to the second level.

[0142] 2) The electronic device 100 sets the extension speed of the telescopic camera based on the opening or closing of the power saving mode

[0143] The electronic device 100 usually automatically opens the power saving mode when the device power is low, or opens the power saving mode based on user operation. Correspondingly, the power saving mode is automatically closed when the device power increases to a certain value, or the power saving mode is closed based on user operation.

[0144] The power saving mode is a power saving mode, in which the electronic device 100 closes some high-power functions, such as closing Bluetooth connection, WiFi connection, or reducing some parameters of the device, such as reducing screen resolution, reducing display brightness, and the like, so as to reduce the power consumption of the device and prolong the running time of the device as much as possible.

[0145] The extension speed set in the power saving mode can be lower than the extension speed set in the non-power saving mode. In this way, the electronic device 100 can maintain a reduced extension speed to extend or retract the lens of the telescopic camera in the power saving mode, thereby reducing the power consumption when the telescopic camera is running.

[0146] It can be understood that, in addition to the power saving mode, the electronic device 100 can also set the extension speed of the telescopic camera based on the opening or closing of other modes, such as the emergency mode, the super power saving mode, and the like, which are not limited by the embodiments of the present application.

[0147] In a specific implementation, the electronic device 100 can be preconfigured with the driving voltage and / or PPS corresponding to the motor at different power levels. The motor can drive the telescopic camera to move the lens at different extension speeds under different driving voltages and / or PPS.

[0148] Then, after the electronic device 100 receives the user operation of starting the telescopic camera, the electronic device 100 can determine the voltage (e.g., the second voltage) and / or the PPS (e.g., the second PPS) corresponding to the power (e.g., the first power) of the electronic device 100. During the process of starting the telescopic camera by the electronic device 100, the voltage corresponding to the power of the electronic device 100 can be input to the motor, and / or the PPS of the motor can be controlled to be the PPS corresponding to the power of the electronic device 100, so as to realize the extension of the lens of the telescopic camera by the motor at the first speed.

[0149] In some embodiments, the electronic device 100 can also adjust the speed of retracting the lens of the telescopic camera based on the power of the electronic device 100 when the electronic device 100 closes the telescopic camera. Specifically, the electronic device 100 can also receive a user operation of closing the telescopic camera and close the telescopic camera; during the process of closing the telescopic camera, the electronic device 100 can control the telescopic camera to retract at a second speed, wherein the lower the power of the electronic device 100, the slower the second speed.

[0150] For example, the user operation of closing the telescopic camera can be an operation of closing a camera application, or an operation of switching from the telescopic camera to another camera, such as a front camera, and the embodiments of the present application do not limit the user operation.

[0151] In some embodiments, the electronic device 100 can adjust the telescopic speed of the lens of the telescopic camera based on the power when the power is lower than a threshold or the power saving mode is entered.

[0152] In this way, the electronic device 100 can adjust the telescopic speed of the lens of the telescopic camera according to the power of the device in a specified application scenario, as far as possible to reduce the power consumption of the electronic device 100 using the telescopic camera in the specified application scenario, and prolong the use time of the electronic device 100 in the specified application scenario.

[0153] Further, in combination with the above steps S101-S102, since different sound effects will affect the telescopic speed of the telescopic camera, the electronic device 100 can adjust the telescopic speed of the lens of the telescopic camera based on the user-selected sound effect when the power is greater than a threshold or the power saving mode is not entered.

[0154] That is, the electronic device 100 can reduce the telescopic speed of the telescopic camera as far as possible based on the power when the device has a power saving demand, and when the device does not have a power saving demand, the telescopic camera can be preferentially adjusted to reach the telescopic speed corresponding to the sound effect, so as to ensure that the motor can emit a specified sound effect.

[0155] In addition, since the telescopic speed of the telescopic camera is different, the sound effect emitted by the telescopic camera is different, and in combination with the above steps S101-S102, it can be seen that the electronic device 100 can dynamically adjust the sound effect of the telescopic camera according to the power of the device. In this way, the electronic device 100 can not only reduce the power consumption of the telescopic camera when the power is low, but also enrich the sound effect of the telescopic camera.

[0156] In some embodiments, during the process in which the electronic device 100 uses the photographing function, the electronic device 100 can also adjust the pop-up height of the telescopic camera according to the operation of the user adjusting the zoom ratio, the focus, and the like of the photographing parameter, at this time, the electronic device 100 can also control the telescopic speed of the telescopic camera when the telescopic camera adjusts the pop-up height in combination with the power of the electronic device 100, if the power of the electronic device 100 is low, the telescopic speed is slow, if the power of the electronic device 100 is high, the telescopic speed is fast, in this way, the electronic device 100 can not only adjust the telescopic speed of the telescopic camera when starting and stopping the telescopic camera, but also can adjust the telescopic speed of the telescopic camera during the process of using the telescopic camera, so as to reduce the power consumption of the telescopic camera as much as possible when the power is low, and prolong the running time of the electronic device 100.

[0157] As can be seen from steps S201-S202, the electronic device 100 can dynamically adjust the telescopic speed of the telescopic camera based on the device power, so as to ensure that the electronic device 100 can pop up or retract the telescopic camera at a relatively slow speed when the device power is low, reduce the power consumption of the telescopic camera, and prolong the running time of the electronic device as much as possible when the power is low.

[0158] FIG. 6 is a flowchart of another method for starting a camera provided by an embodiment of the present application.

[0159] S301. The electronic device 100 receives a user operation of starting the telescopic camera.

[0160] Exemplarily, the user operation of starting the telescopic camera can be an operation of opening a camera application, or an operation of switching from another camera, such as a front camera, to the telescopic camera, and the present application does not limit the user operation.

[0161] S302. The electronic device 100 determines a first step number based on the first posture of the electronic device 100, wherein the smaller the included angle between the pop-up direction of the telescopic camera and the gravity direction, the smaller the first step number.

[0162] The first step number can be the rotation step number of the motor, wherein the motor is used to control the telescopic of the telescopic camera, and the different rotation step numbers of the motor result in different pop-up heights of the telescopic camera, i.e., different moving distances of the lens.

[0163] Due to the influence of gravity, the smaller the included angle between the pop-up direction of the telescopic camera and the gravity direction, the easier the telescopic camera is to pop up under the driving of the motor, and the larger the included angle between the pop-up direction of the telescopic camera and the gravity direction, the more difficult the telescopic camera is to pop up under the driving of the motor.

[0164] Therefore, if the angle between the pop-out direction of the telescopic camera and the direction of gravity is smaller, the rotation steps of the motor should be reduced, and if the angle between the pop-out direction of the telescopic camera and the direction of gravity is larger, the rotation steps of the motor should be increased, so as to minimize the difference in the final pop-out height of the telescopic camera in various postures and minimize the difference in the shooting effect of the electronic device 100 in various postures.

[0165] In the specific implementation, the electronic device 100 can identify the posture of the electronic device 100 through the gyroscope sensor and the acceleration sensor.

[0166] In the specific implementation, the electronic device 100 can be preconfigured with the corresponding rotation steps of the motor when the motor starts the telescopic camera in different postures of the electronic device 100. In this way, after the electronic device 100 identifies the posture of the electronic device 100, the first number of steps can be determined based on the preconfigured corresponding relationship between the various postures of the electronic device 100 and the rotation steps of the motor.

[0167] For example, the corresponding rotation steps of the motor in different postures of the electronic device 100 can be data obtained by the developer after calibrating the posture of the electronic device 100 and the pop-out height of the telescopic camera.

[0168] The posture of the electronic device 100 and the pop-out height of the telescopic camera can have the following relationship: Y=kX+b Formula 1

[0169] In the specific implementation, the electronic device 100 can be preconfigured with the corresponding rotation steps of the motor when the motor starts the telescopic camera in different postures of the electronic device 100. In this way, after the electronic device 100 identifies the posture of the electronic device 100, the first number of steps can be determined based on the preconfigured corresponding relationship between the various postures of the electronic device 100 and the rotation steps of the motor.

[0170] The process of calibrating the posture of the electronic device 100 and the pop-out height of the telescopic camera by the developer is the process of calculating k and b in the above formula 1. The developer can determine the rotation steps of the motor in different posture angles of the electronic device 100 while ensuring that the pop-out height of the telescopic camera remains unchanged.

[0171] S303. The electronic device 100 starts the telescopic camera; in the process of starting the telescopic camera, the motor drives the lens of the telescopic camera to extend by a first distance, wherein the rotation steps of the motor in the process of driving the lens of the telescopic camera to extend are the first number of steps.

[0172] In some embodiments, the electronic device 100 can dynamically adjust the rotation steps of the motor based on the posture of the electronic device 100, so that the telescopic camera can extend the lens by the same distance when the electronic device 100 is in different postures.

[0173] Exemplarily, the electronic device 100 can also receive a user operation of starting the telescopic camera, then determine a second step number based on the second posture of the electronic device 100, and then start the telescopic camera. In the process of starting the telescopic camera, the lens of the telescopic camera is extended by a first distance by the motor, wherein the rotation step number of the motor in the process of driving the lens of the telescopic camera to extend is the second step number.

[0174] In this way, it can be ensured that the electronic device 100 can extend the lens of the telescopic camera by a consistent distance when in different postures, and ensure that the shooting effect of the electronic device 100 remains consistent in various postures.

[0175] In some embodiments, the electronic device 100 can also determine the rotation step number of the motor based on the posture of the electronic device 100 when closing the telescopic camera.

[0176] Specifically, the electronic device 100 can also detect a user operation of closing the telescopic camera, then determine a third step number based on a third posture of the electronic device 100, wherein the smaller the included angle between the retracting direction of the telescopic camera and the gravity direction, the smaller the third step number, and then the electronic device 100 can close the telescopic camera. In the process of closing the telescopic camera, the electronic device 100 can retract the lens of the telescopic camera by a first distance by the motor, wherein the rotation step number of the motor in the process of driving the lens of the telescopic camera to retract is the third step number.

[0177] As can be seen, when the electronic device 100 closes the camera, the electronic device 100 can continue to determine the rotation step number of the motor according to the current posture of the electronic device 100, and ensure that the telescopic camera can restore the lens to the state before extension when retracting the lens.

[0178] It should be noted that even if the third posture is the same as the first posture, the third step number is not equal to the first step number, because when the posture of the electronic device 100 does not change, the direction of the lens extension and retraction of the telescopic camera is just opposite, so the rotation step number of the motor is different when the lens of the telescopic camera is extended and retracted. Conversely, even if the third posture is the same as the first posture, if the direction of the lens extension and retraction of the telescopic camera is consistent, the third step number and the first step number are the same. In this way, it can be avoided that the lens of the telescopic camera is retracted, but the motor continues to rotate, or the lens of the telescopic camera is not restored after the motor stops rotating.

[0179] As can be seen from steps S301-S303, the electronic device 100 can dynamically adjust the rotation step number of the motor according to the posture of the electronic device 100, and as far as possible ensure that the telescopic camera maintains a consistent pop-up height in various device postures.

[0180] Furthermore, in the embodiments of this application, the methods for starting the camera shown in Figures 3, 5 and 6 above can be applied simultaneously during the camera startup process.

[0181] For example, when the electronic device 100 starts the camera, in addition to dynamically adjusting the sound effect when the telescopic camera pops out, it can also adjust the extension speed of the telescopic camera lens based on the battery level of the electronic device 100, and adjust the number of rotation steps of the motor based on the posture of the electronic device 100, thereby adjusting the extension distance of the telescopic camera lens according to the number of rotation steps.

[0182] Furthermore, when the camera is turned off, the electronic device 100 can not only dynamically adjust the sound effect when the telescopic camera retracts, but also adjust the retraction speed of the telescopic camera lens based on the battery level of the electronic device 100, and adjust the number of rotation steps of the motor based on the posture of the electronic device 100, thereby adjusting the retraction distance of the telescopic camera lens according to the number of rotation steps.

[0183] For example, since adjusting the sound effect also adjusts the zoom speed of the telescopic camera, the electronic device 100 can combine dynamically adjusting the sound effect and adjusting the zoom speed based on battery level in the following two ways:

[0184] 1) Electronic device 100 can select the first sound effect from multiple sound effects based on battery level.

[0185] Since different sound effects emitted by the motor correspond to different power consumption, the electronic device 100 can select the sound effect based on the power level. Specifically, if the power level of the electronic device 100 is low, the electronic device 100 can select the sound effect with lower power consumption, and if the power level of the electronic device 100 is high, the electronic device 100 can select the sound effect with higher power consumption.

[0186] Correspondingly, the electronic device 100 can adjust the extension speed of the lens based on the battery level. If the extension speed of the telescopic camera lens is the first speed, the lower the battery level of the electronic device 100, the slower the first speed, and the higher the battery level of the electronic device 100, the faster the first speed.

[0187] 2) Electronic device 100 can dynamically adjust sound effects and adjust telescopic speed based on battery level in different scenarios.

[0188] Considering that adjusting the telescopic speed based on battery level is to avoid excessive power consumption of the camera when the battery level of electronic device 100 is low, electronic device 100 can dynamically adjust the sound effect when the battery level of electronic device 100 is greater than a threshold or when electronic device 100 is not in power saving mode, and adjust the telescopic speed based on battery level when the battery level of electronic device 100 is less than a threshold or when electronic device 100 is in power saving mode.

[0189] That is, the electronic device 100 can perform the above steps S101-S102 in the case that the power of the electronic device 100 is greater than the preset, or the electronic device 100 does not enter the power saving mode, and perform the above steps S201-S202 in the case that the power of the electronic device 100 is less than the threshold, or the electronic device 100 enters the power saving mode.

[0190] In addition, the electronic device 100 can determine the voltage and PPS of the motor based on the power, and further control the lens of the telescopic camera to extend at a specified speed. The electronic device 100 can also control the speed of retracting the lens of the telescopic camera based on the power when the camera is closed. For details, please refer to the details of steps S201-S202, which will not be repeated here.

[0191] Exemplarily, the electronic device 100 can also determine the rotation steps of the motor based on the posture of the electronic device 100 before starting the camera, and control the extension distance of the lens of the camera through the rotation steps. Therefore, the electronic device 100 can perform step S302 before performing step S102, i.e., starting the telescopic camera. In this way, when the electronic device 100 starts the camera, it can not only control the motor to emit a specified sound effect by setting the driving voltage and / or PPS of the motor, but also control the motor to rotate a specified number of steps by setting the rotation steps of the motor, and further control the extension distance of the lens of the telescopic camera.

[0192] In addition, the electronic device 100 can also control the lens of the telescopic camera to extend the same distance when the electronic device 100 is in different postures, and control the retracting distance of the lens based on the posture of the electronic device 100 when the electronic device 100 closes the telescopic camera. For details, please refer to the details of steps S301-S303, which will not be repeated here.

[0193] FIG. 7 is a schematic diagram of the hardware structure of the electronic device 100 provided by the embodiments of the present application.

[0194] The electronic device 100 can 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, and a cellular phone, a personal digital assistant (PDA), an augmented reality (AR) device, a virtual reality (VR) device, an artificial intelligence (AI) device, a wearable device, a vehicle-mounted device, a smart home device, and / or a smart city device, and the specific type of the electronic device is not specially limited in the embodiments of the present application.

[0195] The electronic device 100 can 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 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headset interface 170D, a sensor module 180, a key 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 can include a pressure sensor 180A, a gyroscope sensor 180B, a barometric 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, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0196] It can be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 can include more or fewer components than illustrated, or combine certain components, or split certain components, or different component arrangements. The illustrated components can be implemented in hardware, software, or a combination of software and hardware.

[0197] The processor 110 can include one or more processing units, for example: the processor 110 can include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units can be independent devices, or can be integrated in one or more processors.

[0198] The controller can generate operation control signals according to instruction operation codes and timing signals, and complete the control of fetching and executing instructions.

[0199] The processor 110 can also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory can save instructions or data that the processor 110 has just used or repeatedly uses. If the processor 110 needs to use the instructions or data again, it can directly call from the memory. Avoiding repeated access reduces the waiting time of the processor 110, thus improving the efficiency of the system.

[0200] In some embodiments, the processor 110 can be configured to implement the selection of sound effects and the starting of the telescopic camera, wherein, in the process of starting the telescopic camera, the processor 110 is further configured to drive the motor to drive the lens of the telescopic camera to extend, or the processor 110 can be configured to control the lens of the telescopic camera to extend at a specified speed according to the power of the electronic device 100 when the telescopic camera is started, or the processor 110 can be configured to determine the rotation steps of the motor according to the posture of the electronic device 100, and drive the motor to rotate a specified number of steps when the telescopic camera is started, so as to drive the lens of the telescopic camera to extend by a specified distance through the motor.

[0201] The power management module 141 is configured to connect the battery 142 and the charging management module 140 to the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to power the processor 110, the internal memory 121, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 can also be configured to monitor parameters such as the battery capacity, the number of battery cycles, the battery health status (leakage, impedance), and the like. In some embodiments, the power management module 141 can also be disposed in the processor 110. In some other embodiments, the power management module 141 and the charging management module 140 can be disposed in the same device.

[0202] In some embodiments, the power management module 141 can be configured to obtain the power level of the electronic device 100.

[0203] The wireless communication function of the electronic device 100 can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor, and the like.

[0204] The antenna 1 and the antenna 2 are configured to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 100 can be configured to cover a single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example, the antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in combination with a tuning switch.

[0205] The mobile communication module 150 can provide a solution for wireless communication including 2G / 3G / 4G / 5G and the like applied to the electronic device 100. In some embodiments, at least part of the functional modules of the mobile communication module 150 can be disposed in the processor 110. In some embodiments, at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 can be disposed in the same device.

[0206] The wireless communication module 160 can provide a solution for wireless communication including wireless local area networks (WLAN) (e.g., wireless fidelity (Wi-Fi) network), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR) technology, etc. applied to the electronic device 100. The wireless communication module 160 can be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, demodulates and filters the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 can also receive signals to be transmitted from the processor 110, frequency-modulate them, amplify them, and radiate them as electromagnetic waves via the antenna 2.

[0207] In some embodiments, the antenna 1 and the mobile communication module 150 of the electronic device 100 are coupled, and the antenna 2 and the wireless communication module 160 are coupled, so that the electronic device 100 can communicate with a network and other devices through wireless communication technology.

[0208] The electronic device 100 implements a display function through a GPU, a display screen 194, and an application processor, etc. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 can include one or more GPUs that execute program instructions to generate or change display information.

[0209] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. In some embodiments, the electronic device can include 1 or N display screens 194, N being a positive integer greater than 1.

[0210] In some embodiments, the display screen 194 can be used to display the picture captured by the telescopic camera implementation.

[0211] The electronic device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor, etc.

[0212] The camera 193 is used to capture still images or videos. In some embodiments, the electronic device 100 can include 1 or N cameras 193, N being a positive integer greater than 1.

[0213] In some embodiments, the camera 193 can include a retractable camera, which can extend the lens when starting and retract the lens when closing. Illustratively, the lens of the retractable camera can be located on the back of the electronic device 100 when extended, and the motor in the retractable camera can drive the lens of the retractable camera to extend or retract in the vertical direction of the back of the electronic device 100, or the lens of the retractable camera can be located above the electronic device 100 when extended, and the motor in the retractable camera can drive the lens of the retractable camera to extend or retract in the horizontal direction of the back of the electronic device 100. For more details about the retractable camera, please refer to the above description of FIG. 1 and FIG. 2.

[0214] The internal memory 121 can include one or more random access memories (RAMs) and one or more non-volatile memories (NVMs).

[0215] The random access memory can be directly read and written by the processor 110, and can be used to store executable programs (such as machine instructions) of an operating system or other programs running, and can also be used to store data of users and application programs, etc.

[0216] The non-volatile memory can also store executable programs and store data of users and application programs, etc., and can be loaded into the random access memory in advance for direct reading and writing by the processor 110.

[0217] In some embodiments, the internal memory 121 can be used to store a plurality of sound effects, and the driving voltage and / or PPS corresponding to different sound effects, respectively. The internal memory 121 can also be used to store the driving voltage and / or PPS corresponding to different power, and the internal memory 121 can also be used to store the number of rotations corresponding to different postures of the electronic device 100, respectively.

[0218] The electronic device 100 can realize audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor, etc. For example, music playing, recording, etc.

[0219] The gyroscope sensor 180B can be used to determine the motion posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (i.e., x, y, and z axes) can be determined by the gyroscope sensor 180B. The gyroscope sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyroscope sensor 180B detects the angle of shaking of the electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and makes the lens offset the shaking of the electronic device 100 by reverse movement to achieve anti-shake. The gyroscope sensor 180B can also be used for navigation and motion sensing game scenarios.

[0220] The acceleration sensor 180E can detect the magnitude of 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 the electronic device, and applied to landscape / portrait screen switching, pedometer, etc.

[0221] In some embodiments, the electronic device 100 can obtain the posture of the electronic device 100 through the gyroscope sensor 180B and the acceleration sensor 180E.

[0222] The touch sensor 180K, also referred to as a "touch device". The touch sensor 180K can be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also referred to as a "touch screen". The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the touch event type. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K can also be disposed on the surface of the electronic device 100, which is different from the position of the display screen 194.

[0223] The motor 191 can generate a vibration prompt. The motor 191 can be used for incoming call vibration prompt, and also can be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, playing audio, etc.) can correspond to different vibration feedback effects. Touch operations acting on different regions of the display screen 194 can also correspond to different vibration feedback effects. Different application scenarios (such as time reminders, receiving messages, alarms, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also be customized.

[0224] In some embodiments, the motor 191 can be used to drive the lens of the telescopic camera to extend or retract when the telescopic camera is started or stopped.

[0225] The electronic device can be a portable terminal device such as a mobile phone, a tablet computer, a wearable device, and the like, which mounts Harmony, iOS, Android, Microsoft, or other operating systems, and can also be a non-portable terminal device such as a laptop computer having a touch-sensitive surface or touch panel, a desktop computer having a touch-sensitive surface or touch panel, and the like. The software system of the electronic device 100 can adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. Embodiments of the present application take the Android system with a layered architecture as an example to exemplarily illustrate the software structure of the electronic device 100.

[0226] FIG. 8 is a software structure block diagram of the electronic device 100 according to an embodiment of the present application.

[0227] The layered architecture divides the software into several layers, each of which has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom, an application layer, an application framework layer, an Android runtime and system library, and a kernel layer.

[0228] The application layer can include a series of application packages.

[0229] As shown in FIG. 8, the application packages can include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, and the like.

[0230] The application framework layer provides application programming interfaces (APIs) and programming frameworks for the applications of the application layer. The application framework layer includes some pre-defined functions.

[0231] As shown in FIG. 8, the application framework layer can include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, a power determination module, a sound effect selection module, a pop-up height adjustment module, and the like.

[0232] The power determination module can be used to obtain the power of the device, and set the extension speed of the telescopic camera based on the power of the device, so that the telescopic camera can extend or retract at the set extension speed when starting or stopping.

[0233] The sound effect selection module can be used to select a specified sound effect from a plurality of sound effects, wherein different sound effects correspond to different driving voltages and / or PPS of the motor, and in the process of starting the telescopic camera, the motor can be driven by the driving voltage and / or PPS corresponding to the specified sound effect to drive the extension of the lens of the telescopic camera, and at the same time, the motor can emit the specified sound effect during operation.

[0234] The pop-up height condition module can be used to obtain the posture of the electronic device 100, and determine the rotation step number of the motor according to the posture, so that the motor can rotate a specified number of steps to achieve the pop-up of the telescopic camera to a specified height when the telescopic camera is opened, and ensure that the telescopic camera can maintain the same pop-up height when the electronic device 100 is in different postures.

[0235] The window manager is used to manage window programs. The window manager can obtain the size of the display screen, determine whether there is a status bar, lock the screen, intercept the screen, and the like.

[0236] The content provider is used to store and obtain data, and make the data accessible to application programs. The data can include videos, images, audios, dialed and received calls, browsing history and bookmarks, phone books, and the like.

[0237] The view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and the like. The view system can be used to build application programs. A display interface can be composed of one or more views. For example, a display interface including a short message notification icon can include a view for displaying text and a view for displaying pictures.

[0238] The phone manager is used to provide the communication function of the electronic device 100. For example, the management of the call state (including call connection, call hang-up, and the like).

[0239] The resource manager provides various resources for application programs, such as localized strings, icons, pictures, layout files, video files, and the like.

[0240] The notification manager enables application programs to display notification information in the status bar, which can be used to convey messages of the notification type, which can automatically disappear after a short stay without user interaction. For example, the notification manager is used to notify the completion of downloading, message reminders, and the like. The notification manager can also be a notification in the form of a chart or a scroll bar text appearing in the top status bar of the system, such as a notification of an application program running in the background, and can also be a notification in the form of a dialogue window appearing on the screen. For example, prompting text information in the status bar, issuing a prompt sound, vibrating the electronic device, and flickering the indicator light.

[0241] The Android runtime includes a core library and a virtual machine. The Android runtime is responsible for the scheduling and management of the Android system.

[0242] The core library includes two parts: one part is the function function called by the java language, and the other part is the core library of Android.

[0243] The application program layer and the application framework layer run in a virtual machine. The virtual machine executes the java files of the application program layer and the application framework layer into binary files. The virtual machine is used to perform the functions of management of object life cycle, stack management, thread management, management of security and exception, and garbage collection, etc.

[0244] The system library can include a plurality of functional modules. For example, a surface manager, media libraries, a three-dimensional graphics processing library (e.g., OpenGL ES), a 2D graphics engine (e.g., SGL), etc.

[0245] The surface manager is used to manage the display subsystem and provides fusion of 2D and 3D layers for a plurality of applications.

[0246] The media libraries support playback and recording of a plurality of commonly used audio, video formats, and static image files, etc. The media libraries can support a plurality of audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

[0247] The three-dimensional graphics processing library is used to implement three-dimensional graphics drawing, image rendering, composition, and layer processing, etc.

[0248] The 2D graphics engine is a drawing engine for 2D drawing.

[0249] The kernel layer is a layer between hardware and software. The kernel layer at least includes display drivers, camera drivers, audio drivers, and sensor drivers.

[0250] The working flow of the software and hardware of the electronic device 100 is described below in connection with a capture photographing scenario.

[0251] When the touch sensor 180K receives a touch operation, a corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes the touch operation into a raw input event (including touch coordinates, a timestamp of the touch operation, and other information). The raw input event is stored in the kernel layer. The application framework layer obtains the raw input event from the kernel layer and identifies the control corresponding to the input event. Taking the touch operation as a touch single-click operation and the control corresponding to the touch single-click operation as the control of the camera application icon as an example, the camera application calls the interface of the application framework layer, starts the camera application, and then starts the camera driver through the kernel layer, and captures a still image or a video through the camera 193.

[0252] It should be understood that each step in the above method embodiments can be completed by integrated logic circuits of hardware in the processor or instructions in the form of software. The method steps disclosed in combination with the embodiments of the present application can be directly embodied as execution completed by a hardware processor, or executed by a combination of hardware and software modules in the processor.

[0253] The present application also provides an electronic device, which can include a telescopic camera, a memory, a processor and a computer program stored in the memory. The telescopic camera extends the lens when starting. The processor executes the computer program to implement the method performed by the electronic device in any one of the above embodiments.

[0254] The present application also provides a chip system, which includes a processing circuit and an interface circuit. The interface circuit is used to receive computer instructions and transmit them to the processing circuit. The processing circuit is used to run the computer instructions to implement the method performed by the electronic device in any one of the above embodiments.

[0255] The present application also provides a chip system, which includes at least one processor for implementing the method performed by the electronic device in any one of the above embodiments. In a possible design, the chip system further includes a memory for storing program instructions and data. The memory is located in the processor or outside the processor.

[0256] The chip system can be composed of a chip, or can include a chip and other discrete devices.

[0257] Optionally, the processor in the chip system can be one or more. The processor can be implemented by hardware or software. When implemented by hardware, the processor can be a logic circuit, an integrated circuit, etc. When implemented by software, the processor can be a general-purpose processor, which is implemented by reading software codes stored in the memory.

[0258] Optionally, the memory in the chip system can also be one or more. The memory can be integrated with the processor, or can be arranged separately from the processor, which is not limited in the embodiments of the present application. For example, the memory can be a non-transient processor, such as a read-only memory (ROM), which can be integrated on the same chip as the processor, or can be arranged on different chips respectively. The embodiments of the present application do not make specific limitations on the type of memory and the arrangement of the memory and the processor.

[0259] Exemplarily, the chip system can be a field programmable gate array (FPGA), can be an application specific integrated circuit (ASIC), can also be a system on chip (SoC), can also be a central processor unit (CPU), can also be a network processor (NP), can also be a digital signal processor (DSP), can also be a micro controller unit (MCU), can also be a programmable logic device (PLD) or other integrated chip.

[0260] The application further provides a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to implement the method executed by the electronic device in any one of the above embodiments.

[0261] The application further provides a computer program product, which comprises a computer program, and the computer program is executed by a processor to implement the method executed by the electronic device in any one of the above embodiments.

[0262] The embodiments of the application can be combined in any manner to achieve different technical effects.

[0263] In the above embodiments, all or part of the methods can be implemented by software, hardware, firmware, or any combination thereof. When implemented by software, all or part of the methods can be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the present application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium or transferred from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions can be transferred from one website, computer, server or data center 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.) mode. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that includes one or more available media sets. The available media can be magnetic media (for example, floppy disk, hard disk, magnetic tape), optical media (for example, DVD), or semiconductor media (for example, solid state disk (SSD)) and the like.

[0264] Those of ordinary skill in the art can understand that all or part of the processes in the above embodiments can be implemented by a computer program to instruct the relevant hardware, which can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the above method embodiments. The aforementioned storage medium includes ROM or random access memory (RAM), magnetic disk or optical disk, and various media that can store program codes.

[0265] In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in the text only describes the association relationship of the associated objects, which means that there can be three relationships, for example, A and / or B, which means that there are three cases of A alone, A and B together, and B alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.

[0266] The terms "first", "second" are only used for descriptive purposes, and cannot be understood as implying or suggesting relative importance or implicitly indicating the number of indicated technical features. Therefore, the features defined with "first", "second" can explicitly or implicitly include one or more features. In the description of the embodiments of the present application, unless otherwise specified, the meaning of "multiple" is two or more than two.

[0267] In conclusion, the above-mentioned is only the embodiment of the technical scheme of the present application, and is not used to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made according to the disclosure of the present application shall be included in the protection scope of the present application.

Claims

1. A method of starting a camera, the method comprising: The method is applied to an electronic device comprising a telescopic camera, and the method comprises: selecting a first sound effect from a plurality of sound effects; starting the telescopic camera; driving the lens of the telescopic camera out by a motor in the telescopic camera during the process of starting the telescopic camera, wherein the motor emits the first sound effect during the process of driving the lens of the telescopic camera out.

2. The method of claim 1, wherein, After selecting the first sound effect from the plurality of sound effects, the method further comprises: determining a first voltage and / or a first pulse per second (PPS) based on the first sound effect; driving the lens of the telescopic camera out by the motor, specifically comprising: inputting the first voltage to the motor, and / or controlling the PPS of the motor to be the first PPS, so as to drive the lens of the telescopic camera out by the motor, wherein the sound emitted by the motor under the first voltage and / or the first PPS is the first sound effect.

3. The method of claim 2, wherein, The first voltage comprises a plurality of voltage values at different time periods of the lens of the telescopic camera being driven out, and / or the first PPS comprises a plurality of PPSs at different time periods of the lens of the telescopic camera being driven out.

4. The method according to any one of claims 1 to 3, characterized in that, The method further comprises: turning off the telescopic camera; driving the lens of the telescopic camera back in by the motor during the process of turning off the telescopic camera, wherein the motor emits the first sound effect during the process of driving the lens of the telescopic camera back in.

5. The method according to any one of claims 1 to 3, characterized in that, The method further comprises: turning off the telescopic camera; driving the lens of the telescopic camera back in by the motor during the process of turning off the telescopic camera, wherein the motor emits a second sound effect during the process of driving the lens of the telescopic camera back in. The first sound effect comprises a first audio and a second audio in sequence, and the second sound effect comprises the second audio and the first audio in sequence.

6. The method according to any one of claims 1 to 5, characterized in that, The electronic device is pre-stored with the voltage and / or the PPS of the motor corresponding to the plurality of sound effects respectively.

7. The method according to any one of claims 1 to 6, characterized in that, Selecting the first sound effect from the plurality of sound effects specifically comprises: determining the first sound effect from the plurality of sound effects based on a user operation, or default selecting the first sound effect from the plurality of sound effects, or selecting the first sound effect from the plurality of sound effects based on the power of the electronic device, and the lower the power of the electronic device, the lower the frequency of the first sound effect.

8. The method of claim 7, wherein, Selecting the first sound effect from the plurality of sound effects based on the power of the electronic device, the speed of the lens of the telescopic camera being driven out is a first speed, wherein the lower the power of the electronic device, the slower the first speed.

9. The method according to any one of claims 1 to 7, characterized in that, Before selecting the first sound effect from the plurality of sound effects, the method further comprises: detecting that the power of the electronic device is greater than a threshold value, or the electronic device does not enter a power saving mode.

10. The method of claim 9, wherein, The method further comprises: detecting that the power of the electronic device is less than a threshold value, or the electronic device enters a power saving mode; receiving a user operation of starting the telescopic camera; starting the telescopic camera; controlling the lens of the telescopic camera to be driven out at a first speed during the process of starting the telescopic camera, wherein the lower the power of the electronic device, the slower the first speed.

11. The method of claim 10, wherein, after receiving the user operation of starting the retractable camera, determining a second voltage and / or a second PPS based on the first power of the electronic device; controlling the lens of the retractable camera to extend at the first speed, specifically comprising: inputting the second voltage to the motor, and / or controlling the PPS of the motor to be the second PPS, so as to drive the lens of the retractable camera to extend at the first speed by the motor.

12. The method according to any one of claims 1 to 11, characterized in that, The method further comprises: receiving a user operation of closing the retractable camera; closing the retractable camera; controlling the lens of the retractable camera to retract at a second speed during the process of closing the retractable camera, wherein the lower the power of the electronic device, the slower the second speed.

13. The method according to any one of claims 1 to 12, characterized in that, Before starting the retractable camera, the method further comprises: determining a first step number based on the posture of the electronic device, wherein the smaller the included angle between the pop-up direction of the retractable camera and the direction of gravity, the smaller the first step number; wherein, during the process of starting the retractable camera, the distance by which the lens of the retractable camera is driven to extend by the motor is a first distance, and the number of rotation steps of the motor during the process of driving the lens of the retractable camera to extend is the first step number.

14. The method of claim 13, wherein, The method further comprises: receiving a user operation of starting the retractable camera; determining a second step number based on the posture of the electronic device, wherein the smaller the included angle between the pop-up direction of the retractable camera and the direction of gravity, the smaller the second step number; starting the retractable camera; during the process of starting the retractable camera, driving the lens of the retractable camera to extend by the motor by the first distance, wherein the number of rotation steps of the motor during the process of driving the lens of the retractable camera to extend is the second step number.

15. The method according to claim 13 or 14, characterized in that, The electronic device is preconfigured with different postures, and the motor corresponds to a number of rotation steps when starting the retractable camera.

16. The method according to any one of claims 1 to 15, characterized in that, The method further comprises: receiving a user operation of closing the retractable camera; determining a third step number based on the posture of the electronic device, wherein the smaller the included angle between the retracting direction of the retractable camera and the direction of gravity, the smaller the third step number; closing the retractable camera; during the process of closing the retractable camera, driving the lens of the retractable camera to retract by the motor by the first distance, wherein the number of rotation steps of the motor during the process of driving the lens of the retractable camera to retract is the third step number.

17. The method of any one of claims 1-16, wherein, the lens of the retractable camera extends behind the electronic device, and the motor is configured to drive the lens of the retractable camera to extend in a vertical direction of the back of the electronic device; or, the lens of the retractable camera extends above the electronic device, and the motor is configured to drive the lens of the retractable camera to extend in a horizontal direction of the back of the electronic device.

18. An electronic device, comprising: including: A telescopic camera, a memory, a processor, and a computer program stored on the memory, the telescopic camera extending a lens upon activation, the processor executing the computer program to implement the method of any of claims 1-17.

19. A computer-readable storage medium, characterized in that, A computer program product having stored thereon a computer program, the computer program, when executed by a processor, implementing the method of any of claims 1-17.

20. A computer program product, characterised in that, The computer program product comprises a computer program, the computer program, when executed by a processor, implementing the method of any of claims 1-17.

Citation Information

Patent Citations

  • Sound effect generating method, terminal and computer storage medium

    CN109147754A

  • Noise reduction method and device for telescopic lens of terminal, terminal and storage medium

    CN111510531A

  • Sound effect adjusting method and device and storage medium

    CN112099756A

  • Device having sound producing function

    JP2000020074A

  • Noise handling during audio and video recording

    US20130287217A1