CN111309229A - Parameter adjusting method, device, terminal and storage medium - Google Patents

Parameter adjusting method, device, terminal and storage medium Download PDF

Info

Publication number
CN111309229A
CN111309229A CN202010097309.2A CN202010097309A CN111309229A CN 111309229 A CN111309229 A CN 111309229A CN 202010097309 A CN202010097309 A CN 202010097309A CN 111309229 A CN111309229 A CN 111309229A
Authority
CN
China
Prior art keywords
parameter
sliding
adjusting
parameter adjustment
mode
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010097309.2A
Other languages
Chinese (zh)
Inventor
贾玉虎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202010097309.2A priority Critical patent/CN111309229A/en
Publication of CN111309229A publication Critical patent/CN111309229A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04886Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus

Abstract

The embodiment of the application discloses a parameter adjusting method, a parameter adjusting device, a terminal and a storage medium, and belongs to the technical field of terminals. The method is applied to a terminal, the terminal is provided with a virtual key area, the virtual key area is positioned in an exposed area of the terminal except a touch display screen, and the method comprises the following steps: acquiring sliding parameters corresponding to sliding operation at a virtual key area in a parameter adjusting scene, wherein the parameter adjusting scene is a scene with continuously variable parameter adjusting requirements, and the sliding parameters comprise at least one of sliding direction, sliding distance or sliding speed; determining a target parameter adjusting mode corresponding to sliding operation according to the sliding parameters, wherein different parameter adjusting modes correspond to different parameter adjusting coefficients; and adjusting the parameter value according to the sliding parameter and the target parameter adjustment coefficient, wherein the target parameter adjustment coefficient is a parameter adjustment coefficient corresponding to the target parameter adjustment mode. The parameters are adjusted through the sliding operation of the virtual key area, and the accuracy of parameter adjustment can be improved.

Description

Parameter adjusting method, device, terminal and storage medium
Technical Field
The embodiment of the application relates to the technical field of terminals, in particular to a parameter adjusting method, a parameter adjusting device, a terminal and a storage medium.
Background
With the development of terminal technology, various parameters in a terminal have adjustable functions, and when the parameters are often adjusted, the parameters need to be adjusted on a touch display screen, for example, a shooting focal length is adjusted to perform focusing through zooming operation on the touch display screen by two fingers; however, in the process of adjusting the parameters on the touch display screen by the user, the user may block the view of the user because the user needs to operate the touch display screen with a finger, so that the user may not accurately judge whether the target parameters are adjusted, which results in low accuracy of parameter adjustment.
Disclosure of Invention
The embodiment of the application provides a parameter adjusting method, a parameter adjusting device, a terminal and a storage medium. The technical scheme is as follows:
on one hand, the embodiment of the application provides a parameter adjusting method, which is applied to a terminal, wherein the terminal is provided with a virtual key area, the virtual key area is positioned in an exposed area of the terminal except a touch display screen, and the method comprises the following steps:
acquiring sliding parameters corresponding to sliding operation at the virtual key area under a parameter adjusting scene, wherein the parameter adjusting scene is a scene with continuously variable parameter adjusting requirements, and the sliding parameters comprise at least one of sliding direction, sliding distance or sliding speed;
determining a target parameter adjusting mode corresponding to the sliding operation according to the sliding parameter, wherein different parameter adjusting modes correspond to different parameter adjusting coefficients;
and adjusting parameter values according to the sliding parameters and target parameter adjustment coefficients, wherein the target parameter adjustment coefficients are parameter adjustment coefficients corresponding to the target parameter adjustment modes.
On the other hand, this application embodiment provides a parameter adjustment device, the device is applied to the terminal, the terminal is provided with the virtual key region, the virtual key region is located except that the touch-control display screen the region that exposes of terminal, the device includes:
an obtaining module, configured to obtain a sliding parameter corresponding to a sliding operation at the virtual key region in a parameter adjustment scenario, where the parameter adjustment scenario is a scenario with a continuously variable parameter adjustment requirement, and the sliding parameter includes at least one of a sliding direction, a sliding distance, or a sliding speed;
the determining module is used for determining a target parameter adjusting mode corresponding to the sliding operation according to the sliding parameter, wherein different parameter adjusting modes correspond to different parameter adjusting coefficients;
and the adjusting module is used for adjusting the parameter value according to the sliding parameter and a target parameter adjusting coefficient, wherein the target parameter adjusting coefficient is a parameter adjusting coefficient corresponding to the target parameter adjusting mode.
On the other hand, an embodiment of the present application provides a terminal, where the terminal includes a sensor component, a signal processing component, a memory, and an application processor, the sensor component is electrically connected to the signal processing component, the signal processing component is electrically connected to the application processor, and the application processor is electrically connected to the memory;
the memory stores at least one instruction for execution by the application processor to implement a parameter adjustment method as described in the above aspect.
In another aspect, an embodiment of the present application provides a computer-readable storage medium, where the storage medium stores at least one instruction, and the at least one instruction is used for being executed by a processor to implement the parameter adjustment method according to the above aspect.
By adopting the parameter adjusting method provided by the embodiment of the application, in a parameter adjusting scene, the sliding parameter corresponding to the sliding operation at the virtual key area is obtained, so that the target parameter adjusting mode corresponding to the sliding operation is determined, and the parameter value is adjusted according to the sliding parameter and the target parameter adjusting coefficient corresponding to the target parameter adjusting mode. The virtual key area is located in an exposed area of the terminal except the touch display screen, so that operation on the touch display screen is not needed during parameter adjustment, compared with a parameter adjustment method in the related art, the method can avoid shielding of the visual field of a user, and accuracy of parameter adjustment is improved.
Drawings
FIG. 1 illustrates a schematic diagram of a parameter adjustment system shown in an exemplary embodiment of the present application;
FIG. 2 illustrates a flow chart of a parameter adjustment method shown in an exemplary embodiment of the present application;
FIG. 3 is a graph showing the relationship between the sliding speed, the sliding distance, and the sliding position information;
FIG. 4 illustrates a flow chart of a parameter adjustment method shown in another exemplary embodiment of the present application;
FIG. 5 is a schematic diagram of the switching sequence of three parameter adjustment modes;
FIG. 6 is a graphical illustration of slip speed versus parameter adjustment factor;
FIG. 7 is a schematic diagram of a comprehensive determination of target parameter adjustment mode based on sliding speed and sliding distance;
FIG. 8 illustrates a flow chart of a parameter adjustment method shown in another exemplary embodiment of the present application;
FIG. 9 illustrates a schematic view of a sliding direction and a parameter adjustment direction shown in an exemplary embodiment of the present application;
FIG. 10 illustrates a flow chart of a parameter adjustment method shown in another exemplary embodiment of the present application;
FIG. 11 illustrates a flow chart of a parameter adjustment method shown in another exemplary embodiment of the present application;
FIG. 12 shows a flow chart of a parameter adjustment method shown in another example embodiment of the present application;
FIG. 13 illustrates a flow chart of a parameter adjustment method shown in another exemplary embodiment of the present application;
FIG. 14 shows a flow chart of a parameter adjustment method shown in another exemplary embodiment of the present application;
FIG. 15 is a block diagram illustrating a parameter adjusting apparatus according to an exemplary embodiment of the present application;
fig. 16 is a block diagram illustrating a structure of a terminal according to an exemplary embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
Reference herein to "a plurality" means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
For convenience of understanding, terms referred to in the embodiments of the present application are explained.
Fine adjustment mode: the method is used for fine adjustment of the parameter value, namely the parameter adjustment coefficient is small, and in the fine adjustment mode, the parameter adjustment coefficient can be a fixed value. Taking the parameter value as the focal length of the camera as an example, in the fine adjustment mode, the focal length can be adjusted according to an adjustment coefficient of 0.1 time.
Coarse tuning mode: the parameter adjusting coefficient is larger than that in the fine adjusting mode; optionally, in the rough adjustment mode, the parameter adjustment coefficient is in a positive correlation with the sliding distance, or the parameter adjustment coefficient is in a positive correlation with the sliding speed, or the parameter adjustment coefficient may also be a fixed value. Taking the parameter value as the focal length of the camera as an example, in the coarse adjustment mode, the parameter adjustment coefficient is changed from 3 times to 5 times along with the increase of the sliding speed.
Limiting mode: the method is used for improving the convenience of adjusting the parameter values, and the current parameter values are directly adjusted to the maximum parameter values or the minimum parameter values.
In the related art, when parameters are adjusted in a terminal, there are two general implementation manners, one is to press and adjust an entity key set in the terminal, for example, taking the parameters as the volume, a volume key is set on a terminal shell, and the volume is adjusted by pressing the volume key; the second method is to directly perform touch on the touch display screen to achieve the purpose of adjusting parameters, for example, taking the parameters as the focal length of the camera as an example, when focusing is performed, two fingers are required to zoom on the touch display screen to achieve adjustment of the zoom factor.
Obviously, by adopting the parameter adjusting method in the related art, on one hand, the entity keys positioned on the terminal are used for pressing adjustment, the corresponding parameter adjusting coefficients are the same when the entity keys are pressed each time, and if the adjusting times are frequent, the entity keys are abraded greatly, so that the service life of the terminal is easily reduced; on the other hand, by operating on the touch display screen, the visual field of the user may be blocked, which may cause inaccurate parameter adjustment results.
Referring to FIG. 1, a schematic diagram of a parameter adjustment system is shown in accordance with an exemplary embodiment of the present application. Taking focusing of a smartphone as an example, the parameter adjustment system includes a virtual key area 103, a sensor assembly 104, a signal processing assembly 105, an application processor 106, and a camera assembly 107. As shown in fig. 1, a virtual key area 103 is disposed on a middle frame 102 of the terminal, a sensor assembly 104 is disposed in the virtual key area 103, the sensor assembly 104 is electrically connected to a signal processing assembly 105, an application processor 106 is electrically connected to the signal processing assembly 105, and a camera assembly 107 is electrically connected to the application processor 106.
In the embodiment of the present application, in a parameter adjustment scenario, a user may perform a sliding motion on the virtual key region 103, the sensor component 104 receives the sliding operation of the virtual key region 103 and sends the collected sliding signal to the signal processing component 105, the signal processing component 105 is configured to process the received sliding signal to obtain the position information corresponding to the sliding operation, and sends the position information to the application processor 106, the application processor 106 processes the received position information to obtain the sliding parameters corresponding to the sliding operation, so as to determine the target parameter adjustment mode corresponding to the sliding operation, therefore, according to the sliding parameters and the target parameter adjustment coefficients corresponding to the target parameter adjustment modes, the adjustment value of the focusing distance is determined, an adjustment instruction is generated, and the camera assembly 107 is driven to adjust the camera parameters. The virtual key area is located in an exposed area of the terminal except the touch display screen, so that operation on the touch display screen is not needed during parameter adjustment, compared with a parameter adjustment method in the related art, the method can avoid shielding of the visual field of a user, and accuracy of parameter adjustment is improved.
The parameter adjusting method provided by each embodiment of the application is used in a terminal, and the terminal may be a smart phone, a tablet Computer, a PC (Personal Computer), a camera, an intelligent bracelet or other electronic devices. In the embodiment of the application, a virtual key area is arranged in the terminal, and the setting position of the virtual key area can be a non-touch display screen area, such as a middle frame area or a back cover area of a smart phone; optionally, the parameter adjusting method provided in this embodiment may be used for performing a volume adjusting scene, a play progress adjusting scene, an electronic book page turning scene, a shooting parameter adjusting scene, a screen brightness adjusting scene, a picture zooming scene, and the like.
For convenience of explanation, the following embodiments are all described by taking an example in which the terminal is a smartphone.
Referring to fig. 2, a flow chart of a parameter adjustment method according to an exemplary embodiment of the present application is shown. The method is used for a terminal provided with a virtual key area, and comprises the following steps:
step 201, under a parameter adjusting scene, obtaining a sliding parameter corresponding to a sliding operation at a virtual key area.
The parameter adjusting scene refers to a scene with a continuously variable parameter adjusting requirement, for example, a volume adjusting scene (volume is adjustable), a playing progress adjusting scene (playing time of a video is adjustable), an electronic book page turning scene (page number of an electronic book is adjustable), a shooting parameter adjusting scene (shooting focal length, shooting exposure time, shooting balance degree and the like are all continuously adjustable), a screen brightness adjusting scene, a picture zooming scene (pictures can be pictures stored in a mobile phone album or pictures browsed on line), a game scene (for example, zooming of a game map or a game picture) and the like.
In order to avoid blocking the user's view when the virtual key region slides, the virtual key region is set in the middle frame region of the mobile phone or the back cover region of the mobile phone, for example, with respect to the setting position of the virtual key region.
Optionally, different virtual key regions may be set for different parameter adjustment scenarios.
In a possible implementation manner, in a parameter adjusting scenario, when a user slides in a virtual key area, that is, the terminal receives a sliding operation at the virtual key area, and obtains a sliding parameter corresponding to the sliding operation, where the sliding parameter may include at least one of a sliding direction, a sliding distance, or a sliding speed.
For the calculation method of the sliding parameter, since the sampling time of the sensor assembly is fixed, and the sliding speed and the sliding distance are both time-dependent physical quantities, in a possible implementation, the sliding speed does not need to be calculated intentionally, the positions of adjacent sampling points can be used to represent the sliding speed, the difference between the current position and the starting position is used to calculate the sliding distance, and a plurality of sliding directions, such as downward sliding, upward sliding, leftward sliding, rightward sliding, can be defined in advance corresponding to the sliding direction, so that the corresponding sliding direction is determined according to the change condition of each position information.
Illustratively, as shown in fig. 3, in one sliding operation, the sampling time is fixed, and the current position of the finger is acquired at the fixed time, so the sliding distance at N time may be the current time position anddifference in position at the initial moment, i.e. DN=dN-d0Wherein D isNSliding distance at time N, dNIs the position of time N, d0Is the initial time position; the sliding speed at time N may be the ratio of the position difference of adjacent times to the sampling time, i.e.
Figure BDA0002385542470000051
Wherein, VNIs the sliding speed at time N, dNIs the position of time N, dN-1Is the position of the moment N-1, and T is the sampling moment; alternatively, the sliding speed at the time N can also be represented by the position difference between adjacent times, i.e. VN=dN-dN-1Wherein V isNIs the sliding speed at time N, dNIs the position of time N, dN-1Is the position at time N-1. It can be seen that both the sliding speed and the sliding distance can be expressed using simple positions.
Optionally, the virtual key area may adopt a pressing touch principle (for example, a capacitive sensor is disposed in the virtual key area), or may also adopt an ultrasonic touch principle (for example, an ultrasonic sensor is disposed in the virtual key area), where if the ultrasonic touch principle is adopted, an obvious sliding area does not need to be disposed in an exposed area of the terminal, and a touch result is more accurate. The embodiment of the application does not limit the touch principle of the virtual key area.
Optionally, the sliding operation may be a single-finger sliding operation, or may be a sliding operation with two fingers, and the attribute of the sliding operation is not limited in the embodiment of the present application.
Step 202, determining a target parameter adjusting mode corresponding to the sliding operation according to the sliding parameters, wherein different parameter adjusting modes correspond to different parameter adjusting coefficients.
Because the virtual key area is limited and the operation of the user is more convenient, a terminal developer formulates different parameter adjusting modes according to different sliding parameters, analyzes the operation psychology of the user by acquiring the sliding parameters corresponding to different sliding operations, so as to determine the corresponding target parameter adjusting mode according to different sliding parameters, and further meet different parameter adjusting requirements of the user.
Different parameter adjusting coefficients are set for different parameter adjusting modes, the parameter adjusting coefficients represent the size of a parameter value changed at a single time, and taking the parameter as the focal length of the camera as an example, the parameter adjusting coefficients can be 0.1 time (namely, the focal length is increased by 0.1 time), 1 time, 3 times, 5 times and the like. For example, if the terminal obtains that the sliding speed corresponding to the sliding operation is fast, it indicates that the user wants to fast adjust to a suitable parameter value, so that the corresponding parameter adjustment mode can be switched to a mode with a larger parameter adjustment coefficient, and the adjustment efficiency is increased, for example, by 5 times; if the speed of the terminal acquiring the sliding operation is slow, it may indicate that the terminal has already adjusted to be near a suitable parameter value, and fine adjustment is required, so that the terminal may switch the parameter adjustment mode to a mode with a smaller parameter adjustment coefficient to perform fine adjustment, and avoid skipping the optimal parameter value, for example, 0.1 times.
Step 203, adjusting the parameter value according to the sliding parameter and the target parameter adjustment coefficient, wherein the target parameter adjustment coefficient is a parameter adjustment coefficient corresponding to the target parameter adjustment mode.
Because the parameter values in the parameter adjusting scene all have the characteristic of continuous change, and the parameter values all have a certain adjusting range, for example, for the camera focal length of a mobile phone camera, the corresponding adjusting range can be 150 times. Therefore, the parameter value may not be infinitely adjustable, and may need to be adjusted within a range of parameter values, and the adjustment direction of the corresponding parameter value may be adjusted to a higher parameter value or a lower parameter value.
In a possible implementation manner, after the terminal determines the target parameter adjustment mode corresponding to the sliding operation, the parameter value may be adjusted according to the sliding direction and the target parameter adjustment coefficient corresponding to the target parameter adjustment mode, taking adjusting the focal length as an example, if the current focal length is 5 times, the target parameter adjustment coefficient corresponding to the sliding operation is 0.1 times, and the sliding direction is adjusted upwards, then 5 times are adjusted according to 0.1 times, that is, 5.1 times, 5.2 times, 5.3 times, 5.4 times, and the like, until the optimal focal length value is adjusted.
Optionally, the user can customize the parameter adjustment direction corresponding to each sliding direction according to the own requirement.
Alternatively, for a single-finger sliding, the corresponding sliding direction may be determined simply by the change of the sliding position, and for a double-finger sliding operation, since a double-contact sliding operation is detected, the corresponding sliding direction may be defined according to the distance between two contacts, for example, if the sliding distance between two contacts increases with the sampling time, the sliding direction is defined as a first sliding direction, and if the sliding distance between two contacts decreases with the sampling time, the sliding direction is defined as a second sliding direction, so as to determine the corresponding parameter adjusting direction according to the defined sliding direction.
In the embodiment of the application, in a parameter adjusting scene, a target parameter adjusting mode corresponding to a sliding operation is determined by obtaining the sliding parameter corresponding to the sliding operation at the virtual key area, so that a parameter value is adjusted according to the sliding parameter and a target parameter adjusting coefficient corresponding to the target parameter adjusting mode. The virtual key area is located in an exposed area of the terminal except the touch display screen, so that operation on the touch display screen is not needed during parameter adjustment, compared with a parameter adjustment method in the related art, the method can avoid shielding of the visual field of a user, and accuracy of parameter adjustment is improved.
In one possible implementation, according to different sliding parameters, a developer defines three parameter adjustment modes, namely a fine adjustment mode, a coarse adjustment mode and a limit mode, wherein the fine adjustment mode mainly aims at fine adjustment of parameter values, the coarse adjustment mode mainly aims at improving the quick adjustment capability of the parameters, and the limit mode is used for considering the convenience of adjustment and can quickly reach the maximum parameter value or the minimum parameter value. The following embodiments focus on how to determine the target parameter adjustment mode based on the corresponding slip parameter.
Referring to fig. 4, a flow chart of a parameter adjustment method according to another exemplary embodiment of the present application is shown. The method comprises the following steps:
step 401, in a parameter adjusting scene, obtaining a sliding parameter corresponding to a sliding operation at a virtual key area.
The step 101 may be referred to in the implementation manner of this step, and this embodiment is not described herein again.
And 402, responding to the sliding distance being smaller than the distance threshold value, determining a fine adjustment mode as a target parameter adjustment mode, wherein the fine adjustment mode is a parameter adjustment mode for adjusting the parameter value according to the first parameter adjustment coefficient.
In one possible embodiment, each parameter adjustment operation is initially started from the fine adjustment mode by default, and gradually changed to the coarse adjustment mode as the sliding distance or the sliding speed increases, and finally gradually changed or gradually changed to the limit parameter value if the sliding continues, namely, the limit mode is entered.
Schematically, as shown in fig. 5, the switching sequence of the three parameter adjustment modes is shown. The gradual change process from the fine adjustment mode to the limit mode indicates that the adjustment is performed near the limit parameter value and can be gradually adjusted to the limit parameter value through the fine adjustment mode.
The switching sequence of the three parameter adjusting modes is defined, for switching in an actual application scene, conditions for switching need to be clearly defined, and for sliding operation, key factors influencing the switching and gradual change method mainly include sliding speed and sliding distance corresponding to the sliding operation, for example, the sliding speed is high, which indicates that quick adjustment is needed, and the switching can be switched to a coarse adjusting mode; if the sliding speed is relatively slow and the value is close to the proper parameter value, the mode can be switched to a fine adjustment mode and the like.
In a possible embodiment, the developer analyzes the influence of the sliding speed and the sliding distance on the gradual change method comprehensively, sets a distance threshold, for example, the distance threshold may be 1cm, and for the sliding operation smaller than the distance threshold, only needs to adjust in the fine adjustment mode, that is, adjust the parameter value according to the first parameter adjustment coefficient, and the first parameter adjustment coefficient is the minimum parameter adjustment coefficient, for example, taking the adjustment focal length as an example, the first parameter adjustment coefficient may be 0.1 times.
Optionally, for the distance threshold, different distance thresholds may be correspondingly set according to the length of the virtual key region, for example, if the length of the virtual key region is 3cm, the distance threshold may be set to 1 cm; if the length of the virtual key area is 5cm, the distance threshold may be set to 2 cm.
Optionally, for the first parameter adjustment coefficient, different first parameter adjustment coefficients may be correspondingly set according to different parameter adjustment scenes, for example, a page turning scene of an electronic book, and the corresponding first parameter adjustment coefficient may be 1 page; shooting a parameter adjustment scene (taking a focal length as an example), wherein the corresponding first parameter adjustment coefficient can be 0.1 time; playing a progress adjusting scene, wherein the corresponding first parameter adjusting coefficient can be 5s, playing a volume adjusting scene, the corresponding first parameter adjusting coefficient can be 1dB, zooming a scene of a picture, and the corresponding first parameter adjusting coefficient can be 0.5 times (namely, zooming the picture to 0.5 times of the original picture).
In the fine adjustment mode, in response to that the sliding distance is greater than the distance threshold and the sliding speed is greater than the speed threshold, the coarse adjustment mode is determined as a target parameter adjustment mode, the coarse adjustment mode is a parameter adjustment mode for adjusting the parameter value according to a second parameter adjustment coefficient, and the second parameter adjustment coefficient is greater than the first parameter adjustment coefficient.
In the fine tuning mode, if the sliding distance increases to the distance threshold and the sliding distance still increases, at this time, there may be two situations, the first situation is that the sliding distance reaches near the suitable parameter value, the second situation is that the sliding distance does not reach near the suitable parameter value and is far from near the suitable parameter value, these two situations are reflected on the sliding parameter and correspond to the sliding speed, if the sliding distance reaches near the suitable parameter value, the user generally slides at a slow speed, that is, the sliding speed is slow, if the clutch suitable parameter value is far, the user generally slides at a fast speed, so as to be able to reach the suitable parameter value faster, that is, the sliding speed is fast, therefore, in a possible implementation manner, the developer sets a speed threshold in the terminal, for example, the speed threshold may be 1 cm/s.
In the fine adjustment mode, if the sliding distance corresponding to the sliding operation is greater than the distance threshold, but the sliding speed is lower than the speed threshold, that is, corresponding to the first case, the fine adjustment is still performed, and the fine adjustment mode is continued, that is, the parameter value is adjusted according to the first parameter adjustment coefficient.
In the fine adjustment mode, if the sliding distance corresponding to the sliding operation is greater than the distance threshold and the sliding speed is greater than the speed threshold, that is, the second situation is met, the coarse adjustment mode should be switched to, so as to improve the efficiency of parameter adjustment, so as to quickly reach the vicinity of an appropriate parameter value.
Since the coarse tuning mode is to improve the efficiency of parameter adjustment, the second parameter adjustment factor in the coarse tuning mode should be greater than the first parameter adjustment factor in the fine tuning mode.
Optionally, the second parameter adjustment coefficient may be a fixed value, and it is only required that the second parameter adjustment coefficient is greater than the first parameter adjustment coefficient. For example, taking focusing of a mobile phone as an example, the second parameter adjustment coefficient may be 2 times.
Optionally, in order to adjust the parameter more in line with the operating psychology of the user, for example, if the sliding speed is faster and faster in the rough adjustment mode, it indicates that the user needs to reach the vicinity of the appropriate parameter value faster, and then, corresponding to the operating psychology of the user, the second parameter adjustment coefficient may be set to have a positive phase relationship with the sliding speed, that is, the second parameter adjustment coefficient is correspondingly increased along with the increase of the sliding speed, which is schematic, taking mobile phone focusing as an example, and the change of the second parameter adjustment coefficient along with the sliding speed may be: 1 time, 3 times, 5 times, 7 times and the like.
Optionally, for a case that the sliding speed is substantially unchanged in the rough adjustment mode, it may also be set that the second parameter adjustment coefficient is in a positive correlation with the sliding distance, that is, the sliding distance increases, and the second parameter adjustment coefficient also increases correspondingly, which is schematically shown in the example of mobile phone focusing, and the second parameter adjustment coefficient may be 1 time, 2 times, 3 times, 4 times, and the like along with the change of the sliding distance.
In a possible implementation manner, if the second parameter adjustment coefficient is in a positive correlation with the sliding distance or the sliding speed, since the parameter value has a certain adjustment range, a second parameter adjustment coefficient threshold value may be set, that is, when the second parameter adjustment coefficient threshold value is reached, if the second parameter adjustment coefficient threshold value is still in the coarse adjustment mode, the second parameter adjustment coefficient keeps the second parameter adjustment coefficient threshold value unchanged, and the parameter value is adjusted according to the second parameter adjustment coefficient threshold value. For example, taking focusing of a mobile phone as an example, the second parameter adjustment coefficient threshold may be 10 times.
Optionally, the second parameter adjustment coefficient threshold may not be set because the parameter value has a range allowing adjustment.
Schematically, as shown in fig. 6, the relationship between the sliding speed and the parameter adjustment coefficient is shown. When the sliding speed is smaller than the speed threshold, the sliding device is in a fine adjustment mode, adjustment is performed according to a first parameter adjustment coefficient, and the first parameter adjustment coefficient is a fixed value, as shown by a straight line 601; when the sliding speed is greater than the speed threshold, entering a rough adjustment mode, and adjusting the current parameter value according to a second parameter adjustment coefficient, where the second parameter adjustment coefficient may be a fixed value and is greater than the first parameter adjustment coefficient, as shown by a straight line 602; optionally, the second parameter adjustment coefficient may also be in a positive correlation with the sliding speed, that is, the second parameter adjustment coefficient increases as the sliding speed increases, as shown by a straight line 603; when the second parameter adjustment coefficient increases to the second parameter adjustment coefficient threshold, the second parameter adjustment coefficient may remain unchanged as the slip speed increases; optionally, the second parameter adjustment coefficient threshold may not be present.
Schematically, as shown in fig. 7, a schematic diagram of the integrated determination of the target parameter adjustment mode according to the sliding speed and the sliding distance is shown. When the sliding distance is smaller than the distance threshold and the sliding speed is smaller than the speed threshold, determining the fine adjustment mode as a target parameter adjustment mode; when the sliding distance is smaller than the distance threshold and the sliding speed is larger than the speed threshold, determining the fine adjustment mode as a target parameter adjustment mode; when the sliding distance is greater than the distance threshold value and the sliding speed is less than the speed threshold value, determining the fine adjustment mode as a target parameter adjustment mode; and when the sliding distance is greater than the distance threshold value and the sliding speed is greater than the speed threshold value, determining the coarse adjustment mode as the target parameter adjustment mode.
Step 404, in the coarse tuning mode, a current parameter value is obtained.
In the rough adjustment mode, the sliding distance corresponding to the sliding operation is still continuously increased, and the sliding speed is greater than the speed threshold value, the sliding distance may be gradually increased to be close to the limit parameter value corresponding to the parameter, that is, the limit mode may be reached. Therefore, in one possible implementation, in the coarse tuning mode, the current parameter value may be obtained, and the parameter value is the adjusted parameter value. For example, taking focusing of a mobile phone as an example, the current parameter value is 47 times.
Optionally, in order to make the obtained current parameter value more suitable for the requirement, a second distance threshold may be set, where the second distance threshold is greater than the distance threshold, and when the coarse tuning mode is in the coarse tuning mode, and the sliding distance is already greater than the second distance threshold, and the sliding distance is still increasing, that is, the current parameter value may be obtained. Illustratively, the second distance threshold may be 4 cm. Alternatively, the second distance threshold may be determined according to the length of the virtual key region.
Optionally, a sliding time threshold may be set, where the sliding time threshold may be a duration in the coarse adjustment mode, or may be a time corresponding to a time from an initial time of the sliding operation to a current time. Illustratively, the sliding time threshold may be 3 s.
Step 405, in response to that the parameter difference between the current parameter value and the limit parameter value is less than or equal to the threshold, determining the limit mode as a target parameter adjustment mode, where the limit mode is a parameter adjustment mode for adjusting the current parameter value according to a third parameter adjustment coefficient, and the third parameter adjustment coefficient is the parameter difference.
In a possible implementation manner, after the current parameter value is obtained, a difference value calculation is performed with the limit parameter value to obtain a parameter difference value, when the parameter difference value is smaller than a preset threshold value, that is, the parameter value is roughly adjusted to be near the limit parameter value, at this time, the limit mode can be directly entered, that is, the current parameter value is adjusted according to the parameter difference value.
Illustratively, if the limit parameter value is 50 times and the current parameter value is 47 times, the parameter difference is 3 times, and the current parameter value 47 times can be directly adjusted to 50 times according to the parameter difference 3 times.
And step 406, adjusting the parameter value according to the sliding parameter and the target parameter adjustment coefficient, wherein the target parameter adjustment coefficient is a parameter adjustment coefficient corresponding to the target parameter adjustment mode.
Since only the switching conditions of the respective parameter adjustment modes are described above, it is also necessary to consider the slip direction in order to determine the adjustment direction, i.e., whether to adjust the parameter value to the maximum parameter value, to adjust the parameter value to the minimum parameter value, and the like, for the actual adjustment process.
Illustratively, on the basis of fig. 4, as shown in fig. 8, step 406 may include step 406A, step 406B, and step 406C.
And step 406A, determining a parameter adjusting direction corresponding to the sliding direction, wherein the parameter adjusting direction comprises forward adjustment and reverse adjustment.
In a possible implementation manner, the parameter adjustment directions corresponding to the respective sliding directions may be preset in the terminal, for example, sliding up means forward adjustment, that is, increasing the parameter value, and sliding down means reverse adjustment, that is, decreasing the parameter value.
Optionally, the definition of the sliding direction may be defined according to the placement position of the terminal or the setting position of the virtual key region, for example, if the terminal is placed horizontally, the corresponding sliding direction may be sliding left and sliding right.
Illustratively, as shown in fig. 9, taking the sliding focus as an example, when the camera shooting interface 901 is present, the sliding in the direction indicated by the arrow 903 is defined as a zoom-in focusing operation, that is, the focal length is increased, and the sliding in the direction indicated by the arrow 904 is defined as a zoom-out focusing operation, that is, the focal length is decreased.
And step 406B, determining parameter adjustment quantity according to the parameter adjustment direction, the target parameter adjustment coefficient and the sliding distance.
In a possible implementation manner, after the parameter adjusting direction is determined, the parameter adjusting amount can be determined according to the target parameter adjusting coefficient, the sliding distance and the like.
Illustratively, if the parameter adjustment direction is forward adjustment, the target parameter adjustment coefficient is 0.1 times (in the fine adjustment mode), and the sliding distance is 1cm, the corresponding parameter adjustment amount is +1 times (where "+" represents forward adjustment, and the parameter value is increased).
And step 406C, adjusting the current parameter value according to the parameter adjustment amount.
In a possible implementation manner, when the parameter adjustment amount is obtained, the current parameter value and the parameter adjustment amount may be calculated to obtain the adjusted parameter value.
Illustratively, if the parameter adjustment amount is +1 times, and the current parameter value is 3 times, the corresponding adjusted parameter value is 4 times.
In the embodiment, three parameter adjusting modes, namely a fine adjusting mode, a coarse adjusting mode and a limit mode, are set, and switching conditions of the three parameter adjusting modes are defined, so that the three parameter adjusting modes can be switched to the parameter adjusting mode which is more consistent with the psychological target of user operation according to different sliding parameters; in addition, the parameter adjusting direction corresponding to the sliding direction is obtained so as to determine whether to adjust the current parameter in the forward direction or to adjust the current parameter in the reverse direction.
In a possible application scenario, when the adjustment is performed to be close to the limit parameter value in the fine adjustment mode, the adjustment is still performed according to the fine adjustment mode. For the method for determining whether the parameter is near the limit parameter value, reference may be made to the above embodiments, which are not described herein again.
It should be noted that step 401, step 402 and step 406 may be taken as a single parameter adjustment embodiment, and this embodiment corresponds to the sliding operation only satisfying the adjustment in the fine adjustment mode.
Step 401, step 402, step 403 and step 406 may be described as an embodiment of parameter adjustment, where the sliding parameter corresponding to the sliding operation satisfies the requirement of switching from the fine adjustment mode to the coarse adjustment mode.
In a possible application scenario, during the course of the coarse adjustment mode, if the sliding speed suddenly drops, it may be adjusted to be close to a proper parameter value, and at this time, if the sliding speed is still in the coarse adjustment mode, a proper parameter value may be missed, and therefore, the fine adjustment mode needs to be entered for fine adjustment.
Illustratively, on the basis of fig. 4, as shown in fig. 10, step 404 and step 405 may be replaced by step 1001.
In step 1001, in the coarse adjustment mode, in response to the sliding speed being less than the speed threshold, the fine adjustment mode is determined as the target parameter adjustment mode.
And when the sliding speed is lower than the speed threshold value in the rough adjustment mode, the sliding speed is probably about to be adjusted to be close to a proper parameter value, fine adjustment is needed, namely the sliding speed enters the fine adjustment mode, and the current parameter value is adjusted according to a first parameter adjustment coefficient.
In this embodiment, the relationship between the sliding speed and the speed threshold is determined in the coarse adjustment mode to determine whether the value is close to the appropriate parameter value, so that when the sliding speed is smaller than the speed threshold, the fine adjustment mode is entered in time to perform fine adjustment, thereby avoiding missing the optimal parameter value.
For the coarse adjustment mode, when the terminal determines that the sliding direction changes suddenly, i.e. the terminal slides in the opposite direction, it indicates that the user is about to reach the vicinity of the appropriate parameter value, and the user slides back and forth to determine the optimal parameter value, and at this time, the fine adjustment mode should be entered for fine adjustment.
Illustratively, on the basis of fig. 4, as shown in fig. 11, steps 404 and 405 may be replaced by steps 1101 and 1102.
In step 1101, in the rough adjustment mode, a first sliding direction and a second sliding direction corresponding to the sliding operation at adjacent times are obtained.
In one possible implementation, the sliding direction of the adjacent time can be obtained, and whether the back-and-forth sliding operation is performed or not can be determined by judging whether the sliding direction of the adjacent time is the same or not.
For obtaining the sliding direction at the adjacent time, it is determined whether the sliding distance increases at the adjacent time, if so, it indicates that the sliding direction has not changed, and if so, it indicates that the sliding direction is different. For example, the sliding distance corresponding to the time N is 2.2cm, and the sliding distance corresponding to the time N +1 is 2cm, which means that the sliding direction at the time N +1 is opposite to the sliding direction at the time N, i.e., the sliding direction is opposite to the sliding direction at the time N.
Step 1102, in response to the first sliding direction and the second sliding direction being different, determining the fine adjustment mode as the target parameter adjustment mode.
In a possible embodiment, after determining that the first sliding direction is different from the second sliding direction through the reduction of the sliding distance, indicating that the proper parameter has been reached to the vicinity, the user determines the optimal parameter value through the back-and-forth sliding operation, i.e. enters the fine adjustment mode, and adjusts the current parameter value according to the first parameter adjustment coefficient.
In this embodiment, whether the adjustment is performed to a position near an appropriate parameter value is determined by determining whether the sliding directions at adjacent times are the same, that is, determining an increase or decrease condition of the sliding distance at the adjacent times, and when the sliding directions at the adjacent times are different, determining the fine adjustment mode as the target parameter adjustment mode, and performing the fine adjustment on the current parameter value.
In a possible application scenario, in a fine adjustment mode, if the terminal determines that the sliding direction of adjacent time is changed, it indicates that the adjustment is about to be performed to a value near a proper parameter, and the fine adjustment mode is still determined as a target parameter adjustment mode. For determining whether the sliding directions of adjacent moments are the same, reference may be made to the above embodiments, which is not described herein again.
Referring to fig. 12, a flow chart of a parameter adjustment method according to another exemplary embodiment of the present application is shown. The method comprises the following steps:
step 1201, receiving a sliding operation of the virtual key area.
Step 1202, enter fine tuning mode.
When the sliding operation starts, the default is to start from the fine-tuning mode.
In step 1203, it is determined whether the sliding distance is increased.
If the sliding distance continues to increase, the process proceeds to step 1204, and if the sliding distance decreases, the process proceeds to step 1202.
In step 1204, it is determined whether the sliding distance is greater than a distance threshold.
If the sliding distance is greater than the distance threshold, go to step 1205, otherwise, go to step 1202.
Step 1205, determine whether the sliding speed is greater than the speed threshold.
If the slip speed is greater than the speed threshold, go to step 1206, otherwise, go to step 1202.
In step 1206, enter coarse tune mode.
Step 1207, determine whether the sliding distance continues to increase.
If the sliding distance continues to increase, go to step 1208, continue to determine whether the sliding speed is less than the speed threshold, if the sliding distance decreases, switch to the fine adjustment mode, i.e., go to step 1202.
In step 1208, it is determined whether the slip speed is less than the speed threshold.
When the sliding speed is still larger than the speed threshold, continuously judging whether the current parameter value reaches the vicinity of the limit parameter value; if the sliding speed is less than the speed threshold, the mode should be switched to the fine-tuning mode, i.e. step 1202 is entered.
Step 1209, determine whether the current parameter value reaches near the limit parameter value.
If the current parameter value reaches the vicinity of the limit parameter value, the limit mode should be entered, otherwise, the coarse tuning mode is still in.
At step 1210, a limit mode is entered.
In the above embodiments, the target parameter adjustment mode is determined by comprehensively considering two factors, namely, the sliding distance and the sliding speed, and in a possible implementation, the target parameter adjustment mode may be determined by focusing only on the sliding distance.
Referring to fig. 13, a flow chart of a parameter adjustment method according to another exemplary embodiment of the present application is schematically shown.
Step 1301, receiving a sliding operation of the virtual key area.
Step 1302, enter a fine-tune mode.
And step 1303, judging whether the sliding distance is increased.
In step 1304, it is determined whether the sliding distance is greater than a distance threshold.
Step 1305, enter coarse tune mode.
In step 1306, it is determined whether the sliding distance continues to increase.
Step 1307, determine whether the current parameter value reaches near the limit parameter value.
Step 1308, enter limit mode.
In a possible embodiment, the target parameter adjustment mode may also be determined with attention to only the slip speed.
Referring to fig. 14, a flow chart of a parameter adjustment method according to another exemplary embodiment of the present application is schematically shown.
Step 1401, a sliding operation of the virtual key region is received.
Step 1402, enter a fine tuning mode.
In step 1403, it is determined whether the sliding distance is increased.
At step 1404, it is determined whether the slip speed is greater than a speed threshold.
Step 1405, enter coarse tune mode.
In step 1406, it is determined whether the sliding distance continues to increase.
Step 1407, determine whether the slip speed is less than the speed threshold.
At step 1408, a determination is made as to whether the current parameter value is near the threshold parameter value.
In step 1409, the limit mode is entered.
Referring to fig. 15, a block diagram of a parameter adjusting apparatus according to an exemplary embodiment of the present application is shown. The apparatus may be implemented as all or a portion of the terminal in software, hardware, or a combination of both. The device includes:
an obtaining module 1501, configured to obtain a sliding parameter corresponding to a sliding operation at the virtual key region in a parameter adjustment scenario, where the parameter adjustment scenario is a scenario with a continuously variable parameter adjustment requirement, and the sliding parameter includes at least one of a sliding direction, a sliding distance, or a sliding speed;
a determining module 1502, configured to determine, according to the sliding parameter, a target parameter adjustment mode corresponding to the sliding operation, where different parameter adjustment modes correspond to different parameter adjustment coefficients;
the adjusting module 1503 is configured to adjust a parameter value according to the sliding parameter and a target parameter adjustment coefficient, where the target parameter adjustment coefficient is a parameter adjustment coefficient corresponding to the target parameter adjustment mode.
Optionally, the determining module 1502 includes:
a first determination unit configured to determine a fine adjustment mode as the target parameter adjustment mode in response to the sliding distance being smaller than a distance threshold, the fine adjustment mode being a parameter adjustment mode in which a parameter value is adjusted by a first parameter adjustment coefficient.
Optionally, the determining module 1502 further includes:
and a second determining unit, configured to determine, in the fine adjustment mode, in response to that the sliding distance is greater than the distance threshold and the sliding speed is greater than a speed threshold, a coarse adjustment mode as the target parameter adjustment mode, where the coarse adjustment mode is a parameter adjustment mode in which a parameter value is adjusted according to a second parameter adjustment coefficient, and the second parameter adjustment coefficient is greater than the first parameter adjustment coefficient.
Optionally, the determining module 1502 further includes:
a first obtaining unit, configured to obtain a current parameter value in the coarse tuning mode;
and a third determining unit, configured to determine, in response to that a parameter difference between the current parameter value and a limit parameter value is smaller than or equal to a threshold, a limit mode as the target parameter adjustment mode, where the limit mode is a parameter adjustment mode in which the current parameter value is adjusted according to a third parameter adjustment coefficient, and the third parameter adjustment coefficient is the parameter difference.
Optionally, the determining module 1502 further includes:
a fourth determining unit, configured to determine, in the coarse adjustment mode, the fine adjustment mode as the target parameter adjustment mode in response to the sliding speed being less than the speed threshold.
Optionally, the determining module 1502 further includes:
a second obtaining unit, configured to obtain, in the coarse adjustment mode, a first sliding direction and a second sliding direction corresponding to the sliding operation at adjacent times;
a fifth determination unit configured to determine the fine adjustment mode as the target parameter adjustment mode in response to the first sliding direction and the second sliding direction being different.
Optionally, the second parameter adjustment coefficient is in a positive correlation with the sliding speed, or the second parameter adjustment coefficient is in a positive correlation with the sliding distance, or the second parameter adjustment coefficient is a fixed value.
Optionally, the adjusting module 1503 includes:
a sixth determining unit, configured to determine a parameter adjustment direction corresponding to the sliding direction, where the parameter adjustment direction includes a forward adjustment and a reverse adjustment;
a seventh determining unit, configured to determine a parameter adjustment amount according to the parameter adjustment direction, the target parameter adjustment coefficient, and the sliding distance;
and the adjusting unit is used for adjusting the current parameter value according to the parameter adjusting quantity.
Optionally, the parameter adjustment scenario includes at least one of: the method comprises the following steps of volume adjusting scene, playing progress adjusting scene, electronic book page turning scene, shooting parameter adjusting scene, screen brightness adjusting scene and picture zooming scene.
In the embodiment of the application, in a parameter adjusting scene, a target parameter adjusting mode corresponding to a sliding operation is determined by obtaining the sliding parameter corresponding to the sliding operation at the virtual key area, so that a parameter value is adjusted according to the sliding parameter and a target parameter adjusting coefficient corresponding to the target parameter adjusting mode. The virtual key area is located in an exposed area of the terminal except the touch display screen, so that operation on the touch display screen is not needed during parameter adjustment, compared with a parameter adjustment method in the related art, the method can avoid shielding of the visual field of a user, and accuracy of parameter adjustment is improved.
Referring to fig. 16, a block diagram of a terminal 1600 according to an exemplary embodiment of the present application is shown. Terminal 1600 in the present application may include one or more of the following components: a sensor component 1601, a signal processing component 1602, a memory 1603, and an application processor 1604. The sensor assembly 1601 is electrically connected to the signal processing assembly 1602, the signal processing assembly 1602 is electrically connected to the application processor 1604, and the application processor 1604 is electrically connected to the memory 1603.
The sensor assembly 1601 is used for receiving a sliding operation of the virtual key region, and may be an ultrasonic sensor, a capacitive sensor, or the like, and the type of the sensor assembly is not limited in the embodiment of the present application.
The signal processing component 1602 is configured to receive the sliding signal acquired by the sensor component 1601, and process the sliding signal to obtain position information corresponding to the sliding operation. It can be implemented in at least one hardware form of Digital Signal Processing (DSP), Application Specific Integrated Circuit (ASIC).
Memory 1603 may include Random Access Memory (RAM) or Read-Only Memory (ROM). Optionally, the memory 1603 includes non-transitory computer-readable storage medium. Memory 1603 may be used to store an instruction, program, code, set of codes, or set of instructions. The memory 1603 may include a program storage area and a data storage area, where the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, and the like), instructions for implementing various method embodiments described above, and the like, and the operating system may be an Android (Android) system (including a system based on Android system depth development), an IOS system developed by apple inc (including a system based on IOS system depth development), or other systems. The stored data area may also store data created by the terminal 1600 during use (e.g., phone book, audio-video data, chat log data), etc.
The application processor 1604 may include one or more processing cores. Application processor 1604, using various interfaces and lines connects various parts throughout terminal 1600, performs various functions of terminal 1600 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in memory 1603, and calling data stored in memory 1603. Alternatively, the application processor 1604 may be implemented in at least one hardware form of a DSP, a Field-Programmable gate Array (FPGA), and a Programmable Logic Array (PLA). The application processor 1604 may integrate one or a combination of CPUs, Graphics Processing Units (GPUs), modems, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing contents required to be displayed by the touch display screen; the modem is used to handle wireless communications. It is to be appreciated that the modem can be implemented as a separate communication chip, rather than being integrated into the application processor 1604. In this embodiment, the application processor 1604 may receive the position information sent by the signal processing component 1602, and calculate at least one sliding parameter such as a sliding speed, a sliding distance, a sliding direction, and the like according to the position information, so as to determine an adjustment instruction corresponding to the sliding operation according to the sliding parameter, thereby controlling a corresponding component to implement the adjustment function.
Optionally, the terminal 1600 may further include a touch display screen, which may be a capacitive touch display screen, and the capacitive touch display screen is configured to receive a touch operation of a user on or near the terminal using any suitable object, such as a finger or a stylus, and display a user interface of each application program. The touch display screen is generally disposed on a front panel of the terminal 1600. The touch display screen can be designed as a full-screen, a curved screen or a profiled screen. The touch display screen can be designed to be a combination of a full screen and a curved screen, and a combination of a special-shaped screen and a curved screen, which are not limited in the embodiment of the present application.
Optionally, the terminal 1600 may further include at least one of a camera assembly, a speaker assembly, and a display driver assembly, the application processor 1604 is electrically connected to the camera assembly, the speaker assembly, and the display driver assembly, respectively, and the application processor 1604 is configured to control at least one of the camera assembly, the speaker assembly, and the display driver assembly to perform parameter adjustment through a driver.
In addition, those skilled in the art will appreciate that the configuration of terminal 1600 illustrated in the above-described figures does not constitute a limitation of terminal 1600, and that terminals may include more or fewer components than those illustrated, or some components may be combined, or a different arrangement of components. For example, the terminal 1600 further includes a radio frequency circuit, an audio circuit, a wireless fidelity (WiFi) module, a power supply, a bluetooth module, and other components, which are not described herein again.
The embodiment of the present application further provides a computer-readable storage medium, where at least one instruction is stored in the computer-readable storage medium, and the at least one instruction is used for being executed by a processor to implement the parameter adjustment method according to the above embodiments.
The embodiment of the present application further provides a computer program product, where at least one instruction is stored, and the at least one instruction is loaded and executed by the processor to implement the parameter adjustment method according to the above embodiments.
Those skilled in the art will recognize that, in one or more of the examples described above, the functions described in the embodiments of the present application may be implemented in hardware, software, firmware, or any combination thereof. When implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
The above description is only exemplary of the present application and should not be taken as limiting, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (13)

