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

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

Info

Publication number
CN117714892A
CN117714892A CN202211054960.7A CN202211054960A CN117714892A CN 117714892 A CN117714892 A CN 117714892A CN 202211054960 A CN202211054960 A CN 202211054960A CN 117714892 A CN117714892 A CN 117714892A
Authority
CN
China
Prior art keywords
parameter value
trigger parameter
current
target scene
zoom
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
CN202211054960.7A
Other languages
Chinese (zh)
Inventor
褚跃跃
夏勇峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Beehive Century Technology Co ltd
Original Assignee
Beijing Beehive Century 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 Beijing Beehive Century Technology Co ltd filed Critical Beijing Beehive Century Technology Co ltd
Priority to CN202211054960.7A priority Critical patent/CN117714892A/en
Publication of CN117714892A publication Critical patent/CN117714892A/en
Pending legal-status Critical Current

Links

Abstract

The disclosure provides a zoom control method, a device, an electronic device and a storage medium, wherein the method comprises the following steps: responding to a zooming trigger instruction aiming at a target scene image, and acquiring a starting point trigger parameter value and an ending point trigger parameter value in the zooming trigger instruction; the steps are circularly executed as follows: determining a current trigger parameter value required to be adopted for the current image rendering based on the last trigger parameter value adopted for the previous image rendering and the end point trigger parameter value; the current trigger parameter value is between the last trigger parameter value and the end point trigger parameter value; and performing current image rendering based on the current trigger parameter value to obtain a zoomed frame of target scene image. In the process of rendering the current time, the parameter value of the last time and the parameter value pointing to the end point can be referred to, so that zooming of the end point can be gradually approached along with the process of rendering frame by frame, smooth zooming is realized, and the viewing smoothness of a picture is improved.

Description

Zoom control method and device, electronic equipment and storage medium
Technical Field
The disclosure relates to the technical field of image capturing, in particular to a zoom control method, a device, electronic equipment and a storage medium.
Background
With the rapid increase of the image capturing capability of electronic devices, more and more users use electronic devices to take photos or record videos. In order to achieve better shooting effect, the current electronic device can zoom in or zoom out of the shot image through various zoom lenses.
The zoom adjustment interaction manner in the related art is mostly manual adjustment, and for example, the zoom magnification can be scaled by pinching or expanding two fingers on the touch screen of the mobile terminal. When the user is performing zooming operation through the touch screen, if the zooming operation is performed from the starting point x1 to the ending point x2, the corresponding focal length can be changed from the current value z1 to the result value z2 through conversion.
However, the above-described switching process is not continuous, which results in failure to achieve smooth zooming, affecting the viewing smoothness of the video picture.
Disclosure of Invention
The embodiment of the disclosure provides at least a zoom control method, a zoom control device, electronic equipment and a storage medium, so as to realize smooth zooming.
In a first aspect, an embodiment of the present disclosure provides a zoom control method, including:
responding to a zooming trigger instruction aiming at a target scene image, and acquiring a starting point trigger parameter value and an ending point trigger parameter value in the zooming trigger instruction;
the steps are circularly executed as follows:
determining a current trigger parameter value required to be adopted for the current image rendering based on the last trigger parameter value adopted for the previous image rendering and the end point trigger parameter value; the current trigger parameter value is between the last trigger parameter value and the end point trigger parameter value;
and performing current image rendering based on the current trigger parameter value to obtain a zoomed frame of target scene image.
In a possible implementation manner, the determining the current trigger parameter value to be adopted by the current image rendering based on the last trigger parameter value adopted by the last image rendering and the end point trigger parameter value includes:
performing difference operation on the end point trigger parameter value and the last trigger parameter value to obtain a first operator; and taking the last trigger parameter value as a second operator;
the current trigger parameter value is determined based on the first operator and the second operator.
In a possible implementation manner, the determining the current triggering parameter value based on the first operator and the second operator includes:
obtaining a preset zooming coefficient; the zoom coefficient is used for representing the speed of zooming between frames;
multiplying the first operator and the zoom coefficient to obtain an operation result;
and carrying out addition operation on the operation result and the second operator to determine the current trigger parameter value.
In one possible implementation, the zoom factor is a value greater than 0 and less than 1, and the zoom factor is positively correlated with the speed magnitude of the zoom.
In one possible embodiment, the trigger parameter value comprises one of the following parameter values:
triggering coordinate values for triggering the target scene image;
and transforming based on the trigger coordinate values to obtain a lens zoom value.
In one possible implementation manner, the responding to the zoom trigger instruction for the target scene image includes the following manner:
in the case of performing a sliding operation with respect to a target scene image in a user side, responding to a zoom trigger instruction with respect to the target scene image;
in the case of performing a double-click operation on a target scene image in the user side, a zoom trigger instruction for the target scene image is responded.
In one possible embodiment, after obtaining the zoomed frame of the target scene image, the method further comprises:
and displaying the zoomed target scene image of one frame on the user side.
In a possible implementation manner, the user terminal includes augmented reality AR glasses, and the displaying the zoomed frame of target scene image on the user terminal includes:
obtaining a virtual special effect generated aiming at a target scene image;
and superposing the virtual special effect on the zoomed target scene image to obtain a superposed picture, and displaying the superposed picture on the user side.
In a second aspect, embodiments of the present disclosure further provide a zoom control apparatus, including:
the acquisition module is used for responding to a zooming trigger instruction aiming at the target scene image and acquiring a starting point trigger parameter value and an ending point trigger parameter value in the zooming trigger instruction;
the zooming module is used for circularly executing the following steps:
determining a current trigger parameter value required to be adopted for the current image rendering based on the last trigger parameter value adopted for the previous image rendering and the end point trigger parameter value; the current trigger parameter value is between the last trigger parameter value and the end point trigger parameter value;
and performing current image rendering based on the current trigger parameter value to obtain a zoomed frame of target scene image.
In a third aspect, an embodiment of the present disclosure further provides an electronic device, including: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory in communication over the bus when the electronic device is running, the machine-readable instructions when executed by the processor performing the zoom control method according to the first aspect and any of its various embodiments.
In a fourth aspect, the presently disclosed embodiments also provide a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs a zoom control method according to the first aspect and any of its various embodiments.
By adopting the zoom control method, the device, the electronic equipment and the storage medium, under the condition that the starting point trigger parameter value and the end point trigger parameter value in the zoom trigger instruction are acquired, the process of determining the current trigger parameter value required to be adopted by the current rendering based on the last trigger parameter value and the end point trigger parameter value adopted by the previous image rendering can be circularly executed, and each frame of target scene image after zooming can be rendered. In the process of rendering the current time, the parameter value of the last time and the parameter value pointing to the end point can be referred to, so that zooming of the end point can be gradually approached along with the process of rendering frame by frame, smooth zooming is realized, and the viewing smoothness of a picture is improved.
Other advantages of the present disclosure will be explained in more detail in conjunction with the following description and accompanying drawings.
It should be understood that the foregoing description is only an overview of the technical solutions of the present disclosure so that the technical means of the present disclosure may be more clearly understood and may be implemented in accordance with the content of the specification. The following specific examples illustrate the present disclosure in order to make the above and other objects, features and advantages of the present disclosure more comprehensible.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings required for the embodiments are briefly described below, which are incorporated in and constitute a part of the specification, these drawings showing embodiments consistent with the present disclosure and together with the description serve to illustrate the technical solutions of the present disclosure. It is to be understood that the following drawings illustrate only certain embodiments of the present disclosure and are therefore not to be considered limiting of its scope, for the person of ordinary skill in the art may admit to other equally relevant drawings without inventive effort.
Also, like reference numerals are used to designate like parts throughout the figures. In the drawings:
FIG. 1 illustrates a flow chart of a zoom control method provided by an embodiment of the present disclosure;
FIG. 2 shows a schematic diagram of a zoom control device provided by an embodiment of the present disclosure;
fig. 3 shows a schematic diagram of an electronic device provided by an embodiment of the disclosure.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
In the description of the embodiments of the present disclosure, it should be understood that terms such as "comprises" or "comprising" are intended to indicate the presence of features, numbers, steps, acts, components, portions or combinations thereof disclosed in the present specification, and are not intended to exclude the possibility of the presence of one or more other features, numbers, steps, acts, components, portions or combinations thereof.
Unless otherwise indicated, "/" means or, e.g., A/B may represent A or B; "and/or" herein is merely an association relationship describing an association object, and means that three relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist together, and B exists alone.
The terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first", "a second", etc. may explicitly or implicitly include one or more such feature. In the description of the embodiments of the present disclosure, unless otherwise indicated, the meaning of "a plurality" is two or more.
It has been found that the zoom adjustment interaction manner in the related art is mostly manual adjustment, for example, zoom magnification may be scaled by pinching or expanding two fingers on a touch screen of a mobile terminal. When the user is performing zooming operation through the touch screen, if the zooming operation is performed from the starting point x1 to the ending point x2, the corresponding focal length can be changed from the current value z1 to the result value z2 through conversion.
However, the above-described switching process is not continuous, which results in failure to achieve smooth zooming, affecting the viewing smoothness of the video picture.
To at least partially address one or more of the above-mentioned problems, as well as other potential problems, the present disclosure provides at least one zoom control scheme to achieve smooth zooming.
For the sake of understanding the present embodiment, first, a detailed description will be given of a zoom control method disclosed in an embodiment of the present disclosure, where an execution body of the zoom control method provided in the embodiment of the present disclosure is generally an electronic device having a certain computing capability, and the electronic device includes, for example: the terminal device, or other processing device, may be a User Equipment (UE), a mobile device, a User terminal, a handheld device, a computing device, a vehicle mount device, a wearable device, or the like. In some possible implementations, the zoom control method may be implemented by way of a processor invoking computer readable instructions stored in a memory.
Referring to fig. 1, a flowchart of a zoom control method according to an embodiment of the present disclosure is shown, where the method includes steps S101 to S103, where:
s101: responding to a zooming trigger instruction aiming at a target scene image, and acquiring a starting point trigger parameter value and an ending point trigger parameter value in the zooming trigger instruction;
s102: whether a cycle cut-off condition is reached;
if yes, ending; if not, executing S103;
s103: determining a current trigger parameter value required to be adopted for the current image rendering based on the last trigger parameter value adopted for the previous image rendering and the end point trigger parameter value; the current trigger parameter value is between the last trigger parameter value and the end point trigger parameter value; and performing current image rendering based on the current trigger parameter value to obtain a zoomed frame of target scene image.
In order to facilitate understanding of the zoom control method provided by the embodiments of the present disclosure, a detailed description is first given of an application scenario of the method. The zoom control method in the embodiment of the disclosure can be mainly applied to the field of equipment display, and the multi-frame scene image obtained based on cyclic rendering has a good zoom effect, so that the viewing fluency is remarkably improved.
Considering that the related art in the manual zooming process, when a user is performing a zooming operation through a touch screen, if changing from a start point x1 to an end point x2, the corresponding focal length may be changed from the current value z1 to the result value z2 through a transition. The whole switching process is discontinuous, which results in that smooth zooming cannot be realized, and viewing smoothness is affected.
In order to solve the above-mentioned problems, the embodiments of the present disclosure provide an iterative loop zoom scheme, which determines a current trigger parameter value by a last trigger parameter value and a pointed end trigger parameter value, and gradually approaches the end trigger parameter value during a loop, so as to achieve a smooth zoom effect.
Before the zoomed image is rendered, a zoom trigger instruction for the target scene image may first be responded, and a start trigger parameter value and an end trigger parameter value in the instruction are acquired.
The related target scene image may be a related scene image displayed on the user side, for example, may be a related scene image displayed on a photographing interface in the process of recording video, or may be a navigation image displayed on a related Application (APP), etc., which may not be limited in particular.
In practical applications, the target scene image may be a single image, an image segment formed by multiple images, or a video stream formed by a continuous image, and the zooming principle is similar regardless of the image sources, and the single image is used for illustration.
In addition, the zoom trigger instruction may be triggered in the case of performing a sliding operation with respect to the target scene image in the user side, where the sliding operation may be an action of pinching or expanding on the device touch screen, for example, a zoom multiple is decreased during pinching; the method can also be triggered under the condition of executing double-click operation on the target scene image in the user side, wherein the double-click operation can be that the zooming is executed once every double-click under the condition of a preset zooming multiple; in addition, the embodiments of the present disclosure may be implemented based on other triggering operations, which are not limited in detail herein.
Here, the start trigger parameter value and the end trigger parameter value may be obtained from a zoom trigger instruction, for example, in the process of pinching zoom, the start trigger parameter value may be a trigger parameter value at an initial position captured by a user when touching a finger to a target scene image displayed on a user side screen and triggering zoom, and the end trigger parameter value may be a trigger parameter value at an end position pointed in the process of pinching. The trigger parameter value may be a trigger coordinate value for triggering the target scene image, or may be a lens zoom value obtained by transforming based on the trigger coordinate value.
It should be noted that, the end point trigger parameter value may be a constant value, for example, a zoom operation performed once the user is pinching may correspond to a determined end point trigger parameter value; in addition, the end point trigger parameter value may be a variable value, for example, in the operation of performing zooming multiple times by kneading multiple times by the user, the end point trigger parameter value may be a plurality of variable values, and in practical application, the plurality of variable parameter values may be larger and larger, may be larger and smaller, may be smaller and larger, may be other variable trends, and may be determined in combination with specific zooming situations without specific limitation.
In the process of executing one zoom, a plurality of zoomed images can be rendered in unit time, the plurality of zoomed images correspond to a cyclic rendering process, namely, a current trigger parameter value needed to be adopted by the current image rendering is determined based on the last trigger parameter value adopted by the previous image rendering and the end point trigger parameter value, and a zoomed frame of target scene image obtained by the current image rendering is processed based on the current image rendering.
The cycle cutoff condition may be that the preset cycle number is reached, and the relevant cycle number may be determined in combination with the frame rate, and in addition, considering that the current trigger parameter value and the end point trigger parameter value gradually approach, the cycle cutoff condition may be that the difference between the two parameter values (i.e., the current trigger parameter value and the end point trigger parameter value) is sufficiently small, or may be other cutoff conditions, which are not particularly limited herein.
Considering the key role of the current trigger parameter value to be determined for each rendering on the zooming operation, the following description may focus on the determination process of the current trigger parameter value, which may be implemented specifically by the following steps:
step one, carrying out difference value operation on the end point trigger parameter value and the last trigger parameter value to obtain a first operator; and taking the last trigger parameter value as a second operator;
and step two, determining the current trigger parameter value based on the first operator and the second operator.
Here, the current trigger parameter value may be determined based on the first operator and the second operator. Considering the influence of different zooming change speeds on zooming effects, the current trigger parameter value can be determined by combining preset zooming coefficients, and the method can be realized by the following steps:
step one, obtaining a preset zoom coefficient; the zoom coefficient is used for representing the speed of zooming between frames;
step two, multiplying the first operator and the zoom coefficient to obtain an operation result;
and thirdly, carrying out addition operation on the operation result and the second operator to determine the current trigger parameter value.
Here, the first operator and the zoom coefficient may be multiplied to determine the zoom amplitude, and then based on an addition operation between the result obtained by the operation and the second operator, a current trigger parameter value that is finally required is determined, and the current trigger parameter value gradually approaches to the end trigger parameter value as the number of cycles increases.
To facilitate an understanding of the above loop rendering process, a further description may follow in conjunction with specific formulas and an example.
It is known that: the final target value F (i.e. the end point trigger parameter value), the actual value C (i.e. the last trigger parameter value) before the current cycle, the new value T (i.e. the current trigger parameter value) needed after the current cycle, and the advancing speed S (i.e. the preset zoom factor), wherein the relative S generally takes the values of 0-1, and the larger and the faster.
A cycle t=c+ (F-C) S can be first established based on the above information.
Here, in a certain cycle a, the new value required after the present cycle is set to a value intermediate between the final target value F and the actual value C before the present cycle, that is:
Ta=Ca+(F-Ca)*s
in the next cycle b, tb=cb+ (F-Cb) x s, wherein: cb is Ta of last cycle
The following description may be made in connection with a specific example.
For example, the current value is 0, the final target value is 100, and the forward speed is 0.5. At this time:
cycle 1:
new value=0+ (100-0) 0.5=50 required after this cycle;
cycle 2:
new value required after this cycle = 50+ (100-50) 0.5 = 75;
cycle 3:
new value required after this cycle = 75+ (100-75) 0.5 = 87.5;
……
gradually approaching 100 this final target value.
Based on the above examples, it can be seen that the embodiments of the present disclosure combine multiple cycling processes to achieve better zoom effects.
According to the zoom control method provided by the embodiment of the disclosure, the zoomed multi-frame target scene images can be displayed on the user side frame by frame, so that smooth zoom effects can be checked on the user side.
In addition, the picture display method provided by the embodiment of the disclosure can be applied to various user terminals. Considering AR technology as a technology for increasing the perception of the real world by a user through information provided by a computer system, virtual information can be applied to the real world, and virtual special effects, scenes and the like generated by a computer can be superimposed into the real scenes which can be watched by the user, so that mutual complementation of the two kinds of information is realized. Based on this, the user side may be the head-mounted AR glasses, so that the head-mounted AR glasses can display the combined real and virtual pictures in front of the eyes of the user, so as to enhance the experience of the user.
In order to better adapt to the AR display effect, in the process of performing image display after zooming, the following steps can be combined to realize:
step one, obtaining a virtual special effect generated aiming at a target scene image;
and step two, superposing the virtual special effect on the zoomed target scene image to obtain a superposed picture, and displaying the superposed picture on the user side.
Here, the virtual special effect generated for the current scene picture may be superimposed in the zoomed target scene image to make the presented fusion picture more immersive. The virtual special effect may be a related AR special effect determined by performing scene or target recognition on the current scene image, for example, in an actual application scene of cooking by a user, a product manufacturing process and the like may be used as the virtual special effect to be superimposed on the actual cooking image, so as to improve the practicability of the AR glasses.
In the description of the present specification, reference to the terms "some possible embodiments," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiments or examples is included in at least one embodiment or example of the present disclosure. In this specification, schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, the various embodiments or examples described in this specification and the features of the various embodiments or examples may be combined and combined by those skilled in the art without contradiction.
With respect to the method flow diagrams of the disclosed embodiments, certain operations are described as distinct steps performed in a certain order. Such a flowchart is illustrative and not limiting. Some steps described herein may be grouped together and performed in a single operation, may be partitioned into multiple sub-steps, and may be performed in an order different than that shown herein. The various steps illustrated in the flowcharts may be implemented in any manner by any circuit structure and/or tangible mechanism (e.g., by software running on a computer device, hardware (e.g., processor or chip implemented logic functions), etc., and/or any combination thereof).
It will be appreciated by those skilled in the art that in the above-described method of the specific embodiments, the written order of steps is not meant to imply a strict order of execution but rather should be construed according to the function and possibly inherent logic of the steps.
Based on the same inventive concept, the embodiments of the present disclosure further provide a zoom control device corresponding to the zoom control method, and since the principle of solving the problem by the device in the embodiments of the present disclosure is similar to that of the zoom control method described in the embodiments of the present disclosure, the implementation of the device may refer to the implementation of the method, and the repetition is omitted.
Referring to fig. 2, a schematic diagram of a zoom control device according to an embodiment of the disclosure is shown, where the device includes: an acquisition module 201 and a zooming module 202; wherein,
an obtaining module 201, configured to obtain a start trigger parameter value and an end trigger parameter value in a zoom trigger instruction in response to the zoom trigger instruction for a target scene image;
the zooming module 202 is configured to circularly perform the following steps:
determining a current trigger parameter value required to be adopted for the current image rendering based on the last trigger parameter value adopted for the previous image rendering and the end point trigger parameter value; the current trigger parameter value is between the last trigger parameter value and the end point trigger parameter value;
and performing current image rendering based on the current trigger parameter value to obtain a zoomed frame of target scene image.
By adopting the zoom control device, under the condition that the starting point trigger parameter value and the end point trigger parameter value in the zoom trigger instruction are acquired, the process of determining the current trigger parameter value required to be adopted for current rendering based on the last trigger parameter value and the end point trigger parameter value adopted for the previous image rendering can be circularly executed, and each frame of target scene image after zooming can be rendered. In the process of rendering the current time, the parameter value of the last time and the parameter value pointing to the end point can be referred to, so that zooming of the end point can be gradually approached along with the process of rendering frame by frame, smooth zooming is realized, and the viewing smoothness of a picture is improved.
In a possible implementation manner, the zooming module 202 is configured to determine, based on a last trigger parameter value adopted by a last image rendering and the end point trigger parameter value, a current trigger parameter value to be adopted by a current image rendering according to the following steps, including:
performing difference operation on the end point trigger parameter value and the last trigger parameter value to obtain a first operator; and taking the last trigger parameter value as a second operator;
the current trigger parameter value is determined based on the first operator and the second operator.
In a possible implementation manner, the zooming module 202 is configured to determine the current triggering parameter value based on the first operator and the second operator according to the following steps:
obtaining a preset zooming coefficient; the zoom coefficient is used for representing the speed of zooming between frames;
multiplying the first operator and the zoom coefficient to obtain an operation result;
and carrying out addition operation on the operation result and the second operator to determine the current trigger parameter value.
In one possible implementation, the zoom factor is a value greater than 0 and less than 1, and the zoom factor is positively correlated with the speed magnitude of the zoom.
In one possible embodiment, the trigger parameter value comprises one of the following parameter values:
triggering coordinate values for triggering the target scene image;
and transforming based on the trigger coordinate values to obtain a lens zoom value.
In a possible implementation manner, the obtaining module 201 is configured to respond to a zoom trigger instruction for the target scene image in the following manner:
in the case of performing a sliding operation with respect to a target scene image in a user side, responding to a zoom trigger instruction with respect to the target scene image;
in the case of performing a double-click operation on a target scene image in the user side, a zoom trigger instruction for the target scene image is responded.
In one possible embodiment, the apparatus further includes:
and the display module 203 is configured to display the zoomed one-frame target scene image on the user side after obtaining the zoomed one-frame target scene image.
In a possible implementation manner, the user side includes augmented reality AR glasses, and the display module 203 is configured to display a zoomed frame of target scene image on the user side according to the following steps:
obtaining a virtual special effect generated aiming at a target scene image;
and superposing the virtual special effect on the zoomed target scene image to obtain a superposed picture, and displaying the superposed picture on the user side.
It should be noted that, the apparatus in the embodiments of the present application may implement each process of the foregoing method embodiment and achieve the same effects and functions, which are not described herein again.
The embodiment of the disclosure further provides an electronic device, as shown in fig. 3, which is a schematic structural diagram of the electronic device provided by the embodiment of the disclosure, including: a processor 301, a memory 302, and a bus 303. The memory 302 stores machine-readable instructions executable by the processor 301 (e.g., execution instructions corresponding to the acquisition module 201, the zoom module 202, etc. in the apparatus of fig. 2), which when executed by the processor 301, perform the following processing when the electronic device is running, the processor 301 communicates with the memory 302 via the bus 303:
responding to a zooming trigger instruction aiming at a target scene image, and acquiring a starting point trigger parameter value and an ending point trigger parameter value in the zooming trigger instruction;
the steps are circularly executed as follows:
determining a current trigger parameter value required to be adopted for the current image rendering based on the last trigger parameter value adopted for the previous image rendering and the end point trigger parameter value; the current trigger parameter value is between the last trigger parameter value and the end point trigger parameter value;
and performing current image rendering based on the current trigger parameter value to obtain a zoomed frame of target scene image.
The disclosed embodiments also provide a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the zoom control method described in the method embodiments described above. Wherein the storage medium may be a volatile or nonvolatile computer readable storage medium.
The embodiments of the present disclosure further provide a computer program product, where the computer program product carries a program code, where instructions included in the program code may be used to perform the steps of the zoom control method described in the foregoing method embodiments, and specifically reference may be made to the foregoing method embodiments, which are not described herein.
Wherein the above-mentioned computer program product may be realized in particular by means of hardware, software or a combination thereof. In an alternative embodiment, the computer program product is embodied as a computer storage medium, and in another alternative embodiment, the computer program product is embodied as a software product, such as a software development kit (Software Development Kit, SDK), or the like.
In this application, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are referred to each other, and each embodiment is mainly described as different from other embodiments. In particular, for apparatus, devices and computer readable storage medium embodiments, the description thereof is simplified as it is substantially similar to the method embodiments, as relevant points may be found in part in the description of the method embodiments.
The apparatus, the device, and the computer readable storage medium provided in the embodiments of the present application are in one-to-one correspondence with the methods, and therefore, the apparatus, the device, and the computer readable storage medium also have similar beneficial technical effects as the corresponding methods, and since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the apparatus, the device, and the computer readable storage medium are not repeated herein.
It will be apparent to those skilled in the art that embodiments of the present disclosure may be provided as a method, apparatus (device or system), or computer readable storage medium. Accordingly, the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present disclosure may take the form of a computer-readable storage medium embodied in one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
The present disclosure is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (devices or systems) and computer-readable storage media according to embodiments of the disclosure. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Furthermore, although the operations of the methods of the present disclosure are depicted in the drawings in a particular order, this is not required to or suggested that these operations must be performed in this particular order or that all of the illustrated operations must be performed in order to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step to perform, and/or one step decomposed into multiple steps to perform.
While the spirit and principles of the present disclosure have been described with reference to several particular embodiments, it is to be understood that this disclosure is not limited to the particular embodiments disclosed nor does it imply that features in these aspects are not to be combined to benefit from this division, which is done for convenience of description only. The disclosure is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.

Claims (11)

1. A zoom control method, characterized by comprising:
responding to a zooming trigger instruction aiming at a target scene image, and acquiring a starting point trigger parameter value and an ending point trigger parameter value in the zooming trigger instruction;
the steps are circularly executed as follows:
determining a current trigger parameter value required to be adopted for the current image rendering based on the last trigger parameter value adopted for the previous image rendering and the end point trigger parameter value; the current trigger parameter value is between the last trigger parameter value and the end point trigger parameter value;
and performing current image rendering based on the current trigger parameter value to obtain a zoomed frame of target scene image.
2. The method of claim 1, wherein the determining a current trigger parameter value to be employed for a current image rendering based on a last trigger parameter value employed for a last image rendering and the endpoint trigger parameter value comprises:
performing difference operation on the end point trigger parameter value and the last trigger parameter value to obtain a first operator; and taking the last trigger parameter value as a second operator;
the current trigger parameter value is determined based on the first operator and the second operator.
3. The method of claim 2, wherein the determining the current trigger parameter value based on the first operator and the second operator comprises:
obtaining a preset zooming coefficient; the zoom coefficient is used for representing the speed of zooming between frames;
multiplying the first operator and the zoom coefficient to obtain an operation result;
and carrying out addition operation on the operation result and the second operator to determine the current trigger parameter value.
4. A method according to claim 3, wherein the zoom factor is a value greater than 0 and less than 1, and the zoom factor is positively correlated with the speed magnitude of the zoom.
5. The method according to any one of claims 1 to 4, wherein the trigger parameter values comprise one of the following parameter values:
triggering coordinate values for triggering the target scene image;
and transforming based on the trigger coordinate values to obtain a lens zoom value.
6. The method of any of claims 1 to 4, wherein the responding to the zoom trigger instruction for the target scene image comprises:
in the case of performing a sliding operation with respect to a target scene image in a user side, responding to a zoom trigger instruction with respect to the target scene image;
in the case of performing a double-click operation on a target scene image in the user side, a zoom trigger instruction for the target scene image is responded.
7. The method of claim 6, wherein after obtaining a zoomed frame of the target scene image, the method further comprises:
and displaying the zoomed target scene image of one frame on the user side.
8. The method of claim 7, wherein the client comprises augmented reality AR glasses, and wherein the displaying the zoomed frame of the target scene image at the client comprises:
obtaining a virtual special effect generated aiming at a target scene image;
and superposing the virtual special effect on the zoomed target scene image to obtain a superposed picture, and displaying the superposed picture on the user side.
9. A zoom control apparatus, comprising:
the acquisition module is used for responding to a zooming trigger instruction aiming at the target scene image and acquiring a starting point trigger parameter value and an ending point trigger parameter value in the zooming trigger instruction;
the zooming module is used for circularly executing the following steps:
determining a current trigger parameter value required to be adopted for the current image rendering based on the last trigger parameter value adopted for the previous image rendering and the end point trigger parameter value; the current trigger parameter value is between the last trigger parameter value and the end point trigger parameter value;
and performing current image rendering based on the current trigger parameter value to obtain a zoomed frame of target scene image.
10. An electronic device, comprising: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory in communication via the bus when the electronic device is running, the machine-readable instructions when executed by the processor performing the zoom control method of any one of claims 1 to 8.
11. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when executed by a processor, performs the zoom control method according to any one of claims 1 to 8.
CN202211054960.7A 2022-08-31 2022-08-31 Zoom control method and device, electronic equipment and storage medium Pending CN117714892A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211054960.7A CN117714892A (en) 2022-08-31 2022-08-31 Zoom control method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211054960.7A CN117714892A (en) 2022-08-31 2022-08-31 Zoom control method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117714892A true CN117714892A (en) 2024-03-15

Family

ID=90148460

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211054960.7A Pending CN117714892A (en) 2022-08-31 2022-08-31 Zoom control method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117714892A (en)

Similar Documents

Publication Publication Date Title
WO2021175055A1 (en) Video processing method and related device
CN110012310B (en) Free viewpoint-based encoding and decoding method and device
US11044398B2 (en) Panoramic light field capture, processing, and display
KR20200085523A (en) Method of processing image and image processing device performing the same
WO2012145436A2 (en) Alternate viewpoint rendering
CN112367481A (en) Video clip processing method and device
CN110572717A (en) Video editing method and device
CN114598823A (en) Special effect video generation method and device, electronic equipment and storage medium
EP3151243B1 (en) Accessing a video segment
US10924637B2 (en) Playback method, playback device and computer-readable storage medium
CN111726526B (en) Image processing method and device, electronic equipment and storage medium
CN117714892A (en) Zoom control method and device, electronic equipment and storage medium
CN113301356A (en) Method and device for controlling video display
CN111866379A (en) Image processing method, image processing device, electronic equipment and storage medium
CN108156512B (en) Video playing control method and device
CN114125297B (en) Video shooting method, device, electronic equipment and storage medium
CN115134532A (en) Image processing method, image processing device, storage medium and electronic equipment
CN115439386A (en) Image fusion method and device, electronic equipment and storage medium
CN111367598B (en) Method and device for processing action instruction, electronic equipment and computer readable storage medium
US20150229848A1 (en) Method and system for generating an image including optically zoomed and digitally zoomed regions
CN114500852B (en) Shooting method, shooting device, electronic equipment and readable storage medium
CN117692748A (en) Picture display method and device, electronic equipment and storage medium
CN115514895B (en) Image anti-shake method, apparatus, electronic device, and computer-readable storage medium
CN116546182B (en) Video processing method, device, equipment and storage medium
CN115967863A (en) Video processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication