CN112261287A - Zoom control method, device, electronic equipment and computer-readable storage medium - Google Patents

Zoom control method, device, electronic equipment and computer-readable storage medium Download PDF

Info

Publication number
CN112261287A
CN112261287A CN202011078008.1A CN202011078008A CN112261287A CN 112261287 A CN112261287 A CN 112261287A CN 202011078008 A CN202011078008 A CN 202011078008A CN 112261287 A CN112261287 A CN 112261287A
Authority
CN
China
Prior art keywords
zoom
zooming
magnification
control
speed
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.)
Granted
Application number
CN202011078008.1A
Other languages
Chinese (zh)
Other versions
CN112261287B (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.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent Technology 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 Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN202011078008.1A priority Critical patent/CN112261287B/en
Publication of CN112261287A publication Critical patent/CN112261287A/en
Application granted granted Critical
Publication of CN112261287B publication Critical patent/CN112261287B/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/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

Abstract

The application relates to a zoom control method, a zoom control device, an electronic device and a storage medium. The method comprises the following steps: determining a zoom speed specified by a zoom speed adjustment operation in response to the zoom speed adjustment operation triggering zoom control; acquiring a preset zooming frequency; zooming is performed according to the zoom speed and the zoom frequency. By adopting the method, smooth zooming can be effectively realized, and the shooting effect is improved.

Description

Zoom control method, device, electronic equipment and computer-readable storage medium
Technical Field
The present application relates to the field of imaging technologies, and in particular, to a zoom control method and apparatus, an electronic device, and a computer-readable storage medium.
Background
With the rapid improvement of the image capability of electronic devices, more and more users use electronic devices to take photos or record videos. In particular, with the application of various lenses such as a super wide-angle lens, a telephoto lens, and a periscopic lens, zooming capability of a mobile terminal is greatly improved, and images with different zooming magnifications can be captured.
At present, most of interaction modes for adjusting the zoom ratio of the electronic equipment are manually adjusted by a user, for example, zooming-out or zooming-in zoom ratio can be realized by kneading or unfolding a double finger on a touch screen of a mobile terminal, smooth zooming can not be effectively realized, and the shooting effect of the electronic equipment is influenced.
Disclosure of Invention
The embodiment of the application provides a zoom control method and device, electronic equipment and a computer readable storage medium, which can effectively realize smooth zooming and improve shooting effect.
A zoom control method, comprising:
determining a zoom speed specified by a zoom speed adjustment operation in response to the zoom speed adjustment operation triggering zoom control;
acquiring a preset zooming frequency;
zooming is performed according to the zoom speed and the zoom frequency.
A zoom control apparatus comprising:
a zoom speed determination module for determining a zoom speed specified by a zoom speed adjustment operation in response to the zoom speed adjustment operation triggering zoom control;
the zoom frequency acquisition module is used for acquiring preset zoom frequency;
and the zooming processing module is used for zooming according to the zooming speed and the zooming frequency.
An electronic device comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the following steps when executing the computer program:
determining a zoom speed specified by a zoom speed adjustment operation in response to the zoom speed adjustment operation triggering zoom control;
acquiring a preset zooming frequency;
zooming is performed according to the zoom speed and the zoom frequency.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
determining a zoom speed specified by a zoom speed adjustment operation in response to the zoom speed adjustment operation triggering zoom control;
acquiring a preset zooming frequency;
zooming is performed according to the zoom speed and the zoom frequency.
According to the zoom control method, the zoom control device, the electronic equipment and the computer readable storage medium, the zoom speed specified by the zoom speed regulation operation triggering the zoom control is determined, zooming is carried out according to the preset zoom frequency and the zoom speed, uniform zooming can be carried out according to the specified zoom speed at the preset zoom frequency, smooth zooming is achieved, and therefore the shooting effect is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a diagram of an exemplary embodiment of a zoom control method;
FIG. 2 is a flow diagram of a zoom control method in one embodiment;
FIG. 3 is a flow diagram of zoom processing in one embodiment;
FIG. 4 is an interface diagram of a zoom speed adjustment control in one embodiment;
FIG. 5 is a schematic diagram of an interface of a zoom speed adjustment control in another embodiment;
FIG. 6 is a schematic diagram of an interface of a zoom speed adjustment control in yet another embodiment;
FIG. 7 is a schematic view of an interface shown in zoom in another embodiment;
FIG. 8 is a flow diagram illustrating zoom processing in one embodiment;
FIG. 9 is a block diagram showing the structure of a zoom control apparatus according to an embodiment;
FIG. 10 is a diagram illustrating an internal structure of an electronic device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
It will be understood that, as used herein, the terms "first," "second," and the like may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another. For example, a first client may be referred to as a second client, and similarly, a second client may be referred to as a first client, without departing from the scope of the present application. Both the first client and the second client are clients, but they are not the same client.
Fig. 1 is a schematic application environment of a zoom control method in an embodiment. As shown in fig. 1, the application environment includes an electronic device 102 with a shooting function, and the electronic device 102 can zoom on a shooting interface, specifically, the electronic device 102 determines a zoom speed specified by a zoom speed adjustment operation in response to the zoom speed adjustment operation triggering zoom control, and performs zooming according to a predetermined zoom frequency and the zoom speed. The electronic device 102 may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices.
Fig. 2 is a flow chart of a zoom control method in one embodiment. The zoom control method in the present embodiment is described by taking the electronic device in fig. 1 as an example. As shown in fig. 2, the zoom control method includes steps 202 to 206.
In response to a zoom speed adjustment operation that triggers zoom control, a zoom speed specified by the zoom speed adjustment operation is determined, step 202.
The zooming speed adjusting operation triggers the electronic equipment to zoom, and can specify a corresponding zooming speed, wherein the zooming speed is used for representing the zooming magnification change speed of the electronic equipment during zooming, and the zooming speed is higher, and the zooming magnification change speed of the electronic equipment during zooming is higher.
Specifically, the electronic device responds to a zoom speed adjustment operation triggering zoom control, where the zoom speed adjustment operation is generated by a User through a predetermined interaction manner, for example, the User performs a zoom speed adjustment operation on a UI (User Interface) control for zooming the electronic device, the electronic device determines a zoom speed specified by the zoom speed adjustment operation according to a position of the zoom speed adjustment operation, and for example, the electronic device may determine a corresponding zoom speed according to adjustment of the zoom speed adjustment operation on the control.
Step 204, acquiring a predetermined zoom frequency.
The zoom frequency is the number of times the electronic device performs the zoom processing in a unit time, such as the number of times the zoom processing is performed per second. The larger the zoom frequency is, the higher the zoom processing frequency in unit time is, the smoother and uniform the change of the zoom magnification in the zooming process is, but the performance overhead and the power consumption are increased, and the zoom frequency can be preset according to the performance and the actual requirement of the electronic equipment.
Specifically, the electronic device acquires a preset zoom frequency, such as a preset zoom frequency that can be queried from the attribute information of the electronic device. In addition, the zoom frequency may also be selected by a user within a certain range, for example, the user triggers a zoom frequency adjustment operation, and a corresponding zoom frequency is specified based on the zoom frequency adjustment operation.
And step 206, zooming according to the zooming speed and the zooming frequency.
After the zoom speed and the zoom frequency are determined, the electronic equipment performs zooming according to the zoom speed and the zoom frequency. Specifically, the electronic device may determine a zoom period according to the zoom frequency, and perform zooming according to the zoom speed in each zoom period, and compared with a conventional zoom control method in which a user directly performs zoom magnification adjustment, the electronic device performs zooming according to the zoom speed and the zoom frequency specified by the user, thereby achieving effective, smooth and uniform zooming and improving a shooting effect in a zooming process.
In the zoom control method in this embodiment, the zoom speed specified by the zoom speed adjustment operation that triggers the zoom control is determined, zooming is performed according to the predetermined zoom frequency and the zoom speed, uniform zooming can be performed at the predetermined zoom frequency according to the specified zoom speed, smooth zooming is achieved, and therefore the shooting effect in the zooming process is improved.
In one embodiment, zooming in accordance with zoom speed and zoom frequency, as shown in FIG. 3, includes steps 302 through 306.
Step 302, in the current zooming cycle, determining a zooming step length according to the zooming speed and the zooming frequency.
The zoom period is an interval time between two adjacent times of zooming processing of the electronic device during zooming, and the zoom period may be obtained according to a zoom frequency, such as an inverse number of the zoom frequency. The electronic device performs a zoom process once in each zoom period. The zoom step is the variation of the zoom magnification, i.e. how much zoom adjustment is required for the zoom magnification, in the corresponding zoom period. The zoom step length is obtained according to the zoom speed and the zoom frequency, generally, when the zoom frequency is fixed, the zoom speed is larger, the zoom magnification ratio which needs to be adjusted is larger correspondingly for each zoom period, and the zoom step length is larger; when the zoom speed is fixed, the larger the zoom frequency is, the smaller the zoom period is, and the smaller the zoom step length required to be adjusted is corresponding to each zoom period.
Specifically, when the electronic device performs zooming according to the zoom speed and the zoom frequency, in the current zoom period, the electronic device determines a zoom step corresponding to the current zoom period according to the zoom speed and the zoom frequency, for example, the zoom step may be calculated according to a ratio of the zoom speed and the zoom frequency.
And step 304, determining a target zoom magnification according to the zoom step length and the current zoom magnification.
The current zoom magnification is an initial zoom magnification before zooming processing in the current zoom cycle, and the current zoom magnification can be determined by inquiring shooting parameters of the electronic equipment. The target zoom magnification is the zoom magnification obtained after zoom processing is performed in the current zoom period. The target zoom magnification is obtained according to the current zoom magnification and zoom step length, for example, the target zoom magnification can be calculated according to the sum of the current zoom magnification and zoom step length.
Specifically, after the zoom step corresponding to the current zoom cycle is determined, the electronic device calculates a target zoom magnification according to the inquired current zoom magnification and zoom step.
And step 306, zooming according to the target zooming magnification.
And after the target zooming magnification is determined, zooming the electronic equipment according to the target zooming magnification in the current zooming period. Specifically, the electronic device may adjust the current zoom magnification of the electronic device to the target zoom magnification within the current zoom period, thereby implementing zoom processing within the current zoom period, and wait for the next zoom period to perform zoom processing in the next zoom period.
In this embodiment, in each zoom period, the electronic device obtains a target zoom magnification according to a zoom step determined by the zoom speed and the zoom frequency and the current zoom magnification, and performs zooming according to the target zoom magnification to realize zoom processing of each zoom period, thereby realizing smooth and uniform zooming and improving the shooting effect.
In one embodiment, the zoom control method further comprises: and when the next zooming cycle is reached, determining a new target zooming magnification according to the zooming step length and the zooming magnification in the next zooming cycle, and zooming according to the new target zooming magnification.
In this embodiment, for each zoom period, a zoom step length is determined according to a zoom speed and a zoom frequency corresponding to the zoom period, a target zoom magnification is calculated by combining with a corresponding current zoom magnification, and zooming is performed according to the obtained target zoom magnification. After zooming processing is carried out in the previous zooming cycle, the current zooming magnification of the next zooming cycle is changed into the target zooming magnification of the previous zooming cycle, and uniform and smooth zooming processing of the zooming magnification is realized through zooming processing in a plurality of zooming cycles.
Specifically, when the electronic device monitors that the next zoom period is reached, the corresponding zoom step length of the next zoom period is determined, for example, the corresponding zoom step length can be determined according to the zoom speed and the zoom frequency corresponding to the next zoom period, the electronic device determines a new target zoom magnification according to the zoom frequency and the zoom step length corresponding to the next zoom period, and zooming is performed according to the new target zoom magnification, so that zoom processing of each zoom period is realized, uniform and smooth zoom processing of the zoom magnification is realized, and the shooting effect in the zoom process is improved.
In one embodiment, zooming at a target zoom magnification comprises: and sending the target zooming magnification to the zooming control end to instruct the zooming control end to adjust the current zooming magnification to the target zooming magnification.
In this embodiment, the electronic device sends the target zoom magnification to a zoom control end, such as a Hardware Abstraction Layer (HAL), so as to instruct the zoom control end to perform zoom processing, and adjust the current zoom magnification to the target zoom magnification.
Specifically, when the target zoom magnification is determined and the electronic device zooms according to the target zoom magnification, the electronic device sends the target zoom magnification to the zoom control end, for example, the electronic device may generate a zoom instruction including the target zoom magnification, and the target zoom magnification is sent to the zoom control end by issuing the zoom instruction to the zoom control end. The zoom control end is used for adjusting zoom magnification of the electronic device, and may be a hardware abstraction layer. And the electronic equipment sends the target zooming magnification to the zooming control end, so that the zooming control end is instructed to adjust the current zooming magnification to the target zooming magnification, and zooming processing in a corresponding zooming period is realized.
In one embodiment, in response to a zoom speed adjustment operation triggering zoom control, determining a zoom speed specified by the zoom speed adjustment operation includes: displaying a zoom speed adjustment control in response to a zoom speed adjustment operation that triggers zoom control; it is determined that the zoom speed adjustment operation acts on the zoom speed specified by the zoom speed adjustment control.
The zoom speed adjusting control can be various adjusting controls such as a slide rod and a disc and is used for setting the zoom speed. The zooming speed adjusting control can be displayed in an interface of the electronic equipment when zooming control is triggered, and the type of the zooming speed adjusting control can be set according to user requirements, so that the personalized requirements of users are met. The user can specify the corresponding required zooming speed through the zooming speed adjusting control by zooming speed adjusting operation.
Specifically, the electronic device responds to a zoom speed adjustment operation triggering zoom control, for example, when the electronic device detects the zoom speed adjustment operation triggering zoom control in a zoom control detection area, and specifically detects a zoom speed adjustment operation when a user slides in the zoom control detection area, and responds to the zoom speed adjustment operation, a zoom speed adjustment control is displayed in an interface of the electronic device, and determines that the zoom speed adjustment operation acts on a zoom speed specified by the zoom speed adjustment control, for example, a corresponding specified zoom speed can be determined according to a change of the zoom speed adjustment control.
In a specific implementation, as shown in fig. 4, the zoom speed adjustment control may be a slide rod control located on the left side of the interface of the electronic device, the user may adjust the zoom speed by sliding the slide rod up and down, and when the user slides the slide rod control, the electronic device may determine the zoom speed specified by the user according to the position of the slider in the slide rod control, where the zoom speed specified in fig. 4 is +2/s, that is, the zoom magnification is increased by 2 times per second. As shown in fig. 5, the zoom speed adjustment control may also be a slide bar control disposed below the interface of the electronic device, and the user may realize the designation of the zoom speed by sliding the slide bar left and right. As shown in fig. 6, the zoom speed adjustment control may be a disc control disposed on the interface of the electronic device, and the user may adjust the zoom speed by rotating the disc control. In specific application, the control type and the interface position of the zoom speed adjusting control can be set individually by a user and set according to the requirements of the user.
In one embodiment, the zoom speed adjustment control comprises a slide control, and determining the zoom speed specified by the zoom speed adjustment operation acting on the zoom speed adjustment control comprises: in response to the sliding operation of the sliding object in the sliding control, determining the target position of the sliding object after the sliding operation; and determining the zoom speed designated by the sliding operation according to the target position.
In this embodiment, the zoom speed adjustment control includes a slide control, the slide control includes a slide object and a selectable scale, and the user displays the corresponding zoom speed in the slide control by moving the slide object. Specifically, when determining the zoom speed, the electronic device determines, in response to a sliding operation for the sliding object in the slide control, such as a sliding operation of a user on a slider in the slide rod control, a target position where the sliding object is located after the sliding operation by the user in the slide control. The electronic device determines a zoom speed specified by the sliding operation according to the target position. Generally, each position of the selectable scale in the slider control corresponds to a different zoom speed, and the position of the sliding object in the slider control in the selectable scale corresponds to the zoom speed selected by the slider control. The electronic device may determine the zoom speed specified by the sliding operation according to the mapping relationship between each position in the selectable scale of the sliding control and each zoom speed, in combination with the target position of the sliding object.
In this embodiment, the electronic device determines the zoom speed according to the target position of the sliding object in the sliding control under the action of the sliding operation of the user, and the user can adjust the zoom speed through the sliding control, so that the operability of zoom control is improved.
In one embodiment, determining a zoom speed specified by a slide operation based on a target position includes: determining a zooming direction and a zooming speed according to the target position; the zoom speed specified by the slide operation is obtained according to the zoom direction and the zoom rate.
In this embodiment, the position of the sliding object in the sliding control corresponds to different zoom speeds, including a zoom direction and a zoom rate. Wherein, the zooming rate represents the variation of the zooming magnification in unit time, and the zooming direction represents the zooming magnification increase or decrease. Specifically, after determining the target position of the sliding object in the sliding control, the electronic device determines the zoom direction and the zoom rate according to the target position, for example, the electronic device may determine the zoom direction and the zoom rate according to the offset displacement of the target position relative to the initial position of the sliding object, and obtain the zoom speed specified by the sliding operation according to the zoom direction and the zoom rate. For example, if the target position of the sliding object is shifted toward the increasing direction relative to the initial position, the zooming direction may be determined as increasing, which may be denoted as "+", and then the value of the zooming rate is determined according to the magnitude of the shift displacement of the target position relative to the initial position, and the zooming speed is obtained according to the zooming direction and the zooming rate, which may be +2/s, for example, which represents that the zooming magnification needs to be increased by 2 times per second.
In this embodiment, the zoom speed is determined according to the zoom direction and the zoom rate, so that the zoom magnification can be increased or decreased, the zoom magnification can be effectively controlled, and the control efficiency of the zoom magnification is improved.
In one embodiment, the zoom control method further comprises: and displaying the zooming speed and the current zooming magnification in a preset area.
In this embodiment, the zoom speed and the current zoom magnification specified by the user are displayed in the interface of the electronic device, so that the shooting parameters are visually displayed. Specifically, a shooting parameter presentation area in which the zoom speed and the current zoom magnification are presented may be set in advance in an interface of the electronic device.
In a specific application, as shown in fig. 7, a current zoom speed specified by the zoom speed adjustment operation may be shown in a first area associated with a slide object of the slide control, and a current zoom magnification may be shown in a second area of the electronic device. In fig. 7, the zoom magnification shown above the sliding object of the slide control is +2/s, and the current zoom magnification shown above the interface is 1.2X.
In one embodiment, the zoom control method further comprises: when the zoom speed adjustment operation ends, the zoom speed is reset and zooming is stopped.
In this embodiment, when the zoom speed adjustment operation is finished, the representation that the user has adjusted to the required zoom magnification, the zoom speed is reset, and if the zoom speed is reset to 0, the zoom processing is stopped, so that the current zoom magnification is maintained for shooting. Specifically, when the electronic device monitors that the zoom speed adjustment operation is finished, if the user releases the control over the zoom speed adjustment control, the electronic device resets the zoom speed to 0, stops zooming, and keeps the current zoom magnification for shooting. And when the zooming speed adjusting operation is finished, the zooming speed is reset and zooming is stopped, so that the zooming magnification required by a user can be kept for shooting, and the shooting effect is improved.
In one embodiment, the zoom control method further includes: when the zoom speed adjustment operation is finished, the zoom speed adjustment control is hidden.
In this embodiment, when the zoom speed adjustment operation is finished, the representation user has adjusted to the required zoom magnification, and the zoom speed adjustment control is hidden, so that the shielding of the zoom speed adjustment control on the shot picture is reduced, and the display effect of the shot picture can be improved. Specifically, when the electronic device monitors that the zoom speed adjustment operation is finished, such as when the user releases the control over the zoom speed adjustment control, the electronic device hides the zoom speed adjustment control. In specific implementation, when the electronic device monitors that the zooming speed adjusting operation is finished, the electronic device can reset the zooming speed and stop zooming, and meanwhile, hide the zooming speed adjusting control; the zoom speed adjustment control may also be hidden after the electronic device resets the zoom speed and stops zooming.
In one embodiment, the zoom control method further comprises: determining the current zoom magnification; and when the current zooming magnification reaches a preset limit value, resetting the zooming speed and stopping zooming.
In this embodiment, when the current zoom magnification reaches a preset limit value, for example, a preset maximum zoom magnification or a preset minimum zoom magnification, the zoom speed is reset and zooming is stopped. Specifically, the electronic device determines a current zoom magnification, compares the current zoom magnification with a preset limit value, and resets the zoom speed and stops zooming if the current zoom magnification reaches the preset limit value and zooming cannot be performed any more. In a specific implementation, if the current zoom magnification reaches the maximum or minimum zoom magnification, the zoom processing for increasing or decreasing cannot be performed any more, but only the reverse adjustment, that is, only the zoom processing for decreasing or increasing the zoom magnification, can be performed.
In one embodiment, a zoom control method is provided, which can be applied to a shooting preview or video recording process of an electronic device. Specifically, a speed adjusting slide rod capable of controlling zooming is slid up and down in a view frame of a shooting interface of the electronic equipment. The zoom speed velocity has a unit of/s, meaning a zoom-in/zoom-out magnification value that changes per second. For example, when the current zoom magnification is 1X, and the zoom speed is +2/s, the zoom magnification will be uniformly advanced from 1X to 3X within 1 s; when the zoom magnification is a negative value, it indicates that zooming is smoothly and uniformly from a high magnification to a low magnification. The interaction of the speed adjustment slider bar may be as shown in table 1 below.
TABLE 1
Figure BDA0002717134010000121
In one embodiment, when the electronic device performs the zooming processing at a zoom speed specified by a user, the electronic device calculates a zoom step according to a preset zoom frequency and zoom speed. The zoom frequency represents the number of times of issuing zoom instructions to the HAL per second, and the larger the frequency is, the smoother and uniform the process of the inertial zoom is, but the performance overhead and the power consumption are increased accordingly, so that a compromise zoom frequency value needs to be preset by combining the performance and the power consumption of the HAL, and the smoothness of the zoom and the performance power consumption overhead are both considered. The zoom step size can be calculated by the following equation (1) for each zoom period,
step=velocity/frequency (1)
step represents the relative value of each zoom magnification change, and the target zoom magnification zoom in the corresponding zoom period can be calculated based on step, as shown in the following formula (2),
zoom=zoom0+step (2)
wherein, zoom0The zoom magnification obtained after the zoom processing in the previous zoom period.
As shown in fig. 8, in each zoom period, the electronic device determines a zoom speed velocity, determines a zoom step according to a ratio of the zoom speed velocity and a zoom frequency, and determines a zoom magnification step according to the zoom step and a current zoom magnification zoom0Determining a target zoom magnification zoom corresponding to the zoom period, and obtaining the target zoom magnification zoomzoom processing is issued to the HAL to instruct the HAL to perform zoom processing, and the current zoom magnification is adjusted to the target zoom magnification zoom, thereby realizing zoom processing of one zoom cycle. For example, in the current zoom period, the current zoom magnification of the electronic device is 1x, the zoom speed is +2/s, and the zoom frequency is 10 times/s, then the electronic device may calculate that the zoom step size in the current zoom period is 0.2, and the target zoom magnification is 1.2x, and then the electronic device may issue 1.2x to the hardware abstraction layer to instruct the hardware abstraction layer to adjust the zoom magnification of the electronic device to 1.2 x. Repeating the steps every 1/frequency second, zooming can be smoothly carried out at a fixed zooming speed within 1 second, the effect that the movie lens is zoomed in or out like can be achieved, the shooting experience of a user is improved, and the shooting mode of the mobile terminal device is enriched.
It should be understood that although the various steps in the flowcharts of fig. 2-3, 8 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-3, 8 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.
Fig. 9 is a block diagram of a zoom control apparatus 900 according to an embodiment, which may be a part of a computer device using a software module or a hardware module, or a combination of the two modules, as shown in fig. 9, and specifically includes: a zoom speed determination module 902, a zoom frequency acquisition module 904, and a zoom processing module 906, wherein:
a zoom speed determination module 902 for determining a zoom speed specified by a zoom speed adjustment operation in response to the zoom speed adjustment operation triggering zoom control;
a zoom frequency obtaining module 904, configured to obtain a predetermined zoom frequency;
and a zooming processing module 906, configured to zoom according to the zooming speed and the zooming frequency.
In one embodiment, the zoom processing module 906 includes a zoom step determination module, a target magnification determination module, and a target magnification zoom module; wherein: the zoom step determining module is used for determining a zoom step according to the zoom speed and the zoom frequency in the current zoom period; the target magnification determining module is used for determining a target zooming magnification according to the zooming step length and the current zooming magnification; and the target magnification zooming module is used for zooming according to the target zooming magnification.
In one embodiment, the zoom processing module 906 is further configured to determine a new target zoom magnification according to the zoom step and the zoom magnification in the next zoom cycle when the next zoom cycle is reached, and zoom according to the new target zoom magnification.
In one embodiment, the target magnification zoom module is further configured to send the target zoom magnification to the zoom control end to instruct the zoom control end to adjust the current zoom magnification to the target zoom magnification.
In one embodiment, the zoom speed determination module 902 includes a zoom control presentation module and a control analysis module; wherein: the zoom control display module is used for responding to zoom speed adjusting operation triggering zoom control and displaying the zoom speed adjusting control; and the control analysis module is used for determining the zoom speed specified by the zoom speed adjusting control acted by the zoom speed adjusting operation.
In one embodiment, the zoom speed adjustment control comprises a slide control, and the control analysis module comprises a target position determination module and a target position processing module; wherein: the target position determining module is used for responding to the sliding operation of the sliding object in the sliding control and determining the target position of the sliding object after the sliding operation; and the target position processing module is used for determining the zoom speed specified by the sliding operation according to the target position.
In one embodiment, the target position processing module comprises a target position analysis module and an analysis result processing module; wherein: the target position analysis module is used for determining a zooming direction and a zooming speed according to the target position; and the analysis result processing module is used for obtaining the zoom speed specified by the sliding operation according to the zoom direction and the zoom speed.
In one embodiment, the zoom module further comprises a display module for displaying the zoom speed and the current zoom magnification in a preset area.
In one embodiment, a reset module is further included for resetting the zoom speed and stopping zooming when the zoom speed adjustment operation is ended.
In one embodiment, a control hiding module is further included for hiding the zoom speed adjustment control when the zoom speed adjustment operation is finished.
In one embodiment, the system further comprises a current multiplying power determining module and a multiplying power limiting processing module; wherein: the current magnification determining module is used for determining the current zoom magnification; and the magnification limit processing module is used for resetting the zooming speed and stopping zooming when the current zooming magnification reaches a preset limit value.
The division of the modules in the zoom control apparatus is merely for illustration, and in other embodiments, the zoom control apparatus may be divided into different modules as needed to complete all or part of the functions of the zoom control apparatus.
For specific limitations of the zoom control device, reference may be made to the above limitations of the zoom control method, which are not described herein again. The various modules in the zoom control apparatus described above may be implemented in whole or in part by software, hardware, and combinations thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
Fig. 10 is a schematic diagram of an internal structure of an electronic device in one embodiment. As shown in fig. 10, the electronic device includes a processor and a memory connected by a system bus. Wherein, the processor is used for providing calculation and control capability and supporting the operation of the whole electronic equipment. The memory may include a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The computer program is executable by a processor for implementing a zoom control method provided in the following embodiments. The internal memory provides a cached execution environment for the operating system computer programs in the non-volatile storage medium. The electronic device may be any terminal device such as a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a Point of Sales (POS), a vehicle-mounted computer, and a wearable device.
The implementation of each module in the zoom control apparatus provided in the embodiments of the present application may be in the form of a computer program. The computer program may be run on a terminal or a server. Program modules constituted by such computer programs may be stored on the memory of the electronic device. Which when executed by a processor, performs the steps of the method described in the embodiments of the present application.
The embodiment of the application also provides a computer readable storage medium. One or more non-transitory computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, cause the processors to perform the steps of the zoom control method.
A computer program product comprising instructions which, when run on a computer, cause the computer to perform a zoom control method.
Any reference to memory, storage, database, or other medium used herein may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM), which acts as external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and bus dynamic RAM (RDRAM).
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (14)

1. A zoom control method, characterized by comprising:
in response to a zoom speed adjustment operation that triggers zoom control, determining a zoom speed specified by the zoom speed adjustment operation;
acquiring a preset zooming frequency;
zooming is carried out according to the zooming speed and the zooming frequency.
2. The method of claim 1, wherein said zooming in accordance with said zoom speed and said zoom frequency comprises:
in the current zooming period, determining a zooming step length according to the zooming speed and the zooming frequency;
determining a target zooming magnification according to the zooming step length and the current zooming magnification;
zooming according to the target zooming magnification.
3. The method of claim 2, further comprising:
and when the next zooming cycle is reached, determining a new target zooming magnification according to the zooming step length and the zooming magnification in the next zooming cycle, and zooming according to the new target zooming magnification.
4. The method of claim 2, wherein said zooming at said target zoom magnification comprises:
and sending the target zooming magnification to a zooming control end to instruct the zooming control end to adjust the current zooming magnification to the target zooming magnification.
5. The method of claim 1, wherein determining a zoom speed specified by a zoom speed adjustment operation in response to the zoom speed adjustment operation triggering zoom control comprises:
displaying a zoom speed adjustment control in response to a zoom speed adjustment operation that triggers zoom control;
determining that the zoom speed adjustment operation acts on the zoom speed specified by the zoom speed adjustment control.
6. The method of claim 5, wherein the zoom speed adjustment control comprises a slide control, and wherein determining that the zoom speed adjustment operation acts on the zoom speed specified by the zoom speed adjustment control comprises:
in response to a sliding operation of a sliding object in the sliding control, determining a target position of the sliding object after the sliding operation;
and determining the zoom speed specified by the sliding operation according to the target position.
7. The method of claim 6, wherein determining the zoom speed specified by the sliding operation based on the target position comprises:
determining a zooming direction and a zooming speed according to the target position;
and obtaining the zoom speed appointed by the sliding operation according to the zoom direction and the zoom speed.
8. The method of claim 1, further comprising:
and displaying the zooming speed and the current zooming magnification in a preset area.
9. The method of claim 1, further comprising:
resetting the zoom speed and stopping zooming when the zoom speed adjustment operation is finished.
10. The method of claim 5, further comprising:
hiding the zoom speed adjustment control when the zoom speed adjustment operation is finished.
11. The method according to any one of claims 1 to 10, further comprising:
determining the current zoom magnification;
and when the current zooming magnification reaches a preset limit value, resetting the zooming speed and stopping zooming.
12. A zoom control device characterized by comprising:
a zoom speed determination module for determining a zoom speed specified by a zoom speed adjustment operation in response to the zoom speed adjustment operation triggering zoom control;
the zoom frequency acquisition module is used for acquiring preset zoom frequency;
and the zooming processing module is used for zooming according to the zooming speed and the zooming frequency.
13. An electronic device comprising a memory and a processor, the memory having stored thereon a computer program, wherein the computer program, when executed by the processor, causes the processor to perform the steps of the zoom control method according to any of claims 1-11.
14. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 11.
CN202011078008.1A 2020-10-10 2020-10-10 Zoom control method, device, electronic equipment and computer-readable storage medium Active CN112261287B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011078008.1A CN112261287B (en) 2020-10-10 2020-10-10 Zoom control method, device, electronic equipment and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011078008.1A CN112261287B (en) 2020-10-10 2020-10-10 Zoom control method, device, electronic equipment and computer-readable storage medium

Publications (2)

Publication Number Publication Date
CN112261287A true CN112261287A (en) 2021-01-22
CN112261287B CN112261287B (en) 2023-03-21

Family

ID=74242501

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011078008.1A Active CN112261287B (en) 2020-10-10 2020-10-10 Zoom control method, device, electronic equipment and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN112261287B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5241335A (en) * 1991-06-05 1993-08-31 Eastman Kodak Company Zoom control system
JP2007325009A (en) * 2006-06-01 2007-12-13 Sony Corp Image pick-up device
JP2010166305A (en) * 2009-01-15 2010-07-29 Panasonic Corp Imaging apparatus
CN102055907A (en) * 2009-11-06 2011-05-11 佳能株式会社 Image pickup apparatus and control method thereof
CN104246597A (en) * 2011-09-30 2014-12-24 富士胶片株式会社 Imaging device, imaging method, recording medium and program
US20150181129A1 (en) * 2013-12-24 2015-06-25 Samsung Electronics Co., Ltd. Imaging apparatus
CN106338809A (en) * 2015-07-09 2017-01-18 株式会社三丰 Adaptable operating frequency of a variable focal length lens in an adjustable magnification optical system
CN107408008A (en) * 2015-12-30 2017-11-28 深圳市大疆灵眸科技有限公司 Zoom control method, system, device and memory, aircraft
CN109151257A (en) * 2018-09-20 2019-01-04 浙江大华技术股份有限公司 A kind of method and video camera of image procossing
WO2019010470A1 (en) * 2017-07-07 2019-01-10 University Of Louisville Research Foundation, Inc. Segmentation of medical images
CN109361794A (en) * 2018-11-19 2019-02-19 Oppo广东移动通信有限公司 Zoom control method, apparatus, storage medium and the mobile terminal of mobile terminal
CN111464752A (en) * 2020-05-18 2020-07-28 Oppo广东移动通信有限公司 Zoom control method of electronic device and electronic device

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5241335A (en) * 1991-06-05 1993-08-31 Eastman Kodak Company Zoom control system
JP2007325009A (en) * 2006-06-01 2007-12-13 Sony Corp Image pick-up device
JP2010166305A (en) * 2009-01-15 2010-07-29 Panasonic Corp Imaging apparatus
CN102055907A (en) * 2009-11-06 2011-05-11 佳能株式会社 Image pickup apparatus and control method thereof
CN104246597A (en) * 2011-09-30 2014-12-24 富士胶片株式会社 Imaging device, imaging method, recording medium and program
US20150181129A1 (en) * 2013-12-24 2015-06-25 Samsung Electronics Co., Ltd. Imaging apparatus
CN106338809A (en) * 2015-07-09 2017-01-18 株式会社三丰 Adaptable operating frequency of a variable focal length lens in an adjustable magnification optical system
CN107408008A (en) * 2015-12-30 2017-11-28 深圳市大疆灵眸科技有限公司 Zoom control method, system, device and memory, aircraft
WO2019010470A1 (en) * 2017-07-07 2019-01-10 University Of Louisville Research Foundation, Inc. Segmentation of medical images
CN109151257A (en) * 2018-09-20 2019-01-04 浙江大华技术股份有限公司 A kind of method and video camera of image procossing
CN109361794A (en) * 2018-11-19 2019-02-19 Oppo广东移动通信有限公司 Zoom control method, apparatus, storage medium and the mobile terminal of mobile terminal
CN111464752A (en) * 2020-05-18 2020-07-28 Oppo广东移动通信有限公司 Zoom control method of electronic device and electronic device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"业界首创!松下电器 第二代80倍超级动态范围监控摄象机", 《上海消防》 *

Also Published As

Publication number Publication date
CN112261287B (en) 2023-03-21

Similar Documents

Publication Publication Date Title
US11140339B2 (en) Video image processing method, apparatus and terminal
US8497920B2 (en) Method, apparatus, and computer program product for presenting burst images
US20230094025A1 (en) Image processing method and mobile terminal
US9357117B2 (en) Photographing device for producing composite image and method using the same
KR20220130197A (en) Filming method, apparatus, electronic equipment and storage medium
KR101676555B1 (en) Picture display processing method and device
JPWO2014027567A1 (en) Image processing system, image processing method, and program
CN113923350A (en) Video shooting method and device, electronic equipment and readable storage medium
KR20080104546A (en) Real-size preview system and control method in terminal that have digitial camera function
CN115103126A (en) Shooting preview method and device, electronic equipment and storage medium
JP2014207616A (en) Image display apparatus, method of controlling image display apparatus, image display program, and computer readable recording medium with the same recorded thereon
CN112261287B (en) Zoom control method, device, electronic equipment and computer-readable storage medium
WO2023231869A1 (en) Photographing method and apparatus
CN112954197B (en) Shooting method, shooting device, electronic equipment and readable storage medium
CN113055592B (en) Image display method and device, electronic equipment and computer readable storage medium
JP7169456B2 (en) Video playback speed control method, device, device and storage medium
EP3997558A1 (en) Method for operating an electronic device in order to browse through photos
CN113014820A (en) Processing method and device and electronic equipment
CN111367449A (en) Picture processing method and device, computer equipment and storage medium
RU2792413C1 (en) Image processing method and mobile terminal
CN115514895B (en) Image anti-shake method, apparatus, electronic device, and computer-readable storage medium
CN117528250A (en) Multimedia file processing method, multimedia file processing device and electronic equipment
CN115802150A (en) Image processing method, device, terminal and computer readable storage medium
CN116132617A (en) Video recording method, device, electronic equipment and storage medium
CN115103112A (en) Lens control method 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