1. The parameter adjusting method is applied to a terminal, the terminal is provided with a virtual key area, and the virtual key area is positioned in an exposed area of the terminal except a touch display screen, and the method comprises the following steps:
acquiring sliding parameters corresponding to sliding operation at the virtual key area under a parameter adjusting scene, wherein the parameter adjusting scene is a scene with continuously variable parameter adjusting requirements, and the sliding parameters comprise at least one of sliding direction, sliding distance or sliding speed;
determining a target parameter adjusting mode corresponding to the sliding operation according to the sliding parameter, wherein different parameter adjusting modes correspond to different parameter adjusting coefficients;
and adjusting parameter values according to the sliding parameters and target parameter adjustment coefficients, wherein the target parameter adjustment coefficients are parameter adjustment coefficients corresponding to the target parameter adjustment modes.
2. The method according to claim 1, wherein the determining a target parameter adjustment mode corresponding to the sliding operation according to the sliding parameter comprises:
in response to the sliding distance being less than a distance threshold, determining a fine tuning mode as the target parameter adjustment mode, the fine tuning mode being a parameter adjustment mode in which a parameter value is adjusted by a first parameter adjustment coefficient.
3. The method of claim 2, wherein determining the target parameter adjustment mode corresponding to the sliding operation according to the sliding parameter further comprises:
and in the fine adjustment mode, in response to the sliding distance being greater than the distance threshold and the sliding speed being greater than the speed threshold, determining a coarse adjustment mode as the target parameter adjustment mode, wherein the coarse adjustment mode is a parameter adjustment mode for adjusting a parameter value according to a second parameter adjustment coefficient, and the second parameter adjustment coefficient is greater than the first parameter adjustment coefficient.
4. The method of claim 3, wherein determining the target parameter adjustment mode corresponding to the sliding operation according to the sliding parameter further comprises:
acquiring a current parameter value in the coarse adjustment mode;
and determining a limit mode as the target parameter adjustment mode in response to the parameter difference between the current parameter value and a limit parameter value being smaller than or equal to a threshold value, wherein the limit mode is a parameter adjustment mode for adjusting the current parameter value according to a third parameter adjustment coefficient, and the third parameter adjustment coefficient is the parameter difference.
5. A method as recited in claim 3, wherein after the coarse tuning mode is determined to be the target parameter adjustment mode, the method further comprises:
and in the coarse adjustment mode, in response to the sliding speed being smaller than the speed threshold, determining the fine adjustment mode as the target parameter adjustment mode.
6. A method as recited in claim 3, wherein after the coarse tuning mode is determined to be the target parameter adjustment mode, the method further comprises:
in the rough adjustment mode, a first sliding direction and a second sliding direction corresponding to the sliding operation at adjacent moments are obtained;
determining the fine adjustment mode as the target parameter adjustment mode in response to the first sliding direction and the second sliding direction being different.
7. The method according to claim 3, wherein the second parameter adjustment coefficient is positively correlated with the sliding speed, or the second parameter adjustment coefficient is positively correlated with the sliding distance, or the second parameter adjustment coefficient is a fixed value.
8. The method of any one of claims 1 to 7, wherein said adjusting the parameter values based on the slip parameter and a target parameter adjustment factor comprises:
determining a parameter adjusting direction corresponding to the sliding direction, wherein the parameter adjusting direction comprises forward adjustment and reverse adjustment;
determining parameter adjustment quantity according to the parameter adjustment direction, the target parameter adjustment coefficient and the sliding distance;
and adjusting the current parameter value according to the parameter adjustment quantity.
9. The method of any of claims 1 to 7, wherein the parameter adjustment scenario comprises at least one of: the method comprises the following steps of volume adjusting scene, playing progress adjusting scene, electronic book page turning scene, shooting parameter adjusting scene, screen brightness adjusting scene and picture zooming scene.
10. The utility model provides a parameter adjusting device, its characterized in that, the device is applied to the terminal, the terminal is provided with the virtual button region, the virtual button region is located except that the touch-control display screen the region that exposes of terminal, the device includes:
an obtaining module, configured to obtain a sliding parameter corresponding to a sliding operation at the virtual key region in a parameter adjustment scenario, where the parameter adjustment scenario is a scenario with a continuously variable parameter adjustment requirement, and the sliding parameter includes at least one of a sliding direction, a sliding distance, or a sliding speed;
the determining module is used for determining a target parameter adjusting mode corresponding to the sliding operation according to the sliding parameter, wherein different parameter adjusting modes correspond to different parameter adjusting coefficients;
and the adjusting module is used for adjusting the parameter value according to the sliding parameter and a target parameter adjusting coefficient, wherein the target parameter adjusting coefficient is a parameter adjusting coefficient corresponding to the target parameter adjusting mode.
11. A terminal is characterized by comprising a sensor assembly, a signal processing assembly, a memory and an application processor, wherein the sensor assembly is electrically connected with the signal processing assembly, the signal processing assembly is electrically connected with the application processor, and the application processor is electrically connected with the memory;
the memory stores at least one instruction for execution by the application processor to implement the parameter adjustment method of any of claims 1 to 9.
12. The terminal according to claim 11, further comprising a camera assembly, or at least one of a speaker assembly or a display driver assembly, wherein the application processor is electrically connected to the camera assembly, the speaker assembly, or the display driver assembly, respectively, and is configured to control at least one of the camera assembly, the speaker assembly, or the display driver assembly to perform parameter adjustment through a driver.
13. A computer-readable storage medium having stored thereon at least one instruction for execution by a processor to implement a parameter adjustment method according to any one of claims 1 to 9.
CN202010097309.2A 2020-02-17 2020-02-17 Parameter adjusting method, device, terminal and storage medium Pending CN111309229A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010097309.2A CN111309229A (en) 2020-02-17 2020-02-17 Parameter adjusting method, device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010097309.2A CN111309229A (en) 2020-02-17 2020-02-17 Parameter adjusting method, device, terminal and storage medium

Publications (1)

Publication Number Publication Date
CN111309229A true CN111309229A (en) 2020-06-19

Family

ID=71151040

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010097309.2A Pending CN111309229A (en) 2020-02-17 2020-02-17 Parameter adjusting method, device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN111309229A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112684952A (en) * 2020-12-18 2021-04-20 网易(杭州)网络有限公司 Video playing control method and device and electronic equipment
CN113094282A (en) * 2021-04-28 2021-07-09 腾讯科技(深圳)有限公司 Program block running method, device, equipment and storage medium
CN113134160A (en) * 2021-03-31 2021-07-20 未来穿戴技术有限公司 Gear adjusting method and device, storage medium and electronic equipment
CN114302198A (en) * 2021-04-30 2022-04-08 海信视像科技股份有限公司 Display equipment and touch control lifting method
WO2022222771A1 (en) * 2021-04-22 2022-10-27 华为技术有限公司 Interface display method, electronic device and computer-readable medium

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020008691A1 (en) * 1998-01-16 2002-01-24 Mitsuru Hanajima Information processing apparatus and display control method of the same information processing apparatus
CN1335693A (en) * 2000-07-21 2002-02-13 索尼株式会社 Inputting device, reproducing device and sound volume regulating method
CN101350604A (en) * 2007-07-19 2009-01-21 鸿富锦精密工业(深圳)有限公司 Apparatus and method for automatically switching volume control mode
CN103995653A (en) * 2014-06-09 2014-08-20 联想(北京)有限公司 Parameter adjusting method and device
CN104636025A (en) * 2013-11-13 2015-05-20 上海联影医疗科技有限公司 Parameter inputting method and system
JP2016081337A (en) * 2014-10-17 2016-05-16 ヤマハ株式会社 Parameter setting device
CN105589611A (en) * 2014-11-17 2016-05-18 海信(山东)空调有限公司 Parameter adjusting method and touch controller
US20160358346A1 (en) * 2015-06-05 2016-12-08 Apple Inc. Rendering and displaying high dynamic range content
CN106873811A (en) * 2017-03-14 2017-06-20 朱正东 The volume of the smart machines such as mobile phone, panel computer or other control methods and position
CN107145221A (en) * 2017-03-29 2017-09-08 联想(北京)有限公司 A kind of information processing method and electronic equipment
CN107562359A (en) * 2017-09-05 2018-01-09 广东欧珀移动通信有限公司 Acquisition parameters adjusting method, device and terminal
US20180150211A1 (en) * 2015-05-29 2018-05-31 Huawei Technologies Co., Ltd. Method for adjusting photographing focal length of mobile terminal by using touchpad, and mobile terminal

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020008691A1 (en) * 1998-01-16 2002-01-24 Mitsuru Hanajima Information processing apparatus and display control method of the same information processing apparatus
CN1335693A (en) * 2000-07-21 2002-02-13 索尼株式会社 Inputting device, reproducing device and sound volume regulating method
CN101350604A (en) * 2007-07-19 2009-01-21 鸿富锦精密工业(深圳)有限公司 Apparatus and method for automatically switching volume control mode
CN104636025A (en) * 2013-11-13 2015-05-20 上海联影医疗科技有限公司 Parameter inputting method and system
CN103995653A (en) * 2014-06-09 2014-08-20 联想(北京)有限公司 Parameter adjusting method and device
JP2016081337A (en) * 2014-10-17 2016-05-16 ヤマハ株式会社 Parameter setting device
CN105589611A (en) * 2014-11-17 2016-05-18 海信(山东)空调有限公司 Parameter adjusting method and touch controller
US20180150211A1 (en) * 2015-05-29 2018-05-31 Huawei Technologies Co., Ltd. Method for adjusting photographing focal length of mobile terminal by using touchpad, and mobile terminal
US20160358346A1 (en) * 2015-06-05 2016-12-08 Apple Inc. Rendering and displaying high dynamic range content
CN106873811A (en) * 2017-03-14 2017-06-20 朱正东 The volume of the smart machines such as mobile phone, panel computer or other control methods and position
CN107145221A (en) * 2017-03-29 2017-09-08 联想(北京)有限公司 A kind of information processing method and electronic equipment
CN107562359A (en) * 2017-09-05 2018-01-09 广东欧珀移动通信有限公司 Acquisition parameters adjusting method, device and terminal

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112684952A (en) * 2020-12-18 2021-04-20 网易(杭州)网络有限公司 Video playing control method and device and electronic equipment
CN112684952B (en) * 2020-12-18 2022-06-14 网易(杭州)网络有限公司 Video playing control method and device and electronic equipment
CN113134160A (en) * 2021-03-31 2021-07-20 未来穿戴技术有限公司 Gear adjusting method and device, storage medium and electronic equipment
WO2022222771A1 (en) * 2021-04-22 2022-10-27 华为技术有限公司 Interface display method, electronic device and computer-readable medium
CN113094282A (en) * 2021-04-28 2021-07-09 腾讯科技(深圳)有限公司 Program block running method, device, equipment and storage medium
CN113094282B (en) * 2021-04-28 2023-08-01 腾讯科技(深圳)有限公司 Program block running method, device, equipment and storage medium
CN114302198A (en) * 2021-04-30 2022-04-08 海信视像科技股份有限公司 Display equipment and touch control lifting method
CN114302198B (en) * 2021-04-30 2023-03-21 海信视像科技股份有限公司 Display equipment and touch control lifting method

Similar Documents

Publication Publication Date Title
CN111309229A (en) Parameter adjusting method, device, terminal and storage medium
AU2022200580B2 (en) Photographing method, photographing apparatus, and mobile terminal
KR102079054B1 (en) Method and method for adjusting the shooting focal length of the mobile terminal using the touch pad
CN111712787B (en) Display control method and terminal
CN111381746B (en) Parameter adjusting method, device and storage medium
CN111669507A (en) Photographing method and device and electronic equipment
CN110572572B (en) Shooting parameter selection method and device, mobile terminal and storage medium
US20130208163A1 (en) Camera shutter key display apparatus and method
US9535604B2 (en) Display device, method for controlling display, and recording medium
EP4240000A1 (en) Photographing processing method and apparatus, electronic device, and readable storage medium
CN113676655B (en) Shooting method and device, mobile terminal and chip system
WO2023151609A1 (en) Time-lapse photography video recording method and apparatus, and electronic device
CN106506958B (en) Method for shooting by adopting mobile terminal and mobile terminal
US9641746B2 (en) Image capturing apparatus and control method for selecting from successively-captured images
US20130167083A1 (en) Apparatus and method for editting screen in wireless terminal
CN112866576A (en) Image preview method, storage medium and display device
CN106713742B (en) Shooting method and mobile terminal
CN112463084A (en) Split screen display method and device, terminal equipment and computer readable storage medium
CN112637495B (en) Shooting method, shooting device, electronic equipment and readable storage medium
CN112887618B (en) Video shooting method and device
JP6985408B2 (en) Screen display method, device, program and recording medium
CN111464752A (en) Zoom control method of electronic device and electronic device
CN111201774A (en) Zooming control method and device and shooting terminal
CN112270728A (en) Image processing method and device, electronic equipment and readable storage medium
CN114900737B (en) Video progress adjustment method, electronic device and computer readable storage medium

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