Zoom control method and device

By adjusting the display parameters of the preview image during zooming, the problem of screen stuttering caused by sudden changes in camera frame rate was solved, resulting in a smoother zooming experience.

CN120812397APending Publication Date: 2025-10-17VIVO MOBILE COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510977920.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-16
Publication Date
2025-10-17

AI Technical Summary

Technical Problem

During zooming, sudden changes in the camera's frame rate cause stuttering in the preview footage.

Method used

By adjusting the image display parameters of the preview image according to the target shooting parameters during zoom input, including frame length, number of transition frames, and frame synchronization on/off status, the frame rate can be matched to the target shooting parameters, thus avoiding sudden drops in frame rate.

Benefits of technology

Improved display smoothness during zoom operation, preventing stuttering caused by sudden drops in the frame rate of the preview image.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120812397A_ABST
    Figure CN120812397A_ABST
Patent Text Reader

Abstract

The invention discloses a zoom control method and device, and belongs to the technical field of electronic equipment. The method comprises the following steps: under the condition that a shooting preview interface is displayed, receiving zoom input; wherein the shooting preview interface is used for displaying a preview image, and the preview image is acquired by an image sensor; determining a target shooting parameter in response to the zoom input; adjusting an image display parameter of the preview image according to the target shooting parameter, so that the display parameter of the preview image is matched with the target shooting parameter; wherein the image display parameters comprise at least one of the following items: a frame length, an excessive frame number and a frame synchronization opening state; and controlling the image sensor to execute zooming operation according to the target shooting parameter.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application belongs to the technical field of electronic devices, and particularly relates to a zoom control method and device thereof. BACKGROUND

[0002] In the related art, electronic devices such as mobile phones are often equipped with multiple cameras to provide multiple different focal lengths for users to choose from. During user shooting, when the user performs zooming, different cameras are switched according to the focal length switched by the user.

[0003] Due to the different light sensing characteristics of the sensors of the cameras in different focal lengths, the exposure time in the same brightness environment will be different. Different exposure times result in different shooting frame rates of the sensors. When the camera is switched, the sudden drop in frame rate will cause the shooting preview screen to freeze. SUMMARY

[0004] The purpose of the embodiments of the present application is to provide a zoom control method and device, which can solve the problem of freezing of the shooting preview screen caused by sudden change of frame rate due to zoom operation.

[0005] In a first aspect, the embodiments of the present application provide a zoom control method, which comprises:

[0006] receiving a zoom input while displaying a shooting preview interface; wherein the shooting preview interface is used to display a preview image, and the preview image is obtained by an image sensor;

[0007] determining a target shooting parameter in response to the zoom input;

[0008] adjusting image display parameters of the preview image according to the target shooting parameter, so that the display parameters of the preview image match the target shooting parameter; wherein the image display parameters include at least one of the following: frame length, number of over frames, frame synchronization on state;

[0009] controlling the image sensor to perform a zoom operation according to the target shooting parameter.

[0010] In a second aspect, the embodiments of the present application provide a zoom control device, which comprises:

[0011] a receiving module configured to receive a zoom input while displaying a shooting preview interface; wherein the shooting preview interface is used to display a preview image, and the preview image is obtained by an image sensor;

[0012] a determining module configured to determine a target shooting parameter in response to the zoom input;

[0013] The adjusting module is configured to adjust image display parameters of the preview image according to the target shooting parameter, so as to match the display parameters of the preview image with the target shooting parameter; wherein the image display parameters include at least one of the following: frame length, number of over frames, and frame synchronization on state.

[0014] The control module is configured to control the image sensor to perform a zoom operation according to the target shooting parameter.

[0015] In a third aspect, an electronic device is provided, which includes a processor and a memory. The memory stores programs or instructions executable on the processor. When the programs or instructions are executed by the processor, the steps of the method according to the first aspect are implemented.

[0016] In a fourth aspect, a readable storage medium is provided. The readable storage medium stores programs or instructions. When the programs or instructions are executed by a processor, the steps of the method according to the first aspect are implemented.

[0017] In a fifth aspect, a chip is provided. The chip includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is configured to execute programs or instructions, so as to implement the steps of the method according to the first aspect.

[0018] In a sixth aspect, a computer program product is provided. The computer program product is stored in a storage medium. The computer program product is executed by at least one processor to implement the method according to the first aspect.

[0019] In the embodiments of the present application, during the shooting process, when a zoom input of a user is received, the image display parameters of the currently displayed preview image are adjusted according to the target shooting parameter corresponding to the zoom input, including frame length, number of over frames, and frame synchronization on state, so that the display frame rate of the preview image is adjusted in advance before the frame rate is changed due to zoom, and the situation of sudden drop of frame number is avoided, thereby improving the display fluency of the shooting preview interface when the zoom operation is performed. BRIEF DESCRIPTION OF DRAWINGS

[0020] Figure 1 A flowchart of a zoom control method according to some embodiments of the present application is shown;

[0021] Figure 2 A flowchart of a zoom control method according to some embodiments of the present application is shown;

[0022] Figure 3 A flowchart of a zoom control method according to some embodiments of the present application is shown;

[0023] Figure 4 A flowchart of a zoom control method according to some embodiments of the present application is shown;

[0024] Figure 5 A structural block diagram of a zoom control device of some embodiments of the application is shown;

[0025] Figure 6 A structural block diagram of an electronic device according to embodiments of the application is shown;

[0026] Figure 7 A hardware structural schematic diagram of an electronic device for implementing embodiments of the application. DETAILED DESCRIPTION

[0027] The technical solutions in the embodiments of the application will be clearly described below with reference to the drawings in the embodiments of the application. Obviously, the described embodiments are some but not all of the embodiments of the application. Based on the embodiments in the application, all other embodiments obtained by a person of ordinary skill in the art belong to the scope of protection of the application.

[0028] The terms "first", "second", and the like in the specification and claims of the application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchanged under appropriate circumstances, so that the embodiments of the application can be implemented in an order other than that illustrated or described herein, and the objects distinguished by "first", "second", and the like are generally of a kind and are not limited in number, for example, the first object can be one or more. In addition, "and / or" in the specification and claims means at least one of the connected objects, and the character " / " generally represents an "or" relationship between the objects before and after it.

[0029] The zoom control method and device provided by the embodiments of the application will be described in detail below with reference to the drawings and specific embodiments and their application scenarios.

[0030] In some embodiments of the application, a zoom control method is provided, Figure 1 A flowchart of a zoom control method of some embodiments of the application is shown, as Figure 1 The zoom control method includes:

[0031] Step 102, receiving a zoom input in a case where a shooting preview interface is displayed; wherein the shooting preview interface is used to display a preview image, and the preview image is obtained by an image sensor.

[0032] In embodiments of the application, when a photo or video is taken by an electronic device such as a mobile phone, a tablet computer, or a digital camera, a shooting preview interface is displayed on the screen of the electronic device. The shooting preview interface can display the current shooting parameters, such as exposure parameters, shutter speed, etc. It can also include shooting controls, such as a virtual shutter, a virtual aperture ring, etc. The preview image is displayed in the shooting preview interface.

[0033] The preview image is a real-time preview effect of an image captured by the image sensor of the electronic device, and the preview image helps the user predict the shooting effect. The display frame rate of the preview image is associated with the shooting frame rate of the image sensor currently in the working state.

[0034] When the electronic device is provided with multiple image sensors, different image sensors can correspond to different shooting modes or different focal lengths. For example, a mobile phone can be provided with a main camera, a telephoto camera, and a macro camera, etc. These cameras can also have different shooting modes, such as upscaling mode, motion mode, panorama mode, etc.

[0035] When the image sensor is switched or the shooting mode is switched, the preview image will be switched to the image captured by the corresponding image sensor.

[0036] The zoom input is a user input, and the zoom input is used to change the shooting focal length or shooting focal length when the electronic device captures an image. Illustratively, the zoom input is a user input of pinching or expanding the fingers on the touch screen of the electronic device. Illustratively, the zoom input is a user touch input on the zoom control. Illustratively, the zoom input is a user input of operating the zoom knob.

[0037] Step 104, in response to the zoom input, determining a target shooting parameter.

[0038] In the embodiments of the present application, the target shooting parameter is the shooting parameter after the user performs the zoom input. Illustratively, before receiving the zoom input, the shooting parameter of the image sensor of the electronic device is the current shooting parameter. After receiving the zoom input, the shooting parameter of the image sensor of the electronic device is adjusted to the target shooting parameter.

[0039] Illustratively, the target shooting parameter includes but is not limited to zoom ratio, shooting focal length, shooting resolution, etc.

[0040] Step 106, adjusting the image display parameter of the preview image according to the target shooting parameter, so that the display parameter of the preview image matches the target shooting parameter; wherein the image display parameter includes at least one of the following: frame length, number of excess frames, frame synchronization on state.

[0041] In the embodiments of the present application, after receiving the zoom input, the electronic device adjusts the shooting parameter to the target shooting parameter according to the zoom input. When the shooting parameter changes, the shooting focal length of the image sensor of the electronic device will change accordingly. When the shooting focal length changes, the light sensing characteristics of the image sensor change, and therefore the exposure time also changes. When the exposure time changes, the shooting frame rate of the image sensor will change accordingly, and this frame rate change can cause the frame rate of the preview image to drop sharply, causing lag.

[0042] To solve the problem, the application adjusts the image display parameters of the preview image, including but not limited to frame length, over frame number and frame synchronization opening state, according to the target shooting parameter and the current shooting parameter after receiving the zoom input, so as to change the display frame rate of the preview image in advance, making the change of the display frame rate of the preview image more coherent and smooth, and preventing the frame rate from suddenly dropping.

[0043] Step 108, controlling the image sensor to perform zoom operation according to the target shooting parameter.

[0044] In the embodiment of the application, before switching the shooting parameter of the image sensor, the display frame rate of the preview image is adjusted in advance according to the target shooting parameter to be switched and the current shooting parameter, so as to adapt to the possible sudden drop of the frame number.

[0045] For example, when the user performs zoom input, the user's zoom input is often a continuous action, and the shooting focal length is gradually changed at this time. When zooming starts, the changed focal length will not immediately leave the focal length range of the current camera, and at this time, the zoom operation belongs to digital zoom, which is realized by cutting the image collected by the image sensor through the processor. The application adjusts the image display parameters of the preview image in advance according to the target shooting parameter during the use of digital zoom, avoids the change of the exposure time of the camera caused by switching the camera, causes the change of the shooting frame rate, and causes the frame rate to change, which causes the frame rate to change. The frame rate is changed, which causes the frame rate to change.

[0046] When the user's zoom input is received during the shooting process, the image display parameters of the currently displayed preview image are adjusted according to the target shooting parameter corresponding to the zoom input, including frame length, over frame number and frame synchronization opening state, so that the display frame rate of the preview image is adjusted in advance before the zoom causes the frame rate to change, avoiding the sudden drop of the frame number, thereby improving the display fluency of the shooting preview interface during zooming.

[0047] In some embodiments of the application, the image display parameters of the preview image are adjusted according to the target shooting parameter, including:

[0048] In the case that the target image sensor corresponding to the target shooting parameter is the same as the current image sensor, and the target shooting frame rate corresponding to the target shooting parameter is the same as the current shooting frame rate, the target zoom ratio corresponding to the target shooting parameter is determined;

[0049] In the case that the target zoom ratio is higher than the current zoom ratio, the target exposure time is determined according to the preview image currently displayed on the shooting preview interface;

[0050] In the case that the target zoom ratio is lower than the current zoom ratio, the target exposure time is determined according to the original image data of the current image sensor;

[0051] determine a target frame rate according to the current exposure duration and the target exposure duration;

[0052] adjust the frame rate of the preview image according to the target frame rate.

[0053] In the embodiments of the present application, there are various cases when the image sensor of the electronic device zooms. One of the cases is that the zoom range does not exceed the focal length of the current image sensor, so the zoom operation is only digital zoom. In the digital zoom scene, only one image sensor is involved, that is, there is no switching of the image sensor. In the digital zoom scene, the shooting mode of the image sensor will not be switched. In the digital zoom scene, the preview image will be enlarged or reduced with the zoom input of the user.

[0054] Exemplarily, when the zoom input of the user is received, it is determined whether the target focal length in the target shooting parameter corresponding to the zoom input matches the current focal length of the image sensor currently in the active state. If it matches, it means that the zoom input will not switch the image sensor. In this case, it can be determined that the target sensor corresponding to the target shooting parameter is the same as the current image sensor.

[0055] At the same time, according to the target shooting parameter, it is determined whether the shooting mode of the current image sensor will be switched. This process mainly determines whether the shooting frame rate of the image sensor will change. Exemplarily, when the shooting mode of the image sensor changes, such as switching from a mode of recording 30 frames of video to a mode of recording 60 frames of video, the shooting frame rate of the image sensor will also change, and this change will also affect the smoothness of the preview image.

[0056] When the zoom input is received, it is detected whether the zoom input is switching from a low magnification zoom factor to a high magnification zoom factor, or switching from a high magnification zoom factor to a low magnification zoom factor. Among them, when switching from a low magnification zoom factor to a high magnification zoom factor, the field of view angle of the preview image becomes smaller. In this process, the content of the preview image will not increase. Therefore, by the preview image currently displayed in the current shooting preview interface, the focusing object can be detected, and the prediction of the target exposure duration can be realized. By reusing the currently displayed preview image to predict the target exposure duration, the memory and power consumption loss can be reduced.

[0057] When zooming from a high zoom ratio to a low zoom ratio, the field of view of the preview image changes from small to large. At this time, the content in the preview image gradually increases, so the focus object cannot be determined by the currently displayed preview image. At this time, the original image data of one path is temporarily stored, and the target exposure time is determined by the original image data. The original image data is the complete and uncropped image data collected by the image sensor. For example, the original image data is Raw (Raw Archival Ware, Raw image data). For example, the original image data is the Raw data corresponding to the luminance-chrominance separation model (Y (Luminance) + U (Chrominance Blue) + V (Chrominance Red), YUV).

[0058] For example, Figure 2 The flowchart of the zoom control method of some embodiments of the application is shown as Figure 2 As shown, it includes:

[0059] Step 202, determine whether to zoom from a low zoom ratio to a high zoom ratio; if yes, go to step 204A, otherwise go to step 204B;

[0060] Step 204A, use the current preview image as the reference image;

[0061] Step 204B, use the original image data as the reference image.

[0062] Wherein, it is detected whether it is zooming from a low zoom ratio to a high zoom ratio or from a high zoom ratio to a low zoom ratio. When zooming from a low zoom ratio to a high zoom ratio, the field of view changes from large to small, and the future picture can be obtained in advance through the current preview information. When zooming from a high zoom ratio to a low zoom ratio, the field of view changes from small to large, and the future picture cannot be obtained through the current preview picture.

[0063] It occurs when zooming from a low zoom ratio to a high zoom ratio. In order to reduce memory and power consumption, the current preview picture is reused as the reference image under the condition of the field of view. It occurs when zooming from a high zoom ratio to a low zoom ratio. At this time, the field of view is constantly increasing, and the preview picture cannot be directly used as the reference image. At this time, the original Raw / YUV data of the image sensor needs to be temporarily stored. This temporary data does not need to be output from the image signal processor (Image Signal Processor, ISP), and can be obtained by copying the original YUV of the preview image.

[0064] Step 206, detect and predict the shooting object;

[0065] Wherein, according to the specific shooting scene, the shooting object is predicted according to the shooting scene. For example, in a portrait shooting scene, the face in the picture collected by the image sensor is recognized, and the face is predicted as the shooting object.

[0066] Step 208, predict the exposure time change.

[0067] Among them, the pictures to be zoomed in are detected and predicted, and the changes of objects in these pictures may cause changes in exposure time, so the focusing object can be predicted in advance to advance the frame rate, and smooth switching transition is realized.

[0068] Step 210, adjust the frame rate in advance before performing the zoom operation.

[0069] Among them, the exposure time is predicted according to the detection result of step 208, and the frame rate change is adjusted in advance to avoid sudden drop of frame rate.

[0070] By selecting the preview image or the original image data as the reference image of the predicted exposure time according to the change mode of the zoom ratio, the memory and power consumption can be reduced while ensuring the accuracy of the exposure time prediction.

[0071] When the target shooting frame rate is the same as the current shooting frame rate, the display frame rate of the preview image may only be affected by the frame rate change caused by the exposure time change. Therefore, at this time, the target exposure time corresponding to the target shooting parameter and the current exposure time can be predicted to determine the target frame rate. The target frame rate is the shooting frame rate of the image sensor after completing the zoom operation.

[0072] Exemplarily, the target frame rate can be determined by the following formula (1):

[0073]

[0074] Among them, Δe is the minimum exposure time that needs to be adjusted between two adjacent frames, that is, the frame length of two adjacent frames. framenum is the set number of transition frames, framenum∈(frame min ,frame max ), wherein frame min and frame max are the maximum and minimum transition frame numbers respectively, and Δ(exp dst ,exp cur ) is the difference between the target exposure corresponding to the target shooting parameter and the current exposure. The maximum exposure time that needs to be adjusted between the current two adjacent frames and the minimum exposure time that needs to be adjusted can be calculated respectively, so as to obtain the target frame rate.

[0075] After obtaining the target frame rate, the frame rate of the preview image is adjusted according to the target frame rate, so that the shooting frame rate after the exposure time change can be predicted in advance, and the display frame rate of the preview image can be adjusted and transitioned in advance to avoid sudden drop of the display frame rate of the preview image, and improve the smoothness during the zoom operation.

[0076] In some embodiments of the present application, the image display parameters of the preview image are adjusted according to the target shooting parameters, comprising:

[0077] In the case that the target image sensor corresponding to the target shooting parameter is the same as the current image sensor, and the target shooting mode corresponding to the target shooting parameter is the same as the current shooting mode, the image display parameters of the preview image are maintained unchanged; in the case that the target image sensor corresponding to the target shooting parameter is the same as the current image sensor, and the target shooting mode is different from the current shooting mode, the image display parameters are adjusted according to the zoom speed corresponding to the zoom input and the target shooting frame rate corresponding to the target shooting parameter.

[0078] In embodiments of the present application, there are various cases when the image sensor of the electronic device is zooming. One of the cases is that the zoom range does not exceed the focal length of the current image sensor, that is, there is no switching of the image sensor. However, there is a shooting mode switching case of switching the image sensor. Exemplarily, the image sensor outputs different images, such as different resolutions, frame rates, and image storage formats, according to the set parameters in different bright and dark scenes.

[0079] For example, when there are high-light scenes and dark scenes in the scene, when the zoom input causes the focusing object of the image sensor to switch from focusing on the high-light scene to focusing on the dark scene, in order to improve the brightness of the picture, the exposure time needs to be increased, which will cause the frame rate of the image sensor to decrease.

[0080] Therefore, after receiving the zoom input, if it is determined that the target sensor corresponding to the target shooting parameter is the same as the current sensor, it is further determined whether the target shooting frame rate corresponding to the target shooting parameter is the same as the current shooting frame rate. If the target shooting parameter is the same as the current shooting parameter, it means that the shooting frame rate is unchanged, and the display frame rate of the preview image will not suddenly drop. At this time, the zoom operation can be directly executed, and there is no need to adjust the image parameters of the preview image.

[0081] If the target shooting frame rate is different from the current shooting frame rate, the image display parameters are adjusted by the zoom speed of the user's zoom input and the target shooting frame rate. Among them, the zoom speed determines the time of adjusting from the current shooting parameter to the target shooting parameter. The faster the zoom speed, the faster the shooting parameter of the image sensor changes, and it is more difficult to predict the exposure parameter after zooming. The slower the zoom speed, the slower the shooting parameter of the image sensor changes, and it is easier to identify the zoom object and predict the exposure parameter after zooming.

[0082] By adjusting the image display parameters of the preview image according to the zoom speed of the user's zoom input, the smoothness of the preview image can be improved, and the lag can be reduced.

[0083] In some embodiments of the present application, the image display parameter is adjusted according to the zoom speed corresponding to the zoom input and the target shooting frame rate corresponding to the target shooting parameter, including: in the case that the zoom speed is less than or equal to a zoom speed threshold, or in the case that the zoom speed is greater than the zoom speed threshold and the excessive frame number can be increased, comparing the target shooting frame rate with a current shooting frame rate; in the case that the target shooting frame rate is greater than the current shooting frame rate, maintaining the image display parameter of the preview image unchanged; in the case that the target shooting frame rate is less than the current shooting frame rate, determining a target frame length according to the current shooting frame rate and the target shooting frame rate; and adjusting the frame length of the preview image according to the target frame length.

[0084] The method further includes: in the case that the target shooting frame rate matches the current shooting frame rate, switching to the target shooting mode; in the case that the zoom speed is less than the zoom speed threshold, or in the case that the zoom speed is greater than or equal to the zoom speed threshold and the excessive frame number can be increased, switching to the target shooting mode after the frame length of the preview image is adjusted to the target frame length; and in the case that the zoom speed is greater than or equal to the zoom speed threshold and the excessive frame number cannot be increased, switching to the target shooting mode after the zoom operation is performed on the image sensor according to the target shooting parameter.

[0085] In the embodiments of the present application, if the zoom speed is less than the zoom speed threshold, it means that the zoom speed is slow and there is enough time to adjust the frame number. If the zoom speed is greater than or equal to the zoom speed threshold, it means that the zoom speed is fast and the existing transition frame number is insufficient to complete the frame number adjustment. At this time, it is judged whether the excessive frame number can be increased. If the excessive frame number can be increased, the target shooting frame rate is compared with the current shooting frame rate to determine whether it is a frame rate increasing scenario or a frame rate decreasing scenario.

[0086] If the target shooting frame rate is greater than the current shooting frame rate, it means that it is a frame rate increasing scenario. When the frame rate of the image is increased, it will not make the human eye feel stuck, but will become more smooth, so at this time the image parameter of the preview image does not need to be adjusted.

[0087] If the target shooting frame rate is less than the current shooting frame rate, it means that it is a frame rate decreasing scenario. At this time, the target frame length is calculated according to the current shooting frame rate and the target shooting frame rate. The frame length of the preview image is adjusted through the target frame length, that is, the frame rate is adjusted in advance to avoid the stuck caused by sudden drop of the frame rate.

[0088] Exemplarily, the target frame length can be calculated by the following formula (2):

[0089]

[0090] Wherein, ΔFL is the frame length time that needs to be adjusted between two adjacent frames, that is, the target frame length. Δ(fps dst , fpscur ) is the difference between the current shooting frame rate and the target shooting frame rate. framenum is the set number of transition frames, framenum e (frame min , frame max ), where frame min and frame max are the maximum and minimum numbers of transition frames, respectively.

[0091] After the shooting mode is switched, the shooting parameters of the image sensor also change in response. The change in shooting parameters will cause a change in the shooting frame rate, and this frame rate variation is directly reflected in the display frame rate of the preview image. If there is a sudden drop in the frame rate, it may cause a stall.

[0092] If the zoom speed is less than the zoom speed threshold, that is, the zoom speed is slow, it means there is enough time to adjust the frame rate. At this time, after the frame rate is adjusted, that is, after the frame length of the preview image is adjusted to the frame length corresponding to the target shooting parameter, the target shooting mode is switched, thereby reducing the sudden change in frame number and improving the smoothness of the preview image.

[0093] If the zoom speed is greater than or equal to the zoom speed threshold, that is, the zoom speed is fast, it is determined whether the number of transition frames of the preview image can be increased. If the number of transition frames of the preview image can be increased, the number of transition frames is appropriately increased, the faster zoom speed is slowed down to an equivalent slower zoom speed, and the target shooting mode is switched after the frame rate is adjusted. If the number of transition frames cannot be increased, the shooting mode of the image sensor is not switched during the zooming process, that is, the shooting parameters are not changed, and the target shooting mode is switched after the zooming is completed to prevent a stall.

[0094] Exemplarily, Figure 3 a flowchart of a zoom control method of some embodiments of the present application is shown, as Figure 3 shown, the method comprises:

[0095] Step 302, receiving a zoom input, determining that the target shooting mode is different from the current shooting mode;

[0096] Step 304, determining whether the target shooting frame rate matches the current shooting frame rate; if yes, go to step 318, otherwise go to step 306.

[0097] Wherein, the shooting frame rate before and after the shooting mode of the image sensor is switched is detected to determine whether the target shooting frame rate matches the current shooting frame rate. If matched, the zoom switching is directly performed, and if not matched, the subsequent steps are executed.

[0098] Step 306, determining whether the zoom speed exceeds the zoom speed threshold; if yes, go to step 308, otherwise go to step 310.

[0099] According to the input information of the user operation on the preview interface, the speed of the zoom is estimated, and different strategies are executed for "fast" and "slow".

[0100] Step 308: Determine whether the transition frame number can be increased; if yes, go to step 310, otherwise go to step 316.

[0101] Step 310: Determine whether the target shooting frame rate is greater than the current shooting frame rate; if yes, go to step 314, otherwise go to step 312.

[0102] Step 312: Gradually increase the frame length, and reduce the frame rate to the target shooting frame rate, and then switch to the target shooting mode.

[0103] Step 314: Maintain the image display parameters of the preview image unchanged.

[0104] Step 316: After completing the zoom operation, switch to the target shooting mode.

[0105] Step 318: Switch to the target shooting mode.

[0106] If the transition frame number cannot be increased, the shooting mode of the image sensor is not allowed to be switched during the zooming process, and the target shooting mode is switched after stopping zooming. If the transition frame number can be increased, this case is equivalent to the "slow" zoom speed. When switching from a low frame rate to a high frame rate, it will not cause stuttering, and no processing is needed. When switching from a high frame rate to a low frame rate, the frame length is gradually increased, the frame rate is reduced to align with the target shooting frame rate, and then the target shooting mode is switched.

[0107] In some embodiments of the present application, the image display parameters of the preview image are adjusted according to the target shooting parameters, including:

[0108] In the case where the target image sensor corresponding to the target shooting parameter is different from the current image sensor, and the target shooting frame rate corresponding to the target shooting parameter is less than the current shooting frame rate, the transition frame number of the preview image is increased, the target frame length is determined according to the current shooting frame rate and the target shooting frame rate, and the frame length of the preview image is adjusted according to the target frame length.

[0109] In the case where the target image sensor corresponding to the target shooting parameter is different from the current image sensor, and the target shooting frame rate is greater than the current shooting frame rate and less than twice the current shooting frame rate, the target frame length is determined according to the frame length of the target shooting frame rate, and the frame length of the preview image is adjusted according to the target frame length.

[0110] In a case where the target image sensor corresponding to the target shooting parameter is different from the current image sensor, and the target shooting frame rate is greater than or equal to 2 times the current shooting frame rate, the frame synchronization state of the preview image is set to an off state.

[0111] In the embodiments of the present application, there are various cases when the image sensor of the electronic device zooms. One of the cases is that the zoom range exceeds the focal length of the current image sensor, and the current image sensor needs to be switched to the target image sensor. Because the light sensing properties of different image sensors are different, their shooting frame rates can be different. For example, when the long-focus camera is switched to the main camera, the shooting frame rate can change. At this time, according to the comparison result of the target shooting frame rate and the current shooting frame rate, the image display parameters of the preview image are adjusted in different cases.

[0112] If the target image sensor is different from the current image sensor, and the target shooting frame rate is less than the current shooting frame rate, that is, when the shooting frame rate changes from high to low, a sudden drop in the frame number will cause lag. At this time, the number of excess frames is appropriately increased, and the target frame length is calculated according to the current shooting frame rate and the target shooting frame rate. The frame length of the preview image is adjusted by the target frame length, that is, the frame rate is adjusted in advance to avoid the lag caused by a sudden drop in the frame rate.

[0113] For example, the target frame length can be calculated by the following formula (3):

[0114]

[0115] Wherein, ΔFL is the frame length time that needs to be adjusted between two adjacent frames, that is, the target frame length. Δ(fps dst , fps cur ) is the difference between the current shooting frame rate and the target shooting frame rate. framenum is the number of excess frames that can be set, framenum ∈ (frame min , frame max ), wherein frame min and frame max are the maximum and minimum excess frame numbers, respectively, and factor is the time influence factor when switching between different image sensors.

[0116] If the target image sensor is different from the current image sensor, and the target shooting frame rate is greater than the current shooting frame rate and less than 2 times the current shooting frame rate, that is, when the frame rate is switched from low to high, but the frame rate difference does not exceed 2 times, the target frame length is determined according to the frame length of the target shooting frame rate. For example, in this scenario, the target frame length can be determined as 1 / 2 of the frame length corresponding to the target shooting parameter.

[0117] If the target image sensor is different from the current image sensor, and the target shooting frame rate is greater than 2 times the current shooting frame rate, it means that the frame rate is significantly improved. At this time, the frame synchronization function may cause the display frame rate to be slowed down, and the frame synchronization function is turned off at this time.

[0118] Exemplarily, Figure 4 A flowchart of a zoom control method of some embodiments of the present application is shown as Figure 4 as shown, comprising:

[0119] Step 402, receiving a zoom input, determining that the target image sensor is different from the current image sensor;

[0120] Step 404, determining whether the target shooting frame rate matches the current shooting frame rate; if yes, go to step 406, otherwise go to step 408.

[0121] Step 406, switching the image sensor;

[0122] Step 408, determining whether the target shooting frame rate is greater than the current shooting frame rate; if yes, go to step 410A, otherwise go to step 410B;

[0123] Step 410A, determining whether the frame rate difference is within 2 times; if yes, go to step 412A, otherwise go to step 412C;

[0124] Step 410B, increasing the excessive frame number;

[0125] Step 412A, setting the target frame length to 1 / 2 of the frame length corresponding to the target shooting parameter;

[0126] Step 412B, gradually increasing the frame length to reduce the frame rate to the target shooting frame rate;

[0127] Step 412C, turning off the frame synchronization;

[0128] Step 414, switching the image sensor after the frame rate adaptation.

[0129] The present application adjusts the display parameters of the preview image in advance before switching the image sensor, avoids the stuttering caused by the sudden change of the frame number of the preview image, and improves the smoothness of the preview image.

[0130] In some embodiments of the present application, the method further comprises:

[0131] In the case that the target shooting parameter corresponds to a target shooting mode different from the initial shooting mode corresponding to the target image sensor, and the excessive frame number can be increased, after the frame length of the preview image is adjusted to the target frame length, the target shooting mode is switched to;

[0132] In a case where the target shooting mode is different from the initial shooting mode and the excessive frame number cannot be increased, after the zoom operation is performed on the image sensor according to the target shooting parameter, the target shooting mode is switched to.

[0133] In the embodiments of the present application, in a case where the target shooting mode corresponding to the target shooting parameter is different from the current shooting mode and the excessive frame number can be increased, after the frame length of the preview image is adjusted to the target frame length, the target shooting mode zoom range exceeds the focal length of the current image sensor, and in a case where the shooting mode of the image sensor continues to change after the image sensor is switched, whether the shooting mode of the image sensor is immediately switched after the image sensor is switched is determined.

[0134] When the shooting mode of the image sensor is about to be switched, whether the frame rate of the target shooting mode is the same as that of the initial shooting mode is determined. If the frame rate of the target shooting mode is the same as that of the initial shooting mode, the target shooting mode is directly switched to. If the frame rate of the target shooting mode is different from that of the initial shooting mode, whether the excessive frame number can be increased is determined.

[0135] If the excessive frame number can be increased, after the frame length of the preview image is adjusted so that the frame rate of the preview image is the same as the target shooting frame rate, the shooting mode is switched. If the excessive frame number cannot be increased, after the zoom operation is completed, the shooting mode is switched.

[0136] By switching the shooting mode of the image sensor in appropriate cases, the frame number mutation can be reduced to reduce the lag.

[0137] The zoom control method provided in the embodiments of the present application can be executed by a zoom control device. The zoom control device provided in the embodiments of the present application is described by taking the zoom control device executing the zoom control method as an example.

[0138] In some embodiments of the present application, a zoom control device is provided, Figure 5 The structural block diagram of the zoom control device of some embodiments of the present application is shown in FIG. 5. Figure 5 As shown in FIG. 5, the zoom control device 500 includes:

[0139] The receiving module 502 is configured to receive a zoom input in a case where a shooting preview interface is displayed, wherein the shooting preview interface is used to display a preview image, and the preview image is obtained by an image sensor.

[0140] The determining module 504 is configured to determine a target shooting parameter in response to the zoom input.

[0141] The adjusting module 506 is configured to adjust image display parameters of the preview image according to the target shooting parameter, so as to match the display parameters of the preview image with the target shooting parameter, wherein the image display parameters include at least one of the following: frame length, excessive frame number, and frame synchronization opening state.

[0142] The control module 508 is configured to control the image sensor to perform a zoom operation according to the target shooting parameter.

[0143] In the embodiments of the present application, during the shooting process, when a zoom input of a user is received, the image display parameters of the currently displayed preview image are adjusted according to the target shooting parameter corresponding to the zoom input, including the frame length, the excessive frame number, and the frame synchronization opening state, so that the display frame rate of the preview image is adjusted in advance before the frame rate is changed due to the zoom, and the situation of sudden drop of the frame number is avoided, thereby improving the display fluency of the shooting preview interface during the zoom.

[0144] In some embodiments of the present application, the determining module is further configured to determine a target zoom ratio corresponding to the target shooting parameter in a case where the target image sensor corresponding to the target shooting parameter is the same as the current image sensor, and the target shooting frame rate corresponding to the target shooting parameter is the same as the current shooting frame rate; determine the target exposure time according to the preview image currently displayed on the shooting preview interface in a case where the target zoom ratio is higher than the current zoom ratio; determine the target exposure time according to the original image data of the current image sensor in a case where the target zoom ratio is lower than the current zoom ratio; and determine the target frame rate according to the current exposure time and the target exposure time.

[0145] The adjusting module is further configured to adjust the frame rate of the preview image according to the target frame rate.

[0146] The present application adjusts the frame rate of the preview image according to the target frame rate, so that the shooting frame rate after the exposure time is changed can be predicted in advance, the display frame rate of the preview image is adjusted in advance and transitioned, the sudden drop of the display frame rate of the preview image is avoided, and the fluency during the zoom operation is improved. According to the change mode of the zoom ratio, the preview image or the original image data is selected as the reference image for predicting the target exposure time, so that the accuracy of the prediction of the exposure time is ensured, and the memory and power consumption are reduced.

[0147] In some embodiments of the present application, the adjusting module is further configured to, in a case where the target image sensor corresponding to the target shooting parameter is the same as the current image sensor, and the target shooting mode corresponding to the target shooting parameter is the same as the current shooting mode, maintain the image display parameter of the preview image unchanged; and in a case where the target image sensor corresponding to the target shooting parameter is the same as the current image sensor, and the target shooting mode is different from the current shooting mode, adjust the image display parameter according to the zoom speed corresponding to the zoom input and the target shooting frame rate corresponding to the target shooting parameter.

[0148] The present application adjusts the image display parameter of the preview image according to the zoom speed of the zoom input of the user, thereby improving the smoothness of the preview image and reducing the lag.

[0149] In some embodiments of the present application, the zoom control device further comprises:

[0150] The comparing module is configured to, in a case where the zoom speed is less than or equal to the zoom speed threshold, or in a case where the zoom speed is greater than the zoom speed threshold and the excessive frame number of the preview image can be increased, compare the target shooting frame rate with the current shooting frame rate.

[0151] The adjusting module is further configured to, in a case where the target shooting frame rate is greater than the current shooting frame rate, maintain the image display parameter of the preview image unchanged.

[0152] The determining module is further configured to, in a case where the target shooting frame rate is less than the current shooting frame rate, determine the target frame length according to the current shooting frame rate and the target shooting frame rate.

[0153] The adjusting module is further configured to adjust the frame length of the preview image according to the target frame length.

[0154] The control module is further configured to, in a case where the target shooting frame rate matches the current shooting frame rate, switch to the target shooting mode.

[0155] In a case where the zoom speed is less than the zoom speed threshold, or in a case where the zoom speed is greater than or equal to the zoom speed threshold and the excessive frame number can be increased, the target shooting mode is switched to after the frame length of the preview image is adjusted to the target frame length.

[0156] In a case where the zoom speed is greater than or equal to the zoom speed threshold and the excessive frame number cannot be increased, the target shooting mode is switched to after the image sensor is controlled to perform the zoom operation according to the target shooting parameter.

[0157] The present application adjusts the frame length of the preview image by the target frame length, that is, the frame rate is adjusted in advance to avoid the lag caused by the sudden drop of the frame rate and improve the smoothness of the preview image.

[0158] In some embodiments of the present application, the adjusting module is further configured to, in a case where the target image sensor corresponding to the target shooting parameter is different from the current image sensor, and the target shooting frame rate corresponding to the target shooting parameter is less than the current shooting frame rate, increase the number of excess frames of the preview image, determine a target frame length according to the current shooting frame rate and the target shooting frame rate, and adjust the frame length of the preview image according to the target frame length.

[0159] In a case where the target image sensor corresponding to the target shooting parameter is different from the current image sensor, and the target shooting frame rate is greater than the current shooting frame rate and less than twice the current shooting frame rate, the target frame length is determined according to the frame length of the target shooting frame rate, and the frame length of the preview image is adjusted according to the target frame length.

[0160] In a case where the target image sensor corresponding to the target shooting parameter is different from the current image sensor, and the target shooting frame rate is greater than or equal to twice the current shooting frame rate, the frame synchronization state of the preview image is set to an off state.

[0161] The present application can avoid the lag caused by the sudden change in the number of preview image frames by adjusting the display parameters of the preview image before switching the image sensor, thereby improving the smoothness of the preview image.

[0162] In some embodiments of the present application, the control module is further configured to, in a case where the target shooting mode corresponding to the target shooting parameter is different from the initial shooting mode corresponding to the target image sensor, and the number of excess frames can be increased, switch to the target shooting mode after the frame length of the preview image is adjusted to the target frame length.

[0163] In a case where the target shooting mode is different from the initial shooting mode, and the number of excess frames cannot be increased, switch to the target shooting mode after the image sensor is controlled to perform the zoom operation according to the target shooting parameter.

[0164] The present application can reduce the lag caused by the sudden change in the number of frames by switching the shooting mode of the image sensor in appropriate cases.

[0165] The zoom control apparatus in the embodiments of the present application can be an electronic device, or a component in an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or other devices other than a terminal. For example, the electronic device can be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a Mobile Internet Device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The electronic device can also be a server, a Network Attached Storage (NAS), a personal computer (PC), a television (TV), a cash register, or a self-service machine, etc. The embodiments of the present application are not limited in this regard.

[0166] The zoom control apparatus in the embodiments of the present application can be a device with an operating system. The operating system can be an Android operating system, an iOS operating system, or other possible operating systems, and the embodiments of the present application are not limited in this regard.

[0167] The zoom control apparatus provided in the embodiments of the present application can implement each process achieved by the method embodiments, and thus repeated details are not described herein.

[0168] Optionally, the embodiments of the present application further provide an electronic device, Figure 6 A structural block diagram of an electronic device according to the embodiments of the present application is shown in FIG. 6. Figure 6 As shown in FIG. 6, the electronic device 600 includes a processor 602, a memory 604, and a program or instruction stored in the memory 604 and executable on the processor 602. The program or instruction is executed by the processor 602 to implement each process of the above method embodiments, and thus achieve the same technical effects. Repeated details are not described herein.

[0169] It should be noted that the electronic device in the embodiments of the present application includes the above mobile electronic device and non-mobile electronic device.

[0170] Figure 7 A hardware structural diagram of an electronic device according to the embodiments of the present application is shown in FIG. 7.

[0171] The electronic device 700 includes, but is not limited to, a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, and a processor 710, etc.

[0172] Those skilled in the art can understand that the electronic device 700 can further include a power supply (such as a battery) for supplying power to each component, and the power supply can be logically connected to the processor 710 through a power management system, so that the power management system can realize functions such as management of charging, discharging, and power consumption management. Figure 7 The electronic device structure shown in the figure is not a limitation on the electronic device, and the electronic device can include more or fewer components than shown, or combine certain components, or different component arrangements, which will not be described here.

[0173] The user input unit 707 is configured to receive a zoom input when a shooting preview interface is displayed, wherein the shooting preview interface is configured to display a preview image, and the preview image is obtained by an image sensor.

[0174] The processor 710 is configured to determine a target shooting parameter in response to the zoom input, adjust an image display parameter of the preview image according to the target shooting parameter, so that the display parameter of the preview image matches the target shooting parameter, wherein the image display parameter includes at least one of the following: frame length, number of overexposed frames, and frame synchronization on state, and control the image sensor to perform a zoom operation according to the target shooting parameter.

[0175] In the embodiments of the present application, when the zoom input of the user is received during shooting, the image display parameter of the currently displayed preview image is adjusted according to the target shooting parameter corresponding to the zoom input, including frame length, number of overexposed frames, and frame synchronization on state, so that the display frame rate of the preview image is adjusted in advance before the frame rate changes caused by zooming, avoiding the situation that the number of frames suddenly drops, thereby improving the display fluency of the shooting preview interface when zooming.

[0176] Optionally, the processor 710 is further configured to determine a target zoom ratio corresponding to the target shooting parameter when the target image sensor corresponding to the target shooting parameter is the same as the current image sensor, and the target shooting frame rate corresponding to the target shooting parameter is the same as the current shooting frame rate, determine a target exposure time according to the preview image currently displayed by the shooting preview interface when the target zoom ratio is higher than the current zoom ratio, determine a target exposure time according to the original image data of the current image sensor when the target zoom ratio is lower than the current zoom ratio, determine a target frame rate according to the current exposure time and the target exposure time, and adjust the frame rate of the preview image according to the target frame rate.

[0177] The present application adjusts the frame rate of the preview image according to the target frame rate, so that the shooting frame rate after the exposure time is predicted in advance, and the display frame rate of the preview image is adjusted and transitioned in advance, so as to avoid the sudden drop of the display frame rate of the preview image and improve the smoothness during the zoom operation. According to the change mode of the zoom ratio, the preview image or the original image data is selected as the reference image of the predicted target exposure time, so that the accuracy of the exposure time prediction is ensured, and the memory and power consumption are reduced.

[0178] Optionally, the processor 710 is further configured to, in a case where the target image sensor corresponding to the target shooting parameter is the same as the current image sensor, and the target shooting mode corresponding to the target shooting parameter is the same as the current shooting mode, maintain the image display parameter of the preview image unchanged; in a case where the target image sensor corresponding to the target shooting parameter is the same as the current image sensor, and the target shooting mode is different from the current shooting mode, adjust the image display parameter according to the zoom speed corresponding to the zoom input and the target shooting frame rate corresponding to the target shooting parameter.

[0179] The present application adjusts the image display parameter of the preview image according to the zoom speed of the zoom input of the user, so as to improve the smoothness of the preview image and reduce the lag.

[0180] Optionally, the processor 710 is further configured to, in a case where the zoom speed is less than or equal to a zoom speed threshold, or in a case where the zoom speed is greater than the zoom speed threshold and the number of transition frames of the preview image can be increased, compare the target shooting frame rate with the current shooting frame rate; in a case where the target shooting frame rate is greater than the current shooting frame rate, maintain the image display parameter of the preview image unchanged; in a case where the target shooting frame rate is less than the current shooting frame rate, determine a target frame length according to the current shooting frame rate and the target shooting frame rate; adjust the frame length of the preview image according to the target frame length; and in a case where the target shooting frame rate matches the current shooting frame rate, switch to the target shooting mode.

[0181] In a case where the zoom speed is less than the zoom speed threshold, or in a case where the zoom speed is greater than or equal to the zoom speed threshold and the number of transition frames can be increased, after the frame length of the preview image is adjusted to the target frame length, the target shooting mode is switched to; in a case where the zoom speed is greater than or equal to the zoom speed threshold and the number of transition frames cannot be increased, after the image sensor is controlled to perform the zoom operation according to the target shooting parameter, the target shooting mode is switched to.

[0182] The present application adjusts the frame length of the preview image by the target frame length, that is, the frame rate is adjusted in advance to avoid the lag caused by the sudden drop of the frame rate, and the smoothness of the preview image is improved.

[0183] Optionally, the processor 710 is further configured to: in a case where the target shooting frame rate matches the current shooting frame rate, switching to the target shooting mode; in a case where the zoom speed is less than the zoom speed threshold, or in a case where the zoom speed is greater than or equal to the zoom speed threshold and the excessive frame number can be increased, switching to the target shooting mode after the frame length of the preview image is adjusted to the target frame length; in a case where the zoom speed is greater than or equal to the zoom speed threshold and the excessive frame number cannot be increased, switching to the target shooting mode after the zoom operation of the image sensor is controlled according to the target shooting parameter.

[0184] The application can reduce the frame number mutation and improve the smoothness of the preview image.

[0185] Optionally, the processor 710 is further configured to: in a case where the target image sensor corresponding to the target shooting parameter is different from the current image sensor, and the target shooting frame rate corresponding to the target shooting parameter is less than the current shooting frame rate, increasing the excessive frame number of the preview image, and determining the target frame length according to the current shooting frame rate and the target shooting frame rate, and adjusting the frame length of the preview image according to the target frame length;

[0186] in a case where the target image sensor corresponding to the target shooting parameter is different from the current image sensor, and the target shooting frame rate is greater than the current shooting frame rate and less than twice the current shooting frame rate, determining the target frame length according to the frame length of the target shooting frame rate, and adjusting the frame length of the preview image according to the target frame length;

[0187] in a case where the target image sensor corresponding to the target shooting parameter is different from the current image sensor, and the target shooting frame rate is greater than or equal to twice the current shooting frame rate, setting the frame synchronization state of the preview image to the off state.

[0188] The application can avoid the frame number mutation and improve the smoothness of the preview image by adjusting the display parameter of the preview image before switching the image sensor.

[0189] Optionally, the processor 710 is further configured to: in a case where the target shooting mode corresponding to the target shooting parameter is different from the initial shooting mode corresponding to the target image sensor, and the excessive frame number can be increased, switching to the target shooting mode after the frame length of the preview image is adjusted to the target frame length;

[0190] in a case where the target shooting mode is different from the initial shooting mode, and the excessive frame number cannot be increased, switching to the target shooting mode after the zoom operation of the image sensor is controlled according to the target shooting parameter.

[0191] The application can reduce the frame number mutation and improve the smoothness of the preview image by switching the shooting mode of the image sensor in appropriate cases.

[0192] It should be understood that in the embodiments of the present application, the input unit 704 can include a graphics processor (GPU) 7041 and a microphone 7042, and the graphics processor 7041 processes image data of a still picture or a video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 706 can include a display panel 7061, which can be configured in the form of a liquid crystal display, an organic light-emitting diode, etc. The user input unit 707 includes at least one of a touch panel 7071 and other input devices 7072. The touch panel 7071 is also called a touch screen. The touch panel 7071 can include two parts of a touch detection device and a touch controller. The other input devices 7072 can include, but are not limited to, a physical keyboard, function keys (such as volume control keys, on-off keys, etc.), a trackball, a mouse, a joystick, and the like, which will not be described here.

[0193] The memory 709 can be used to store software programs and various data. The memory 709 can mainly include a first storage area storing programs or instructions and a second storage area storing data, wherein the first storage area can store an operating system, application programs or instructions required by at least one function (such as a sound playing function, an image playing function, etc.), and the like. In addition, the memory 709 can include a volatile memory or a non-volatile memory, and the memory 709 can include both volatile and non-volatile memories. The non-volatile memory can be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable Programmable ROM (EPROM), an Electrically EPROM (EEPROM), or a flash memory. The volatile memory can be a Random Access Memory (RAM), a Static RAM (SRAM), a Dynamic RAM (DRAM), a Synchronous DRAM (SDRAM), a Double Data Rate SDRAM (DDR SDRAM), an Enhanced SDRAM (ESDRAM), a Synchlink DRAM (SLDRAM), and a Direct Rambus RAM (DRRAM). The memory 709 in the embodiments of the present application includes but is not limited to these and any other suitable types of memories.

[0194] The processor 710 can include one or more processing units; optionally, the processor 710 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and an application program, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It can be understood that the above-mentioned modem processor can also not be integrated into the processor 710.

[0195] The embodiments of the present application also provide a readable storage medium, and the readable storage medium stores programs or instructions, the programs or instructions are executed by a processor to realize various processes of the above-mentioned method embodiments and achieve the same technical effects. To avoid repetition, details are not described here.

[0196] The processor is a processor in the electronic device in the above embodiments. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disc or an optical disc, and the like.

[0197] The embodiment of the present application further provides a chip, which includes a processor and a communication interface. The communication interface is coupled with the processor. The processor is used to run programs or instructions, to realize various processes of the above method embodiments, and to achieve the same technical effects. To avoid repetition, details are not described herein.

[0198] It should be understood that the chip mentioned in the embodiment of the present application can also be referred to as a system-level chip, a system chip, a chip system, or a system-on-chip chip, etc.

[0199] The embodiment of the present application provides a computer program product. The program product is stored in a storage medium. The program product is executed by at least one processor to realize various processes of the above method embodiments, and to achieve the same technical effects. To avoid repetition, details are not described herein.

[0200] It should be noted that, in this document, the term "comprising" or "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or further includes elements inherent to such a process, method, article or device. Without more limitations, the element defined by the statement "comprising a" does not exclude the presence of additional identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the method and device in the embodiment of the present application is not limited to the order of performing the functions as shown or discussed, but can also include performing the functions in a substantially simultaneous manner or in a reverse order, for example, the described method can be performed in an order different from that described, and various steps can also be added, omitted or combined. In addition, the features described with reference to certain examples can be combined in other examples.

[0201] Through the above description of the embodiments, those skilled in the art can clearly understand that the above-mentioned example methods can be realized by means of software and a necessary general hardware platform, and of course, can also be realized by hardware, but in many cases, the former is a better embodiment. Based on such understanding, the technical solutions of the present application can be embodied in the form of a computer software product in essence or in the form of a part that contributes to the prior art, which is stored in a storage medium (such as a ROM / RAM, a magnetic disc, an optical disc), and includes a plurality of instructions for causing a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of various embodiments of the present application.

[0202] The embodiments of the present application are described above in combination with the drawings, but the present application is not limited to the above-mentioned specific embodiments, and the above-mentioned specific embodiments are only illustrative, but not restrictive. Those skilled in the art can make many forms under the inspiration of the present application without departing from the scope of the present application and the scope protected by the claims.

Claims

1. A zoom control method, characterized in that: The method comprises: When a shooting preview interface is displayed, a zoom input is received; wherein the shooting preview interface is used to display a preview image, and the preview image is acquired by an image sensor; In response to the zoom input, determining a target shooting parameter; Adjusting the image display parameters of the preview image according to the target shooting parameters so that the display parameters of the preview image match the target shooting parameters; wherein the image display parameters include at least one of the following: frame length, number of transition frames, and frame synchronization on state; The image sensor is controlled to perform a zoom operation according to the target shooting parameter.

2. The zoom control method according to claim 1, wherein: The adjusting the image display parameters of the preview image according to the target shooting parameters includes: determining a target zoom ratio corresponding to the target shooting parameter when the target image sensor corresponding to the target shooting parameter is the same as the current image sensor and the target shooting frame rate corresponding to the target shooting parameter is the same as the current shooting frame rate; When the target zoom ratio is higher than the current zoom ratio, determining the target exposure time according to the preview image currently displayed on the shooting preview interface; When the target zoom ratio is lower than the current zoom ratio, determining the target exposure time according to the raw image data of the current image sensor; Determining a target frame rate based on the current exposure time and the target exposure time; The frame rate of the preview image is adjusted according to the target frame rate.

3. The zoom control method according to claim 1, wherein: The adjusting the image display parameters of the preview image according to the target shooting parameters includes: When the target image sensor corresponding to the target shooting parameter is the same as the current image sensor, and the target shooting mode corresponding to the target shooting parameter is the same as the current shooting mode, the image display parameters of the preview image are maintained unchanged; when the target image sensor corresponding to the target shooting parameter is the same as the current image sensor, and the target shooting mode is different from the current shooting mode, the image display parameters are adjusted according to the zoom speed corresponding to the zoom input and the target shooting frame rate corresponding to the target shooting parameter.

4. The zoom control method according to claim 3, wherein: The adjusting the image display parameter according to the zoom speed corresponding to the zoom input and the target shooting frame rate corresponding to the target shooting parameter includes: comparing the target shooting frame rate and the current shooting frame rate when the zoom speed is less than or equal to a zoom speed threshold, or when the zoom speed is greater than the zoom speed threshold and the number of transition frames of the preview image can be increased; When the target shooting frame rate is greater than the current shooting frame rate, maintaining the image display parameters of the preview image unchanged; When the target shooting frame rate is less than the current shooting frame rate, determining a target frame length according to the current shooting frame rate and the target shooting frame rate; adjusting the frame length of the preview image according to the target frame length; The method further comprises: When the target shooting frame rate matches the current shooting frame rate, switching to the target shooting mode; When the zoom speed is less than a zoom speed threshold, or when the zoom speed is greater than or equal to the zoom speed threshold and the number of transition frames can be increased, after the frame length of the preview image is adjusted to the target frame length, switching to the target shooting mode; When the zoom speed is greater than or equal to a zoom speed threshold and the excessive frame number cannot be increased, after controlling the image sensor to perform a zoom operation according to the target shooting parameter, switching to the target shooting mode is performed.

5. The zoom control method according to claim 1, wherein: The adjusting the image display parameters of the preview image according to the target shooting parameters includes: When the target image sensor corresponding to the target shooting parameter is different from the current image sensor, and the target shooting frame rate corresponding to the target shooting parameter is lower than the current shooting frame rate, increasing the number of transition frames of the preview image, determining a target frame length according to the current shooting frame rate and the target shooting frame rate, and adjusting the frame length of the preview image according to the target frame length; When the target image sensor corresponding to the target shooting parameter is different from the current image sensor, and the target shooting frame rate is greater than the current shooting frame rate and less than twice the current shooting frame rate, determining a target frame length according to the frame length of the target shooting frame rate, and adjusting the frame length of the preview image according to the target frame length; When the target image sensor corresponding to the target shooting parameter is different from the current image sensor and the target shooting frame rate is greater than or equal to twice the current shooting frame rate, the frame synchronization state of the preview image is set to an off state.

6. A zoom control device, characterized in that: The zoom control device comprises: A receiving module, configured to receive a zoom input when a shooting preview interface is displayed; wherein the shooting preview interface is configured to display a preview image, the preview image being acquired by an image sensor; a determination module, configured to determine target shooting parameters in response to the zoom input; an adjustment module, configured to adjust image display parameters of the preview image according to the target shooting parameters so that the display parameters of the preview image match the target shooting parameters; wherein the image display parameters include at least one of the following: frame length, number of transition frames, and frame synchronization on state; A control module is used to control the image sensor to perform a zoom operation according to the target shooting parameters.

7. The zoom control device according to claim 6, wherein: The determination module is further configured to determine a target zoom ratio corresponding to the target shooting parameter when the target image sensor corresponding to the target shooting parameter is the same as the current image sensor and the target shooting frame rate corresponding to the target shooting parameter is the same as the current shooting frame rate; as well as When the target zoom ratio is higher than the current zoom ratio, determining the target exposure time according to the preview image currently displayed on the shooting preview interface; When the target zoom ratio is lower than the current zoom ratio, determining the target exposure time according to the raw image data of the current image sensor; Determining a target frame rate based on the current exposure time and the target exposure time; The adjustment module is further configured to adjust the frame rate of the preview image according to the target frame rate.

8. The zoom control device according to claim 6, wherein: The adjustment module is further configured to maintain the image display parameters of the preview image unchanged when the target image sensor corresponding to the target shooting parameter is the same as the current image sensor and the target shooting mode corresponding to the target shooting parameter is the same as the current shooting mode; When the target image sensor corresponding to the target shooting parameter is the same as the current image sensor, and the target shooting mode is different from the current shooting mode, the image display parameters are adjusted according to the zoom speed corresponding to the zoom input and the target shooting frame rate corresponding to the target shooting parameter.

9. The zoom control device according to claim 8, wherein: Also includes: a comparison module, configured to compare the target shooting frame rate with the current shooting frame rate when the zoom speed is less than or equal to a zoom speed threshold, or when the zoom speed is greater than the zoom speed threshold and the number of transition frames of the preview image can be increased; The adjustment module is further configured to maintain the image display parameters of the preview image unchanged when the target shooting frame rate is greater than the current shooting frame rate; The determining module is further configured to determine a target frame length according to the current shooting frame rate and the target shooting frame rate when the target shooting frame rate is less than the current shooting frame rate; The adjustment module is further configured to adjust the frame length of the preview image according to the target frame length; The control module is further configured to switch to the target shooting mode when the target shooting frame rate matches the current shooting frame rate; When the zoom speed is less than a zoom speed threshold, or when the zoom speed is greater than or equal to the zoom speed threshold and the number of transition frames can be increased, after the frame length of the preview image is adjusted to the target frame length, switching to the target shooting mode; When the zoom speed is greater than or equal to a zoom speed threshold and the excessive frame number cannot be increased, after controlling the image sensor to perform a zoom operation according to the target shooting parameter, switching to the target shooting mode is performed.

10. The zoom control device according to claim 6, wherein: The adjustment module is further configured to, when a target image sensor corresponding to the target shooting parameter is different from a current image sensor and a target shooting frame rate corresponding to the target shooting parameter is lower than a current shooting frame rate, increase the number of transition frames of the preview image, determine a target frame length based on the current shooting frame rate and the target shooting frame rate, and adjust the frame length of the preview image based on the target frame length; When the target image sensor corresponding to the target shooting parameter is different from the current image sensor, and the target shooting frame rate is greater than the current shooting frame rate and less than twice the current shooting frame rate, determining a target frame length according to the frame length of the target shooting frame rate, and adjusting the frame length of the preview image according to the target frame length; When the target image sensor corresponding to the target shooting parameter is different from the current image sensor and the target shooting frame rate is greater than or equal to twice the current shooting frame rate, the frame synchronization state of the preview image is set to an off state.