CN115002338A - Shooting parameter control method and device - Google Patents

Shooting parameter control method and device Download PDF

Info

Publication number
CN115002338A
CN115002338A CN202111505369.4A CN202111505369A CN115002338A CN 115002338 A CN115002338 A CN 115002338A CN 202111505369 A CN202111505369 A CN 202111505369A CN 115002338 A CN115002338 A CN 115002338A
Authority
CN
China
Prior art keywords
shooting
zooming
parameter
zoom
rotation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111505369.4A
Other languages
Chinese (zh)
Other versions
CN115002338B (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.)
Honor Device Co Ltd
Original Assignee
Honor Device 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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202111505369.4A priority Critical patent/CN115002338B/en
Priority to CN202310553504.5A priority patent/CN116634261A/en
Publication of CN115002338A publication Critical patent/CN115002338A/en
Application granted granted Critical
Publication of CN115002338B publication Critical patent/CN115002338B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

After the electronic equipment enters a video shooting mode, if shooting parameter adjustment operation is detected, a shooting parameter adjustment range is prompted on a shooting interface. If the adjustment triggering operation is detected, a smooth adjustment curve is obtained based on the initial shooting parameters and the target shooting parameters, and the parameters to be adjusted are adjusted to the target shooting parameters from the initial shooting parameters in a smooth mode based on the smooth adjustment curve. The initial shooting parameter value refers to a shooting parameter value before the current shooting parameter adjustment operation is detected, and the target shooting parameter value refers to a shooting parameter value after the adjustment trigger operation is detected. According to the scheme, the initial shooting parameters are smoothly adjusted to the target shooting parameters after the adjustment triggering operation is detected, and the smooth adjustment process of the shooting parameters is recorded in the video, so that the overall effect of the video is improved. Moreover, the scheme enables a user to visually see the shooting range corresponding to the adjustment operation, and improves user experience.

Description

Shooting parameter control method and device
Technical Field
The present application relates to the field of camera technologies, and in particular, to a method and an apparatus for controlling shooting parameters.
Background
With the development of science and technology, the shooting effect of electronic equipment (such as a digital camera, or a mobile phone with a camera, a tablet computer, etc.) is better and better, and shooting by using the electronic equipment has become a popular choice for people.
When a user uses the electronic device to shoot, the shooting parameters can be adjusted to achieve a required shooting effect, for example, the user adjusts the shooting range through zooming operation, and adjusts the angle through rotating operation. However, when a user adjusts shooting parameters in the process of shooting a video by the electronic device, the problem that the change of a shooting picture is abrupt exists, moreover, the whole adjusting process can be recorded in the video, and the abrupt changing process can affect the overall effect of the video.
Disclosure of Invention
In view of the above, the present application provides a method and an apparatus for controlling shooting parameters, so as to solve the problem that the shooting parameters change abruptly, and the disclosed technical solution is as follows:
in a first aspect, the present application provides a method for controlling shooting parameters, which is applied to an electronic device, where the electronic device enters a video shooting mode; when a shooting parameter adjustment event is received, displaying adjustment range prompt information matched with the shooting parameter adjustment event on a shooting interface; when the adjustment triggering operation is detected, acquiring a target parameter value of a shooting parameter to be adjusted, wherein the shooting parameter to be adjusted is a parameter adjusted by a shooting parameter adjustment event; obtaining a smooth change curve corresponding to the shooting parameter to be adjusted based on the initial parameter value and the target parameter value, wherein the initial parameter value is the parameter value corresponding to the shooting parameter to be adjusted when a shooting parameter adjustment event is detected, the abscissa of the smooth change curve is shooting parameter adjustment time, and the ordinate is the shooting parameter value; and controlling the shooting parameters to be adjusted to be smoothly changed from the initial parameter values to the target parameter values based on the smooth change curve. Therefore, according to the scheme, after the adjustment triggering operation is detected, the numerical value of the shooting parameter to be adjusted is smoothly adjusted, specifically, a smooth adjustment curve is obtained according to the target shooting parameter value and the initial shooting parameter value, and the shooting parameter is smoothly adjusted from the initial shooting parameter value to the target shooting parameter value according to the smooth adjustment curve, so that the process of smoothly adjusting the shooting parameter is recorded in the shot video, and the overall effect of the video is improved. In addition, adjustment range prompt information matched with the shooting parameter adjustment operation can be displayed on the current shooting interface in real time, so that a user can visually see the shooting range corresponding to the operation, and the user experience is improved.
In a possible implementation manner of the first aspect, obtaining a smooth variation curve corresponding to the shooting parameter to be adjusted based on the initial parameter value and the target parameter value includes: and generating a smooth cubic Bezier curve according to the parameter information of a preset cubic Bezier curve, and by taking the initial parameter value as a starting point and the target parameter value as an ending point, wherein the parameter information comprises the relative position relationship between a first control point and the starting point and the relative position relationship between a second control point and the ending point of the cubic Bezier curve. The scheme adopts a shallow-in and shallow-out smooth curve obtained by a cubic Bezier curve, namely the adjusting speed of the accessories at the adjusting starting time and the adjusting ending time is less than that at the intermediate stage, so that abrupt change of the adjusting starting time and the adjusting ending time is avoided, and the smooth change effect of the shooting parameters is further improved.
In another possible implementation manner of the first aspect, controlling the shooting parameter to be adjusted to smoothly change from the initial parameter value to the target parameter value based on the smooth change curve includes: determining parameter values of the parameters to be adjusted corresponding to each adjusting time point based on the smooth change curve; generating an adjusting instruction corresponding to the adjusting time point based on the parameter value corresponding to the adjusting time point; and sequentially executing the adjusting instructions according to the time sequence of each adjusting time point, and adjusting the shooting parameters to be adjusted to the parameter values corresponding to the adjusting instructions. Therefore, according to the scheme, each adjusting instruction is obtained according to the obtained smooth change curve, and the shooting parameter is adjusted smoothly finally.
In yet another possible implementation manner of the first aspect, the shooting parameter adjustment event is generated when a shooting parameter adjustment operation is detected; displaying adjustment range prompt information matched with the shooting parameter adjustment event on a shooting interface, wherein the adjustment range prompt information comprises: displaying prompt information on a shooting interface; when the change of the shooting parameter adjusting operation is detected, determining a real-time parameter value matched with the changed shooting parameter adjusting operation; adjusting display parameters of the prompt message based on the real-time parameter values; and the display parameters of the prompt information are matched with the shooting parameter adjustment operation, and include the size or the direction of the prompt information. Therefore, the prompt information displayed on the shooting interface can change along with the change of the shooting parameter adjustment operation, so that a user can visually see the adjusted effect corresponding to each adjustment operation, and the user experience is improved.
In another possible implementation manner of the first aspect, the shooting parameter adjustment operation is a zoom operation, and the prompt information includes a first zoom prompt box and a second zoom prompt box displayed on the shooting interface; displaying a shooting range matched with an initial zooming magnification in the first zooming prompt box, wherein the initial zooming magnification is the corresponding zooming magnification when zooming operation is detected; and displaying a shooting range matched with the real-time zooming magnification corresponding to the zooming operation in the second zooming prompt box. According to the scheme, the shooting range corresponding to the initial zooming multiplying power is displayed through the first zooming prompt box, the shooting range corresponding to the real-time zooming multiplying power of zooming operation is displayed through the second zooming prompt box, a user can visually see the shooting range corresponding to the real-time zooming operation, meanwhile, the user can visually see the transition shooting range adjusted from the initial zooming multiplying power to the target zooming multiplying power, and user experience is further improved.
In yet another possible implementation manner of the first aspect, a region between the first zoom prompt box and the second zoom prompt box is a semi-transparent region, and a display content of the semi-transparent region is a transition range corresponding to a shooting range that is changed from the shooting range displayed by the first zoom prompt box to the shooting range displayed by the second zoom prompt box. Therefore, the user can more intuitively see the transition shooting range from the initial zooming magnification adjustment to the target zooming magnification adjustment, and the user experience is improved.
In still another possible implementation manner of the first aspect, the shooting parameter adjustment operation is a zoom magnification operation; adjusting display parameters of the prompt message based on the real-time parameter values, comprising: and adjusting the size of the second zooming prompt box based on the real-time zooming magnification corresponding to the zooming magnification operation so as to display the shooting range matched with the real-time zooming magnification in the second zooming prompt box. Therefore, the user can visually see the adjusted shooting range from the shooting range displayed in the second zooming prompt box, so that the user can determine whether the current shooting range meets the shooting requirement or not, and the visual perception experience of the user in the process of adjusting the zooming magnification is improved.
In another possible implementation manner of the first aspect, the shooting parameter adjustment operation is a zoom-out magnification operation; adjusting display parameters of the prompt message based on the real-time parameter values, including: and adjusting the size of the first zooming prompt box based on the real-time zooming magnification corresponding to the zooming magnification operation so that a shooting range matched with the initial zooming magnification is displayed in the first zooming prompt box, the size of the second zooming prompt box is equal to that of the shooting picture, and a shooting range matched with the real-time zooming magnification is displayed in the second zooming prompt box. Therefore, in the scheme, the shooting range displayed in the second zooming prompt frame is correspondingly adjusted according to the zooming magnification operation, and meanwhile, the shooting range displayed in the first zooming prompt frame is always the range corresponding to the initial zooming magnification by adjusting the size of the first zooming prompt frame, so that a user can visually see the transition shooting range from the initial zooming magnification to the target zooming magnification, and the visual perception experience of the user in the shooting process is improved.
In yet another possible implementation manner of the first aspect, the shooting parameter adjusting operation is a rotation operation, and the prompt information includes a rotation direction prompt graph displayed on the shooting interface; adjusting display parameters of the hint graph based on the real-time parameter values includes: and adjusting the indication direction of the rotation direction prompt graph to be consistent with the rotation angle value corresponding to the rotation operation. Therefore, by adjusting the knowledge direction of the rotation direction prompt graph, the user can directly see whether the rotation direction corresponding to the rotation operation meets the shooting requirement or not, and the shooting experience of the user is improved.
In yet another possible implementation manner of the first aspect, the rotating direction prompting graphic includes displaying an indication arrow on the shooting interface, where an indication direction of the indication arrow is consistent with a rotating angle value corresponding to the rotating operation.
In yet another possible implementation manner of the first aspect, the rotation direction prompting graphic includes an angle dial displayed on the shooting interface, and a rotation angle value corresponding to the rotation operation is displayed in the angle dial.
In yet another possible implementation manner of the first aspect, a shooting parameter adjustment event is generated when it is detected that an included angle between a longitudinal symmetry axis of the electronic device and a true horizontal line of a shot picture is smaller than 90 °; displaying prompt information and an option control on a shooting interface, wherein the prompt information is used for prompting a user whether to rotate to a horizon visual angle, and the real horizontal line of a shooting picture under the horizon visual angle is consistent with the horizon direction on the shooting interface; the shooting parameter triggering operation is an operation of clicking the option determining control. Like this, when detecting that electronic equipment's state satisfies the preset condition, show rotatory suggestion information to the user automatically to whether the suggestion user rotates to horizon visual angle, need not user manual rotation, can indicate the user automatically whether rotatory, reduced user operation, further improved user experience.
In another possible implementation manner of the first aspect, the hint information is hidden when an adjustment trigger operation is detected.
In yet another possible implementation manner of the first aspect, the shooting parameter to be adjusted is a zoom magnification, and the adjustment trigger operation is that a finger for the zoom operation leaves a screen of the electronic device.
In still another possible implementation manner of the first aspect, the shooting parameter to be adjusted is a rotation angle, and the adjustment trigger operation is that at least two fingers used for the rotation operation leave a screen of the electronic device.
In another possible implementation manner of the first aspect, the rotation angle is an angle obtained by rotating the captured picture clockwise or counterclockwise with a straight line perpendicular to the screen as an axis.
In a second aspect, the present application further provides an electronic device, which includes a memory and a processor, wherein the memory stores program instructions, and the program instructions, when executed by the processor, cause the electronic device to execute the method for controlling shooting parameters according to any one of the first aspect.
In a third aspect, the present application also provides a computer-readable storage medium having stored thereon program instructions that, when run on an electronic device, cause the electronic device to execute the method for controlling shooting parameters according to any one of the first aspect.
In a fourth aspect, the present application also provides a computer program product having stored thereon program instructions that, when run on an electronic device, cause the electronic device to execute the method of controlling shooting parameters according to any one of the first aspect.
It should be appreciated that the description of technical features, solutions, benefits, or similar language in this application does not imply that all of the features and advantages may be realized in any single embodiment. Rather, it is to be understood that the description of a feature or advantage is intended to include the specific features, aspects or advantages in at least one embodiment. Therefore, the descriptions of technical features, technical solutions or advantages in the present specification do not necessarily refer to the same embodiment. Furthermore, the technical features, technical solutions and advantages described in the present embodiments may also be combined in any suitable manner. One skilled in the relevant art will recognize that an embodiment may be practiced without one or more of the specific features, aspects, or advantages of a particular embodiment. In other embodiments, additional features and advantages may be recognized in certain embodiments that may not be present in all embodiments.
Drawings
In order to more clearly illustrate the embodiments or technical solutions of the present invention, the drawings used in the embodiments or technical solutions in the prior art are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 2 is a block diagram of a software structure of an electronic device according to an embodiment of the present disclosure;
FIG. 3A is a schematic view of a UI interface for zooming according to an embodiment of the present disclosure;
FIG. 3B is a schematic view of another UI interface for zooming according to an embodiment of the present application;
FIG. 4 is a schematic view of a UI interface for zooming out according to an embodiment of the present disclosure;
FIG. 5 is a schematic view of a different angle provided by an embodiment of the present application;
fig. 6A is a schematic diagram of a UI interface that rotates a shooting angle to the left according to an embodiment of the present application;
FIG. 6B is a schematic diagram of another UI interface for rotating a shooting angle to the left according to an embodiment of the application;
fig. 7A is a schematic diagram of a UI interface for rotating a shooting angle to the right according to an embodiment of the present application;
FIG. 7B is a schematic diagram of another UI interface for rotating a shooting angle to the right according to an embodiment of the application;
fig. 7C is a schematic view of another UI interface for rotating a shooting angle according to an embodiment of the present application;
fig. 8 is a flowchart of a method for controlling shooting parameters according to an embodiment of the present application;
FIG. 9A is a UI diagram of a zoom amplitude bar and a rotate amplitude bar provided by an embodiment of the application;
FIG. 9B is a UI diagram of another zoom amplitude bar and rotary scale provided by embodiments of the present application;
fig. 10 is a schematic diagram of a smooth zoom curve corresponding to a zoom magnification provided in an embodiment of the present application;
fig. 11 is a schematic diagram of a smooth zoom curve corresponding to a zoom-out magnification according to an embodiment of the present application;
FIG. 12 is a schematic diagram of a smooth rotation curve corresponding to an increased angle provided by an embodiment of the present application;
fig. 13 is a schematic diagram of a smooth rotation curve corresponding to a reduction angle provided by an embodiment of the present application.
Detailed Description
The terms "first," "second," and "third," etc. in the description and claims of the present application and the description of the drawings are used for distinguishing between different objects and not for limiting a particular order.
In the embodiments of the present application, words such as "exemplary" or "for example" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "such as" 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 inventor finds out through research that: in the zooming process of the electronic device, it is difficult for the user to achieve smooth zooming, and repeated adjustment often occurs, for example, after the user performs an operation of increasing the zoom magnification, the user finds that the zoom magnification is too large and then performs an operation of decreasing the zoom magnification again to continue the adjustment, and the entire zooming process is recorded in the video. Moreover, the zooming process is very abrupt and not smooth. Similarly, the problem of abrupt angle change also exists in the process of adjusting the rotation angle, and the overall effect of the video is affected by the abrupt change process.
In order to solve the technical problem, the inventor provides a method and a device for controlling shooting parameters. If the adjustment triggering operation is detected, a smooth adjustment curve is obtained based on the initial shooting parameter value and the target shooting parameter value, and the parameter to be adjusted is adjusted to the target shooting parameter value from the initial shooting parameter value smoothly based on the smooth adjustment curve. The initial shooting parameter value refers to a shooting parameter value before the current shooting parameter adjustment operation is detected, and the target shooting parameter value refers to a shooting parameter value after the adjustment trigger operation is detected. Therefore, the scheme smoothly adjusts the numerical value of the shooting parameter to be adjusted after the adjustment triggering operation is detected, specifically, a smooth adjustment curve is obtained according to the target shooting parameter value and the initial shooting parameter value, and the shooting parameter is smoothly adjusted from the initial shooting parameter value to the target shooting parameter value according to the smooth adjustment curve, so that the process of smoothly adjusting the shooting parameter is recorded in the shot video, and the overall effect of the video is improved. In addition, the scheme can display the range matched with the shooting parameter adjustment operation on the current shooting interface in real time, so that a user can visually see the shooting range corresponding to the operation, and the user experience is improved.
Referring to fig. 1, a schematic structural diagram of an electronic device provided in an embodiment of the present application is shown, where the electronic device is configured to operate a control method for shooting parameters provided in the present application.
The electronic device may be an electronic device provided with a camera, such as a mobile phone, a tablet Computer, a desktop/laptop notebook Computer, an Ultra-mobile Personal Computer (UMPC), a handheld Computer, a netbook, a Personal Digital Assistant (PDA), a wearable electronic device. The specific form of the electronic device is not particularly limited in the present application.
As shown in fig. 1, the electronic device may include a processor, a camera, a display screen, a touch sensor, an internal memory, an external memory interface, a USB interface, a charging management module, a power management module, a battery, and a key.
The processor is a nerve center and a command center of the electronic equipment, and the controller can generate an operation control signal according to the instruction operation code and the time sequence signal to finish the control of instruction fetching and instruction execution.
The processor may include one or more processing units, for example, the processor may include an Application Processor (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), among others. The different processing units may be separate devices or may be integrated into one or more processors.
The controller can be a neural center and a command center of the electronic device. The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and instruction execution.
The memory may be used to store computer executable program code that may include an operating system, application programs required for at least one function (such as a sound playing function, an image, a video playing function, etc.), and the like. The executable program code includes instructions that, when executed by the processor, cause the electronic device to perform various functional applications and data processing. For example, in the present application, the processor causes the electronic device to execute the control method of the shooting parameters provided in the present application by executing the instructions stored in the memory.
The display screen is used to display images, videos, a series of Graphical User Interfaces (GUIs), and the like. The electronic device may include 1 or N display screens, N being a positive integer greater than 1. For example, in embodiments of the present application, the display screen may display controls of a camera application.
The electronic device can realize the shooting function through the ISP, the camera, the video codec, the GPU, the display screen, the application processor and the like.
The ISP is used for processing data fed back by the camera. For example, when a photo is taken, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converting into an image visible to naked eyes. The ISP can also carry out algorithm optimization on noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In an exemplary embodiment, the ISP may be provided in the camera.
The camera is used to capture still images or video. The object generates an optical image through the lens and projects the optical image to the photosensitive element. The photosensitive element may be a Charge Coupled Device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The light sensing element converts the optical signal into an electrical signal, which is then passed to the ISP where it is converted into a digital image signal. And the ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into image signal in standard RGB, YUV and other formats. In an exemplary embodiment, the electronic device may include 1 or N cameras, N being a positive integer greater than 1.
Touch sensors, also known as "touch devices". The touch sensor can be arranged on the display screen, and the touch sensor and the display screen form the touch screen, which is also called a touch screen. The touch sensor is used to detect a touch operation applied thereto or nearby. The touch sensor can communicate the detected touch operation to the application processor to determine the touch event type. Visual output related to the touch operation may be provided through the display screen. In other embodiments, the touch sensor may be disposed on a surface of the electronic device at a different location than the display screen.
It is to be understood that the illustrated structure of the present embodiment does not constitute a specific limitation to the electronic device. In other embodiments, an electronic device may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
In addition, an operating system is run on the above components, and an application program can be installed and run on the operating system.
The operating system of the electronic device may employ a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the application takes an Android system with a layered architecture as an example, and exemplarily illustrates a software structure of an electronic device.
Fig. 2 is a block diagram of a software structure of an electronic device according to an embodiment of the present application.
The layered architecture divides the software into several layers, each layer having a clear role and division of labor. The layers communicate with each other through a software interface. Taking the Android system as an example, in an exemplary embodiment, the Android system is divided into four layers, which are an Application Layer (APP), an Application Framework Layer (Framework), a system library, a Hardware Abstraction Layer (HAL), and a system Kernel Layer (Kernel) from top to bottom.
The application layer may include a series of application packages, such as applications including cameras, galleries, calendars, telephones, navigation, and so forth.
The application framework layer provides an Application Programming Interface (API) and a programming framework for the application program of the application layer. The application framework layer includes a number of predefined functions such as camera services, window manager, content provider, view system, phone manager, resource manager, notification manager, etc.
The camera HAL may connect the camera framework API to the underlying camera driver and hardware.
In an exemplary embodiment, the camera HAL may include a photographing parameter processing module, a smooth zoom module, a smooth rotation module, and the like.
The shooting parameter processing module is used for receiving the shooting parameter adjustment event, analyzing the shooting parameter adjustment event to obtain the shooting parameter types corresponding to the shooting parameter adjustment operation, such as zoom magnification, rotation angle and the like, and triggering the corresponding modules to generate parameter adjustment instructions, such as zoom instructions and rotation instructions.
The smooth zooming module is used for generating a zooming instruction for smoothly adjusting the zooming magnification.
The smooth rotation module is used for generating a rotation instruction for enabling the angle to rotate smoothly.
The kernel layer (kernel) is a layer between hardware and software, and includes at least a camera driver, a touch driver, and the like.
Although the Android system is taken as an example for description in the embodiment of the present application, the basic principle is also applicable to electronic devices based on other operating systems.
The following describes a process of adjusting shooting parameters by taking the electronic device as a mobile phone as an example, and shooting parameter adjustment processes of other types of electronic devices are similar.
In an exemplary embodiment, in a scene of adjusting zoom magnification, a first zoom prompt box and a second zoom prompt box may be displayed on a shooting interface. And displaying a shooting range corresponding to the initial zooming magnification in the first zooming prompt box. And displaying a shooting range corresponding to the zoom magnification corresponding to the real-time zoom operation in the second zoom prompt box, namely, displaying the shooting range in the second zoom prompt box to change along with the zoom operation.
A schematic diagram of a UI interface of the electronic device when adjusting the zoom magnification will be described below with reference to fig. 3A, 3B, and 4.
Referring to fig. 3A, a schematic view of a UI interface for zooming according to an embodiment of the present disclosure is shown.
In a scene in which the camera APP is in the video shooting mode, as shown in (1) of fig. 3A, when it is detected that the two fingers touch the screen without moving, the shooting ranges displayed by the first zoom prompt frame 1 and the second zoom prompt frame 2 are the same. If the two fingers expand outwards (i.e., zoom magnification), the size of the first zoom prompt box 1 and the shooting range displayed by the first zoom prompt box are kept unchanged, and the size of the second zoom prompt box 2 is reduced along with the expansion displacement of the two fingers, so that the shooting range displayed in the second zoom prompt box 2 is reduced, i.e., the shooting range displayed in the second zoom prompt box 2 is the shooting range matched with the corresponding zoom magnification after the two fingers expand.
Then, if the user determines that the currently displayed shooting range does not meet the shooting requirement through the shooting range displayed by the second zooming prompt box 2, the user can continue to adjust the shooting range through the double-finger retracting operation, and if the double fingers of the user continue to expand, the size of the second zooming prompt box 2 continues to be reduced along with the expansion action; in another example, if the user pinches both fingers, the size of the second zoom prompt box 2 becomes larger following the pinch operation.
In a scene of zooming, considering that the shooting range displayed by the first zooming prompt box is always unchanged, in other embodiments, the first zooming prompt box may not be displayed on the shooting interface, and only the second zooming prompt box is displayed, where the shooting range displayed by the second zooming prompt box is the real-time shooting range corresponding to the zooming operation.
Further, the region between the first zoom prompt frame 1 and the second zoom prompt frame 2 may be a translucent region representing a transition range from the shooting range shown by the first zoom prompt frame 1 to the shooting range shown by the second zoom prompt frame 2. The transparency of the semi-transparent display area can be set by the user, or a default value of the system is adopted, such as the transparency is 80%.
When the user determines that the current shooting range meets the requirement by observing the shooting range in the second zoom prompt box 2, the two fingers leave the UI interface (i.e., zoom trigger operation) to trigger execution of a smooth zoom process, i.e., control the zoom magnification to smoothly change from the initial zoom magnification to the target zoom magnification, and smoothly change from the shooting range shown in (1) of fig. 3A to the shooting range shown in (3) of fig. 3A. It can be seen that what is recorded in the video is a smooth change from the zoom magnification shown in (1) to the zoom magnification shown in (3), and therefore, the shooting effect of the video is improved.
In another exemplary embodiment, as shown in fig. 3B, another UI interface at the time of magnification and zoom is provided, which is different from fig. 3A in that: the initial size of the second zoom prompt box is different from that of fig. 3A.
As shown in (1) of fig. 3B, when the two-finger zoom magnification operation is detected, the second zoom prompt frame 2 displayed on the shooting interface is a very small frame, and as the two fingers expand, the second zoom prompt frame 2 becomes larger following the expansion operation, as becoming the size shown in (2) of fig. 3B.
In a scene, a user may perform a zoom magnification operation for an area concerned by the user, and in this scene, a display position of the second zoom prompt box 2, for example, an intermediate position of two contacts, may be determined according to a contact position generated by the zoom operation of the user on the screen, and for example, the second zoom prompt box 2 is displayed at a position of any one contact.
In other exemplary embodiments, the second zoom prompt box 2 in the initial state in fig. 3B may also be in other shapes, such as a circle with a small diameter, or only one dot is displayed, or other shapes, and the application does not limit the initial shape of the second zoom prompt box.
In addition, the initial size of the second zoom prompt box 2 is not particularly limited in the present application, for example, the initial size of the second zoom prompt box 2 may be a default size of the system, or the second zoom prompt box 2 is a box with two contact points as diagonal vertices, and the like.
Similar to zooming, the UI interface may also display a zoom prompt box in a scene where the user zooms out of the zoom.
As shown in fig. 4 (1), when it is detected that both fingers touch the screen and move, the shooting ranges displayed on the shooting interface in the first zoom prompt frame 1 and the second zoom prompt frame 2 are the same, and both are shooting ranges corresponding to the initial zoom magnification (zoom magnification when zoom operation is detected). As the two fingers are contracted on the screen, as shown in (2) of fig. 4, the shooting range displayed within the second zoom prompt frame 2 becomes larger, but the size of the second zoom prompt frame 2 does not change to be the same as the size of the finder frame of the shooting interface, i.e., the maximum range of the second zoom prompt frame. The first zoom prompt frame 1 becomes smaller, so that the shooting range displayed in the first zoom prompt frame 1 is always kept in the shooting range corresponding to the initial zoom magnification.
It can be seen that, in the scene of reducing the zoom magnification, the size of the second zoom prompt box 2 is not changed, and the shooting range displayed in the second zoom prompt box 2 is enlarged along with the operation of reducing the zoom magnification; the first zoom prompt box 1 becomes smaller, and the shooting range displayed in the first zoom prompt box 1 is always the shooting range corresponding to the initial zoom magnification.
As shown in (2) of fig. 4, the region between the first zoom prompt box 1 and the second zoom prompt box 2 is a translucent region representing a transition range from the shooting range shown by the first zoom prompt box to the shooting range shown by the second zoom prompt box 2.
When the user determines that the requirement is met by observing the shooting range in the second zoom prompt box 2, the two fingers leave the screen to trigger the smooth zooming process, and the zoom magnification is controlled to be smoothly changed from the initial zoom magnification to the target zoom magnification, that is, the shooting range is smoothly changed from the shooting range shown in (1) of fig. 4 to the shooting range shown in (3) of fig. 4.
Fig. 3A, 3B, and 4 are only exemplary diagrams, and the prompt corresponding to the zoom operation may be displayed in other manners, which is not limited in the present application.
The process of rotating the angle is similar to adjusting the zoom magnification, and the angle in this application refers to an angle obtained by rotating the screen around an axis which is a straight line perpendicular to the screen plane (specifically, the center of the screen plane). The angle adjustment method and device for the electronic equipment adjust the angle of the shot picture displayed on the screen through rotation operation on the premise that the lens angle of the electronic equipment is unchanged. For example, the rotating operation may include: at least two fingers rotate on the screen, adjust a rotation amplitude bar on the UI interface, and the like.
In an exemplary embodiment, in a scene of adjusting the rotation angle of the shooting picture, an arrow indicating the rotation angle (as shown in fig. 6A and 7A) may be displayed on the shooting interface, and the indication direction of the arrow changes along with the rotation operation, that is, the direction indicated by the arrow is always the direction of the angle corresponding to the current rotation operation, for example, the rotation operation is used to rotate the picture from 0 ° to-15 ° to the left, and the direction of the arrow gradually changes from the initial 0 ° direction to the direction of-15 °.
In an exemplary embodiment, as shown in fig. 5, when the electronic device is placed in the forward direction, the upward direction of the longitudinal symmetry axis of the electronic device is 0 ° or 360 °, and the counterclockwise rotation gesture of the finger on the screen increases the angle displayed on the screen, and rotates counterclockwise by one turn, and the angle displayed on the screen gradually changes from 0 ° to 360 °, whereas the clockwise rotation gesture of the finger on the screen decreases the angle displayed on the screen, and rotates clockwise by one turn, and the angle displayed on the screen gradually changes from 360 ° to 0 °.
In other exemplary embodiments, as shown in fig. 5, when the electronic device is placed in the forward direction, the longitudinal symmetry axis of the electronic device is a boundary line of positive and negative angles, the angle range corresponding to the leftward rotation is 0 ° to-180 °, and the angle range corresponding to the rightward rotation is 0 ° to-180 °.
The angle rotation gesture, the adjustment direction and the angle range can be set according to the requirement, and the application does not limit the gesture.
Referring to fig. 6A, a schematic diagram of a UI interface for rotating a shooting picture to the left according to an embodiment of the present application is shown.
In a scene that the camera APP is in a video shooting mode, a user can change an angle of a current shooting picture by using a double-finger rotating operation. And after the rotation operation is detected, displaying an angle rotation prompting arrow on the shooting picture. Further, in order to make the user see the prompting arrow more clearly, a semi-transparent layer may be displayed on the shooting interface, and an arrow may be displayed on the semi-transparent layer, such as the arrow shown in (1) of fig. 6A. Moreover, the direction indicated by the presentation arrow is always the same as the rotation angle corresponding to the rotation operation, that is, the direction indicated by the presentation arrow changes following the change in the rotation operation.
Here, the direction of the arrow shown in (1) of fig. 6A indicates a direction corresponding to the initial angle 0 ° (i.e., an angle at which a picture was taken when the rotation operation was detected).
The user's both fingers are rotated counterclockwise, such as 90 ° counterclockwise, and accordingly, the direction indicated by the angular rotation prompting arrow is changed following the operation of rotating the both fingers counterclockwise, that is, the direction of the arrow is gradually changed from the direction (such as 0 °) shown in (1) of fig. 6A to the direction (such as 90 °) shown in (2) of fig. 6A.
When the user determines that the current angle meets the requirement by observing the direction of the prompting arrow, the two fingers leave the UI interface (i.e., the rotation trigger operation) to trigger the execution of the smooth angle adjustment process, i.e., the angle of the shooting picture is controlled to be smoothly changed from the initial angle to the target angle, i.e., from the angle shown in (1) of fig. 6A to the angle shown in (3) of fig. 6A.
In another exemplary embodiment, a disc-shaped rotation prompting control can be displayed on the shooting interface, and the angle indicated in the control changes in real time along with the change of the rotation operation.
As shown in fig. 6B, another UI diagram when the photographic screen is rotated to the left is provided, which is different from fig. 6A in that: the manner for indicating the rotation angle is different, the example of fig. 6A indicates the direction of the rotation angle with an arrow, and the example of fig. 6B indicates the rotation angle with an angle dial.
When the rotation operation is detected, a circle is displayed on the shooting interface, and the numerical value of the angle corresponding to the rotation operation is displayed in the circle. As shown in (1) of fig. 6B, displaying "0" in the circular angle dial indicates that the current angle is 0 °; when the finger of the user rotates leftwards, the numerical value displayed in the circular angle dial can be changed along with the rotation operation in real time, and if the rotation operation is gradually changed from the 0-degree direction shown in (1) to the 90-degree direction shown in (2), the numerical value displayed in the circular angle dial is gradually changed from 0 to-90.
When the user's fingers leave the screen, the angle of the photographed picture of the camera is controlled to smoothly rotate from 0 ° shown in (1) to-90 ° shown in (3).
The process of rotating to the right is similar to the process of rotating to the left, as shown in (1) of fig. 7A, two fingers of the user rotate clockwise on the screen, and an angle rotation prompting arrow is displayed on the shooting interface. If both fingers rotate clockwise by 90 °, accordingly, the direction of the angular rotation prompting arrow gradually changes from the angle (e.g., 0 °) shown in (1) of fig. 7A to the angle (e.g., 90 °) shown in (2) of fig. 7A.
When the user leaves the screen with both fingers, the angle of the captured picture displayed on the control screen smoothly rotates from the angle shown in (1) of fig. 7A to the angle shown in (3) of fig. 7A.
Similar to the UI interface rotated to the left as shown in fig. 6B, when rotated to the right, a circular angle dial may be displayed on the photographing interface and an angle value corresponding to a rotation operation in real time may be displayed within the disk, as shown in fig. 7B. The manner of indication of the circular angle dial when rotated to the right is the same as that of fig. 6B, and will not be described again.
Fig. 7A and 7B are only exemplary drawings, and in other embodiments, the rotation direction prompt information corresponding to the rotation operation may be displayed in other manners, for example, an angle value corresponding to the rotation operation in real time is directly displayed on the shooting interface. The present application does not limit the specific manner of the rotation indication.
In the example shown in fig. 7A and 7B, the mobile phone is in a vertical state when shooting a video, that is, the longitudinal symmetry axis of the mobile phone is vertical to the horizontal plane, in another scenario, the mobile phone is in an inclined state, that is, the included angle between the longitudinal symmetry axis of the mobile phone and the horizontal plane is less than 90 °, as shown in (1) of fig. 7C, a certain angle (for example, -15 °) exists between the real shooting viewing angle (that is, the actual viewing angle) of the mobile phone and the horizontal viewing angle (that is, the horizon viewing angle) of the shooting interface. If the video is shot at the actual visual angle, when the user watches the shot video (for example, the user watches the shot video in a vertical state in a mobile phone), an included angle exists between a picture displayed in the video and a horizontal plane, namely, a shot object in the video is in an inclined state.
In this scenario, the mobile phone may automatically prompt a user whether to rotate back to the horizon view, as shown in (2) of fig. 7C, display a selection control of "whether to rotate to the horizon view" and "determine" and "cancel" on the shooting interface, and if the user clicks the "determine" control, control the shooting angle to smoothly rotate from the angle shown in (1) to the horizon view.
The example shown in fig. 7C is that the mobile phone tilts to the left, and the situation that the mobile phone tilts to the right is similar to the prompt message in fig. 7C, and details are not repeated here.
In the embodiment shown in fig. 7C, when the mobile phone enters the video shooting mode and detects that the mobile phone is in an inclined state, whether the user rotates back to the horizon viewing angle is automatically prompted on the shooting interface, and if the user selects to rotate back to the horizon viewing angle, the mobile phone automatically controls the shooting picture to smoothly rotate from the initial angle to the angle corresponding to the horizon viewing angle, so that the user does not need to manually rotate, whether the user rotates or not can be automatically prompted, the user operation is reduced, and the user experience is further improved.
The following will describe the procedure of the shooting parameter control method applied to the electronic device with reference to fig. 8, and as shown in fig. 8, the method may include the following steps:
and S110, when the camera APP is in a video recording mode, if the shooting parameter adjustment operation is detected, generating a shooting parameter adjustment event and transmitting the shooting parameter adjustment event to the shooting parameter processing module.
Taking the example of adjusting the shooting parameters by touch operation, when the camera APP is in a video recording mode, after detecting the touch operation of a user, the touch screen reports the touch operation to the camera APP, and after detecting that the touch operation is shooting parameter adjustment parameters, the camera APP generates a shooting parameter adjustment event and transmits the shooting parameter adjustment event to a shooting parameter processing module on the camera HAL layer.
For another example, in the scenario shown in fig. 7C, when it is detected that the included angle between the longitudinal symmetry axis of the mobile phone and the real horizontal line of the photographed picture is smaller than 90 °, a photographing parameter adjustment event is generated.
And S120, responding to the shooting parameter adjusting event by the shooting parameter processing module, and determining the shooting parameters to be adjusted corresponding to the shooting parameter adjusting operation.
In one embodiment, the photographing parameters may include zoom magnification and rotation angle.
In an exemplary embodiment, a mapping relationship between the shooting parameter adjustment operation and the shooting parameters is stored in the electronic device, and after receiving the shooting parameter adjustment event, the shooting parameter processing module may determine the shooting parameters corresponding to the currently detected operation, that is, the shooting parameters to be adjusted, according to the mapping relationship.
For example, the two-finger expansion operation corresponds to a zoom-in magnification, and the two-finger contraction operation corresponds to a zoom-out magnification; the two fingers rotate counterclockwise or clockwise.
In another exemplary embodiment, as shown in fig. 9A, the zoom magnification amplitude bar is disposed on the right side of the shooting interface, and the rotation amplitude bar may be disposed on the left side of the shooting interface. Corresponding adjusting controls are arranged in the zooming magnification amplitude bar and the rotating amplitude bar, and a user can adjust the adjusting controls in the amplitude bar so as to adjust corresponding shooting parameters.
As another example, in other exemplary embodiments, as shown in fig. 9B, the space for adjusting the rotation angle may also be an adjustment control provided on a rotary scale, wherein the rotary scale may be provided below the shooting screen. In addition, the present application does not limit the specific position of the rotary scale.
Fig. 9A and 9B are only examples of the shooting parameter adjustment control, and the form and the position of the control for adjusting the shooting parameter are not limited in the present application.
And S130, if the shooting parameter to be adjusted is determined to be the zoom magnification, the shooting parameter processing module acquires the zoom magnification corresponding to the zoom operation.
After the shooting parameter processing module analyzes to obtain that the shooting parameter to be adjusted corresponding to the shooting parameter adjustment event is the zoom magnification, acquiring the zoom magnification corresponding to the detected zoom operation, namely the initial zoom magnification, and acquiring the zoom magnification corresponding to the current shooting parameter adjustment operation, namely the real-time zoom magnification.
In an exemplary embodiment, the zoom operation is a two-finger expansion operation on the screen, that is, an operation of increasing the zoom magnification, and further, based on a displacement of the detected zoom operation on the screen, an increased real-time zoom magnification corresponding to the zoom operation is determined. Similarly, when the zoom operation is detected to be a contraction operation of two fingers on the screen, the real-time zoom magnification after zooming corresponding to the zoom operation can be determined. And displaying the real-time zooming magnification in the zooming prompt box.
A camera system of the electronic equipment is provided with a mapping relation between the displacement of the screen and the change amplitude of the zooming magnification of the double fingers, and the real-time zooming magnification corresponding to zooming operation can be calculated and obtained based on the mapping relation and the initial zooming magnification.
In other embodiments, the process of determining the real-time zoom magnification corresponding to other types of zoom operations is similar to the two-finger zoom operation, and is not described herein again.
And S140, triggering the display screen to prompt the zoom range on the shooting interface.
As shown in fig. 3A, 3B, and 4, a first zoom prompt box 1, a second zoom prompt box 2, and a semitransparent layer are displayed on a shooting interface for shooting a video, where a shooting range corresponding to a zoom operation is displayed in the second zoom prompt box 2.
And S150, if the shooting parameter processing module detects a zooming trigger event, determining the target zooming magnification.
After receiving the touch events reported by the touch screen layer by layer, the camera APP transmits the zooming trigger event to the shooting parameter processing module if the touch event is determined to be the zooming trigger event.
And after responding to the zooming trigger event, the shooting parameter processing module determines that the corresponding real-time zooming magnification is the target zooming magnification when the zooming trigger operation is received, and sends the zooming trigger event, the initial zooming magnification, the target zooming magnification and other zooming information to the smooth zooming module.
And if the zooming operation is a double-finger expansion/contraction operation, the zooming triggering operation is that the double fingers of the user leave the screen, when the situation that the double fingers leave the screen is detected, the sliding displacement of the double fingers on the screen is determined, and the target zooming magnification is obtained based on the sliding displacement and the initial zooming magnification.
If the zooming operation is to adjust the adjustment control on the zooming amplitude bar, the zooming triggering operation is to enable the finger of the user to leave the adjustment control, and under the condition, the target zooming magnification is determined based on the final position of the adjustment control on the zooming amplitude bar. Or, in other possible implementations, the zoom triggering operation may be an operation in which a user clicks a specific control or a shortcut key of the shooting interface, and the specific manner of the zoom triggering operation is not limited in the present application.
And S160, the smooth zooming module responds to the zooming trigger event and obtains a smooth zooming curve according to the initial zooming magnification and the target zooming magnification.
And after receiving the zooming trigger event, the smooth zooming module responds to the zooming trigger event and obtains a smooth zooming curve based on the initial zooming multiplying power and the target zooming multiplying power.
In an exemplary embodiment, after the shooting parameter processing module detects the zoom trigger event, the display screen may be further triggered to hide the zoom prompt box.
In zooming, in order to obtain smooth zooming, a shallow-in-shallow-out variation mode is adopted at the starting zooming time and the ending zooming time, namely the zooming curve is an S-shaped curve, such as a smooth zooming curve corresponding to the magnification zoom ratio shown in FIG. 10, and the zooming speed near the starting zooming time and the zooming speed near the ending zooming time are smaller than that of the middle time period.
As shown in fig. 10, the vertical axis represents zoom magnification and the horizontal axis represents time. T1 is the time corresponding to the initial zoom magnification, T2 is the time corresponding to the target zoom magnification, and the zoom duration Δ T is T2-T1.
In an exemplary embodiment, Δ T may be a fixed time duration, such as 1.2s, which may be a time duration corresponding to the determination of the best dynamic zoom effect from a limited number of experiments. Of course, in other embodiments, Δ T may also be determined according to a difference (i.e., a zoom amplitude) between the initial zoom magnification and the target zoom magnification, for example, a zoom speed, i.e., a zoom amplitude in a unit time, may be determined through a finite number of experiments, and then a zoom duration may be determined according to the zoom amplitude of this time, and then a smooth zoom curve may be determined according to the zoom duration.
In an exemplary embodiment, a cubic Bezier curve (Bezier curve), which is a mathematical curve applied to a two-dimensional graphics application, is used to generate a smooth zoom curve.
The path of the cubic bezier curve is described by a function b (t) given points P0 (start point), P1 (control point), P2 (control point), P3 (end point):
B(t)=P0(1-t) 3 +3P1t(1-t) 2 +3P2 2 (1-t)+P3t 3
t in the formula is the zoom duration from the initial zoom magnification to the target zoom magnification, namely delta T; p0 is the position point corresponding to the initial zoom magnification, P3 is the position point corresponding to the target zoom magnification, and the Bezier curve can be adjusted by adjusting the two control points P1 and P2.
In the application, the general shape of the curve, such as an 'S' shape, and the information of P1 and P2 corresponding to the curve shape, namely the relative position coordinates of P1 and the starting point and the relative position coordinates of P2 and the end point, are determined through a limited number of experiments, the information of P1 and P2 is preset in the electronic equipment, and when the shooting parameters are adjusted each time, the coordinate positions of the starting point and the end point are adjusted according to the actual situation, so that a smooth curve matched with the actual situation can be obtained.
Under the condition that the zooming time length is fixed and unchanged, the curves corresponding to different zooming amplitudes are different, as shown in fig. 10, the zooming amplitude corresponding to the curve 1 is smaller than the zooming amplitude corresponding to the curve 2, but the zooming time lengths are the same, so the zooming speeds corresponding to the curves 1 and 2 are different, and the zooming speed of the curve 2 is greater than that of the curve 1.
Similarly, a smooth zoom curve in a zoom-out magnification scene can be obtained, and after the initial zoom magnification and the target zoom magnification corresponding to the zoom-out magnification operation are determined, the whole curve can be obtained according to the function corresponding to the Bezier curve. As shown in fig. 11, a smooth zoom curve corresponding to the zoom-out magnification operation. And adjusting the curve according to the initial zooming magnification and the target zooming magnification corresponding to different zooming operations to obtain a curve matched with the zooming magnification operation.
And S170, the smooth zooming module outputs a zooming instruction based on the smooth zooming curve and transmits the zooming instruction to the camera module, and the camera module controls the zooming magnification to be smoothly changed from the initial zooming magnification to the target zooming magnification.
In this embodiment, an optical zoom is taken as an example for explanation, the smooth zoom module determines zoom magnifications corresponding to respective times according to vertical coordinates of respective points on a smooth zoom curve, generates zoom instructions corresponding to the respective times, and transmits the zoom magnifications corresponding to the respective times to the camera module according to a time sequence, so that the camera module sequentially adjusts distances between a lens and a shot object according to the zoom instructions, and finally achieves smooth zoom.
In other embodiments, the zooming process may also be digital zooming, in which case, the zooming instruction generated by the smooth zooming module is transmitted to the image signal processor, and the image signal processor performs zooming processing on the received shot picture data in response to the zooming instruction, so as to finally realize smooth zooming. No matter optical zooming or digital zooming, in the smooth zooming process, shooting data of the camera module is transmitted to the image signal processor to be recorded and sent to the display screen to be displayed.
And S180, if the shooting parameter to be adjusted is determined to be the rotation angle, the shooting parameter processing module acquires the angle corresponding to the rotation operation.
The rotation angle may be the angle shown in fig. 5, and will not be described herein.
In some embodiments, the rotation operation may be a two-finger rotation action on the screen, for example, one finger is stationary and the other finger is rotated clockwise or counterclockwise around the stationary finger, or two fingers are rotated in opposite directions, such as one finger sliding clockwise and the other finger sliding counterclockwise. Under the condition, the real-time rotary displacement of the finger of the user is obtained, and the real-time angle corresponding to the real-time rotary displacement is obtained according to the corresponding relation between the rotary displacement and the rotating angle.
For another example, an angle rotation amplitude bar and an adjustment control arranged on the angle rotation amplitude bar are arranged on the shooting interface, and a user can drag the adjustment control through a finger to adjust the angle. And acquiring the position of the adjusting control on the angle rotation amplitude bar in real time, and determining a real-time angle based on the position.
In the scenario shown in fig. 7C, an angle between the actual viewing angle of the captured image and the horizon viewing angle of the capturing interface is directly used as the rotation angle corresponding to the current rotation operation event, and as shown in (1) of fig. 7C, the angle may be displayed on the capturing interface.
And S190, triggering the display screen to prompt the rotation direction on the shooting interface.
As shown in fig. 6A, 6B, 7A, and 7B, a prompt graphic of the rotation angle may be displayed on the shooting interface, and the user is prompted with the prompt graphic of the rotation angle corresponding to the current rotation operation, so that the user can visually see the shooting range after the rotation operation, and further determine whether the current rotation operation meets the requirement.
In other embodiments, the numerical value of the rotation angle may also be displayed directly on the shooting interface.
And S200, if the shooting parameter processing module detects a rotation triggering event, determining a target angle.
If the rotation operation is the rotation operation of two fingers on the screen, the rotation triggering operation can be the operation of two fingers leaving the screen; if the rotation operation is that the finger drags the adjustment control on the angle rotation amplitude bar, the rotation triggering operation can be that the finger leaves the adjustment control, and the rotation triggering operation is not specially limited in the application.
And after receiving the touch events reported by the touch screen layer by layer, the camera APP transmits the touch events to the shooting parameter processing module if the touch events are determined to be rotation triggering events.
The shooting parameter processing module responds to the rotation triggering event, determines that the corresponding real-time rotation angle is the target angle when the rotation triggering operation is received, and sends the rotation triggering event and the angle rotation information such as the initial angle and the target angle to the smooth rotation module.
The process of determining the target angle is the same as the process of determining the real-time angle, and is not described herein again.
In the scenario shown in fig. 7C, when an operation of clicking the "ok" control by the user is detected, a rotation trigger event is generated, and in this scenario, the target angle is 0 °, that is, the horizontal line of the shot picture is rotated from a state where an included angle exists between the horizontal line and the horizon view angle of the shooting interface to a state where the horizontal line and the horizon view angle are consistent in direction, that is, the horizontal line and the horizon view angle are rotated back.
And S210, responding to the rotation trigger event by the smooth rotation module, and acquiring a smooth rotation curve according to the initial angle and the target angle.
In a scene in which the user adjusts the angle using the rotation operation, the shooting angle of the shot picture when the rotation operation is detected is an initial angle. In the scenario of the mobile phone tilting shown in fig. 7C, the mobile phone tilting angle is the initial angle (e.g., -15 °), and in this scenario, the target angle is 0 °. A smooth change curve decreasing from 15 to 0 is obtained.
And after receiving the rotation triggering event, the smooth rotation module obtains a smooth rotation curve based on the initial angle and the target angle. The process of obtaining the smooth rotation curve is the same as the process of obtaining the smooth zoom curve, and is not described herein again.
In addition, after the shooting parameter processing module detects the rotation triggering event, the angle rotation prompting information is hidden.
As shown in fig. 12, the horizontal axis of the smooth rotation curve corresponding to an increasing angle represents time, the vertical axis represents an angle, the curve represents a path smoothly changing from an initial angle to a target angle within a time Δ T (Δ T: T2-T1), and the vertical coordinate of each point on the curve is a rotation angle corresponding to this time.
Similar to the smooth zoom curve, the smooth rotation curve also employs a cubic bezier curve, and as shown in fig. 12, a shallow-in and shallow-out variation is employed at the start rotation time and the end rotation time, that is, the rotation speeds near the start rotation time and near the end rotation time are smaller than the rotation speed of the intermediate period.
As shown in fig. 13, the smooth rotation curve corresponding to the reduction angle is similar to the smooth rotation curve of the increase rotation angle, and a shallow-in and shallow-out variation is adopted at the start rotation time and the end rotation time, that is, the rotation speeds near the start rotation time and near the end rotation time are smaller than the rotation speed of the intermediate period.
Δ T represents the time period taken to change from the initial angle to the target angle. In some embodiments, Δ T may be a fixed duration, such as 1.2s, which may be a duration corresponding to the determination of the best dynamic spin effect from a limited number of experiments. In other embodiments, Δ T may also be determined according to a difference between the initial angle and the target angle (i.e., a rotation amplitude), for example, a rotation speed, i.e., a rotation amplitude in a unit time, may be determined through a limited number of tests, and then a rotation duration may be determined according to the rotation amplitude corresponding to the current rotation operation, and then a smooth rotation curve may be determined according to the rotation duration.
Under the condition that the rotation duration is fixed and unchanged, the amplitude of the smooth rotation curve in the direction of the longitudinal axis is adjusted according to different rotation amplitudes, and then the smooth rotation curves corresponding to different rotation operations can be obtained.
And S220, the smooth rotation module outputs a rotation instruction based on the smooth rotation curve and transmits the rotation instruction to the image signal processor, and the image signal processor controls the shooting picture to smoothly change from the initial angle to the target angle based on the rotation instruction. The smooth rotation module determines the angle corresponding to each moment according to the vertical coordinate of each point on the smooth rotation curve, generates a rotation instruction corresponding to each moment, transmits each rotation instruction to the image signal processor according to the time sequence, and the image signal processor responds to the rotation instruction to smoothly rotate the received shot picture data until the rotation angle of the shot picture reaches the target angle. Meanwhile, the image signal processor records shooting data corresponding to the whole smooth rotation process to generate a video, and sends the video to a display screen for displaying.
The shot picture data is shot by the camera module and transmitted to the image signal processor.
In the method for controlling shooting parameters provided in this embodiment, when the electronic device is in the video shooting mode, if a shooting parameter adjustment event is received, a parameter to be adjusted is determined first. If the parameter to be adjusted is the zoom magnification, determining an initial zoom magnification, determining a target zoom magnification after detecting a zoom trigger operation, generating a smooth zoom curve based on the initial zoom magnification and the target zoom magnification, and controlling the zoom magnification to smoothly change from the initial zoom magnification to the target zoom magnification based on the smooth zoom curve. And after the rotation triggering operation is detected, generating a smooth rotation curve based on the initial rotation angle and the target rotation angle, and controlling the rotation angle to be smoothly changed from the initial angle to the target angle based on the smooth rotation curve. Therefore, the scheme realizes smooth change of the shooting parameters in the video shooting process, avoids the phenomenon that the change of the shooting parameters is abrupt, and improves the video shooting effect.
Further, after the shooting parameter adjustment operation is detected, a prompt box is displayed on the shooting interface, if the current operation is zoom operation, a shooting range matched with the real-time zoom operation is displayed in the prompt box, and similarly, when the rotation angle is adjusted, a shooting range matched with the real-time rotation operation is displayed in the prompt box, and a user can visually see the rotated shooting range corresponding to the real-time rotation operation. Therefore, a user can visually see the shooting range corresponding to the real-time adjustment operation, and whether the adjustment meets the requirements or not is further determined.
Through the above description of the embodiments, it is clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions. For the specific working processes of the system, the apparatus and the unit described above, reference may be made to the corresponding processes in the foregoing method embodiments, and details are not described here again.
In the several embodiments provided in this embodiment, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, each functional unit in the embodiments of the present embodiment may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present embodiment essentially or partially contributes to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) or a processor to execute all or part of the steps of the method described in the embodiments. And the aforementioned storage medium includes: flash memory, removable hard drive, read only memory, random access memory, magnetic or optical disk, and the like.
The above description is only an embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions within the technical scope disclosed in the present application should be covered within the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (19)

1. A shooting parameter control method is applied to electronic equipment and comprises the following steps:
the electronic equipment enters a video shooting mode;
when a shooting parameter adjustment event is received, displaying adjustment range prompt information matched with the shooting parameter adjustment event on a shooting interface;
when the adjustment triggering operation is detected, acquiring a target parameter value of a shooting parameter to be adjusted, wherein the shooting parameter to be adjusted is a parameter adjusted by the shooting parameter adjustment event;
obtaining a smooth change curve corresponding to the shooting parameter to be adjusted based on an initial parameter value and the target parameter value, wherein the initial parameter value is a parameter value corresponding to the shooting parameter to be adjusted when the shooting parameter adjustment event is detected, the abscissa of the smooth change curve is shooting parameter adjustment time, and the ordinate is a shooting parameter value;
and controlling the shooting parameters to be adjusted to be smoothly changed from the initial parameter values to the target parameter values on the basis of the smooth change curve.
2. The method according to claim 1, wherein the obtaining a smooth variation curve corresponding to the shooting parameter to be adjusted based on the initial parameter value and the target parameter value comprises:
generating a smooth cubic Bezier curve according to parameter information of a preset cubic Bezier curve, and by taking the initial parameter value as a starting point and the target parameter value as an end point, wherein the parameter information comprises a relative position relationship between a first control point and the starting point of the cubic Bezier curve and a relative position relationship between a second control point and the end point.
3. The method according to claim 1, wherein the controlling the shooting parameter to be adjusted to be smoothly changed from the initial parameter value to the target parameter value based on the smooth change curve comprises:
determining parameter values corresponding to the parameters to be adjusted at each adjustment time point based on the smooth change curve;
generating an adjusting instruction corresponding to the adjusting time point based on the parameter value corresponding to the adjusting time point;
and sequentially executing the adjusting instructions according to the time sequence of each adjusting time point, and adjusting the shooting parameters to be adjusted to the parameter values corresponding to the adjusting instructions.
4. The method according to claim 1, wherein the shooting parameter adjustment event is generated when a shooting parameter adjustment operation is detected;
the displaying of the adjustment range prompt information matched with the shooting parameter adjustment event on the shooting interface includes:
displaying prompt information on the shooting interface;
when the change of the shooting parameter adjusting operation is detected, determining a real-time parameter value matched with the changed shooting parameter adjusting operation;
adjusting display parameters of the prompt message based on the real-time parameter values;
and the display parameters of the prompt information are matched with the shooting parameter adjustment operation, and comprise the size or the direction of the prompt information.
5. The method according to claim 4, wherein the shooting parameter adjustment operation is a zoom operation, and the prompt information comprises a first zoom prompt box and a second zoom prompt box displayed on the shooting interface;
displaying a shooting range matched with an initial zooming magnification in the first zooming prompt box, wherein the initial zooming magnification is the corresponding zooming magnification when the zooming operation is detected;
and displaying a shooting range matched with the real-time zooming magnification corresponding to the zooming operation in the second zooming prompt box.
6. The method according to claim 5, wherein the area between the first zoom prompt box and the second zoom prompt box is a semi-transparent area, the display content of the semi-transparent area is a transition range, and the transition range corresponds to the change of the shooting range displayed by the first zoom prompt box to the shooting range displayed by the second zoom prompt box.
7. The method according to claim 5 or 6, wherein the shooting parameter adjustment operation is a zoom magnification operation;
the adjusting the display parameters of the prompt message based on the real-time parameter values comprises:
and adjusting the size of the second zooming prompt box based on the real-time zooming magnification corresponding to the zooming magnification operation so as to display a shooting range matched with the real-time zooming magnification in the second zooming prompt box.
8. The method according to claim 5 or 6, wherein the photographing parameter adjusting operation is a zoom out magnification operation;
the adjusting the display parameters of the prompt message based on the real-time parameter values comprises:
adjusting the size of the first zooming prompt box based on the real-time zooming magnification corresponding to the zooming magnification operation so as to display a shooting range matched with the initial zooming magnification in the first zooming prompt box;
and the size of the second zooming prompt box is equal to that of the shooting picture, and a shooting range matched with the real-time zooming magnification is displayed in the second zooming prompt box.
9. The method according to claim 4, wherein the shooting parameter adjustment operation is a rotation operation, and the prompt message comprises a prompt graphic for displaying the rotation angle on the shooting interface;
the adjusting the display parameters of the prompt graph based on the real-time parameter values comprises:
and adjusting the indication direction of the rotation direction prompt graph to be consistent with the rotation angle value corresponding to the rotation operation.
10. The method according to claim 9, wherein the rotation direction prompting graphic includes an indication arrow displayed on the shooting interface, and an indication direction of the indication arrow is consistent with a rotation angle value corresponding to the rotation operation.
11. The method according to claim 9, wherein the rotation direction prompting graphic includes an angle dial displayed on a photographing interface, and a rotation angle value corresponding to the rotation operation is displayed within the angle dial.
12. The method according to claim 1, wherein the shooting parameter adjustment event is generated when an included angle between a longitudinal symmetry axis of the electronic device and a real horizontal line of the shooting picture is detected to be less than 90 °;
the displaying of the adjustment range prompt information matched with the shooting parameter adjustment event on the shooting interface includes:
displaying rotation prompt information and an option control on the shooting interface, wherein the rotation prompt information is used for prompting a user whether to rotate to a horizon line visual angle, and the real horizontal line of a shooting picture under the horizon line visual angle is consistent with the horizon line direction on the shooting interface;
the shooting parameter triggering operation is an operation of clicking the determined option control.
13. The method of any of claims 4 to 11, further comprising: and when the adjustment triggering operation is detected, hiding the prompt message.
14. The method according to claim 1, wherein the shooting parameter to be adjusted is a zoom magnification, and the adjustment trigger operation is a finger for a zoom operation leaving a screen of the electronic device.
15. The method according to claim 1, wherein the shooting parameter to be adjusted is a rotation angle, and the adjustment trigger operation is that at least two fingers for rotation operation leave a screen of the electronic device.
16. The method according to any one of claims 9 to 12, wherein the rotation angle is an angle obtained by rotating the captured picture clockwise or counterclockwise with a straight line perpendicular to the screen as an axis.
17. An electronic device, characterized by comprising a memory and a processor, the memory having stored therein program instructions which, when executed by the processor, cause the electronic device to execute the method of controlling shooting parameters according to any one of claims 1 to 16.
18. A computer-readable storage medium, characterized in that program instructions are stored thereon, which, when run on an electronic device, cause the electronic device to execute the method of controlling shooting parameters according to any one of claims 1 to 16.
19. A computer program product having stored thereon program instructions which, when run on an electronic device, cause the electronic device to execute the method of controlling shooting parameters according to any one of claims 1 to 16.
CN202111505369.4A 2021-12-10 2021-12-10 Shooting parameter control method and device Active CN115002338B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202111505369.4A CN115002338B (en) 2021-12-10 2021-12-10 Shooting parameter control method and device
CN202310553504.5A CN116634261A (en) 2021-12-10 2021-12-10 Shooting parameter control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111505369.4A CN115002338B (en) 2021-12-10 2021-12-10 Shooting parameter control method and device

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202310553504.5A Division CN116634261A (en) 2021-12-10 2021-12-10 Shooting parameter control method and device

Publications (2)

Publication Number Publication Date
CN115002338A true CN115002338A (en) 2022-09-02
CN115002338B CN115002338B (en) 2023-06-02

Family

ID=83017963

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202111505369.4A Active CN115002338B (en) 2021-12-10 2021-12-10 Shooting parameter control method and device
CN202310553504.5A Pending CN116634261A (en) 2021-12-10 2021-12-10 Shooting parameter control method and device

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN202310553504.5A Pending CN116634261A (en) 2021-12-10 2021-12-10 Shooting parameter control method and device

Country Status (1)

Country Link
CN (2) CN115002338B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116709018A (en) * 2022-10-14 2023-09-05 荣耀终端有限公司 Zoom bar segmentation method and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017224940A (en) * 2016-06-14 2017-12-21 キヤノン株式会社 Image processing method and image processing apparatus
JP2018019356A (en) * 2016-07-29 2018-02-01 キヤノン株式会社 Image processing apparatus and image processing method
CN110572572A (en) * 2019-09-16 2019-12-13 Oppo广东移动通信有限公司 Shooting parameter selection method and device, mobile terminal and storage medium
CN113438508A (en) * 2021-06-23 2021-09-24 北京蜂巢世纪科技有限公司 Video data processing method, device, equipment, medium and program product
CN113747050A (en) * 2020-05-30 2021-12-03 华为技术有限公司 Shooting method and equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017224940A (en) * 2016-06-14 2017-12-21 キヤノン株式会社 Image processing method and image processing apparatus
JP2018019356A (en) * 2016-07-29 2018-02-01 キヤノン株式会社 Image processing apparatus and image processing method
CN110572572A (en) * 2019-09-16 2019-12-13 Oppo广东移动通信有限公司 Shooting parameter selection method and device, mobile terminal and storage medium
CN113747050A (en) * 2020-05-30 2021-12-03 华为技术有限公司 Shooting method and equipment
CN113438508A (en) * 2021-06-23 2021-09-24 北京蜂巢世纪科技有限公司 Video data processing method, device, equipment, medium and program product

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116709018A (en) * 2022-10-14 2023-09-05 荣耀终端有限公司 Zoom bar segmentation method and electronic equipment
CN116709018B (en) * 2022-10-14 2024-04-09 荣耀终端有限公司 Zoom bar segmentation method and electronic equipment

Also Published As

Publication number Publication date
CN116634261A (en) 2023-08-22
CN115002338B (en) 2023-06-02

Similar Documents

Publication Publication Date Title
US11481096B2 (en) Gesture mapping for image filter input parameters
US20230154097A1 (en) Systems and methods for displaying representative images
US10645272B2 (en) Camera zoom level and image frame capture control
KR101969424B1 (en) Photographing device for displaying image and methods thereof
JP4642868B2 (en) How to provide an area zoom function for a camera
US10437545B2 (en) Apparatus, system, and method for controlling display, and recording medium
US9307153B2 (en) Method and apparatus for previewing a dual-shot image
US10628010B2 (en) Quick review of captured image data
US11483469B2 (en) Camera zoom level and image frame capture control
WO2012128835A1 (en) Gesture-based configuration of image processing techniques
WO2021056998A1 (en) Double-picture display method and device, terminal and storage medium
CN114125268A (en) Focusing method and device
CN115002338B (en) Shooting parameter control method and device
JP2018109740A (en) Display device, program, and method for display
WO2023225910A1 (en) Video display method and apparatus, terminal device, and computer storage medium
US20240080543A1 (en) User interfaces for camera management
CN116744065A (en) Video playing method and device
KR20150070084A (en) Method for controlling camera of terminal and terminal thereof
JP2015106744A (en) Imaging apparatus, image processing method and image processing program

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