CN118200720A - Zoom control method, device and storage medium - Google Patents

Zoom control method, device and storage medium Download PDF

Info

Publication number
CN118200720A
CN118200720A CN202211610565.2A CN202211610565A CN118200720A CN 118200720 A CN118200720 A CN 118200720A CN 202211610565 A CN202211610565 A CN 202211610565A CN 118200720 A CN118200720 A CN 118200720A
Authority
CN
China
Prior art keywords
target
zoom
zooming
rate
picture
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211610565.2A
Other languages
Chinese (zh)
Inventor
刘石玮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202211610565.2A priority Critical patent/CN118200720A/en
Publication of CN118200720A publication Critical patent/CN118200720A/en
Pending legal-status Critical Current

Links

Landscapes

  • Studio Devices (AREA)

Abstract

The present disclosure relates to a zoom control method, apparatus, and storage medium, and relates to the field of cameras, the method comprising: under a shooting interface, a first picture in a preview state is firstly obtained, a second picture in a target zooming state determined in the first picture is obtained, a first target zooming rate is then determined, and a first zooming operation from the first picture to the second picture is performed according to the first target zooming rate in response to an instruction for performing the zooming operation. Through the technical scheme, the target picture and the zooming rate can be determined, automatic zooming is realized, and the continuity and stability of the zooming process can be improved.

Description

Zoom control method, device and storage medium
Technical Field
The present disclosure relates to the field of cameras, and in particular, to a zoom control method, apparatus, and storage medium.
Background
Zoom operation is common in the shooting process of cameras, and zooming is a way to achieve a desired effect of shooting by enlarging or reducing a picture. In the related art, for zooming of a camera of a terminal device such as a mobile phone or a tablet, currently, a main method is to perform operations such as zooming of a picture and a finger sliding magnification controller by two fingers, but these methods are easy to cause problems such as discontinuous zooming process and picture shake.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides a zoom control method, apparatus, and storage medium.
According to a first aspect of embodiments of the present disclosure, there is provided a zoom control method, applied to a terminal device, the method including:
Acquiring a first picture in a preview state under a shooting interface;
Acquiring a second picture in the target zoom state determined in the first picture;
Determining a first target zoom rate;
in response to an instruction to perform a zooming operation, a first zooming operation is performed from the first screen to the second screen according to the first target zoom rate.
Optionally, the acquiring a second screen in the target zoom state determined in the first screen includes:
Identifying at least one target subject in the first screen;
The at least one target main body is displayed in an intensified mode in the first picture and is used for prompting a user to select from the at least one target main body;
Under the condition that a first selection instruction is received, acquiring a first target main body indicated by the first selection instruction, wherein the first target main body is any main body in the at least one target main body;
And determining a picture area corresponding to the first target main body to obtain the second picture.
Optionally, the acquiring a second screen in the target zoom state determined in the first screen includes:
Receiving a manual selection operation in the first screen;
And determining the picture area selected by the manual selection operation to obtain the second picture.
Optionally, the determining the first target zoom rate includes:
displaying a plurality of preset zooming rates;
receiving a second selection instruction, wherein the second selection instruction is used for indicating a zooming rate selected by a user from a plurality of preset zooming rates;
and determining the zoom rate indicated by the second selection instruction as the first target zoom rate.
Optionally, the determining the first target zoom rate includes:
Displaying an operation area for setting a zoom rate;
generating a zoom rate setting instruction for instructing a user to customize a set zoom rate in response to a zoom rate setting operation performed in the operation area;
and determining the zoom rate indicated by the zoom rate setting instruction as the first target zoom rate.
Optionally, in a case that the terminal device is in a video recording mode, in response to an instruction to perform a zooming operation, performing a first zooming operation from the first screen to the second screen according to the first target zooming rate, including:
In the process of video shooting, responding to an instruction for executing zooming operation, and carrying out zooming operation from the first picture to the second picture according to the first target zooming rate;
marking the first picture and the second picture as a starting key frame and a stopping key frame of a target video shot at present respectively;
After the target video shooting is completed, the target video marked with the starting key frame and the ending key frame is stored.
Optionally, the method further comprises:
during the video shooting process, identifying the starting time and the ending time of the manual zooming operation;
Marking a third picture corresponding to the starting moment and a fourth picture corresponding to the ending moment as a starting key frame and an ending key frame of the target video shot currently respectively;
After the target video shooting is completed, the target video marked with the starting key frame and the ending key frame is stored.
Optionally, the method comprises:
invoking the start key frame and the end key frame;
determining first video content from the start key frame to the end key frame in the target video;
Acquiring a second target zoom rate;
Performing a second zooming operation from the initial key frame to the termination key frame according to the second target zooming rate on the target video content to obtain second video content;
and obtaining the modified target video according to the second video content.
Optionally, the zooming from the first screen to the second screen according to the first target zooming rate includes:
Starting from the starting moment of the first zooming operation, increasing the zooming speed of the first zooming operation from zero to the first target zooming speed according to a set accelerating speed, wherein the accelerating speed is the speed increasing amount of unit time;
and/or the number of the groups of groups,
And reducing the zoom speed of the first zooming operation from the first target zoom speed to zero according to a set deceleration rate from a set time before the termination time of the first zooming operation, wherein the deceleration rate is the rate reduction amount per unit time.
According to a second aspect of embodiments of the present disclosure, there is provided a zoom control apparatus applied to a terminal device, the apparatus including:
The first acquisition module is configured to acquire a first picture in a preview state under a shooting interface;
a second acquisition module configured to acquire a second screen in a target zoom state determined in the first screen;
a determination module configured to determine a first target zoom rate;
And a zoom module configured to perform a first zoom operation of zooming from the first screen to the second screen according to the first target zoom rate in response to an instruction to perform the zoom operation.
According to a third aspect of the embodiments of the present disclosure, there is provided a zoom control apparatus comprising:
A processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to: the executable instructions are executed to implement the steps of the zoom control method provided by the first aspect of the present disclosure.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the steps of the zoom control method provided by the first aspect of the present disclosure.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects:
In the above technical solution, under a shooting interface, a first frame in a preview state is first acquired, then a second frame in a target zoom state determined in the first frame is acquired, then a first target zoom rate is determined, and in response to an instruction to perform a zoom operation, a first zoom operation from the first frame to the second frame is performed according to the first target zoom rate. Through the technical scheme, the target picture and the zooming rate can be determined, automatic zooming is realized, and the continuity and stability of the zooming process can be improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flowchart illustrating a zoom control method according to an exemplary embodiment.
Fig. 2 is a flowchart illustrating a zoom control method according to an exemplary embodiment.
Fig. 3 is a schematic diagram illustrating a zoom control method according to an exemplary embodiment.
Fig. 4 is a flowchart illustrating a zoom control method according to another exemplary embodiment.
Fig. 5 is a schematic diagram illustrating a zoom control method according to another exemplary embodiment.
Fig. 6 is a flowchart illustrating a zoom control method according to an exemplary embodiment.
Fig. 7 is a schematic diagram illustrating a zoom control method according to an exemplary embodiment.
Fig. 8 is a flowchart illustrating a zoom control method according to another exemplary embodiment.
Fig. 9 is a schematic diagram illustrating a zoom control method according to an exemplary embodiment.
Fig. 10 is a flowchart illustrating a zoom control method according to an exemplary embodiment.
Fig. 11 is a flowchart illustrating a zoom control method according to an exemplary embodiment.
Fig. 12 is a flowchart illustrating a zoom control method according to an exemplary embodiment.
Fig. 13 is a block diagram illustrating a zoom control apparatus 300 according to an exemplary embodiment.
Fig. 14 is a block diagram illustrating an apparatus 800 for zoom control according to an example embodiment.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
It should be noted that, all actions of acquiring signals, information or data in the present application are performed under the condition of conforming to the corresponding data protection rule policy of the country of the location and obtaining the authorization given by the owner of the corresponding device.
Fig. 1 is a flowchart illustrating a zoom control method according to an exemplary embodiment, which is applied to a terminal device as shown in fig. 1, including the following steps.
In step S11, a first screen in a preview state is acquired in a photographing interface.
The first picture may be a picture in a preview state in the photographing interface in the photographing mode, and may be a preview picture before the video photographing starts in the photographing interface in the video recording mode.
In step S12, a second screen in the target zoom state determined in the first screen is acquired.
The second screen may be a screen region including a certain target, for example, a screen region including a certain peak, or a screen region including a certain person, in the first screen. The target zoom state may be a focal length state after zooming in the target in the first frame, that is, it may be understood that the second frame is a portion of the first frame to be zoomed in.
In step S13, a first target zoom rate is determined.
It will be appreciated that the size of the zoom rate may be expressed in terms of the amount of time required to complete the zoom operation, i.e. the length of time required to zoom in from the first to the second picture. The longer the time required, the smaller the representative zoom rate, and conversely, the shorter the time required, the greater the representative zoom rate. Alternatively, the focal length change amount per unit time may be set as the first target zoom rate.
In step S14, in response to an instruction to perform a zooming operation, a first zooming operation is performed from the first screen to the second screen according to the first target zooming rate.
Wherein the first zooming operation automatically completes zooming from the first picture to the second picture according to the first target zooming rate.
It will be understood that the first zoom operation described above is to gradually zoom in on the second screen of the first screen currently displayed, according to the first target zoom rate described above, until the screen displayed in the photographing interface is completely changed to the second screen.
For example, when the terminal device enters the shooting interface, the currently displayed picture in the preview state is a first picture with a wider shooting angle, wherein the first picture comprises a nearby person and a distant peak, and if the user of the terminal device selects the distant peak, for example, a picture in a certain area comprising the peak is selected as the second picture, and then the user selects the first target zoom rate to be 3 seconds, the setting of one zoom operation is completed, the zoom operation can be immediately executed according to the setting, the device can be stored, and the zoom operation is triggered again in the subsequent shooting. When the terminal device receives an instruction to perform a zooming operation, a peak screen in the first screen is gradually enlarged, and at 3 rd seconds after starting zooming, a screen displayed in the photographing interface becomes the peak screen.
In the above technical solution, under a shooting interface, a first frame in a preview state is first acquired, then a second frame in a target zoom state determined in the first frame is acquired, then a first target zoom rate is determined, and in response to an instruction to perform a zoom operation, a first zoom operation from the first frame to the second frame is performed according to the first target zoom rate. Through the technical scheme, the target picture and the zooming rate can be determined, automatic zooming is realized, and the continuity and stability of the zooming process can be improved.
Fig. 2 is a flowchart illustrating a zoom control method according to an exemplary embodiment, and as shown in fig. 2, the step S12 of acquiring the second screen in the target zoom state determined in the first screen may include the steps of:
step S121, identifying at least one target subject in the first screen;
Step S122, the at least one target subject is displayed in the first picture in an enhanced manner, and the user is prompted to select among the at least one target subject;
Step S123, under the condition that a first selection instruction is received, acquiring a first target subject indicated by the first selection instruction, wherein the first target subject is any subject in the at least one target subject;
step S124, determining a picture area corresponding to the first target main body, and obtaining the second picture.
For example, upon entering a camera shooting interface of the terminal device, in a first screen in a preview state, a target subject that may need to be enlarged by a zoom operation, for example, a person in the screen, a distant landscape, or the like, may be provided by an AI (ARTIFICIAL INTELLIGENCE ) algorithm. The target subjects are displayed in the first screen in an enhanced manner for selection by a user. When the user selects a first target subject from the target subjects, the screen area corresponding to the first target subject is used as a second screen. Fig. 3 is a schematic diagram illustrating a zoom control method according to an exemplary embodiment, in which, as shown in fig. 3, in a first screen in a camera preview state, a person and an aerial bird in the screen are provided as target subjects, and a user is prompted to make a selection by framing the person and the bird in the screen. In one possible implementation, when the user selects the person as the target subject, the screen area corresponding to the person may be used as the second screen.
In another possible scenario, the target subject provided by the AI algorithm is not the user's target selection, at which point the user may make a manual selection. Fig. 4 is a flowchart illustrating a zoom control method according to another exemplary embodiment, as shown in fig. 4, the step S12 of acquiring the second screen in the target zoom state determined in the first screen may include the steps of:
step S125, receiving a manual selection operation in the first screen;
step S126, determining the picture area selected by the manual selection operation to obtain the second picture.
Fig. 5 is a schematic diagram illustrating a zoom control method according to another exemplary embodiment, and when the target subject of the user is a cloud in the sky, as illustrated in fig. 5, an area of the target subject may be drawn on the screen by a finger, and at this time, a screen area selected by the manual operation may be determined as the second screen.
Further, after the first screen and the second screen are acquired, determination of the zoom rate may be performed. Fig. 6 is a flowchart illustrating a zoom control method according to an exemplary embodiment, and as shown in fig. 6, determining the first target zoom rate in step S13 may include the steps of:
step S131, displaying a plurality of preset zooming rates;
Step S132, receiving a second selection instruction, wherein the second selection instruction is used for indicating a zoom rate selected by a user from a plurality of preset zoom rates;
Step S133, determining the zoom rate indicated by the second selection instruction as the first target zoom rate.
For example, in the preview state of the camera, a preset plurality of zoom rates may be displayed in the screen, and as described above, the size of the zoom rate may be expressed by the length of time required to complete the zooming operation, the longer the time required to represent the smaller zoom rate, whereas the shorter the time required to represent the larger zoom rate, for example, the preset zoom rate may be three common choices of 1s, 2s, and 3 s. Fig. 7 is a schematic diagram showing a zoom control method according to an exemplary embodiment, in which 1s, 2s, and 3s are displayed on the right side of the preview screen, as shown in fig. 7, and the user can select 2s as the first target zoom rate.
In another possible scenario, the user may customize the target zoom rate in addition to the zoom rate provided by default. Fig. 8 is a flowchart illustrating a zoom control method according to another exemplary embodiment, and as shown in fig. 8, determining the first target zoom rate in step S13 may include the steps of:
step S134 of displaying an operation area for setting a zoom rate;
step S135 of generating a zoom rate setting instruction for instructing a user to customize a set zoom rate in response to a zoom rate setting operation performed in the operation area;
step S136, determining the zoom rate indicated by the zoom rate setting instruction as the first target zoom rate.
Illustratively, when the user does not select a zoom rate of 1s, 2s or 3s, the user may slide in the rate selection area, will trigger a custom gear, and the user may customize the zoom rate between 0.5s-4 s. Fig. 9 is a schematic diagram illustrating a zoom control method according to an exemplary embodiment, and as shown in fig. 9, a user may customize 1.6s as a first target zoom rate.
Further, after the first target zoom rate is determined, a first zoom operation may be performed. Fig. 10 is a flowchart of a zoom control method according to an exemplary embodiment, and as shown in fig. 10, in response to an instruction to perform a zoom operation in step S14, a first zoom operation for zooming from the first screen to the second screen according to the first target zoom rate may include the following steps:
in step S141, during video capturing, in response to an instruction to perform a zooming operation, a first zooming operation is performed from the first screen to the second screen according to the first target zoom rate.
Optionally, during the first zooming operation, a slow start or slow stop function of zooming may be implemented, that is, starting from the starting time of the first zooming operation, the zooming speed of the first zooming operation is increased from zero to the first target zooming speed according to a set acceleration rate, where the acceleration rate is a rate increment of unit time;
and/or the number of the groups of groups,
And reducing the zoom speed of the first zoom operation from the first target zoom speed to zero at a set deceleration rate, which is a rate reduction amount per unit time, from a set time before the termination time of the first zoom operation.
In a possible implementation manner, each time before the ending time of the first zoom operation may be traversed, so that it may be determined that the first target zoom rate is reduced to zero from a certain time a, that is, when the first zoom operation reaches the ending time, the time a may be used as the set time.
The first target zoom rate may be the amount of time required to complete the zooming operation, or may be the amount of change in the focal length per unit time, where the amount of time required to complete the zooming operation and the amount of change in the focal length per unit time may be converted. In the case where the first target zoom rate is converted into the amount of change in focal length per unit time, the amount of change may be in units of magnification, for example, the magnification of the first screen is 1X (magnification is 1 time), the magnification of the second screen is 10X (magnification is 10 times), and the time required to complete the zoom operation is 5 seconds, the first target zoom rate may be converted into 2X/sec; or the change amount may be in units of an actual focal length, for example, the focal length of the first screen is 18mm, the focal length of the second screen is 200mm, and the time required for completing the zooming operation is 5 seconds, the first target zoom rate may be converted to 36.4 mm/second.
For the acceleration rate or the deceleration rate described above, the unit time (which may be the same as or different from the unit time described above for representing the first target zoom rate) may be set according to actual needs, and may be, for example, 1 second, 0.5 second, or the like. As described above, the acceleration rate is a rate increase amount per unit time, the deceleration rate is a rate decrease amount per unit time, and the magnification or the actual focal length may be used as the rate increase amount or the rate decrease amount, which is similar to the first target zoom rate described above, and will not be described again.
In step S142, the first frame and the second frame are marked as a start key frame and an end key frame of the target video currently photographed, respectively.
In step S143, after the capturing of the target video is completed, the target video marked with the start key frame and the end key frame is saved.
It can be appreciated that after completing video recording using the zoom control method provided by the embodiments of the present disclosure, the user may re-edit the rate for the saved local video. Fig. 11 is a flowchart illustrating a zoom control method according to an exemplary embodiment, as shown in fig. 11, which may include the steps of:
step S15, the starting key frame and the ending key frame are called;
Step S16, determining the first video content from the start key frame to the end key frame in the target video;
Step S17, obtaining a second target zoom rate;
Step S18, zooming the target video content from the initial key frame to the end key frame according to the second target zooming rate to obtain second video content;
step S19, obtaining the modified target video according to the second video content.
For example, for this target video that is completed according to the first zoom rate, the zoom rate may be modified later to obtain a video that is better presented. For example, the zoom rate of the target video is 2s, and may be modified to 3s, it may be understood that the first video is a video formed by multiple frames of images included from the start key frame to the end key frame, and the first video content may be a part or all of the target video, for example, during the recording of the target video, the first zoom operation is only a part of the content during the recording, and then the first video is a part of the content of the target video. The method for obtaining the second target zoom rate in step S17 is the same as that in steps S131 to S136 described above, and will not be described again. In addition, it should be noted that, in the recording process of the target video, multiple zooming operations may be performed, where the first zooming operation is any one zooming operation of the multiple zooming operations, and the method of other zooming operations of the multiple zooming operations may refer to the first zooming operation and will not be described herein.
In one possible implementation, for video that the user completes through a manual zoom operation, video effect optimization may also be performed by post-modification of the zoom rate. Fig. 12 is a flowchart illustrating a zoom control method according to an exemplary embodiment, as shown in fig. 12, for a user manual zoom operation procedure, the method may include the steps of:
step S21, identifying the starting time and the ending time of the manual zooming operation in the process of video shooting;
Step S22, marking a third picture corresponding to the starting moment and a fourth picture corresponding to the ending moment as a starting key frame and an ending key frame of the target video shot currently respectively;
step S23, after the shooting of the target video is completed, the target video marked with the start key frame and the end key frame is saved.
The method for modifying the focal rate in the latter stage is the same as that in the previous steps S15 to S19, and will not be repeated here.
Fig. 13 is a block diagram illustrating a zoom control apparatus 300 applied to a terminal device according to an exemplary embodiment, and referring to fig. 13, the apparatus includes a first acquisition module 310, a second acquisition module 320, a determination module 330, and a zoom module 340.
The first obtaining module 310 is configured to obtain a first picture in a preview state under a shooting interface;
the second obtaining module 320 is configured to obtain a second screen in the target zoom state determined in the first screen;
the determination module 330 is configured to determine a first target zoom rate;
The zoom module 340 is configured to perform a first zoom operation of zooming from the first screen to the second screen according to the first target zoom rate in response to an instruction to perform the zoom operation.
Optionally, the second obtaining module 320 includes: the display module comprises an identification sub-module, a first display sub-module, an acquisition sub-module and a first determination sub-module;
The identification sub-module is configured to identify at least one target subject in the first screen;
the first display sub-module is configured to display the at least one target main body in an enhanced mode in the first picture and used for prompting a user to select among the at least one target main body;
The acquisition sub-module is configured to acquire a first target main body indicated by a first selection instruction under the condition that the first selection instruction is received, wherein the first target main body is any main body in the at least one target main body;
The first determining submodule is configured to determine a picture area corresponding to the first target main body and obtain the second picture.
Optionally, the second obtaining module 320 includes: a first receiving sub-module;
The first receiving sub-module is configured to receive a manual selection operation in the first screen;
The first determining submodule is further configured to determine a picture area selected by the manual selection operation to obtain the second picture.
Optionally, the determining module 330 includes: the second display sub-module, the second receiving sub-module and the second determining sub-module.
The second display sub-module is configured to display a plurality of preset zoom rates;
the second receiving sub-module is configured to receive a second selection instruction, and the second selection instruction is used for indicating a zooming rate selected by a user from a plurality of preset zooming rates;
the second determination submodule is configured to determine a zoom rate indicated by the second selection instruction as the first target zoom rate.
Optionally, the determining module 330 includes: generating a sub-module;
The second display sub-module is further configured to display an operation area for setting a zoom rate;
the generating sub-module is configured to respond to the zoom rate setting operation performed in the operation area and generate a zoom rate setting instruction, wherein the zoom rate setting instruction is used for indicating a user-defined set zoom rate;
The second determination submodule is further configured to determine a zoom rate indicated by the zoom rate setting instruction as the first target zoom rate.
Optionally, in the case that the terminal device is in the video recording mode, the zooming module 340 includes: a zoom sub-module, a mark sub-module and a storage sub-module.
The zooming sub-module is configured to respond to an instruction for executing zooming operation in the process of video shooting, and performs zooming operation from the first picture to the second picture according to the first target zooming rate;
The marking sub-module is configured to mark the first picture and the second picture as a starting key frame and a ending key frame of a target video shot at present respectively;
The storage sub-module is configured to store the target video marked with the start key frame and the end key frame after the target video shooting is completed.
Optionally, the zoom control apparatus 300 further includes: the device comprises an identification module, a marking module and a storage module;
The identification module is configured to identify the starting time and the ending time of the manual zooming operation in the video shooting process;
The marking module is configured to mark a third picture corresponding to the starting moment and a fourth picture corresponding to the ending moment as a starting key frame and an ending key frame of the target video shot at present respectively;
The storage module is configured to store the target video marked with the start key frame and the end key frame after the target video shooting is completed.
Optionally, the zoom control apparatus 300 includes: the system comprises a calling module, a third acquisition module and a processing module;
the calling module is configured to call the starting key frame and the ending key frame;
The determining module 330 is further configured to determine a first video content in the target video from the start key frame to the end key frame;
the third acquisition module is configured to acquire a second target zoom rate;
the zooming module 340 is further configured to zoom the target video content from the start key frame to the end key frame according to the second target zoom rate to obtain a second video content;
The processing module is configured to obtain a modified target video according to the second video content.
Optionally, the zoom module 340 is configured to:
Starting from the starting moment of the first zooming operation, increasing the zooming speed of the first zooming operation from zero to the first target zooming speed according to a set accelerating speed, wherein the accelerating speed is the speed increasing amount of unit time;
and/or the number of the groups of groups,
And reducing the zoom speed of the first zoom operation from the first target zoom speed to zero at a set deceleration rate, which is a rate reduction amount per unit time, from a set time before the termination time of the first zoom operation.
In the above technical solution, under a shooting interface, a first frame in a preview state is first acquired, then a second frame in a target zoom state determined in the first frame is acquired, then a first target zoom rate is determined, and in response to an instruction to perform a zoom operation, a first zoom operation from the first frame to the second frame is performed according to the first target zoom rate. Through the technical scheme, the target picture and the zooming rate can be determined, automatic zooming is realized, and the continuity and stability of the zooming process can be improved.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
The present disclosure also provides a computer-readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the steps of the zoom control method provided by the present disclosure.
Fig. 14 is a block diagram illustrating an apparatus 800 for zoom control according to an example embodiment. For example, apparatus 800 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, exercise device, personal digital assistant, or the like.
Referring to fig. 14, apparatus 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the apparatus 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to perform all or part of the steps of the zoom control method described above. Further, the processing component 802 can include one or more modules that facilitate interactions between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the apparatus 800. Examples of such data include instructions for any application or method operating on the device 800, contact data, phonebook data, messages, pictures, videos, and the like. The memory 804 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power supply component 806 provides power to the various components of the device 800. The power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device 800.
The multimedia component 808 includes a screen between the device 800 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and/or a rear camera. The front camera and/or the rear camera may receive external multimedia data when the apparatus 800 is in an operational mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 further includes a speaker for outputting audio signals.
Input/output interface 812 provides an interface between processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 814 includes one or more sensors for providing status assessment of various aspects of the apparatus 800. For example, the sensor assembly 814 may detect an on/off state of the device 800, a relative positioning of the components, such as a display and keypad of the device 800, the sensor assembly 814 may also detect a change in position of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, an orientation or acceleration/deceleration of the device 800, and a change in temperature of the device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communication between the apparatus 800 and other devices, either in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as WiFi,2G or 3G, or a combination thereof. In one exemplary embodiment, the communication component 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for performing the above-described zoom control method.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as memory 804 including instructions executable by processor 820 of apparatus 800 to perform the above-described zoom control method. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
In another exemplary embodiment, a computer program product is also provided, comprising a computer program executable by a programmable apparatus, the computer program having code portions for performing the above-described zoom control method when executed by the programmable apparatus.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (12)

