CN113905170A - Zoom control method, device, storage medium and electronic device - Google Patents

Zoom control method, device, storage medium and electronic device Download PDF

Info

Publication number
CN113905170A
CN113905170A CN202010574946.4A CN202010574946A CN113905170A CN 113905170 A CN113905170 A CN 113905170A CN 202010574946 A CN202010574946 A CN 202010574946A CN 113905170 A CN113905170 A CN 113905170A
Authority
CN
China
Prior art keywords
zoom
zooming
lens
ratio
determining
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
CN202010574946.4A
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN202010574946.4A priority Critical patent/CN113905170A/en
Publication of CN113905170A publication Critical patent/CN113905170A/en
Pending legal-status Critical Current

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/67Focus control based on electronic image sensor signals
    • 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/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • H04N23/632Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters for displaying or modifying preview images prior to image capturing, e.g. variety of image resolutions or capturing parameters
    • 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/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/633Control of cameras or camera modules by using electronic viewfinders for displaying additional information relating to control or operation of the camera
    • H04N23/635Region indicators; Field of view indicators

Abstract

The embodiment of the invention provides a zoom control method, a zoom control device, a storage medium and an electronic device, wherein the method comprises the following steps: receiving a selection instruction; determining a target area in a preview interface area of the camera equipment under the trigger of the selection instruction; determining a zoom factor based on a ratio of the preview interface area to the target area; and controlling the camera equipment to zoom according to the zoom multiple. According to the invention, the problem of poor zooming effect in the related technology is solved, the zooming effect is improved, and the user experience is improved.

Description

Zoom control method, device, storage medium and electronic device
Technical Field
The embodiment of the invention relates to the field of communication, in particular to a zoom control method, a zoom control device, a storage medium and an electronic device.
Background
With the development of terminals, the requirements of users for photographing the terminals are higher and higher, the requirements for photographing compositions are increasingly increased, and the users can photograph photographic works with different visual angles by zooming the camera. How to help the user to complete the composition and complete the camera switching quickly becomes an important problem.
In the process of using the current camera device, a zooming function is available, and the mainstream zooming method is as follows: dragging the frame strip that zooms, slide and zoom, so often can be at the slip in-process, because the speed that the user dragged the speed, can cause zooming too big or undersize, the problem of adjustment makes a round trip, because the user only has directly perceived impression to wanting the object of shooting, zoom this notion and not audio-visual understanding several times, so need drag the slide bar adjustment visual angle repeatedly when dragging, drag different magnification, realize zooming, for example, drag the slide bar 5 times, realize zooming 5 times. Moreover, when switching to high power, the problem of 2 camera jumps may occur, and when a user drags repeatedly, the problem of multiple camera jumps may occur. In addition, the ordinary zoom operation in the related art can only zoom with the same scale factor for length and width, and cannot fundamentally solve the composition pain point.
It is thus clear that the related art has a problem of poor zooming effect.
In view of the problems in the related art, no effective solution has been proposed.
Disclosure of Invention
Embodiments of the present invention provide a zoom control method and apparatus, a storage medium, and an electronic apparatus, so as to at least solve the problem of poor zoom effect in the related art.
According to an embodiment of the present invention, there is provided a zoom control method including: receiving a selection instruction; determining a target area in a preview interface area of the camera equipment under the trigger of the selection instruction; determining a zoom factor based on a ratio of the preview interface area to the target area; and controlling the camera equipment to zoom according to the zoom multiple.
According to another embodiment of the present invention, there is provided a zoom control apparatus including: the receiving module is used for receiving a selection instruction; the first determining module is used for determining a target area in a preview interface area of the camera equipment under the trigger of the selection instruction; the second determination module is used for determining a zoom multiple based on the ratio of the preview interface area to the target area; and the control module is used for controlling the camera equipment to zoom according to the zoom multiple.
According to a further embodiment of the present invention, there is also provided a computer-readable storage medium having a computer program stored thereon, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
According to yet another embodiment of the present invention, there is also provided an electronic device, including a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
According to the method and the device, after the selection instruction is received, the target area is determined in the preview interface area of the camera equipment, the zooming multiple is determined according to the ratio of the preview interface area to the target area, the camera equipment is controlled to zoom according to the zooming multiple, and the zooming multiple is determined by adopting the ratio of the preview interface area to the target area, so that dragging zooming is not needed. Therefore, the problem of poor zooming effect in the related art can be solved, the zooming effect is improved, and the user experience is improved.
Drawings
Fig. 1 is a block diagram of a hardware configuration of a mobile terminal of a zoom control method according to an embodiment of the present invention;
fig. 2 is a flowchart of a zoom control method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of determining a zoom factor according to an exemplary embodiment of the present invention;
fig. 4 is a multi-camera view angle reference diagram according to an exemplary embodiment of the present invention;
FIG. 5 is a flow chart of a zoom control method according to an embodiment of the present invention;
fig. 6 is a structural view of a zoom control apparatus according to an exemplary embodiment of the present invention;
fig. 7 is a block diagram of a configuration of a zoom control apparatus according to an embodiment of the present invention.
Detailed Description
Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings in conjunction with the embodiments.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The method embodiments provided in the embodiments of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking the mobile terminal as an example, fig. 1 is a block diagram of a hardware structure of the mobile terminal of a zoom control method according to an embodiment of the present invention. As shown in fig. 1, the mobile terminal may include one or more (only one shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), and a memory 104 for storing data, wherein the mobile terminal may further include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration, and does not limit the structure of the mobile terminal. For example, the mobile terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 may be used to store a computer program, for example, a software program and a module of an application software, such as a computer program corresponding to the zoom control method in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, so as to implement the method described above. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the mobile terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In the present embodiment, a zoom control method is provided, and fig. 2 is a flowchart of the zoom control method according to an embodiment of the present invention, as shown in fig. 2, the flowchart includes the steps of:
step S202, receiving a selection instruction;
step S204, determining a target area in a preview interface area of the camera equipment under the trigger of the selection instruction;
step S206, determining a zoom multiple based on the ratio of the preview interface area to the target area;
and step S208, controlling the image pickup equipment to zoom according to the zoom multiple.
In the above embodiment, the selection instruction may be triggered by performing a touch operation, such as a click operation, on the preview interface of the image capturing device, but of course, the selection instruction may also be input by other means, such as a selection instruction received from another device, or input by a key, and after receiving the selection instruction, the target area may be determined based on the selection instruction, where the shape of the target area selected by the selection instruction may be a rectangle or another shape, or of course, the target area may also be an irregular shape, and when the selected area is a rectangle, the selection instruction may be to click on a certain position on the preview interface of the image capturing device, determine the position as a first vertex angle of the rectangle, then click on another position on the preview interface, determine the position as a second vertex angle of the rectangle, determine a rectangle with the first vertex angle and the second vertex angle as two opposite corners, the rectangle is the target area; the target area can also be selected by clicking and dragging at a certain position on a preview interface of the camera equipment, releasing at another position and framing. When the selected area is an irregular figure, the selection instruction may be that the user circles a regular closed figure on a preview interface of the image pickup apparatus, and a rectangle is determined by taking the maximum distance in the horizontal and vertical directions of the figure as the width and the maximum distance in the horizontal direction as the length, and the rectangle is taken as the target area. The camera device may be a mobile phone, a video camera, a tablet computer, or other intelligent device with a photographing function, and the selection instruction may be an instruction sent by a finger or a stylus pen or other touch devices, or an instruction sent by operating a mechanical key or a virtual key. The preview interface may be an interface on the image pickup apparatus for displaying an object to be photographed.
In the above embodiment, determining the zoom factor according to the ratio of the preview interface area to the target area may include determining the zoom factor according to the ratio of the area of the preview interface area to the area of the target area. For example, after the user selects the object to be photographed in the frame, the zoom factor can be determined by calculating the area ratio of the preview interface and the target area selected in the frame, so as to realize zooming.
For example, the main body of the above steps may be a background processor, or other devices with similar processing capabilities, and may also be a machine integrated with at least an image acquisition device and a data processing device, where the image acquisition device may include a graphics acquisition module such as a camera, and the data processing device may include a terminal such as a computer, a mobile phone, and the like, but is not limited thereto.
According to the method and the device, after the selection instruction is received, the target area is determined in the preview interface area of the camera equipment, the zooming multiple is determined according to the ratio of the preview interface area to the target area, the camera equipment is controlled to zoom according to the zooming multiple, and the zooming multiple is determined by adopting the ratio of the preview interface area to the target area, so that dragging zooming is not needed. Therefore, the problem of poor zooming effect in the related art can be solved, the zooming effect is improved, and the user experience is improved.
In one exemplary embodiment, determining a zoom factor based on a ratio of the preview interface area and the target area comprises: determining a first ratio of a first edge of the preview interface area to a first edge of the target area, and determining a second ratio of a second edge of the preview interface area to a second edge of the target area; determining the zoom magnification based on the first ratio in a case where it is determined that the first ratio is greater than or equal to the second ratio; determining the zoom factor based on the second ratio in a case where it is determined that the first ratio is smaller than the second ratio. In this embodiment, taking an image pickup apparatus as a mobile phone as an example, determining a zoom multiple based on a ratio between the preview interface area and the target area is described, fig. 3 is a schematic diagram of determining the zoom multiple, and as shown in fig. 3, a module with the widest visual angle of a mobile phone module is used as a main operation interface, so that a user can see the maximum visual angle under a common photographing condition, a whole display screen (corresponding to the preview interface) is (a, B), in a photographing visual angle of the mobile phone, the upper left-corner coordinate of the maximum visual angle is considered as (0,0), and the user selects a photographed object through a finger frame and selects the visual angle. The first touch is a starting point (x, y) of the selected view angle frame, the second touch is an end point (x ', y') of the view angle window, and finally a quadrilateral region (corresponding to the target region) is presented, wherein the length is x '-x, and the width is b-y' -y. The ratio of the length and the width of the quadrilateral area to the length and the width of the maximum viewing angle (display frame) is calculated respectively, the length of the display frame is divided by the length of the viewing angle window, and the width of the display frame is divided by the width of the small frame, so that a length proportionality coefficient and a width proportionality coefficient, namely a first ratio and a second ratio, are obtained, the length proportionality coefficient is A/a, and the width proportionality coefficient is B/B. Comparing the size relationship between the long proportional coefficient and the wide proportional coefficient, if A/a is larger than or equal to B/B, determining that A/a is the zoom multiple, and if A/a is smaller than B/B, determining that B/B is the zoom multiple. After the zoom multiple is determined, the view angle is updated, namely, after a user sees a complete image at a large view angle, composition operation is carried out, after the zoom multiple is calculated for zooming, the view angle seen by the user is updated, and the user can take a picture according to the updated image.
In one exemplary embodiment, in a case where the zoom magnification is determined based on the first ratio, after controlling the image pickup apparatus to zoom by the zoom magnification, the method further includes: controlling the camera equipment to carry out secondary zooming according to the second ratio; in a case where the zoom magnification is determined based on the second ratio, after controlling the image pickup apparatus to zoom by the zoom magnification, the method further includes: and controlling the image pickup apparatus to perform secondary zooming according to the first ratio. In this embodiment, when the first ratio is greater than or equal to the second ratio, zooming is performed according to the zoom coefficient determined by the first ratio, zooming is performed according to the zoom coefficient determined by the second ratio, and when the first ratio is smaller than the second ratio, zooming is performed according to the zoom coefficient determined by the second ratio, and zooming is performed according to the zoom coefficient determined by the first ratio. For example, if A/a ≧ B/B, the A/a can be determined as a zoom multiple, implementing optical plus digital compound zoom, i.e., zoom first by A/a (i.e., perform a crop first), where optical zoom and/or digital zoom may be involved. And on the basis, digitally zooming the zoomed view angle, zooming again according to the coefficient of B/B (namely, performing secondary cropping), and updating the picture to the area framed and selected by the user to realize the zooming after framing, namely, performing primary cropping according to the coefficient of A/a, namely, performing primary mixed zooming, and performing secondary zooming operation on the technology, namely, cropping according to the coefficient of B/B after mixed zooming and enlarging the cropped area to the whole view interface (the cropped area can be stretched to cover the whole view interface, and the cropped area can be enlarged to the maximum supported by the whole view interface under the condition of ensuring that the aspect ratio of the cropped area is not changed).
In one exemplary embodiment, controlling the image pickup apparatus to zoom by the zoom factor includes: under the condition that the first lens currently used by the image pickup device is determined not to support zooming according to the zooming multiple, controlling the image pickup device to perform optical zooming so as to switch the lens currently used by the image pickup device from the first lens to a second lens, wherein the second lens is a lens supporting zooming according to the zooming multiple; zooming according to the zooming multiple by utilizing the second lens. In this embodiment, the basic angle module with the widest angle of view in the mobile phone module represents the largest angle of view in the ordinary photographing process, and the user selects the content to be photographed at the angle of view of this module, and calculates the proportional relation by the selected area ratio, so as to realize the one-time zooming of the camera. The switching of the multiple cameras is realized through the proportional relation and the focal length relation of the multiple cameras, the zooming in the unequal length and width proportion can be realized, and the perfectness of composition is improved. For example, when the camera device is a mobile phone, the mobile phone may have a wide angle, a main camera, a telephoto camera, and the like, each camera has a shooting range, that is, each lens may support a different zoom multiple, and the zoom multiples supported by different cameras are different.
In one exemplary embodiment, in a case where it is determined that the first lens currently used by the image pickup apparatus does not support zooming by the zoom factor, controlling the image pickup apparatus to perform optical zooming to switch the lens currently used by the image pickup apparatus from the first lens to the second lens includes: when the target area is determined to exceed the visual field range area of the first lens, determining that the first lens currently used by the camera equipment does not support zooming according to the zooming multiple; controlling the image pickup equipment to perform optical zooming so as to switch a lens currently used by the image pickup equipment from the first lens to a second lens, wherein the second lens is a lens of which a field range area comprises the target area; zooming by the second lens according to the zoom multiple comprises: and carrying out digital zooming by utilizing the second lens according to the zooming multiple. In this embodiment, in the multi-camera system, camera switching may be implemented according to a zoom multiple a/a, for example, when a wide-angle coefficient is taken as a reference angle of view 1, the angle of view is divided into 3 steps according to an optical scale, when a coefficient (corresponding to the zoom multiple) is greater than 2, the main-shot display is switched to, and when the coefficient is greater than 6, the tele-display is switched to (here, switching corresponding to the zoom multiple is only an exemplary embodiment, and a specific corresponding relationship may be modified according to a module scheme configuration, and the present invention does not limit the corresponding relationship). Referring to fig. 4, as shown in fig. 4, the system photographs using a wide-angle lens when a subject is in a blank area, a main-camera lens when a subject is in a diagonal area, and a telephoto lens when a subject is in a vertical area. In the middle of the scale factor, digital zooming is performed to perform cropping display. When the frame selection operation is performed in the blank area or between the blank area and the oblique line area, the wide-angle zooming operation is performed; when the frame selection operation is carried out in the oblique line area or the oblique line and vertical line area, the main shooting zoom operation is carried out; and when the vertical line area is selected, performing a long-focus zooming operation.
In one exemplary embodiment, receiving the selection instruction includes: receiving the selection instruction generated by touching the preview interface area; determining a target area in a preview interface area of the image pickup apparatus under triggering of the selection instruction includes: determining a starting point for touching the preview interface area and an end point for touching the preview interface area, and determining the target area based on the starting point and the end point. In this embodiment, the selection instruction may be to click a selection area on a preview interface of the image capturing apparatus, and determine the target area according to the selected area, for example, a start point and an end point may be clicked and determined on the preview interface, perpendicular lines are drawn in the horizontal and vertical directions through the start point and the end point, respectively, and a closed graph surrounded by the perpendicular lines of the start point and the end point is the target area. Or, the selection instruction may be dragged after the start point is clicked, and released at the end point, and the framed area from the start point to the end point is the target area.
In one exemplary embodiment, determining the target area based on the start point and the end point includes: and under the condition that the preview interface area is rectangular, determining a rectangular area with the starting point and the end point as opposite vertexes as the target area, wherein four sides of the rectangular area are correspondingly parallel to four sides of the preview interface area. In the present embodiment, when the target region is a rectangle, the target region may be a rectangular region having a start point and an end point as opposite vertices.
How to control zooming is described below in conjunction with the detailed description:
fig. 5 is a flowchart of a zoom control method according to an embodiment of the present invention, as shown in fig. 5, the flowchart includes:
in step S502, the user opens a camera (a camera corresponding to the aforementioned image pickup apparatus) to see a preview screen (corresponding to the aforementioned preview interface).
In step S504, the user selects an object to be photographed.
In step S506, the apparatus calculates the ratio after the frame selection (corresponding to the zoom magnification described above).
In step S508, the camera selects a module, i.e., selects a digital zoom module or an optical zoom module according to the zoom factor, or selects a different camera module.
In step S510, after zooming, the zoomed content is displayed.
Fig. 6 is a structural view of a zoom control apparatus according to an embodiment of the present invention, as shown in fig. 6, the apparatus including:
and a scaling factor module 62 for calculating zoom factors.
And the module judging module 64 is used for selecting a digital zooming module or an optical zooming module according to the zooming times or selecting different camera modules.
The switching camera module 66 is used for switching between cameras.
And an update display screen module 68 for displaying the zoomed screen on the preview interface.
In the foregoing embodiment, the zoom control method is not limited to the operation using the wide-angle as the main interface, and the equivalent operation may be performed using the main shot. The zoom lens is not limited to a plurality of cameras, and a single camera can also realize zooming operation. The zoom control can be used as an auxiliary function of the camera equipment, the zoom control function can be entered by clicking a corresponding button in the camera equipment, a user can select whether to start the function according to needs, and when the user uses the zoom control, if the user does not want to shoot, the user can return to a common preview interface. When the user uses the zoom control, the user wants to fine-tune the screen, and can use the normal adjustment mode for adjustment. Therefore, the user zooming feeling can be improved, a brand new zooming operation is provided for the user, the zooming effect is improved, and the user experience is improved.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
In this embodiment, a zoom control device is further provided, and the device is used to implement the above embodiments and preferred embodiments, and the description of the device is omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 7 is a block diagram of a configuration of a zoom control apparatus according to an embodiment of the present invention, as shown in fig. 7, the apparatus including:
a receiving module 72, configured to receive a selection instruction;
a first determining module 74, configured to determine a target area in a preview interface area of the image capturing apparatus under the trigger of the selection instruction;
a second determining module 76, configured to determine a zoom factor based on a ratio of the preview interface area to the target area;
and the control module 78 is used for controlling the camera to zoom according to the zoom multiple.
The second determining module 76 corresponds to the scaling factor module 62, and the control module 78 corresponds to the module determining module 64, the switching camera module 66 and the updating display module 68.
In an exemplary embodiment, the second determining module 76 may determine the zoom factor based on the ratio of the preview interface area and the target area by: determining a first ratio of a first edge of the preview interface area to a first edge of the target area, and determining a second ratio of a second edge of the preview interface area to a second edge of the target area; determining the zoom magnification based on the first ratio in a case where it is determined that the first ratio is greater than or equal to the second ratio; determining the zoom factor based on the second ratio in a case where it is determined that the first ratio is smaller than the second ratio.
In one exemplary embodiment, the apparatus may be configured to control the image pickup apparatus to perform the secondary zoom at the second ratio after controlling the image pickup apparatus to perform the zoom at the zoom multiple in a case where the zoom multiple is determined based on the first ratio; the apparatus may be further configured to control the image pickup device to perform the second zooming at the first ratio after controlling the image pickup device to perform the zooming at the zoom multiple in a case where the zoom multiple is determined based on the second ratio.
In an exemplary embodiment, the control module 78 may control the image capturing apparatus to zoom by the zoom factor by: under the condition that the first lens currently used by the image pickup device is determined not to support zooming according to the zooming multiple, controlling the image pickup device to perform optical zooming so as to switch the lens currently used by the image pickup device from the first lens to a second lens, wherein the second lens is a lens supporting zooming according to the zooming multiple; zooming according to the zooming multiple by utilizing the second lens.
In an exemplary embodiment, the control module 78 may control the image capturing apparatus to perform optical zooming to switch the lens currently used by the image capturing apparatus from the first lens to the second lens when it is determined that the first lens currently used by the image capturing apparatus does not support zooming by the zoom factor: when the target area is determined to exceed the visual field range area of the first lens, determining that the first lens currently used by the camera equipment does not support zooming according to the zooming multiple; controlling the image pickup equipment to perform optical zooming so as to switch a lens currently used by the image pickup equipment from the first lens to a second lens, wherein the second lens is a lens of which a field range area comprises the target area; the control module 78 may implement zooming by the zoom factor using the second lens as follows: and carrying out digital zooming by utilizing the second lens according to the zooming multiple.
In an exemplary embodiment, the receiving module 72 may receive the selection instruction by: receiving the selection instruction generated by touching the preview interface area; the first determination module 74 may determine the target area in the preview interface area of the image capturing apparatus by triggering the selection instruction as follows: determining a starting point for touching the preview interface area and an end point for touching the preview interface area, and determining the target area based on the starting point and the end point.
In an exemplary embodiment, the first determination module 74 may determine the target area based on the start point and the end point by: and under the condition that the preview interface area is rectangular, determining a rectangular area with the starting point and the end point as opposite vertexes as the target area, wherein four sides of the rectangular area are correspondingly parallel to four sides of the preview interface area.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Embodiments of the present invention also provide a computer-readable storage medium having a computer program stored thereon, wherein the computer program is arranged to perform the steps of any of the above-mentioned method embodiments when executed.
In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
In an exemplary embodiment, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary embodiments, and details of this embodiment are not repeated herein.
It will be apparent to those skilled in the art that the various modules or steps of the invention described above may be implemented using a general purpose computing device, they may be centralized on a single computing device or distributed across a network of computing devices, and they may be implemented using program code executable by the computing devices, such that they may be stored in a memory device and executed by the computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into various integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A zoom control method, characterized by comprising:
receiving a selection instruction;
determining a target area in a preview interface area of the camera equipment under the trigger of the selection instruction;
determining a zoom factor based on a ratio of the preview interface area to the target area;
and controlling the camera equipment to zoom according to the zoom multiple.
2. The method of claim 1, wherein determining a zoom factor based on a ratio of the preview interface area and the target area comprises:
determining a first ratio of a first edge of the preview interface area to a first edge of the target area, and determining a second ratio of a second edge of the preview interface area to a second edge of the target area;
determining the zoom magnification based on the first ratio in a case where it is determined that the first ratio is greater than or equal to the second ratio;
determining the zoom factor based on the second ratio in a case where it is determined that the first ratio is smaller than the second ratio.
3. The method of claim 2,
in a case where the zoom magnification is determined based on the first ratio, after controlling the image pickup apparatus to zoom by the zoom magnification, the method further includes: controlling the camera equipment to carry out secondary zooming according to the second ratio;
in a case where the zoom magnification is determined based on the second ratio, after controlling the image pickup apparatus to zoom by the zoom magnification, the method further includes: and controlling the image pickup apparatus to perform secondary zooming according to the first ratio.
4. The method of claim 1, wherein controlling the imaging device to zoom by the zoom factor comprises:
under the condition that the first lens currently used by the image pickup device is determined not to support zooming according to the zooming multiple, controlling the image pickup device to perform optical zooming so as to switch the lens currently used by the image pickup device from the first lens to a second lens, wherein the second lens is a lens supporting zooming according to the zooming multiple;
zooming according to the zooming multiple by utilizing the second lens.
5. The method of claim 4,
in a case where it is determined that the first lens currently used by the image pickup apparatus does not support zooming by the zoom factor, controlling the image pickup apparatus to perform optical zooming to switch the lens currently used by the image pickup apparatus from the first lens to the second lens includes: when the target area is determined to exceed the visual field range area of the first lens, determining that the first lens currently used by the camera equipment does not support zooming according to the zooming multiple; controlling the image pickup equipment to perform optical zooming so as to switch a lens currently used by the image pickup equipment from the first lens to a second lens, wherein the second lens is a lens of which a field range area comprises the target area;
zooming by the second lens according to the zoom multiple comprises: and carrying out digital zooming by utilizing the second lens according to the zooming multiple.
6. The method of claim 1,
receiving the selection instruction includes: receiving the selection instruction generated by touching the preview interface area;
determining a target area in a preview interface area of the image pickup apparatus under triggering of the selection instruction includes: determining a starting point for touching the preview interface area and an end point for touching the preview interface area, and determining the target area based on the starting point and the end point.
7. The method of claim 6, wherein determining the target region based on the starting point and the ending point comprises:
and under the condition that the preview interface area is rectangular, determining a rectangular area with the starting point and the end point as opposite vertexes as the target area, wherein four sides of the rectangular area are correspondingly parallel to four sides of the preview interface area.
8. A zoom control device characterized by comprising:
the receiving module is used for receiving a selection instruction;
the first determining module is used for determining a target area in a preview interface area of the camera equipment under the trigger of the selection instruction;
the second determination module is used for determining a zoom multiple based on the ratio of the preview interface area to the target area;
and the control module is used for controlling the camera equipment to zoom according to the zoom multiple.
9. A computer-readable storage medium, in which a computer program is stored, wherein the computer program is arranged to perform the method of any of claims 1 to 7 when executed.
10. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and wherein the processor is arranged to execute the computer program to perform the method of any of claims 1 to 7.
CN202010574946.4A 2020-06-22 2020-06-22 Zoom control method, device, storage medium and electronic device Pending CN113905170A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010574946.4A CN113905170A (en) 2020-06-22 2020-06-22 Zoom control method, device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010574946.4A CN113905170A (en) 2020-06-22 2020-06-22 Zoom control method, device, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN113905170A true CN113905170A (en) 2022-01-07

Family

ID=79186523

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010574946.4A Pending CN113905170A (en) 2020-06-22 2020-06-22 Zoom control method, device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN113905170A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023230860A1 (en) * 2022-05-31 2023-12-07 北京小米移动软件有限公司 Zooming method, zooming device, electronic equipment, and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023230860A1 (en) * 2022-05-31 2023-12-07 北京小米移动软件有限公司 Zooming method, zooming device, electronic equipment, and storage medium

Similar Documents

Publication Publication Date Title
WO2017016050A1 (en) Image preview method, apparatus and terminal
CN110072087B (en) Camera linkage method, device, equipment and storage medium based on 3D map
CN112714255B (en) Shooting method and device, electronic equipment and readable storage medium
CN112492212B (en) Photographing method and device, electronic equipment and storage medium
CN112584043B (en) Auxiliary focusing method and device, electronic equipment and storage medium
WO2022161260A1 (en) Focusing method and apparatus, electronic device, and medium
CN112887617B (en) Shooting method and device and electronic equipment
WO2022161240A1 (en) Photographing method and apparatus, electronic device, and medium
CN113794829B (en) Shooting method and device and electronic equipment
KR20080104546A (en) Real-size preview system and control method in terminal that have digitial camera function
CN113014798A (en) Image display method and device and electronic equipment
WO2022156672A1 (en) Photographing method and apparatus, electronic device and readable storage medium
WO2022111330A1 (en) Image stitching method and apparatus for multi-camera device, storage medium, and terminal
CN112929566B (en) Display control method, display control device, electronic apparatus, and medium
CN113866782A (en) Image processing method and device and electronic equipment
CN113709368A (en) Image display method, device and equipment
CN113905170A (en) Zoom control method, device, storage medium and electronic device
CN112437232A (en) Shooting method, shooting device, electronic equipment and readable storage medium
CN113286085B (en) Display control method and device and electronic equipment
CN112333395B (en) Focusing control method and device and electronic equipment
CN112653841B (en) Shooting method and device and electronic equipment
CN112954197B (en) Shooting method, shooting device, electronic equipment and readable storage medium
KR20190129592A (en) Method and apparatus for providing video in potable device
CN112887603A (en) Shooting preview method and device and electronic equipment
CN110771147A (en) Method for adjusting parameters of shooting device, control equipment and shooting system

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