CN112738401B - Zooming method and device and electronic equipment - Google Patents

Zooming method and device and electronic equipment Download PDF

Info

Publication number
CN112738401B
CN112738401B CN202011603686.5A CN202011603686A CN112738401B CN 112738401 B CN112738401 B CN 112738401B CN 202011603686 A CN202011603686 A CN 202011603686A CN 112738401 B CN112738401 B CN 112738401B
Authority
CN
China
Prior art keywords
target object
preview interface
zooming
shooting preview
input
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.)
Active
Application number
CN202011603686.5A
Other languages
Chinese (zh)
Other versions
CN112738401A (en
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.)
Vivo Mobile Communication Hangzhou Co Ltd
Original Assignee
Vivo Mobile Communication Hangzhou 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 Vivo Mobile Communication Hangzhou Co Ltd filed Critical Vivo Mobile Communication Hangzhou Co Ltd
Priority to CN202011603686.5A priority Critical patent/CN112738401B/en
Publication of CN112738401A publication Critical patent/CN112738401A/en
Application granted granted Critical
Publication of CN112738401B publication Critical patent/CN112738401B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/67Focus control based on electronic image sensor signals

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Studio Devices (AREA)

Abstract

The application discloses a zooming method, a zooming device and electronic equipment, wherein the method comprises the following steps: receiving a first input of a user under the condition that a shooting preview interface is displayed; responding to the first input, updating the display proportion occupied by the target object in the shooting preview interface, and executing zooming processing according to the zooming speed associated with the real-time display proportion of the target object in the process of updating the display proportion; and under the condition that the display proportion of the target object in the shooting preview interface is in different display proportion ranges, the zooming speed of zooming processing is different. According to the embodiment of the application, the image can be adjusted to a proper size based on the fact that the shooting object is fast and convenient without multiple operations of a user, the zooming magnification ratio required by the user is automatically achieved by fast zooming the shooting preview interface, the zooming time is shortened, and the zooming efficiency is improved.

Description

Zooming method and device and electronic equipment
Technical Field
The application belongs to the technical field of camera shooting, and particularly relates to a zooming method and device and electronic equipment.
Background
At present, with the continuous upgrading and upgrading of terminal cameras, the zoom range supported by terminal photographing is larger and larger, and the maximum zoom magnification of 100 times or more is appeared at present. When a user shoots an object, the preview interface needs to be continuously zoomed, so that the shooting focal length is adjusted, and a better shooting effect is obtained. In the prior art, if an object to be photographed is far away and small, a user needs to perform double-finger zooming for many times, and the object is easily zoomed in or zoomed out excessively, so that repeated operations are needed, and the operation process is complicated.
Disclosure of Invention
The embodiment of the application aims to provide a zooming method, a zooming device and electronic equipment, which can solve the problem that the operation process is complicated when photographing and zooming are carried out.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a zooming method, including:
receiving a first input of a user under the condition that a shooting preview interface is displayed;
responding to the first input, updating the display proportion occupied by the target object in the shooting preview interface, and executing zooming processing according to the zooming speed associated with the real-time display proportion of the target object in the process of updating the display proportion;
and under the condition that the display proportion of the target object in the shooting preview interface is in different display proportion ranges, the zooming speed of zooming processing is different.
In a second aspect, an embodiment of the present application provides a zoom apparatus, including:
the first receiving module is used for receiving a first input of a user under the condition of displaying a shooting preview interface;
the first response module is used for responding to the first input, updating the display proportion of the target object in the shooting preview interface, and executing zooming processing according to the zooming speed related to the real-time display proportion of the target object in the process of updating the display proportion;
and under the condition that the display proportion of the target object in the shooting preview interface is in different display proportion ranges, the zooming speed of zooming processing is different.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In the embodiment of the application, when a first input of a user is received, and the display proportion occupied by the shooting preview interface of a target object in the shooting preview interface is adjusted according to the first input, zooming processing is executed according to the zooming speed associated with the display proportion, an image can be quickly and conveniently adjusted to a proper size based on the shooting object without multiple operations of the user, the shooting preview interface is quickly zoomed to the zooming magnification desired by the user, zooming time is shortened, and zooming efficiency is improved.
Drawings
Fig. 1 is a schematic flow chart of a zooming method according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a preview interface for shooting according to an embodiment of the present application;
FIG. 3 is a second schematic diagram of a preview interface of the embodiment of the present application;
fig. 4 is a third schematic diagram of a shooting preview interface according to the embodiment of the present application;
FIG. 5 is a schematic diagram illustrating a variation of zoom speed according to an embodiment of the present application;
FIG. 6 is a second schematic diagram illustrating the variation of the zoom speed according to the embodiment of the present application;
FIG. 7 is a third schematic diagram illustrating the variation of the zoom speed according to the embodiment of the present application;
FIG. 8 is a fourth schematic view illustrating the variation of the zoom speed according to the embodiment of the present application;
FIG. 9 is a fourth illustration of a preview interface for shooting in accordance with an embodiment of the present application;
fig. 10 is a schematic structural diagram of a zoom apparatus according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 12 is a second schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The features of the terms first and second in the description and in the claims of the present application may explicitly or implicitly include one or more of such features. In the description of the present invention, "a plurality" means two or more unless otherwise specified. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
In the description of the present invention, it is to be understood that the terms "center", "longitudinal", "lateral", "up", "down", "front", "back", "left", "right", and the like, indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, are only for convenience in describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and thus, should not be construed as limiting the present invention.
As shown in fig. 1, an embodiment of the present invention provides a zooming method, including:
step 101, receiving a first input of a user when a shooting preview interface is displayed.
The scene of the scheme can be a scene that a user wants to quickly zoom to a better shooting magnification during shooting. The shooting preview interface is a preview interface used for displaying preview images after the camera is opened. The first input may be input by a user to a preview image displayed by the shooting preview interface, for example: a double click, a long press, a slide, a click operation, etc. for triggering enlargement or reduction of the preview image. The first input is used for triggering the electronic equipment camera to zoom, so that the object in the preview image is enlarged or reduced.
Under the condition that the electronic equipment displays a shooting preview interface, the electronic equipment acquires a first input of a user in real time, so that zooming is performed according to the first input.
Step 102, responding to the first input, updating the display proportion of a target object in the shooting preview interface, and executing zooming processing according to the zooming speed associated with the real-time display proportion of the target object in the process of updating the display proportion; and under the condition that the display proportion of the target object in the shooting preview interface is in different display proportion ranges, the zooming speed of zooming processing is different.
The target object is an object included in a preview image displayed on the shooting preview interface. Under the condition that the electronic equipment receives the first input, triggering zooming processing of a camera, and adjusting the display proportion of the target object in the shooting preview interface by the electronic equipment according to the first input, namely, magnifying or reducing the preview image according to the first input so as to change the display proportion of the target object in the shooting preview interface; executing zoom processing at a zoom speed corresponding to the display scale while adjusting the display scale of the target object.
Alternatively, a plurality of display scale ranges may be preset, and zoom speeds corresponding to different scale ranges may be set, for example: when the display proportion of the target object on the shooting preview interface is within the range of 0-50%, the zooming speed of the camera of the electronic equipment for executing zooming processing is a first speed; when the display proportion of the target object on the shooting preview interface is 50% -80%, the zooming speed of the camera for executing zooming processing is the second speed; and when the display proportion of the target object on the shooting preview interface is more than 80%, the zooming speed of the camera for executing the zooming processing is a third speed.
The method can be applied to the scene that a user wants to quickly zoom to a better shooting magnification when shooting, when receiving the first input of the user, the method can adjust the target object in the shooting preview boundary according to the first input and execute the zooming processing according to the zooming speed associated with the display proportion when the display proportion occupied by the shooting preview interface is adjusted, the image can be adjusted to a proper size based on the quick and convenient shooting of the shooting object without multiple operations of the user, the shooting preview interface can be automatically quickly zoomed to the zoom magnification wanted by the user, the zooming time is shortened, and the zooming efficiency is improved.
As an alternative embodiment, in the case of displaying the photographing preview interface, the method further includes: acquiring N objects with complete outlines in a preview image displayed by the shooting preview interface; and determining the target object according to the areas of the N objects.
In this embodiment, any one or more objects in the preview image displayed by the shooting preview interface may be the target object. In this embodiment, the target object is determined according to the area of each of the N objects, and the target object may be an object with the largest area among the N objects, or may be an object with the smallest area among the N objects.
In a case that a shooting preview interface is displayed, an electronic device detects, in real time, objects included in a preview image displayed by the shooting preview interface, where objects with obvious contours are all objects included in the preview image, and specifically, objects with complete contours and objects with incomplete contours may be included in the preview image, in this embodiment, objects with complete contours are used as a candidate set of the target objects, and the target objects are determined according to areas of N objects in the candidate set, for example: the target object may be the object with the largest area among the N objects, or the object with the smallest area among the N objects.
Taking the preview image of the shooting preview interface as an example as shown in fig. 2, in order to shoot an object on a table, a book is placed on the table, and an eraser is placed on the book, the preview image includes three objects with distinct outlines, namely, the table 21, the book 22, and the eraser 23, wherein the outline of the table 21 is incomplete, and the book 22 and the eraser 23 have complete outlines, both the book 22 and the eraser 23 can be used as the target object, when the target object is determined, if the object with the largest area is used as the target object, the target object is the book 22, and if the object with the smallest area is used as the target object, the target object is the eraser 23.
Taking the preview image of the shooting preview interface as shown in fig. 3 as an example, for shooting of a landscape, it may be shooting on a road going up a mountain, where there is a tree in a short distance from the shooting, there is a peak in a long distance, there is a building in the peak, and the preview image includes three objects with distinct outlines, namely, the peak 31, the tree 32, and the building 33, where the outline of the peak 31 is incomplete, and the tree 32 and the building 33 have complete outlines, both the tree 32 and the building 33 may be taken as the target object, when determining the target object, if the object with the largest area is taken as the target object, the target object is the tree 32, and if the object with the smallest area is taken as the target object, the target object is the building 33.
After the target object is selected, the electronic equipment executes zooming operation and simultaneously adjusts the preview image displayed on the shooting preview interface. For example: when the target object is a book 22 and the first input is an enlargement operation, the electronic device enlarges the preview image shown in fig. 2 according to the first input, and in the process of enlarging the preview image, as shown in fig. 4, the display proportion of the book 22 in the shooting preview interface is continuously increased, the rubber 23 is also continuously increased, and the zoom speed of the zoom processing is also continuously changed according to the change of the display proportion of the book 22. When the first input is a zoom-out operation, the process of zooming out the preview image by the electronic device according to the first input is similar to the zooming-in process, and only the zooming-in is changed into zooming-out, which is not described herein again.
According to the embodiment, the target object which is referred to when zooming processing is executed is determined according to the area of the N objects in the shooting preview interface, the zooming speed is adjusted based on the display proportion of the target object in the shooting preview interface, so that the zooming processing is executed, the display proportion of the target object is combined with the zooming speed, a preview image of the shooting preview interface can be adjusted to a proper size more quickly and effectively, and the zooming efficiency is improved.
As another alternative embodiment, the target object may also be determined by the user. Specifically, in the case of displaying a shooting preview interface, the method may further include: receiving a second input of the shooting preview interface by the user; in response to the second input, determining an object of the second input at an input position of the photographing preview interface as a target object.
In this embodiment, when shooting, a user may select a target object according to a shooting requirement of the user, and the first input is an input performed for the target object. The second input is used to select the target object, and the second input may be a click operation of the user on the shooting preview interface, that is, if the user clicks an object displayed on the shooting preview interface, the clicked object is determined as the target object. Taking the shooting preview interface as shown in fig. 2 as an example, assuming that a user clicks the book 22 shown in fig. 2, the book 22 is the target object, the first input performed by the user is an amplification operation with the book 22 as a focus, the electronic device amplifies the preview image displayed on the shooting preview interface with the book 22 as a reference, and in the process of amplifying the preview image, the zoom speed of executing the zoom processing is continuously changed along with the continuous increase of the proportion of the book 22 in the shooting preview interface.
Assuming that the user clicks the eraser 23 shown in fig. 2, the eraser 23 is the target object, the first input performed by the user is an enlarging operation with the eraser 23 as a focus, when the electronic device enlarges the preview image displayed on the shooting preview interface, zoom processing is performed according to the display proportion of the eraser 23 in the shooting preview interface, and the zoom speed for performing zoom processing continuously changes with the increasing proportion of the eraser 23 in the shooting preview interface.
Taking the shooting preview interface as shown in fig. 3 as an example, if a user clicks a distant building in an enlarging process, an object that the user wants to shoot is determined as the building 33, if the user slides the shooting preview interface with two fingers to perform an enlarging operation, the building 33 is the target object, and a first input performed by the user is an enlarging operation taking the building 33 as a focus, in a process that the electronic device enlarges a preview image displayed on the shooting preview interface, a zoom speed of executing zoom processing continuously changes along with continuous increase of a proportion of the building 33 in the shooting preview interface, thereby helping the user quickly switch to shooting a better focus segment of the building 33.
According to the embodiment, the target object referred to when the zooming processing is executed is determined according to the second input of the user to the shooting preview interface, the user can determine the target object according to the shooting requirement, the zooming speed is adjusted according to the display proportion of the target object in the shooting preview interface, the zooming processing is executed, the display proportion of the target object is combined with the zooming speed, and the preview image of the shooting preview interface can be adjusted to be in a proper size more quickly and effectively. The zooming efficiency is improved.
Further, after a target object is determined, adjusting the display proportion occupied by the target object in the shooting preview interface according to the first input, and when zooming processing is executed at a zooming speed corresponding to the display proportion, continuously adjusting the display proportion occupied by the target object according to the first input of a user until the user stops the first input; the target object may also be adjusted to a preset proportional value when the first input is received, where the preset proportional value may be data obtained according to actual shooting experience or experiments, and is an optimal value that is clear and has a harmonious picture proportion when the target object is shot.
Specifically, the updating, in response to the first input, a display ratio of a target object in the shooting preview interface, and executing zoom processing according to a zoom speed associated with a real-time display ratio of the target object in a process of updating the display ratio may include:
1) executing zoom processing at a first zoom speed under the condition that the display proportion of the target object in the shooting preview interface is smaller than a first threshold value;
in this embodiment, the first threshold may be a relatively high value required for the shooting quality such as the picture sharpness when the target object is shot. For example: for the book 22 in fig. 2, when the ratio of the book 22 in the shooting preview interface reaches 80%, the clarity of the shot book and the picture composition are better, and the corresponding focal segment when the ratio of the book 22 in the shooting preview interface is less than 80% is determined as the focal segment that the user does not want to stop.
And after first input of a user is received, adjusting the size of the shooting preview interface according to the first input. And executing zooming processing at a first zooming speed in the process of changing the display proportion occupied by the target object to the first threshold value. The first zooming speed can be higher than a preset reference speed of the focal length, that is, when the proportion of the target object is smaller than the first threshold, the electronic device performs zooming processing at a faster zooming speed, so that the electronic device can conveniently and quickly skip the focal length where the user does not want to stay, and fast zooming is realized.
2) Executing zooming processing at a second zooming speed under the condition that the display proportion of the target object in the shooting preview interface is larger than or equal to the first threshold and the target object does not exceed the display range of the shooting preview interface;
in this embodiment, the second zoom speed is less than the first zoom speed. When the proportion of the target object is greater than or equal to the first threshold and the target object does not exceed the display range of the shooting preview interface, determining the proportion range as a better range for shooting the target object, wherein the image of the target object in the proportion range is an image which is shot by a user with high probability, and when the proportion of the target object is in the proportion range, the zooming speed is reduced.
When the display proportion occupied by the target object is from the first threshold to the target object does not exceed the display range of the shooting preview interface, the second speed may be smaller than a reference speed preset in the focal section corresponding to the display proportion range.
For example: for the book 22 in fig. 2, when the ratio of the book 22 in the shooting preview interface reaches 80%, the clarity of the shot book and the picture composition are better, and when the ratio of the book 22 in the shooting preview interface reaches 80% and the book 22 does not exceed the display range of the shooting preview interface, the focal segment corresponding to the ratio range is determined as the focal segment that the user wants to stop, and at this time, although the user continues to perform the first input, the zooming speed is reduced. The user can conveniently and accurately find the zooming multiplying power which meets the shooting effect of the user's own requirements in the process of target object change, and the condition that the zooming is excessive due to the fact that the user needs to zoom for multiple times to find the proper shooting multiplying power is avoided.
3) Executing zooming processing at a third zooming speed under the condition that the display proportion of the target object in the shooting preview interface is larger than the first threshold value and at least part of the target object exceeds the display range of the shooting preview interface; wherein the third zoom speed is greater than or equal to the first zoom speed, and the first zoom speed is greater than the second zoom speed.
In this embodiment, when the target object is beyond the display range of the shooting preview interface, and the target object is not an object that the user wants to shoot, at this time, when the electronic device receives the first input of the user, the electronic device performs the zoom operation at the third zoom speed. The third zooming speed is higher than the second zooming speed, and the third zooming speed is higher than or equal to the first zooming speed, namely the third zooming speed is higher, so that the electronic equipment can zoom to a better shooting focal length suitable for shooting conveniently, and the zooming efficiency is improved.
For example: for the book 22 in fig. 3, the first input is a zoom-in input, when the book 22 is partially out of the display range of the shooting preview interface, when the user continues to perform the first input, the system determines that the book 22 is not the object that the user wants to shoot, and the object that the user wants to shoot may be the next eraser 23 with a distinct outline, and the electronic device adjusts the size of the preview image of the shooting preview interface at a faster speed according to the first input.
It should be noted that, in this embodiment, the target object may be an object with a largest area having a complete outline in a preview image of the shooting preview interface, or may be an object selected by a user. When the target object is the object with the largest area of the complete contour in the preview image, and when the target object part exceeds the display range of the shooting preview interface, the object cannot be used as the target object any more, and the object with the largest area of the complete contour needs to be reselected according to the current shooting preview interface, and the steps 1) to 2) are repeated when the user continuously performs the first input.
Next, taking the image shown in fig. 2 as the image of the shooting preview interface as an example, a specific implementation process of the zooming method according to the embodiment of the present application is described.
As shown in fig. 2, taking the first input as an operation of enlarging a preview image of a shooting preview interface by a user, where the first threshold is 80%, the user may perform an enlarging operation on the shooting preview interface with two fingers, at this time, an object that the user wants to shoot may be a book 22 or an eraser 23, and the area of the book 22 is larger than that of the eraser 23, so that the book 22 is determined as the target image, and when the zooming magnification is 1 × and the two-finger sliding enlargement is started, because the proportion of the book 22 in the shooting preview interface is smaller than 80%, the zooming speed at this time is larger (the first zooming speed) than a first reference speed preset in the focal segment, which is convenient for the user to quickly skip the focal segment that the user does not want to stop at a large probability. Wherein the first reference speed may be determined based on a zoom speed of the existing electronic device in the focal section (the focal section corresponding to the book 22 when the display proportion is less than 80%).
When the user continues to perform the zoom-in operation, when the display proportion of the book 22 in the shooting preview interface reaches 80%, a focal length that the user may want to shoot is reached (for example, when the display proportion of the book 22 reaches 80%, the corresponding zoom magnification is 5 ×), and when the user continues to perform the zoom-in operation by sliding the two fingers, the speed of zooming is slowed (i.e., the second speed) and is smaller than a second reference speed preset at the focal length until the boundary of the book 22 exceeds the display range of the shooting preview interface (assuming that the zoom magnification at this time is 7 ×). Wherein the second reference speed may be determined based on a zoom speed of the existing electronic device in the focal section (the focal section corresponding to the book 22 when the display proportion is greater than 80%).
When the boundary of the book 22 begins to exceed the display range of the shooting preview interface and the user still performs the enlarging operation, determining that the book 22 is not the object which the user wants to shoot, and the object which the user wants to shoot may be a second eraser 23 with a complete outline and an area smaller than that of the book 22, wherein the target object is changed into the eraser 23; the user continues the double-finger sliding and performs the enlarging operation, and the above-described steps when the book 23 is the target object are executed in a loop. Assuming that the system judges that the preferred display proportion of the rubber 23 to be shot is 70% until the rubber does not exceed the display range of the shooting preview interface, the corresponding focal length is 12 x-15 x, and the zooming speed is higher in the process that the rubber 23 is enlarged to the display proportion of 70%; when the display proportion of the rubber 23 is 70% to not exceed the display range of the shooting preview interface, the zooming speed is slow; when the eraser 23 at least partially exceeds the display range of the shooting preview interface, and there is no object with a complete outline at this time, the user may just want to view the shooting effect of the maximum magnification, and when the user slides two fingers to perform the zoom-in operation, the corresponding zoom speed is increased again until the maximum magnification (in case of 100 ×).
Therefore, for the shooting scene in fig. 2, if the user zooms in with a constant speed double-finger, the zoom speed of the shooting preview interface varies as shown in fig. 5. It should be noted that this process is reversible, for example, after the preview image shown in fig. 2 is enlarged, the preview image shown in fig. 4 is obtained, when the scene shown in fig. 4 is reduced, the first input is an input for reducing the display image of the shooting preview interface, and the object with the largest area of the complete outline in fig. 4 is the eraser 23, when the reduction operation is performed, the target object is the eraser 23, and assuming that the display proportion occupied by the eraser 23 in the shooting preview interface is 40% and less than 70% suitable for shooting at this time, the preview image is reduced at a faster zoom speed, when the eraser 23 is reduced to make the book 23 completely appear in the shooting preview interface, the target object is updated to the book 22, and at this time, the user continues the reduction operation; in the process that the book 22 completely appears on the shooting preview interface to account for 80% of the display proportion, the zooming speed is reduced, and the focal section is the better focal section shot by the rubber 23 and possibly the focal section shot by the user; when the display ratio of the book 22 reaches 80%, the zoom speed increases again if the user continues to perform the zoom-out operation, and the focal length change speed of the shooting preview interface is also shown in fig. 5.
The first input can be an enlarging operation or a reducing operation on a preview image displayed on the shooting preview interface, and the zoom magnification is related to the display proportion of the target object in the shooting preview interface.
Next, taking the image shown in fig. 3 as the image of the shooting preview interface as an example, a specific implementation process of the zooming method according to the embodiment of the present application is described.
In this embodiment, taking the target object as an example selected by the user, as shown in fig. 3, if a tree 32 is an object having a complete outline and a largest area in the current preview interface, the tree 32 is the target object, the electronic device performs zoom processing on the shooting preview interface according to a zoom operation of the user, when a display proportion occupied by the tree 32 reaches 80%, it is determined that an optimal focal length of the shooting tree 32 is reached, and at this time, a zoom magnification is 6x, where a zoom speed is higher before the display proportion occupied by the tree 32 reaches 80% (that is, the zoom magnification reaches 6x), so that the shooting preview interface is quickly changed to an appropriate shooting focal length. After the display proportion of the tree 32 reaches 80%, the user continues to perform the zoom-in operation, when the zoom magnification reaches 10x, the tree 32 exceeds the display range of the shooting preview interface, the zoom speed is low when the zoom magnification is between 6x and 10x, the interval is a focal length suitable for shooting by the tree 32, and the zoom speed is reduced, so that the over-zooming can be effectively prevented. When the tree 32 exceeds the display range of the shooting preview interface, at this time, the user continues to perform the zoom-in operation, and if the tree 32 is not the object that the user wants to shoot, the zoom speed is increased as shown in fig. 6; at this time, if the building 33 in the preview image displayed on the shooting preview interface is the object with the complete contour and the largest area, the target object is updated to the building 33.
Assuming that the display proportion of the building 33 in the shooting preview interface is 60% to not exceed the display range of the shooting preview interface, the value is a better value for shooting, and the corresponding focal length is 71x to 90x, the preview image is enlarged according to the enlarging operation of the user, as shown in fig. 6, the zoom speed is higher in the process that the building 33 is enlarged to the display proportion of 60% (that is, the zoom magnification does not reach 71x), the zoom speed is reduced after the display proportion of the building 33 reaches 60% (that is, the zoom magnification reaches 71x), and when the building 33 exceeds the display range of the shooting preview interface (that is, the zoom magnification reaches 90x), it is determined that the building 33 is not the object that the user wants to shoot, and the zoom speed is increased.
If the user clicks the building 33 shown in fig. 3 when the preview image displayed on the shooting preview interface is enlarged, for example, when the zoom magnification reaches 20 ×, the object that the user wants to shoot is the building 33, and the building 33 is the target object, at this time, the zoom speed may be continuously increased, the zoom processing may be performed at a faster zoom speed, so that the preview image displayed on the shooting preview interface quickly reaches a focal length suitable for shooting by the building 33 (that is, the zoom magnification reaches 71 ×), and the zoom speed of the shooting preview interface changes as shown in fig. 7.
In the embodiment, the zoom speed of the existing electronic equipment during zooming by double-finger sliding zoom on the shooting preview interface is adjusted, intelligent and quick zooming is performed according to the display proportion occupied by the target object on the shooting preview interface, so that a user is helped to quickly zoom to the zoom magnification desired by the user, the zoom time can be shortened, and the shooting efficiency is improved.
Specifically, the updating, in response to the first input, the display ratio of the target object in the shooting preview interface, and in the process of updating the display ratio, executing zoom processing according to the zoom speed associated with the real-time display ratio of the target object may include:
responding to the first input, adjusting the display proportion of the first target object in the shooting preview interface to a second threshold value, and executing zooming processing at a fourth zooming speed;
under the condition that the display proportion of the first target object in the shooting preview interface is equal to a second threshold and a third input is received, responding to the third input, adjusting the display proportion of a second target object in the shooting preview interface to a third threshold, and executing zooming processing at a fifth zooming speed;
and the second target object is determined according to the areas of the N objects with the complete outlines displayed by the shooting preview interface.
In this embodiment, the first target object and the second target object are both objects included in the preview image displayed on the shooting preview interface. The first target object and the second target object may be objects having complete outlines in the shooting preview interface, or may be target objects selected by a user. When the electronic device receives a first input, first, the size of a preview image displayed on the shooting preview interface is adjusted by taking a first target object as a reference, and the display proportion of the first target object in the shooting preview interface is directly adjusted to a second threshold, where the second threshold may be a better value when shooting for the first target object. When the display scale of the first target object is adjusted, zooming processing is executed at a fourth zooming speed, and the fourth zooming speed can be higher than the zooming speed of the existing product at the focal length, so that the first target object can be quickly adjusted to a size suitable for shooting.
The third input may be the same as the first input. When the display proportion of the first target object in the shooting preview interface reaches the second threshold, if a third input of the user is received and it is determined that the first target object is not an object that the user wants to shoot, a second target object is determined, and the display proportion of the second target object in the shooting preview interface is adjusted to a third threshold, where the third threshold may be a better value when shooting for the second target object. When the display scale of the second target object is adjusted, zooming processing is executed at a fifth zooming speed, and the fifth zooming speed can be greater than a reference speed preset in the focal length, so that the second target object can be quickly adjusted to a size suitable for shooting.
It should be noted that the second target object is determined according to the areas of the N objects with complete outlines displayed on the shooting preview interface, and the second target object may be an object with the largest area except the first target object. And when the display scale of the second target object is adjusted to the third threshold, if the user continues to execute the same input as the third input and other objects with complete outlines exist in the preview image displayed on the shooting preview interface, determining a third target object, and repeatedly executing the steps.
Taking the image shown in fig. 2 as the image of the shooting preview interface, where the first input is an operation of enlarging a preview image of the shooting preview interface by a user, the second threshold is 80% and the third threshold is 70%, the user performs an enlarging operation on the shooting preview interface with two fingers, and at this time, the object that the user wants to shoot may be a book 22 or an eraser 23, and the area of the book 22 is greater than the area of the eraser 23, so that the book 22 is determined as the first target image, and if the system determines that the display proportion of the book 22 in the shooting preview interface is 80% as an optimal shooting value, the display proportion of the book 22 in the shooting preview interface is adjusted to 80% at a higher zoom speed according to the first input of the user; at this time, if the user continues to perform the zoom-in operation, the book 22 is not the object that the user wants to photograph, the eraser 23 is determined as the second target object, and the proportion of the eraser 23 in the photographing preview interface is adjusted to 70% at a faster zooming speed according to the zoom-in operation. If there is another object having an area smaller than the eraser 23, the above steps are repeatedly executed with the other object as a third target object when the user's zoom-in operation is received again.
According to the embodiment, when the first zooming operation of the user is received, the first target object in the preview image displayed on the shooting preview interface is zoomed to the size suitable for shooting, when the zooming operation of the user is received again, the second target object is zoomed to the size suitable for shooting, the process that the user continuously zooms when the size of the object included in the preview image is adjusted is omitted, the situation that the zooming is not in place or the zooming is excessive is avoided, the preview image can be zoomed to the size suitable for shooting in a short time, the zooming time is shortened, and the zooming efficiency is improved.
Optionally, in the process of executing the zoom processing according to the zoom speed associated with the real-time display scale of the target object, the method further includes:
acquiring a target zoom range associated with the target object; stopping the zooming processing when the zooming magnification reaches the first magnification;
wherein, in a case that the first input is an input of enlarging a preview image in the shooting preview interface, the first magnification is a maximum value of the target zoom range; and when the first input is the input of reducing the preview image in the shooting preview interface, the first magnification is the minimum value of the target zoom range.
In this embodiment, after the electronic device determines the target object, a target zoom range corresponding to the target object may be set, where the target zoom range may be a better zoom magnification range for shooting the target object, and in a process of adjusting a display ratio of the target object in the shooting preview interface according to a first input of a user, when the zoom magnification of the shooting preview interface reaches a boundary value (i.e., the first magnification) of the target zoom range, the zoom processing is stopped to prompt the user that the user may shoot a preview image displayed on the current shooting preview interface, so as to achieve an optimal shooting effect.
Optionally, after the zoom processing is stopped, if the user continues to perform the first input and the number of times of performing the first input reaches a preset number, the zoom processing is continuously performed.
Taking the target object as the eraser 23 shown in fig. 2 as an example, assuming that the optimal zoom range corresponding to the eraser 23 is 10x to 12x, in the zooming process, a user may double-click (or may perform other operation forms) an area corresponding to the eraser 23 in the shooting preview interface to lock an object, and when a preview image displayed on the shooting preview interface is enlarged according to the enlarging operation of the user, when the zoom magnification reaches the zoom magnification of 12x, the enlarging process may stop; continuously executing the amplification operation when the user performs the finger amplification operation for a plurality of times (such as three times) within a preset time period; similarly, if the user performs the zoom-out operation, the zoom is also stopped when the zoom magnification reaches 10x, and the zoom-out operation is continuously performed when the user performs the finger zoom-out operation for a plurality of times within the preset time period.
In the process of executing the zooming processing, if the zooming magnification reaches the boundary value of the target zooming range associated with the target object, the zooming processing is stopped to remind the user that the shooting in the focal zone can achieve a better shooting effect, and the zooming efficiency is improved.
The zoom method according to the embodiment of the present application is applicable not only to the zoom-in operation but also to the zoom-out operation of the preview image displayed on the shooting preview interface. For the zoom-out operation of the preview image, for example, zoom-out to 0.6x or even smaller, taking the shooting preview interface as fig. 4 as an example, after the user opens the camera and enters the shooting preview interface, the preview image displayed on the shooting preview interface is as shown in fig. 4, the user performs a two-finger zoom-out operation to reduce the magnification, and the magnification can also be rapidly reduced to make the contour of the table with an incomplete original contour completely appear in the shooting preview interface (which may be 0.4x), the specific zoom process is opposite to the foregoing zoom process, and the change of the zoom speed of the preview interface may be as shown in fig. 8.
In the process of zooming out by sliding the two fingers of the user, if a new object with a complete contour appears in the shooting preview interface, for example, the scene shown in fig. 3, and a high tower 34 appears on the left side of the shooting preview interface, as shown in fig. 9, the high tower 34 is an object that the user wants to shoot, and the high tower 34 is determined as a new target object, at this time, the zooming speed will become slow; assuming that the tall tower 34 completely appears in the capture preview interface at a zoom magnification of 0.4x, the process of focal length change is also as shown in fig. 8.
The embodiment of the application, receiving user's first input, according to target object in the first input adjustment shooting preview boundary is in when the shared display scale of shooting preview interface, according to with the zoom speed execution zoom processing that the display scale is correlated with, need not user's multiple operation can be based on the quick convenient image adjustment to suitable size of shooting object, will shoot the zoom that the preview interface is quick reaches the zoom magnification that the user wanted automatically, shorten zoom time, improve and zoom efficiency.
It should be noted that, in the zoom method provided in the embodiments of the present application, the execution main body may be a zoom apparatus, or a control module for executing the zoom method in the zoom apparatus. In the embodiment of the present application, a zoom apparatus that performs a zoom method is taken as an example, and the zoom apparatus provided in the embodiment of the present application is described.
As shown in fig. 10, an embodiment of the present application further provides a zoom apparatus 1000, including:
a first receiving module 1010, configured to receive a first input of a user when a shooting preview interface is displayed;
a first response module 1020, configured to update a display ratio of a target object in the shooting preview interface in response to the first input, and execute zoom processing according to a zoom speed associated with a real-time display ratio of the target object in a process of updating the display ratio;
and under the condition that the display proportion of the target object in the shooting preview interface is in different display proportion ranges, the zooming speed of zooming processing is different.
Optionally, the apparatus further comprises:
the first acquisition module is used for acquiring N objects with complete outlines in a preview image displayed by the shooting preview interface;
and the determining unit is used for determining the target object according to the areas of the N objects.
Optionally, the apparatus further comprises:
the second receiving module is used for receiving a second input of the shooting preview interface by the user;
and the second response module is used for responding to the second input, and determining the object of the second input at the input position of the shooting preview interface as the target object.
Optionally, the first response module includes:
the first processing unit is used for executing zooming processing at a first zooming speed under the condition that the display proportion of the target object in the shooting preview interface is smaller than a first threshold value;
the second processing unit is used for executing zooming processing at a second zooming speed under the condition that the display proportion of the target object in the shooting preview interface is larger than or equal to the first threshold value and the target object does not exceed the display range of the shooting preview interface;
the third processing unit is used for executing zooming processing at a third zooming speed under the condition that the display proportion of the target object in the shooting preview interface is larger than the first threshold value and at least part of the target object exceeds the shooting preview interface;
wherein the third zoom speed is greater than or equal to the first zoom speed, and the first zoom speed is greater than the second zoom speed.
Optionally, the first response module includes:
the fourth processing unit is used for responding to the first input, adjusting the display proportion of the first target object in the shooting preview interface to a second threshold value, and executing zooming processing at a fourth zooming speed;
a fifth processing unit, configured to, in a case where a display ratio of the first target object in the shooting preview interface is equal to a second threshold and a third input is received, in response to the third input, adjust a display ratio of a second target object in the shooting preview interface to the third threshold, and perform zoom processing at a fifth zoom speed;
and the second target object is determined according to the areas of the N objects with the complete outlines displayed by the shooting preview interface.
Optionally, the apparatus further comprises:
an obtaining module for obtaining a target zoom range associated with the target object;
stopping the zooming processing when the zooming magnification reaches the first magnification;
wherein, in a case that the first input is an input of enlarging a preview image in the shooting preview interface, the first magnification is a maximum value of the target zoom range; and when the first input is the input of reducing the preview image in the shooting preview interface, the first magnification is the minimum value of the target zoom range.
The embodiment of the application, receiving user's first input, according to target object in the first input adjustment shooting preview boundary is in when the shared display scale of shooting preview interface, according to with the zoom speed execution zoom processing that the display scale is correlated with, need not user's multiple operation can be based on the quick convenient image adjustment to suitable size of shooting object, will shoot the zoom that the preview interface is quick reaches the zoom magnification that the user wanted automatically, shorten zoom time, improve and zoom efficiency.
The zoom apparatus in the embodiment of the present application may be an apparatus, or may be a component, an integrated circuit, or a chip in an electronic device. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The zoom apparatus in the embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The zoom apparatus provided in the embodiment of the present application can implement each process implemented by the zoom apparatus in the method embodiments of fig. 1 to 9, and is not described herein again to avoid repetition.
Optionally, as shown in fig. 11, an electronic device 1100 is further provided in an embodiment of the present application, and includes a processor 1101, a memory 1102, and a program or an instruction stored in the memory 1102 and executable on the processor 1101, where the program or the instruction is executed by the processor 1101 to implement each process of the foregoing zoom method embodiment, and can achieve the same technical effect, and no repeated description is provided here to avoid repetition.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.
Fig. 12 is a schematic hardware structure diagram of an electronic device implementing an embodiment of the present application.
The electronic device 1200 includes, but is not limited to: radio frequency unit 1201, network module 1202, audio output unit 1203, input unit 1204, sensors 1205, display unit 1206, user input unit 1207, interface unit 1208, memory 1209, and processor 1210.
Those skilled in the art will appreciate that the electronic device 1200 may further comprise a power source (e.g., a battery) for supplying power to the various components, and the power source may be logically connected to the processor 1210 via a power management system, so as to implement functions of managing charging, discharging, and power consumption via the power management system. The electronic device structure shown in fig. 12 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is not repeated here.
A user input unit 1207, configured to receive a first input of a user when the shooting preview interface is displayed;
a processor 1210, configured to update a display ratio of a target object in the shooting preview interface in response to the first input, and perform zoom processing according to a zoom speed associated with a real-time display ratio of the target object in a process of updating the display ratio;
and under the condition that the display proportion of the target object in the shooting preview interface is in different display proportion ranges, the zooming speed of zooming processing is different.
The embodiment of the application, receiving user's first input, according to target object in the first input adjustment shooting preview boundary is in when the shared display scale of shooting preview interface, according to with the zoom speed execution zoom processing that the display scale is correlated with, need not user's multiple operation can be based on the quick convenient image adjustment to suitable size of shooting object, will shoot the zoom that the preview interface is quick reaches the zoom magnification that the user wanted automatically, shorten zoom time, improve and zoom efficiency.
Optionally, the processor 1210 is further configured to: acquiring N objects with complete outlines in a preview image displayed by the shooting preview interface;
and determining the target object according to the areas of the N objects.
Optionally, the user input unit 1207 is further configured to receive a second input to the shooting preview interface from the user;
the processor 1210 is further configured to: in response to the second input, determining an object of the second input at an input position of the photographing preview interface as a target object.
Optionally, the processor 1210 is further configured to: executing zooming processing at a first zooming speed under the condition that the display proportion of the target object in the shooting preview interface is smaller than a first threshold value;
executing zooming processing at a second zooming speed under the condition that the display proportion of the target object in the shooting preview interface is larger than or equal to the first threshold and the target object does not exceed the display range of the shooting preview interface;
executing zooming processing at a third zooming speed under the condition that the display proportion of the target object in the shooting preview interface is larger than the first threshold value and at least part of the target object exceeds the display range of the shooting preview interface;
wherein the third zoom speed is greater than or equal to the first zoom speed, and the first zoom speed is greater than the second zoom speed.
Optionally, the processor 1210 is further configured to: responding to the first input, adjusting the display proportion of the first target object in the shooting preview interface to a second threshold value, and executing zooming processing at a fourth zooming speed;
under the condition that the display proportion of the first target object in the shooting preview interface is equal to a second threshold and a third input is received, responding to the third input, adjusting the display proportion of a second target object in the shooting preview interface to a third threshold, and executing zooming processing at a fifth zooming speed;
and the second target object is determined according to the areas of the N objects with the complete outlines displayed by the shooting preview interface.
Optionally, the processor 1210 is further configured to: acquiring a target zoom range associated with the target object;
stopping the zooming processing when the zooming magnification reaches the first magnification;
wherein, in a case that the first input is an input of enlarging a preview image in the shooting preview interface, the first magnification is a maximum value of the target zoom range; and when the first input is the input of reducing the preview image in the shooting preview interface, the first magnification is the minimum value of the target zoom range.
The embodiment of the application, receiving user's first input, according to target object in the first input adjustment shooting preview boundary is in when the shared display scale of shooting preview interface, according to with the zoom speed execution zoom processing that the display scale is correlated with, need not user's multiple operation can be based on the quick convenient image adjustment to suitable size of shooting object, will shoot the zoom that the preview interface is quick reaches the zoom magnification that the user wanted automatically, shorten zoom time, improve and zoom efficiency.
It should be understood that, in the embodiment of the present application, the input Unit 1204 may include a Graphics Processing Unit (GPU) 12041 and a microphone 12042, and the Graphics Processing Unit 12041 processes image data of still pictures or videos obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 1206 may include a display panel 12061, and the display panel 12061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1207 includes a touch panel 12071 and other input devices 12072. A touch panel 12071, also referred to as a touch screen. The touch panel 12071 may include two parts of a touch detection device and a touch controller. Other input devices 12072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 1209 may be used to store software programs as well as various data, including but not limited to application programs and an operating system. Processor 1210 may integrate an application processor, which handles primarily the operating system, user interface, applications, etc., and a modem processor, which handles primarily wireless communications. It is to be appreciated that the modem processor described above may not be integrated into processor 1210.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the foregoing zoom method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the zoom method embodiment, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (11)

1. A method of zooming, comprising:
receiving a first input of a user under the condition that a shooting preview interface is displayed;
responding to the first input, updating the display proportion occupied by the target object in the shooting preview interface, and executing zooming processing according to the zooming speed associated with the real-time display proportion of the target object in the process of updating the display proportion;
under the condition that the display proportion of the target object in the shooting preview interface is in different display proportion ranges, the zooming speed of zooming processing is different;
the responding to the first input, updating the display proportion occupied by the target object in the shooting preview interface, and executing zooming processing according to the zooming speed associated with the real-time display proportion of the target object in the process of updating the display proportion, wherein the zooming processing comprises the following steps:
executing zooming processing at a first zooming speed under the condition that the display proportion of the target object in the shooting preview interface is smaller than a first threshold value;
executing zooming processing at a second zooming speed under the condition that the display proportion of the target object in the shooting preview interface is larger than or equal to the first threshold and the target object does not exceed the display range of the shooting preview interface;
executing zooming processing at a third zooming speed under the condition that the display proportion of the target object in the shooting preview interface is larger than the first threshold value and the target object at least partially exceeds the display range of the shooting preview interface;
wherein the third zoom speed is greater than or equal to the first zoom speed, and the first zoom speed is greater than the second zoom speed.
2. The method according to claim 1, wherein in a case where a photographing preview interface is displayed, the method further comprises:
acquiring N objects with complete outlines in a preview image displayed by the shooting preview interface;
and determining the target object according to the areas of the N objects.
3. The method according to claim 1, wherein in a case where a photographing preview interface is displayed, the method further comprises:
receiving a second input of the shooting preview interface by the user;
in response to the second input, determining an object of the second input at an input position of the photographing preview interface as a target object.
4. The method according to claim 1, wherein the updating, in response to the first input, a display ratio of a target object in the shooting preview interface, and in the updating of the display ratio, performing zoom processing according to a zoom speed associated with a real-time display ratio of the target object includes:
responding to the first input, adjusting the display proportion of the first target object in the shooting preview interface to a second threshold value, and executing zooming processing at a fourth zooming speed;
under the condition that the display proportion of the first target object in the shooting preview interface is equal to a second threshold and a third input is received, responding to the third input, adjusting the display proportion of a second target object in the shooting preview interface to a third threshold, and executing zooming processing at a fifth zooming speed;
and the second target object is determined according to the areas of the N objects with the complete outlines displayed by the shooting preview interface.
5. The method according to claim 1, wherein in performing a zoom process according to a zoom speed associated with a real-time display scale of the target object, the method further comprises:
acquiring a target zoom range associated with the target object;
stopping the zooming processing when the zooming magnification reaches the first magnification;
wherein, in a case that the first input is an input of enlarging a preview image in the shooting preview interface, the first magnification is a maximum value of the target zoom range; and when the first input is the input of reducing the preview image in the shooting preview interface, the first magnification is the minimum value of the target zoom range.
6. A zoom apparatus, comprising:
the first receiving module is used for receiving a first input of a user under the condition of displaying a shooting preview interface;
the first response module is used for responding to the first input, updating the display proportion of the target object in the shooting preview interface, and executing zooming processing according to the zooming speed related to the real-time display proportion of the target object in the process of updating the display proportion;
under the condition that the display proportion of the target object in the shooting preview interface is in different display proportion ranges, the zooming speed of zooming processing is different;
the first response module comprises:
the first processing unit is used for executing zooming processing at a first zooming speed when the display proportion of the target object in the shooting preview interface is smaller than a first threshold value;
the second processing unit is used for executing zooming processing at a second zooming speed under the condition that the display proportion of the target object in the shooting preview interface is larger than or equal to the first threshold value and the target object does not exceed the display range of the shooting preview interface;
the third processing unit is used for executing zooming processing at a third zooming speed under the condition that the display proportion of the target object in the shooting preview interface is larger than the first threshold value and at least part of the target object exceeds the shooting preview interface;
wherein the third zoom speed is greater than or equal to the first zoom speed, and the first zoom speed is greater than the second zoom speed.
7. The apparatus of claim 6, further comprising:
the first acquisition module is used for acquiring N objects with complete outlines in a preview image displayed on the shooting preview interface;
and the determining unit is used for determining the target object according to the areas of the N objects.
8. The apparatus of claim 6, further comprising:
the second receiving module is used for receiving a second input of the shooting preview interface by the user;
and the second response module is used for responding to the second input, and determining the object of the second input at the input position of the shooting preview interface as the target object.
9. The apparatus of claim 7, wherein the first response module comprises:
a fourth processing unit, configured to adjust, in response to the first input, a display ratio of the first target object in the shooting preview interface to a first display ratio value, and execute zoom processing at a fourth zoom speed;
a fifth processing unit, configured to, in a case where a display ratio of the first target object in the shooting preview interface is equal to a second threshold and a third input is received, in response to the third input, adjust a display ratio of a second target object in the shooting preview interface to the third threshold, and perform zoom processing at a fifth zoom speed;
and the second target object is determined according to the areas of the N objects with the complete outlines displayed by the shooting preview interface.
10. The apparatus of claim 7, further comprising:
an obtaining module for obtaining a target zoom range associated with the target object;
stopping the zooming processing when the zooming magnification reaches the first magnification;
wherein, in a case that the first input is an input of enlarging a preview image in the shooting preview interface, the first magnification is a maximum value of the target zoom range; and when the first input is the input of reducing the preview image in the shooting preview interface, the first magnification is the minimum value of the target zoom range.
11. An electronic device comprising a processor, a memory and a program or instructions stored on the memory and executable on the processor, which when executed by the processor, implement the steps of the zooming method of any of claims 1-5.
CN202011603686.5A 2020-12-30 2020-12-30 Zooming method and device and electronic equipment Active CN112738401B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011603686.5A CN112738401B (en) 2020-12-30 2020-12-30 Zooming method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011603686.5A CN112738401B (en) 2020-12-30 2020-12-30 Zooming method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN112738401A CN112738401A (en) 2021-04-30
CN112738401B true CN112738401B (en) 2022-06-03

Family

ID=75611722

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011603686.5A Active CN112738401B (en) 2020-12-30 2020-12-30 Zooming method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN112738401B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114173029B (en) * 2021-11-01 2023-09-22 维沃移动通信有限公司 Shooting method and device and electronic equipment
CN114500852B (en) * 2022-02-25 2024-04-19 维沃移动通信有限公司 Shooting method, shooting device, electronic equipment and readable storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109361865A (en) * 2018-11-21 2019-02-19 维沃移动通信(杭州)有限公司 A kind of image pickup method and terminal
CN110262737A (en) * 2019-06-25 2019-09-20 维沃移动通信有限公司 A kind of processing method and terminal of video data

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5539045B2 (en) * 2010-06-10 2014-07-02 キヤノン株式会社 Imaging apparatus, control method therefor, and storage medium
JP6366395B2 (en) * 2014-07-16 2018-08-01 キヤノン株式会社 Zoom control device, imaging device, control method for zoom control device, control program for subject detection device, and storage medium
US20160073039A1 (en) * 2014-09-08 2016-03-10 Sony Corporation System and method for auto-adjust rate of zoom feature for digital video
CN104717427B (en) * 2015-03-06 2018-06-08 广东欧珀移动通信有限公司 A kind of automatic zooming method, device and mobile terminal
EP3291533A1 (en) * 2016-09-06 2018-03-07 LG Electronics Inc. Terminal and controlling method thereof
CN111182205B (en) * 2019-12-30 2021-07-27 维沃移动通信有限公司 Photographing method, electronic device, and medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109361865A (en) * 2018-11-21 2019-02-19 维沃移动通信(杭州)有限公司 A kind of image pickup method and terminal
CN110262737A (en) * 2019-06-25 2019-09-20 维沃移动通信有限公司 A kind of processing method and terminal of video data

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
一种实现自动取景和自动变焦的监控系统;郑珍珍等;《仪器仪表学报》;20081115(第11期);第2373-2377页 *

Also Published As

Publication number Publication date
CN112738401A (en) 2021-04-30

Similar Documents

Publication Publication Date Title
CN112135046B (en) Video shooting method, video shooting device and electronic equipment
CN111669507A (en) Photographing method and device and electronic equipment
CN112954193B (en) Shooting method, shooting device, electronic equipment and medium
CN113141468B (en) Focusing method and device and electronic equipment
CN112954199B (en) Video recording method and device
CN112714253B (en) Video recording method and device, electronic equipment and readable storage medium
CN112738401B (en) Zooming method and device and electronic equipment
CN112954214B (en) Shooting method, shooting device, electronic equipment and storage medium
CN112887617B (en) Shooting method and device and electronic equipment
CN113794829B (en) Shooting method and device and electronic equipment
CN112437232A (en) Shooting method, shooting device, electronic equipment and readable storage medium
WO2022156672A1 (en) Photographing method and apparatus, electronic device and readable storage medium
CN112565610B (en) Continuous shooting method and device and electronic equipment
CN112637495B (en) Shooting method, shooting device, electronic equipment and readable storage medium
CN112839166B (en) Shooting method and device and electronic equipment
CN113709368A (en) Image display method, device and equipment
CN114173029B (en) Shooting method and device and electronic equipment
CN112887624B (en) Shooting method and device and electronic equipment
CN112333395B (en) Focusing control method and device and electronic equipment
CN113286085B (en) Display control method and device and electronic equipment
CN112584110B (en) White balance adjusting method and device, electronic equipment and storage medium
CN112887607B (en) Shooting prompting method and device
CN112653841B (en) Shooting method and device and electronic equipment
CN112333389B (en) Image display control method and device and electronic equipment
CN114245017A (en) Shooting method and device and electronic 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
GR01 Patent grant
GR01 Patent grant