1. A zoom control method, characterized by being applied to a terminal device, the method comprising:
Acquiring a first picture in a preview state under a shooting interface;
Acquiring a second picture in the target zoom state determined in the first picture;
Determining a first target zoom rate;
in response to an instruction to perform a zooming operation, a first zooming operation is performed from the first screen to the second screen according to the first target zoom rate.
2. The method according to claim 1, wherein the acquiring the second screen in the target zoom state determined in the first screen includes:
Identifying at least one target subject in the first screen;
The at least one target main body is displayed in an intensified mode in the first picture and is used for prompting a user to select from the at least one target main body;
Under the condition that a first selection instruction is received, acquiring a first target main body indicated by the first selection instruction, wherein the first target main body is any main body in the at least one target main body;
And determining a picture area corresponding to the first target main body to obtain the second picture.
3. The method according to claim 1, wherein the acquiring the second screen in the target zoom state determined in the first screen includes:
Receiving a manual selection operation in the first screen;
And determining the picture area selected by the manual selection operation to obtain the second picture.
4. The method of claim 1, wherein the determining the first target zoom rate comprises:
displaying a plurality of preset zooming rates;
receiving a second selection instruction, wherein the second selection instruction is used for indicating a zooming rate selected by a user from a plurality of preset zooming rates;
and determining the zoom rate indicated by the second selection instruction as the first target zoom rate.
5. The method of claim 1, wherein the determining the first target zoom rate comprises:
Displaying an operation area for setting a zoom rate;
generating a zoom rate setting instruction for instructing a user to customize a set zoom rate in response to a zoom rate setting operation performed in the operation area;
and determining the zoom rate indicated by the zoom rate setting instruction as the first target zoom rate.
6. The method according to claim 1, wherein the performing a first zoom operation from the first screen to the second screen according to the first target zoom rate in response to an instruction to perform a zoom operation in a case where the terminal device is in a video recording mode, comprises:
In the process of video shooting, responding to an instruction for executing zooming operation, and carrying out zooming operation from the first picture to the second picture according to the first target zooming rate;
marking the first picture and the second picture as a starting key frame and a stopping key frame of a target video shot at present respectively;
After the target video shooting is completed, the target video marked with the starting key frame and the ending key frame is stored.
7. The method according to claim 1, wherein the method further comprises:
during the video shooting process, identifying the starting time and the ending time of the manual zooming operation;
Marking a third picture corresponding to the starting moment and a fourth picture corresponding to the ending moment as a starting key frame and an ending key frame of the target video shot currently respectively;
After the target video shooting is completed, the target video marked with the starting key frame and the ending key frame is stored.
8. The method according to claim 6 or 7, characterized in that the method comprises:
invoking the start key frame and the end key frame;
determining first video content from the start key frame to the end key frame in the target video;
Acquiring a second target zoom rate;
Performing a second zooming operation from the initial key frame to the termination key frame according to the second target zooming rate on the target video content to obtain second video content;
and obtaining the modified target video according to the second video content.
9. The method of claim 1, wherein the performing a first zoom operation from the first frame to the second frame according to the first target zoom rate comprises:
Starting from the starting moment of the first zooming operation, increasing the zooming speed of the first zooming operation from zero to the first target zooming speed according to a set accelerating speed, wherein the accelerating speed is the speed increasing amount of unit time;
and/or the number of the groups of groups,
And reducing the zoom speed of the first zooming operation from the first target zoom speed to zero according to a set deceleration rate from a set time before the termination time of the first zooming operation, wherein the deceleration rate is the rate reduction amount per unit time.
10. A zoom control apparatus, characterized by being applied to a terminal device, comprising:
The first acquisition module is configured to acquire a first picture in a preview state under a shooting interface;
a second acquisition module configured to acquire a second screen in a target zoom state determined in the first screen;
a determination module configured to determine a first target zoom rate;
And a zoom module configured to perform a first zoom operation of zooming from the first screen to the second screen according to the first target zoom rate in response to an instruction to perform the zoom operation.
11. A zoom control apparatus, comprising:
A processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to: executing the executable instructions to implement the steps of the zoom control method of any one of claims 1-9.
12. A computer readable storage medium having stored thereon computer program instructions, which when executed by a processor, implement the steps of the method of any of claims 1-9.
CN202211610565.2A 2022-12-14 2022-12-14 Zoom control method, device and storage medium Pending CN118200720A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211610565.2A CN118200720A (en) 2022-12-14 2022-12-14 Zoom control method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211610565.2A CN118200720A (en) 2022-12-14 2022-12-14 Zoom control method, device and storage medium

