CN111601031B - Shooting parameter adjusting method and device - Google Patents

Shooting parameter adjusting method and device Download PDF

Info

Publication number
CN111601031B
CN111601031B CN202010256284.6A CN202010256284A CN111601031B CN 111601031 B CN111601031 B CN 111601031B CN 202010256284 A CN202010256284 A CN 202010256284A CN 111601031 B CN111601031 B CN 111601031B
Authority
CN
China
Prior art keywords
shooting
value
transition
parameter
adjustment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010256284.6A
Other languages
Chinese (zh)
Other versions
CN111601031A (en
Inventor
张前前
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202010256284.6A priority Critical patent/CN111601031B/en
Publication of CN111601031A publication Critical patent/CN111601031A/en
Application granted granted Critical
Publication of CN111601031B publication Critical patent/CN111601031B/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/667Camera operation mode switching, e.g. between still and video, sport and normal or high- and low-resolution modes
    • 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

Abstract

The embodiment of the invention provides a shooting parameter adjusting method and device, relates to the technical field of camera shooting, and aims to solve the problem of poor quality of videos shot by electronic equipment. The method comprises the following steps: determining a target difference value under the condition that the shooting environment is switched from the first shooting environment to the second shooting environment; under the condition that the target difference value is larger than or equal to a preset threshold value, the shooting parameter is adjusted from a first value to a second value according to a transition strategy; the transition policy indicates at least one of: adjusting times, transition duration, time interval between two adjacent adjustments and step value of the adjustment; the target difference is the difference between the shooting parameters in the first shooting environment and the shooting parameters in the second shooting environment; the first value is the value of the shooting parameter in the first shooting environment, and the second value is the value of the shooting parameter in the second shooting environment.

Description

Shooting parameter adjusting method and device
Technical Field
The embodiment of the invention relates to the technical field of camera shooting, in particular to a shooting parameter adjusting method and device.
Background
With the development of communication technology, the frequency of video shooting by users using electronic devices is higher and higher.
Generally, before shooting a video, a user may adjust shooting parameters, such as focus, distance, brightness, and the like. In the video shooting process, if the shooting environment is changed greatly, for example, the light of a real scene is suddenly darkened, the picture displayed in the shooting preview picture is also suddenly darkened, and the brightness value can be adjusted in the shooting preview picture, so that a clear video picture is acquired in a dark environment.
However, in the video shooting process, in order to ensure the continuity of the video, the user usually does not pause the video shooting, the adjustment speeds of different users are different, which may cause the brightness adjustment process to be not smooth enough, resulting in abrupt brightness transition of the image in the video picture, and the adjustment process is usually recorded in the video, thereby causing the quality of the video shot by the electronic device to be poor.
Disclosure of Invention
The embodiment of the invention provides a shooting parameter adjusting method and electronic equipment, and aims to solve the problem that video shot by the electronic equipment is poor in quality.
In order to solve the above technical problem, the embodiment of the present invention is implemented as follows:
in a first aspect, an embodiment of the present invention provides a shooting parameter adjustment method, where the method includes: determining a target difference value under the condition that the shooting environment is switched from a first shooting environment to a second shooting environment; under the condition that the target difference value is larger than or equal to a preset threshold value, adjusting the shooting parameter from a first value to a second value according to a transition strategy; the transition policy indicates at least one of: adjusting times, transition duration, time interval between two adjacent adjustments and step value of the adjustment; the target difference value is the difference value of the shooting parameters under the first shooting environment and the second shooting environment; the first numerical value is a numerical value of the shooting parameter in the first shooting environment, and the second numerical value is a numerical value of the shooting parameter in the second shooting environment.
In a second aspect, an embodiment of the present invention further provides an adjusting apparatus, where the adjusting apparatus includes: a determining module and an adjusting module; the determining module is used for determining a target difference value under the condition that the shooting environment is switched from the first shooting environment to the first shooting environment; the adjusting module is used for adjusting the shooting parameter from a first value to a second value according to a transition strategy under the condition that the target difference value determined by the determining module is greater than or equal to a preset threshold value; the transition policy indicates at least one of: adjusting times, transition duration, time interval between two adjacent adjustments and step value of the adjustment; the target difference value is the difference value of the shooting parameters under the first shooting environment and the second shooting environment; the first numerical value is a numerical value of the shooting parameter in the first shooting environment, and the second numerical value is a numerical value of the shooting parameter in the second shooting environment.
In a third aspect, an embodiment of the present invention provides an electronic device, which includes a processor, a memory, and a computer program stored in the memory and executable on the processor, and when executed by the processor, the electronic device implements the steps of the shooting parameter adjustment method according to the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the shooting parameter adjustment method according to the first aspect.
In the embodiment of the invention, under the condition that the shooting environment is switched from the first shooting environment to the second shooting environment, a target difference value is determined, wherein the target difference value is the difference value of the shooting parameters under the first shooting environment and the second shooting environment; under the condition that the target difference value is greater than or equal to the preset threshold value, the electronic equipment can gradually adjust the shooting parameter from a first value to a second value according to a transition strategy; the transition policy indicates at least one of: adjusting times, transition duration, time interval between two adjacent adjustments and step value of the adjustment; that is to say, after the electronic device determines that the shooting environment changes, if the parameter value of the shooting parameter needs to be adjusted, the electronic device may gradually adjust the parameter value of the shooting parameter from the first value to the second value according to at least one of the adjustment times, the transition duration, the time interval between two adjacent adjustments and the adjusted step value indicated by the transition policy, the transition is more natural, and the change of the video picture in the video shooting process can be relatively continuous.
Drawings
FIG. 1 is a block diagram of a possible operating system according to an embodiment of the present invention;
fig. 2 is a schematic flow chart illustrating a method for adjusting shooting parameters according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an adjusting apparatus according to an embodiment of the present invention;
fig. 4 is a hardware schematic diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that "/" in this context means "or", for example, A/B may mean A or B; "and/or" herein is merely an association describing an associated object, and means that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. "plurality" means two or more than two.
The terms "first" and "second," and the like, in the description and in the claims of the present invention are used for distinguishing between different objects and not for describing a particular order of the objects. For example, the first transition strategy and the second transition strategy, etc. are used to distinguish between different transition strategies, rather than to describe a particular order of transition strategies.
It should be noted that, in the embodiments of the present invention, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "e.g.," an embodiment of the present invention is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
The electronic device in the embodiment of the present invention may be an electronic device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present invention are not limited in particular.
Next, a software environment applied to the shooting parameter adjustment method according to the embodiment of the present invention is described by taking the operating system shown in fig. 1 as an example.
Fig. 1 is a schematic diagram of a possible operating system according to an embodiment of the present invention. In fig. 1, the architecture of the operating system includes 4 layers, respectively: an application layer, an application framework layer, a system runtime layer, and a kernel layer (specifically, a Linux kernel layer).
The application layer comprises various application programs (including system application programs and third-party application programs) in an operating system.
The application framework layer is a framework of the application, and a developer can develop some applications based on the application framework layer under the condition of complying with the development principle of the framework of the application.
The system runtime layer includes a library (also referred to as a system library) and an operating system runtime environment. The library mainly provides various resources required by the operating system. The operating system runtime environment is used to provide a software environment for the operating system.
The kernel layer is the operating system layer of the operating system and belongs to the lowest layer of the operating system software layer. The kernel layer provides kernel system services and hardware-related drivers for the operating system based on the Linux kernel.
Taking the operating system shown in fig. 1 as an example, in the embodiment of the present invention, a developer may develop a software program for implementing the shooting parameter adjustment method provided in the embodiment of the present invention based on the system architecture of the operating system shown in fig. 1, so that the shooting parameter adjustment method may be run based on the operating system shown in fig. 1. That is, the processor or the electronic device may implement the shooting parameter adjustment method provided by the embodiment of the present invention by running the software program in the operating system.
The execution subject of the shooting parameter adjustment method provided in the embodiment of the present invention may be the electronic device, or may also be a functional module and/or a functional entity capable of implementing the shooting parameter adjustment method in the electronic device, which may be specifically determined according to actual use requirements, and the embodiment of the present invention is not limited. The following takes an electronic device as an example to exemplarily explain a shooting parameter adjustment method provided by an embodiment of the present invention.
The shooting parameter adjustment method according to the embodiment of the present invention will be described below with reference to fig. 2. Fig. 2 is a schematic flow chart of a shooting parameter adjustment method according to an embodiment of the present invention, as shown in fig. 2, the shooting parameter adjustment method includes the following steps S201 and S202:
s201, the electronic equipment determines a target difference value under the condition that the shooting environment is switched from the first shooting environment to the second shooting environment.
The target difference is the difference between the shooting parameters in the first shooting environment and the shooting parameters in the second shooting environment.
In an embodiment of the present invention, the first value is a value of the shooting parameter in a first shooting environment, and the second value is a value of the shooting parameter in a second shooting environment.
Optionally, in the embodiment of the present invention, the shooting environment may be an external shooting environment corresponding to the electronic device, or an internal shooting environment of the electronic device.
The external shooting environment may be a natural environment, and the internal shooting environment may correspond to values corresponding to current shooting parameters in the electronic device. Under the condition that the shooting environment is a natural environment, taking the shooting parameters as the brightness of light as an example, the light under the first shooting environment is a first brightness value, and the light under the second shooting environment is darker or brighter than the first shooting environment; if the shooting parameter is an ambient sound, the ambient sound in the first shooting environment is a first volume value, and the ambient sound in the second shooting environment is larger or smaller than the first volume value. When the shooting environment is an internal shooting environment of the electronic device, taking the shooting parameters as the focal length as an example, the focal length in the first shooting environment is a first focal length value, and the focal length in the second shooting environment is larger or smaller than the focal length in the first shooting environment.
In the embodiment of the present invention, the photographing parameter may include at least one of a focal length, brightness, ambient sound, an aperture value, and an exposure value.
Typically, the focal length is millimeter in length, and the size of the focal length is usually expressed in the electronic device by X times the focal length, for example, 1.0 times, 2.0 times, 30.0 times, etc.; luminance is the brightness of a picture, and is expressed in units of candela per square meter (cd/m2) or nits, and in an electronic device, the luminance can be generally represented by a numerical value, and the higher the luminance value is, the brighter the picture is, the smaller the luminance value is, and the darker the picture is.
It should be noted that the ambient sound is the volume of the surrounding environment during the video shooting process.
In the embodiment of the present invention, if the shooting environment is switched from the first shooting environment to the second shooting environment, the electronic device may obtain a parameter value of the first shooting environment and a parameter value of the second shooting environment, and then determine the target difference.
It is understood that, in the embodiment of the present invention, the first shooting environment and the second shooting environment are different, and the values of the shooting parameters of the first shooting environment and the shooting parameters of the second shooting environment are different.
It should be noted that, in the embodiment of the present invention, the switching of the first shooting environment to the second shooting environment may be caused by a change in a natural environment, for example, external light changes from bright to dark or from dark to bright during shooting, or may be triggered by a user to switch the first shooting environment to the second shooting environment, for example, the user reselects a focus to change from a closer scene to a farther scene or from a farther scene to a closer scene.
In the embodiment of the present invention, the shooting parameters finally adjusted by the electronic device may be target shooting parameters, and the target shooting parameters may be parameters corresponding to the target difference value or parameters associated with the target shooting parameters. For example, the electronic device determines that the external environment is dimmed, and adjusts the display brightness or exposure of the screen.
It is understood that the target difference value may indicate a change degree of the second shooting environment relative to the shooting parameter in the first shooting environment, and if the change degree exceeds a preset change degree, that is, the change of the shooting parameter in the first shooting environment and the second shooting environment causes the electronic device to need to adjust the target shooting parameter value.
In the case where the shooting parameters are parameters related to the target shooting parameters, the change in the shooting parameters may affect the change in the target shooting parameters. For example, the change of the focus may cause the electronic device to adjust the focus again, and if the focus corresponds to a distant scene in the first shooting environment and corresponds to a close scene in the second shooting environment, the electronic device needs to adjust the focus to make the close scene in the shot video frame clear.
S202, the electronic equipment adjusts the shooting parameters from a first value to a second value according to a transition strategy under the condition that the target difference value is larger than or equal to a preset threshold value.
Wherein the transition policy indicates at least one of: the adjustment times, the transition duration, the time interval between two adjacent adjustments and the step value of the adjustment.
For example, the preset threshold may be preset in the electronic device or may be preset by a user, which is not specifically limited in this embodiment of the present invention.
For example, assuming that the brightness of the first photographing environment is 80, the brightness of the second photographing environment is 20, and the brightness difference is 60, and assuming that the corresponding threshold value of the brightness is 10, the electronic device may determine the transition policy to adjust the current brightness value to 80 within 5 seconds.
The shooting parameters to be adjusted may include M shooting parameters, the transition policy may indicate a transition policy of each of the M shooting parameters, and M is a positive integer.
It can be understood that the electronic device may determine which parameter environments have a difference value before and after switching exceeding a corresponding preset threshold after the shooting environments are switched (for example, a natural environment sudden change), and if the difference value before and after switching exceeds the preset threshold, a transition policy may be determined, and the manner of determining the transition policy is flexible, so that the electronic device may gradually adjust the shooting parameters according to the determined transition policy, so that the process of adjusting the shooting parameters by the electronic device is relatively smooth, and it is avoided that the adjustment of the shooting parameters is abrupt due to direct adjustment of the shooting parameters to the second value, and the video effect of shooting is poor due to abrupt change of the video picture.
It should be noted that the second value may be a value to which the electronic device needs to adjust the shooting parameter according to the second shooting environment, and details are not described here. Of course, the second numerical value may also be a value of a shooting parameter preset by a user, and the embodiment of the present invention does not specifically limit the specific numerical value of the second numerical value.
For example, if the difference between the light in the natural environment is large (the light in the real scene suddenly becomes dark), which causes the video image of the electronic device in the second shooting environment to be darker than the video image in the first shooting environment, the electronic device needs to adjust the brightness in the second shooting environment to make the video image clear, and the adjusted brightness value is the second value of the shooting parameter. For example, the user moves the electronic device during the shooting process, so that the object shot by the electronic device is switched from a close view to a long view, or from the long view to the close view, which results in the electronic device needing to readjust the focal length to make the video image clear, and the adjusted focal length is the second value of the shooting parameter.
In this embodiment of the present invention, the second value of the shooting parameter may be manually set by a user in advance, or may be configured in advance in the electronic device, which is not specifically limited in this embodiment of the present invention.
Optionally, the transition policy may satisfy any one of the following conditions: the adjustment rate is constant, the adjustment time is constant, and the adjustment rate corresponds to the shooting parameters one to one.
It should be noted that, in the embodiment of the present invention, the electronic device may adjust the shooting parameters linearly, or may adjust the shooting parameters nonlinearly, which is not specifically limited in the embodiment of the present invention.
It is to be understood that in the case of non-linearly adjusting the photographing parameters, one photographing parameter may be adjusted during the adjustment process, the adjustment time interval may include at least two different time intervals, and the adjusted step value may include at least two different step values.
Specifically, the transition policy may indicate at least one of 1 adjustment number of times, a transition duration, a time interval for adjusting the shooting parameter, and 1 step value when the shooting parameter is one shooting parameter and the adjustment rate is constant, and the transition policy indicates the number of times of adjustment corresponding to each shooting parameter in the M shooting parameters, the transition duration corresponding to each shooting parameter, the time interval for adjusting corresponding to each shooting parameter, and the step value for adjusting corresponding to each shooting parameter when the shooting parameter includes M parameters.
For example, taking the shooting parameter as brightness, assuming that the brightness in the first shooting environment is 20 and the brightness value to be adjusted in the first shooting environment (i.e. the second value) is 80, the transition policy may be: the adjustment time is 3 seconds and is adjusted to 80. In the case of linear adjustment, the adjustment is performed 20 to 80 times, 20 times for 3 times, and 10 times for 6 times.
In the embodiment of the present invention, in the case that the electronic device linearly adjusts the shooting parameter, the transition policy may include at least one of a unit duration adjustment amount and an adjustment frequency; in the case that the electronic device adjusts the shooting parameters in a non-linear manner, the transition strategy may include an adjustment amount corresponding to each adjustment time in the adjustment duration.
It can be understood that, in the embodiment of the present invention, the adjustment amount per unit time duration may be a parameter value that can be adjusted for one time unit, and the adjustment frequency may be the number of times of adjusting the unit time duration, for example, 1 time, 2 times, 3 times, and the like may be adjusted for one unit time, and it can be understood that the more times of adjusting the unit time, the smoother the adjustment of the electronic device is.
Optionally, the shooting parameter adjusting method provided in the embodiment of the present invention may be applied to a process of shooting a video by an electronic device, and may also be applied to a post-processing process of the video after the video shooting by the electronic device is completed.
Specifically, in the post-processing process of the video, the parameter values in the first shooting environment and the second shooting environment in the video frame may be obtained in advance, and then the parameters are adjusted based on the adjustment scheme.
The shooting parameter adjusting method provided by the embodiment of the invention determines a target difference value under the condition that the shooting environment is switched from the first shooting environment to the second shooting environment, wherein the target difference value is the difference value of the shooting parameters under the first shooting environment and the second shooting environment; under the condition that the target difference value is greater than or equal to the preset threshold value, the electronic equipment can gradually adjust the shooting parameter from a first value to a second value according to a transition strategy; the transition policy indicates at least one of: adjusting times, transition duration, time interval between two adjacent adjustments and step value of the adjustment; that is to say, after the electronic device determines that the shooting environment changes, if the parameter value of the shooting parameter needs to be adjusted, the electronic device may gradually adjust the parameter value of the shooting parameter from the first value to the second value according to at least one of the adjustment times, the transition duration, the time interval between two adjacent adjustments and the adjusted step value indicated by the transition policy, the transition is more natural, and the change of the video picture in the video shooting process can be relatively continuous.
Optionally, in the process of applying the shooting parameter adjustment method to video shooting, after the nth adjustment and before the (N + 1) th adjustment, the electronic device may acquire an image according to the value after the nth adjustment, where N is a positive integer.
It can be understood that in the video shooting process, the electronic device continuously collects the image, and between every two times of adjustment, the parameter value after the last adjustment can be collected, so that the parameter can be adjusted more slowly after the collected image changes suddenly in the environment, and compared with the method of directly adjusting the parameter under the condition of sudden change in the environment, the quality of the video can be improved.
Optionally, in the case that the shooting parameter is a focal length, the transition policy indicates: and adjusting the number of times of the focal length, the first transition duration, the first time interval and the adjusted focal length stepping value to be at least one of the first focal length values.
Optionally, in the case that the shooting parameter is brightness, the transition policy indicates: and adjusting the number of times of brightness adjustment, the second transition duration, the second time interval and the adjusted brightness stepping value to be the first brightness value.
Optionally, in the case that the shooting parameter is an environmental sound, the transition policy indicates: and adjusting the times of the environmental sound, the third transition duration, the third time interval and the adjusted environmental sound step value to be the first environmental sound value.
Based on the scheme, the electronic equipment can select different transition strategies for adjustment based on different shooting parameters, and can flexibly adjust each parameter in video shooting or video post-processing, so that the quality of videos can be improved from multiple angles.
Optionally, in the embodiment of the present invention, in a case where the first shooting environment is switched to the second shooting environment, the shooting parameters that the electronic device adjusts using the transition policy may include a plurality of shooting parameters. For example, the photographing parameters may include a first photographing parameter and a second photographing parameter, and the transition strategy includes a first transition strategy and a second transition strategy.
For example, the first shooting parameter is a focal length, and the second shooting parameter is a brightness. The first transition strategy may be: the total adjustment time is 2s, and the focal length is adjusted to 2.0 times. The second transition strategy may be: the total adjustment time period was 2s, and the luminance was adjusted to 30 nits.
Of course, the first transition strategy may also include a unit time length adjustment amount, for example, for the focal length, the adjustment amount per second is 0.1 times, i.e., the adjustment amount per second is 0.1 times the focal length (i.e., the step value of the focal length adjustment), and for the brightness, the adjustment amount per second is 10, i.e., the adjustment amount per second is 10nits (i.e., the step value of the brightness adjustment).
Specifically, in the embodiment of the present invention, the first shooting parameter and the second shooting parameter are taken as an example for explanation, in practical application, the target shooting parameter may include more shooting parameters, each shooting parameter may correspond to a transition policy, and the value of M is not specifically limited in the embodiment of the present invention.
It can be understood that, for each shooting parameter, a corresponding transition strategy is provided, so that in the video shooting process of each parameter, the electronic device can gradually adjust, the adjustment rate can be a constant rate, and can adaptively change along with the change of the parameter, not only the transition is more natural, but also the flexibility of adjusting the shooting parameter of the electronic device in the video shooting process is higher, and the problem of poor video picture effect caused by excessively abrupt parameter adjustment is avoided.
Optionally, in the shooting parameter adjustment method according to the embodiment of the present invention, when the transition policy includes the first transition policy and the second transition policy, the step S202 may be specifically executed through the following steps S202a and S202 b:
s202a, the electronic device gradually adjusts the parameter value of the first shooting parameter from a first value corresponding to the first shooting parameter to a second value corresponding to the first shooting parameter according to the first transition policy.
S202b, the electronic device gradually adjusts the parameter value of the second shooting parameter from the first value corresponding to the second shooting parameter to the second value corresponding to the second shooting parameter according to the second transition policy.
In this embodiment of the present invention, if the first transition policy indicates that the adjustment duration is the first duration, and the second transition policy indicates that the adjustment duration is the second duration, the first duration may be the same as or different from the second duration, which is not specifically limited in this embodiment of the present invention.
It should be noted that the electronic device may first execute one of S202a and S202b, and then execute the other step, that is, adjust each shooting parameter in turn; the electronic device may also perform S202a and S202b simultaneously, that is, adjust a plurality of photographing parameters in parallel.
It is to be understood that, in the case of sequentially adjusting each of the shooting parameters, the total time of the electronic device adjustment may be a sum of the first time duration and the second time duration, and in the case of adjusting a plurality of shooting parameters in parallel, the total time of the electronic device adjustment may be a longer time duration of the first time duration and the second time duration.
For example, a transition policy 1 for a focal length may indicate: the adjustment time is 2 seconds, and the focal length is adjusted from 1 unit to 3 units. The luminance corresponding transition policy 2 may indicate: the adjustment time is 3 seconds, and the brightness is adjusted from 20 units to 80 units. In the case of adjusting each parameter in sequence, the total time of electronic device adjustment is 5 seconds, and in the case of adjusting a plurality of shooting parameters in parallel, the total time of electronic device adjustment is 3 seconds.
For example, the shooting environment 1 is taken as the second shooting environment, the focal length is 1.0, and the brightness is 20. The shooting environment 2 is the shooting environment adjusted by the electronic device, and the different shooting environments 2 respectively correspond to a transition strategy, which is as follows:
shooting environment 2-1: focal length is 1.0 and brightness is 80. Transition strategy 1: the adjustment time is 3 seconds, the brightness is changed from 20 to 80, and the rest parameters are unchanged.
Shooting environment 2-2: focal length was 3.0 and brightness was 20. Transition strategy 2: the adjusting time is 2 seconds, the focal length is changed from 1.0 to 3.0, and other parameters are unchanged.
Shooting environment 2-2: focal length was 3.0 and brightness was 80. Transition strategy 3: the adjustment time was 3 seconds, the focal length was changed from 1.0 to 3.0, the brightness was changed from 20 to 80, and the remaining parameters were unchanged (parallel adjustment).
Shooting environment 2-2: focal length was 3.0 and brightness was 80. Transition strategy 4: the adjustment time was 5 seconds, the focal length was changed from 1.0 to 3.0, the brightness was changed from 20 to 80, and the remaining parameters were unchanged (adjusted separately).
It should be noted that the numerical values in the above examples are used for exemplary illustration, and other numerical values may be set in practical applications. For example, the photographing environment 2-1: focal length is 1.0 and brightness is 80. Transition policy 1 may be: the adjustment time was 2 seconds, the brightness was changed from 20 to 80, and the remaining parameters were unchanged.
Based on the scheme, the electronic device can gradually adjust the parameter value of the first shooting parameter according to the transition strategy of each shooting parameter indicated in the transition strategies and the first transition strategy respectively, gradually adjust the parameter value of the second shooting parameter according to the second transition strategy, and can sequentially adjust the parameter values or adjust the parameter values in parallel, and the adjustment mode is more flexible.
In the embodiment of the invention, the electronic equipment can determine the transition strategy more accurately by combining with some parameters, so that the process of adjusting the shooting parameters by the transition strategy adopted by the electronic equipment is smoother. Optionally, after S202, the shooting parameter adjusting method according to the embodiment of the present invention may include the following S203:
s203, the electronic device determines that the transition strategy corresponding to the target preset interval is the target transition strategy when the target difference is larger than or equal to the preset threshold and the difference is in the target preset interval.
The target preset area is one of K preset areas, the adjustment duration or the second numerical value of the shooting parameter indicated by the transition strategy corresponding to each preset area is different, and K is a positive integer greater than 1.
It can be understood that, in this scheme, the target transition policy is a transition policy used by the electronic device to adjust the shooting parameters.
Specifically, under the condition that the target shooting parameter includes a first shooting parameter and a second shooting parameter, a difference value between a numerical value of the first shooting parameter of the first shooting environment and the first shooting parameter of the second shooting environment is a first difference value, and a difference value between a numerical value of the second shooting parameter of the first shooting environment and the second shooting parameter of the second shooting environment is a second difference value.
Specifically, in the shooting parameter adjustment method according to the embodiment of the present invention, the step S203 may be further performed by the following step S203 a:
s203a, when the target difference is greater than or equal to the preset threshold and the difference is in the target preset interval, the electronic device determines that the transition strategy corresponding to the first parameter value in the target preset interval is the target transition strategy.
Wherein the first parameter value may include: the parameter value of the shooting parameter in the second shooting environment, the preset value of the shooting parameter and the time length for switching the first shooting environment into the second shooting environment.
In the embodiment of the present invention, one shooting parameter may correspond to a plurality of second values, and different second values may be set in combination with other shooting parameters.
For example, the shooting time may be combined (for example, the second value of the brightness corresponding to shooting in daytime is brightness value 1, and the second value of the brightness corresponding to shooting in night is brightness value 2), the type of the object to be shot may be combined (for example, the second value of the focal length corresponding to shooting in close range may be focal length value 1, and the second value of the focal length corresponding to shooting in far range may be focal length value 2), and the like, which is not specifically limited in this embodiment of the present invention.
In the embodiment of the present invention, the same second value of one shooting parameter may correspond to one or more different transition strategies, and in a case that the same second value corresponds to a plurality of different transition strategies, the electronic device may select, in combination with the first parameter value, the transition strategy corresponding to the shooting parameter from the plurality of different transition strategies.
For example, the electronic device may determine a value (i.e., a second value) to be adjusted according to a parameter value of a shooting parameter in a second shooting environment after the shooting environment is switched, and then determine a transition policy corresponding to the second value in a target preset interval corresponding to the target difference value according to the value to be adjusted of the shooting parameter.
For example, taking the shooting parameter as the brightness, the table 1 may be referred to for the correspondence between the difference interval of the brightness and the transition strategy.
TABLE 1
Figure BDA0002437448690000081
With reference to table 1, assuming that the electronic device determines that the difference between the luminances of the second shooting environment and the first shooting environment is luminance difference 1 and is located in interval 1, when the electronic device determines that the luminance to be adjusted is luminance 1 according to the shooting time, it determines that the adjustment time duration indicated by the transition strategy corresponding to the luminance is time duration 1, and the second value is luminance 1. In the case of linear adjustment, the electronic device may adjust the brightness 1 per unit time length, where the total adjusted time length is time length 1, and assuming that the time length 1 is 5 seconds and the brightness 1 is 10 units, the electronic device may adjust the brightness of 10 units per 1 second, adjust the brightness for 5 seconds, and adjust the brightness for 50 units in total.
Optionally, for different difference intervals, the adjustment time lengths corresponding to each difference interval may be the same or different, the second values corresponding to each difference interval may be the same or different, and the adjustment amount per unit time length corresponding to each difference interval may be the same or different, which is not specifically limited in this embodiment of the present invention.
It should be noted that, when the shooting environment changes greatly suddenly, taking brightness as an example, during shooting, the light in the environment is darkened suddenly, so that the brightness in the shot picture decreases suddenly, and at this time, a shorter time duration and a higher adjustment frequency can be set.
Based on the scheme, the electronic device can determine the transition strategy corresponding to the preset interval as the target transition strategy according to the preset interval in which the target difference value is located, and because the adjustment duration or the second value of the shooting parameter indicated by the transition strategies corresponding to different preset intervals is different, each transition strategy is different, so that the adjustment modes include multiple modes, and the parameter adjustment mode of the electronic device is more flexible.
Optionally, in the embodiment of the present invention, the user may also set a transition policy according to needs, for example, the user may set a transition policy for each shooting parameter, and the electronic device may apply the transition policy for the corresponding parameter according to the transition policy for each parameter set by the user in a process of shooting the video according to an actual situation under a condition that the parameter needs to be adjusted.
For example, a user may set a transition policy in a video preview screen in a camera application.
First, the user can set the shooting environment 1 to: the numerical value of the first shooting parameter is 1-1, the numerical value of the second shooting parameter is 1-2, and the numerical value of the third shooting parameter is 1-3.
Then, the user can set the shooting environment 2 to: the numerical value of the first shooting parameter is 2-1, the numerical value of the second shooting parameter is 2-2, and the numerical value of the third shooting parameter is 2-3.
Finally, the user sets the transition policy to: the adjusting time length of the first shooting parameter which is adjusted from the value 1-1 to the value 2-1 is the time length 1, and the adjusting amount per unit time is the value 3-1; the adjusting time length of the second shooting parameter which is adjusted from the value 1-2 to the value 2-2 is the time length 2, and the adjusting amount per unit time is the value 3-2; the adjustment time length of the third shooting parameter which is adjusted from the value 1-3 to the value 2-3 is the time length 3, and the adjustment amount per unit time is the value 3-3.
In the actual shooting process, the electronic device may select to shoot a short video according to a transition policy set by a user, for example, a short video with a shooting duration of 8 seconds is set, an image picture that the electronic device starts to collect is a picture of a long-range view, the user may click the picture, and reset a focus, and after the electronic device detects that the focus is switched from a distant view to a close view, the electronic device may gradually zoom in a lens (i.e., gradually increase a focal length) according to the transition policy, and gradually increase the brightness of the video picture, so that a section of video that gradually enlarges and gradually brightens may be shot.
Based on the scheme, the electronic equipment can determine which parameters of the shooting environment are different from the shooting environment before and after switching and the difference between the shooting environment and the shooting environment after switching exceeds the corresponding preset threshold, if the difference between the shooting environment and the shooting environment before and after switching exceeds the preset threshold, a transition strategy can be determined, the mode of determining the transition strategy is flexible, the electronic equipment can gradually adjust the shooting parameters according to the determined transition strategy, the process of adjusting the parameters of the electronic equipment is smooth, and the situation that the parameters are directly adjusted from a first numerical value to a second numerical value to cause the adjustment to be abrupt and the change of a video picture to cause the poor effect of the shot video is avoided.
Fig. 3 is a schematic diagram of a possible structure of an adjusting apparatus according to an embodiment of the present invention, and as shown in fig. 3, the adjusting apparatus 300 includes: a determination module 301 and an adjustment module 302; a determining module 301, configured to determine a target difference value when the shooting environment is switched from the first shooting environment to the first shooting environment; an adjusting module 302, configured to adjust the shooting parameter from a first value to a second value according to a transition policy when the target difference determined by the determining module 301 is greater than or equal to a preset threshold; the transition policy indicates at least one of: adjusting times, transition duration, time interval between two adjacent adjustments and step value of the adjustment; the target difference is the difference between the shooting parameters in the first shooting environment and the shooting parameters in the second shooting environment; the first value is a value of the shooting parameter in the first shooting environment, and the second value is a value of the shooting parameter in the second shooting environment.
Optionally, after the nth adjustment and before the (N + 1) th adjustment, acquiring an image according to the adjusted value for the nth adjustment, where N is a positive integer.
Optionally, the photographing parameters include at least one of a focal length, brightness, ambient sound, aperture value, and exposure value.
Optionally, in the case that the shooting parameter is a focal length, the transition policy indicates: adjusting the number of times of the focal length, the first transition duration, the first time interval and the adjusted focal length stepping value to be at least one of the first focal length values; or, in the case that the shooting parameter is brightness, the transition policy indicates: adjusting the number of times of brightness, the second transition duration, the second time interval and the adjusted brightness step value to be the first brightness value; or, in the case that the shooting parameter is the environmental sound, the transition policy indicates: and adjusting the times of the environmental sound, the third transition duration, the third time interval and the adjusted environmental sound step value to be the first environmental sound value.
Optionally, the transition policy satisfies any one of the following conditions: the adjustment rate is constant, the adjustment time is constant, and the adjustment rate corresponds to the shooting parameters one to one.
Optionally, the shooting parameters include a first shooting parameter and a second shooting parameter, and the transition strategy includes a first transition strategy and a second transition strategy; the adjusting module 302 is specifically configured to: gradually adjusting a first numerical value corresponding to the first shooting parameter to a second numerical value corresponding to the first shooting parameter according to a first transition strategy; and gradually adjusting the first numerical value corresponding to the second shooting parameter to a second numerical value corresponding to the second shooting parameter according to a second transition strategy.
Optionally, the determining module 301 is specifically configured to determine, when the target difference is greater than or equal to a preset threshold and the difference is in a target preset interval, that the transition policy corresponding to the target preset interval is a target transition policy; the target preset interval is one of K preset intervals, the adjustment duration or the second numerical value of the shooting parameter indicated by the transition strategy corresponding to each preset interval is different, and K is an integer greater than 1.
The adjusting apparatus 300 provided in the embodiment of the present invention can implement each process implemented by the electronic device in the foregoing method embodiments, and for avoiding repetition, details are not described here again.
In the adjusting device provided by the embodiment of the invention, a target difference value is determined under the condition that the shooting environment is switched from the first shooting environment to the second shooting environment, and the target difference value is a difference value of the shooting parameters under the first shooting environment and the second shooting environment; when the target difference is greater than or equal to the preset threshold, the adjusting device may gradually adjust the shooting parameter from the first value to the second value according to a transition strategy; the transition policy indicates at least one of: adjusting times, transition duration, time interval between two adjacent adjustments and step value of the adjustment; that is to say, after the adjusting device determines that the shooting environment changes, if the parameter value of the shooting parameter needs to be adjusted, the adjusting device can gradually adjust the parameter value of the shooting parameter from the first value to the second value according to at least one of the adjustment times, the transition duration, the time interval between two adjacent adjustments and the adjusted step value indicated by the transition policy, so that the transition is more natural, and the change of the video picture in the video shooting process can be relatively continuous.
Fig. 4 is a hardware schematic diagram of an electronic device 100 according to an embodiment of the present invention, where the electronic device 100 includes, but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 4 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a wearable device, a pedometer, and the like.
Wherein, the processor 110 is configured to determine a target difference value in a case where the shooting environment is switched from the first shooting environment to the second shooting environment; under the condition that the target difference value is larger than or equal to a preset threshold value, the shooting parameter is adjusted from a first value to a second value according to a transition strategy; the transition policy indicates at least one of: adjusting times, transition duration, time interval between two adjacent adjustments and step value of the adjustment; the target difference is the difference between the shooting parameters in the first shooting environment and the shooting parameters in the second shooting environment; the first value is the value of the shooting parameter in the first shooting environment, and the second value is the value of the shooting parameter in the second shooting environment.
According to the electronic device provided by the embodiment of the invention, under the condition that the shooting environment is switched from the first shooting environment to the second shooting environment, the target difference value is determined, and the target difference value is the difference value of the shooting parameters in the first shooting environment and the second shooting environment; under the condition that the target difference value is greater than or equal to the preset threshold value, the electronic equipment can gradually adjust the shooting parameter from a first value to a second value according to a transition strategy; the transition policy indicates at least one of: adjusting times, transition duration, time interval between two adjacent adjustments and step value of the adjustment; that is to say, after the electronic device determines that the shooting environment changes, if the parameter value of the shooting parameter needs to be adjusted, the electronic device may gradually adjust the parameter value of the shooting parameter from the first value to the second value according to at least one of the adjustment times, the transition duration, the time interval between two adjacent adjustments and the adjusted step value indicated by the transition policy, the transition is more natural, and the change of the video picture in the video shooting process can be relatively continuous.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 101 may be used for receiving and sending signals during a message transmission or call process, and specifically, after receiving downlink data from a base station, the downlink data is processed by the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 102, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output as sound. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the electronic apparatus 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
The input unit 104 is used to receive an audio or video signal. The input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics processor 1041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the network module 102. The microphone 1042 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode.
The electronic device 100 also includes at least one sensor 105, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or the backlight when the electronic device 100 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 105 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 107 includes a touch panel 1071 and other input devices 1072. Touch panel 1071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 1071 (e.g., operations by a user on or near touch panel 1071 using a finger, stylus, or any suitable object or attachment). The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and receives and executes commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. Specifically, other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 1071 may be overlaid on the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although in fig. 4, the touch panel 1071 and the display panel 1061 are two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the electronic device, and is not limited herein.
The interface unit 108 is an interface for connecting an external device to the electronic apparatus 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic apparatus 100 or may be used to transmit data between the electronic apparatus 100 and the external device.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, performs various functions of the electronic device and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the electronic device. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The electronic device 100 may further include a power source 111 (such as a battery) for supplying power to each component, and preferably, the power source 111 may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the electronic device 100 includes some functional modules that are not shown, and are not described in detail herein.
Optionally, an electronic device is further provided in an embodiment of the present invention, and with reference to fig. 4, the electronic device includes a processor 110, a memory 109, and a computer program that is stored in the memory 109 and is executable on the processor 110, and when the computer program is executed by the processor 110, the processes of the foregoing shooting parameter adjustment method embodiment are implemented, and the same technical effect can be achieved, and details are not repeated here to avoid repetition.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned shooting parameter adjustment method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling an electronic device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (8)

1. A shooting parameter adjusting method is applied to electronic equipment and is characterized by comprising the following steps:
determining a target difference value under the condition that the shooting environment is switched from a first shooting environment to a second shooting environment;
under the condition that the target difference value is larger than or equal to a preset threshold value, adjusting the shooting parameter from a first value to a second value according to a transition strategy; the transition policy indicates at least one of: adjusting times, transition duration, time interval between two adjacent adjustments and step value of the adjustment;
the target difference value is the difference value of the shooting parameters under the first shooting environment and the second shooting environment; the first numerical value is a numerical value of the shooting parameter in the first shooting environment, and the second numerical value is a numerical value of the shooting parameter in the second shooting environment; the shooting parameters comprise at least one of focal length, brightness and environmental sound; one shooting parameter corresponds to a plurality of second numerical values, the plurality of second numerical values are set by combining one shooting parameter with other shooting parameters, the same second numerical value corresponding to one shooting parameter corresponds to a plurality of different transition strategies, and the transition strategy is a transition strategy which is selected from the plurality of different transition strategies by combining the first numerical value and corresponds to the shooting parameter.
2. The shooting parameter adjustment method according to claim 1, wherein after the nth adjustment and before the (N + 1) th adjustment, an image is acquired according to the value after the nth adjustment, where N is a positive integer.
3. The shooting parameter adjustment method according to any one of claims 1 to 2, wherein the transition policy satisfies any one of the following conditions: the adjustment rate is constant, the adjustment time is constant, and the adjustment rate corresponds to the shooting parameters one to one.
4. A shooting parameter adjustment apparatus, characterized by comprising: a determining module and an adjusting module;
the determining module is used for determining a target difference value under the condition that the shooting environment is switched from the first shooting environment to the second shooting environment;
the adjusting module is used for adjusting the shooting parameter from a first value to a second value according to a transition strategy under the condition that the target difference value determined by the determining module is greater than or equal to a preset threshold value; the transition policy indicates at least one of: adjusting times, transition duration, time interval between two adjacent adjustments and step value of the adjustment;
the target difference value is the difference value of the shooting parameters under the first shooting environment and the second shooting environment; the first numerical value is a numerical value of the shooting parameter in the first shooting environment, and the second numerical value is a numerical value of the shooting parameter in the second shooting environment; the shooting parameters comprise at least one of focal length, brightness and environmental sound; one shooting parameter corresponds to a plurality of second numerical values, the plurality of second numerical values are set by combining one shooting parameter with other shooting parameters, the same second numerical value corresponding to one shooting parameter corresponds to a plurality of different transition strategies, and the transition strategy is a transition strategy which is selected from the plurality of different transition strategies by combining the first numerical value and corresponds to the shooting parameter.
5. The shooting parameter adjustment apparatus according to claim 4, wherein after the nth adjustment and before the (N + 1) th adjustment, an image is acquired according to the value after the nth adjustment, where N is a positive integer.
6. The shooting parameter adjustment apparatus according to any one of claims 4 to 5, the transition policy satisfying any one of the following conditions: the adjusting rate is constant, the adjusting time is constant or the adjusting rate and the shooting parameters are in one-to-one correspondence.
7. An electronic device, characterized in that the electronic device comprises a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the shooting parameter adjustment method according to any one of claims 1 to 3.
8. A computer-readable storage medium, characterized in that a computer program is stored thereon, which, when being executed by a processor, implements the steps of the shooting parameter adjustment method according to any one of claims 1 to 3.
CN202010256284.6A 2020-04-02 2020-04-02 Shooting parameter adjusting method and device Active CN111601031B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010256284.6A CN111601031B (en) 2020-04-02 2020-04-02 Shooting parameter adjusting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010256284.6A CN111601031B (en) 2020-04-02 2020-04-02 Shooting parameter adjusting method and device

Publications (2)

Publication Number Publication Date
CN111601031A CN111601031A (en) 2020-08-28
CN111601031B true CN111601031B (en) 2022-02-01

Family

ID=72183362

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010256284.6A Active CN111601031B (en) 2020-04-02 2020-04-02 Shooting parameter adjusting method and device

Country Status (1)

Country Link
CN (1) CN111601031B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113518242B (en) * 2021-09-15 2021-12-14 秒影工场(北京)科技有限公司 Short video production method and device based on template shooting and automatic editing

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010068475A (en) * 2008-09-12 2010-03-25 Canon Inc Imaging apparatus and method of reproducing image in the imaging apparatus
CN105578045A (en) * 2015-12-23 2016-05-11 努比亚技术有限公司 Terminal and shooting method of terminal
CN108234894A (en) * 2018-01-15 2018-06-29 维沃移动通信有限公司 A kind of exposure adjustment method and terminal device
CN109714519A (en) * 2017-10-25 2019-05-03 成都市极米科技有限公司 A kind of method and system of adjust automatically image frame
JP2019220925A (en) * 2018-06-22 2019-12-26 パナソニックIpマネジメント株式会社 Imaging apparatus and video output method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018191194A (en) * 2017-05-10 2018-11-29 キヤノン株式会社 Imaging System
CN107995425B (en) * 2017-12-11 2019-08-20 维沃移动通信有限公司 A kind of image processing method and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010068475A (en) * 2008-09-12 2010-03-25 Canon Inc Imaging apparatus and method of reproducing image in the imaging apparatus
CN105578045A (en) * 2015-12-23 2016-05-11 努比亚技术有限公司 Terminal and shooting method of terminal
CN109714519A (en) * 2017-10-25 2019-05-03 成都市极米科技有限公司 A kind of method and system of adjust automatically image frame
CN108234894A (en) * 2018-01-15 2018-06-29 维沃移动通信有限公司 A kind of exposure adjustment method and terminal device
JP2019220925A (en) * 2018-06-22 2019-12-26 パナソニックIpマネジメント株式会社 Imaging apparatus and video output method

Also Published As

Publication number Publication date
CN111601031A (en) 2020-08-28

Similar Documents

Publication Publication Date Title
CN109743498B (en) Shooting parameter adjusting method and terminal equipment
CN107592466B (en) Photographing method and mobile terminal
CN110719402B (en) Image processing method and terminal equipment
CN110896451B (en) Preview picture display method, electronic device and computer readable storage medium
CN108234894B (en) Exposure adjusting method and terminal equipment
CN110505400B (en) Preview image display adjustment method and terminal
CN110213484B (en) Photographing method, terminal equipment and computer readable storage medium
CN111147752B (en) Zoom factor adjusting method, electronic device, and medium
CN110769174B (en) Video viewing method and electronic equipment
CN108257104B (en) Image processing method and mobile terminal
CN111601032A (en) Shooting method and device and electronic equipment
CN110830713A (en) Zooming method and electronic equipment
CN109151348B (en) Image processing method, electronic equipment and computer readable storage medium
CN111083386B (en) Image processing method and electronic device
CN111124227A (en) Image display method and electronic equipment
CN110708475B (en) Exposure parameter determination method, electronic equipment and storage medium
CN110505660B (en) Network rate adjusting method and terminal equipment
CN109361864B (en) Shooting parameter setting method and terminal equipment
CN109859718B (en) Screen brightness adjusting method and terminal equipment
CN111601031B (en) Shooting parameter adjusting method and device
CN110913133B (en) Shooting method and electronic equipment
CN111026477B (en) Display method and electronic equipment
CN111246105B (en) Photographing method, electronic device, and computer-readable storage medium
CN109992941B (en) Authority management method and terminal equipment
CN109561258B (en) Light supplementing method and terminal 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