Publications (1)

Publication Number Publication Date
CN118200720A true CN118200720A (en) 2024-06-14

Family

ID=91401338

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211610565.2A Pending CN118200720A (en) 2022-12-14 2022-12-14 Zoom control method, device and storage medium

Country Status (1)

Country Link
CN (1) CN118200720A (en)

Similar Documents

Publication Publication Date Title
CN110557547B (en) Lens position adjusting method and device
CN108462833B (en) Photographing method, photographing device and computer-readable storage medium
CN107015648B (en) Picture processing method and device
CN104216525B (en) Method and device for mode control of camera application
CN112929561B (en) Multimedia data processing method and device, electronic equipment and storage medium
CN109167921B (en) Shooting method, shooting device, shooting terminal and storage medium
CN115134505B (en) Preview picture generation method and device, electronic equipment and storage medium
EP3905660A1 (en) Method and device for shooting image, and storage medium
CN111461950B (en) Image processing method and device
CN114666490B (en) Focusing method, focusing device, electronic equipment and storage medium
CN108769513B (en) Camera photographing method and device
CN118200720A (en) Zoom control method, device and storage medium
CN107707819B (en) Image shooting method, device and storage medium
CN114071004A (en) Moon image acquisition method and device, electronic equipment and storage medium
CN107295229B (en) The photographic method and device of mobile terminal
CN108206910B (en) Image shooting method and device
CN114339018B (en) Method and device for switching lenses and storage medium
CN113766115B (en) Image acquisition method, mobile terminal, device and storage medium
CN114339017B (en) Distant view focusing method, device and storage medium
CN111464753B (en) Picture shooting method and device and storage medium
CN106713748B (en) Method and device for sending pictures
CN109862252B (en) Image shooting method and device
CN117546071A (en) Zoom method, zoom device, electronic apparatus, and storage medium
CN118158519A (en) Shooting method, shooting device, storage medium and electronic equipment
CN106959875B (en) Front camera opening method, device and equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination