CN105045517B - A kind of flash adjustment method and user terminal - Google Patents

A kind of flash adjustment method and user terminal Download PDF

Info

Publication number
CN105045517B
CN105045517B CN201510541519.5A CN201510541519A CN105045517B CN 105045517 B CN105045517 B CN 105045517B CN 201510541519 A CN201510541519 A CN 201510541519A CN 105045517 B CN105045517 B CN 105045517B
Authority
CN
China
Prior art keywords
touch
control
value
flash lamp
brightness value
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.)
Expired - Fee Related
Application number
CN201510541519.5A
Other languages
Chinese (zh)
Other versions
CN105045517A (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.)
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 CN201510541519.5A priority Critical patent/CN105045517B/en
Priority to CN201810061039.2A priority patent/CN108255343B/en
Publication of CN105045517A publication Critical patent/CN105045517A/en
Application granted granted Critical
Publication of CN105045517B publication Critical patent/CN105045517B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the invention discloses a kind of flash adjustment method and user terminal, including:After on detection touch-screen touch control operation occurs for user terminal, then the touch parameter of touch control operation can be obtained, touch parameter includes touch-control pressure value;And detect whether touch-control pressure value falls into default touch-control range of pressure values;If so, from default range of pressure values and the mapping relations of brightness value, brightness value corresponding to touch-control range of pressure values is obtained, wherein, brightness value corresponding to different touch-control range of pressure values is different;Finally the brightness value of flash lamp is adjusted to brightness value corresponding to touch-control range of pressure values.In embodiments of the present invention, when user needs to adjust the brightness value of flash lamp, click on brightness regulation button without user and be adjusted, user need to only input the i.e. adjustable flash lamp of touch control operation on touch screen.So as to easily adjust flash lamp.

Description

A kind of flash adjustment method and user terminal
Technical field
The present invention relates to electronic technology field, more particularly to a kind of flash adjustment method and user terminal.
Background technology
As the fast development of electronic technology and the rapid popularization of terminal, the function of terminal are increasingly perfect.Therefore, to end The configuration requirement at end also more and more higher.For example, in order that terminal has shoot function, terminal would generally configure camera.In order to Improve shooting quality under low light environment, while camera is configured with, can typically configure flash lamp.However, in practical application In, because ambient brightness value may be different because environment is different, therefore, in order to preferably embody the effect of flash lamp, then need Adjust the brightness value of flash lamp.
At present, when adjusting the brightness value of flash lamp, it is necessary to which user's click brightness regulation button is adjusted.Due to common Brightness regulation button be generally all default fixed button, when position and the brightness regulation button that user clicks on position not Timing, then the brightness value of flash lamp can not be adjusted, so as to reduce the convenience of flash lamp regulation.
The content of the invention
The embodiments of the invention provide a kind of flash adjustment method and user terminal, can easily adjust flash lamp.
In a first aspect, the embodiment of the invention discloses a kind of flash adjustment method, including:
Whether touch control operation occurs on detection touch-screen;
The touch control operation occurs on the touch-screen if detecting, obtains the touch parameter of the touch control operation, it is described to touch Control parameter includes touch-control pressure value;
Detect whether the touch-control pressure value falls into default touch-control range of pressure values;
If so, from default range of pressure values and the mapping relations of brightness value, the touch-control range of pressure values pair is obtained The brightness value answered, wherein, brightness value corresponding to different touch-control range of pressure values is different;
The brightness value of the flash lamp is adjusted to brightness value corresponding to the touch-control range of pressure values.
With reference to the implementation of first aspect, in the first possible implementation of first aspect, the touch-control ginseng Number also includes target touch-control direction, and methods described also includes:
From the mapping relations of default range of pressure values and angle, obtain and rotated corresponding to the touch-control range of pressure values Angle, and from the mapping relations of default touch-control direction and direction of rotation, determine mesh corresponding to the target touch-control direction Direction of rotation is marked, wherein, angle corresponding to different touch-control range of pressure values is different;
The flash lamp is controlled to rotate the anglec of rotation along the target direction of rotation.
With reference to the first possible implementation of first aspect, in second of possible implementation of first aspect In, when the touch parameter includes the touch-control pressure value and the target touch-control direction, methods described also includes:
From the mapping relations of default range of pressure values and speed, rotation speed corresponding to the touch-control pressure value is obtained Degree, and from the mapping relations of the touch-control direction and direction of rotation, obtain target corresponding to the target touch-control direction and revolve Turn direction;
According to the rotary speed and the target direction of rotation, the flash lamp is controlled to be rotated.
The of the first possible implementation and first aspect of implementation, first aspect with reference to first aspect Any one implementation in two kinds of possible implementations, in the third possible implementation of first aspect, Before whether touch control operation occurring on the detection touch-screen, methods described also includes:
Obtain current environment brightness value;
Detect whether the current environment brightness value is less than predetermined luminance threshold value;
If detecting the current environment brightness value is less than the predetermined luminance threshold value, the flash lamp is opened.
With reference to the third possible implementation of first aspect, in the 4th kind of possible implementation of first aspect In, after the unlatching flash lamp, before target touch control operation whether occurs on the detection touch-screen, methods described is also Including:
Obtain current brightness of flash lamp value;
According to default ambient brightness value and the mapping relations of brightness of flash lamp value, the current brightness of flash lamp value is detected Whether matched with the current environment brightness value;
If the detection current brightness of flash lamp value mismatches with the current environment brightness value, input touch-control behaviour is prompted Make.
Second aspect, the embodiment of the invention also discloses a kind of user terminal, including:
First detection unit, whether touch control operation occurs on touch-screen for detecting;
First acquisition unit, the touch control operation occurs on the touch-screen if being detected for first detection unit, The touch parameter of the touch control operation is obtained, the touch parameter includes touch-control pressure value;
Second detection unit, for detecting whether the touch-control pressure value falls into default touch-control range of pressure values;
Second acquisition unit, if detecting the touch-control pressure value for second detection unit falls into default touch-control pressure Force value scope, from default range of pressure values and the mapping relations of brightness value, obtain corresponding to the touch-control range of pressure values Brightness value, wherein, brightness value corresponding to different touch-control range of pressure values is different;
Adjustment unit, for the brightness value of the flash lamp to be adjusted to brightness corresponding to the touch-control range of pressure values Value.
With reference to the user terminal of second aspect, in the first possible user terminal of second aspect, the touch-control ginseng Number also includes target touch-control direction, and the user terminal also includes:
3rd acquiring unit, for from the mapping relations of default range of pressure values and angle, obtaining the touch-control pressure The anglec of rotation corresponding to force value scope;
Determining unit, for from the mapping relations in default touch-control direction and direction of rotation, determining the target touch-control Target direction of rotation corresponding to direction, wherein, angle corresponding to different touch-control range of pressure values is different;
First control unit, for controlling the flash lamp to rotate the anglec of rotation along the target direction of rotation.
The first possible user terminal with reference to second aspect, in second of possible user terminal of second aspect, When the touch parameter includes the touch-control pressure value and the target touch-control direction, the user terminal also includes:
4th acquiring unit, for from the mapping relations of default range of pressure values and speed, obtaining the touch-control pressure Rotary speed corresponding to force value, and from the mapping relations of the touch-control direction and direction of rotation, obtain the target touch-control Target direction of rotation corresponding to direction;
Second control unit, for according to the rotary speed and the target direction of rotation, controlling the flash lamp Rotated.
The first possible user terminal of user terminal, second aspect with reference to second aspect and the of second aspect Any one user terminal in two kinds of possible user terminals, in the third possible user terminal of second aspect, institute Stating user terminal also includes:
5th acquiring unit, for first detection unit detection touch-screen on whether touch control operation occurs before, Obtain current environment brightness value;
3rd detection unit, for detecting whether the current environment brightness value is less than predetermined luminance threshold value;
Opening unit, if detecting the current environment brightness value for the 3rd detection unit is less than the predetermined luminance Threshold value, open the flash lamp.
With reference to the third possible user terminal of second aspect, in the 4th kind of possible user terminal of second aspect In, the user terminal also includes:
6th acquiring unit, after opening flash lamp in the opening unit, the first detection unit detection is touched Touch before target touch control operation whether occurs on screen, obtain current brightness of flash lamp value;
4th detection unit, for the mapping relations according to default ambient brightness value and brightness of flash lamp value, detect institute State whether current brightness of flash lamp value matches with the current environment brightness value;
Tip element, if for the 4th detection unit detection current brightness of flash lamp value and the current environment Brightness value mismatches, and prompts input touch control operation.
In the embodiment of the present invention, after on detection touch-screen touch control operation occurs for user terminal, then touch-control can be obtained The touch parameter of operation, touch parameter include touch-control pressure value;And detect whether touch-control pressure value falls into default touch-control pressure It is worth scope;If so, from default range of pressure values and the mapping relations of brightness value, obtain bright corresponding to touch-control range of pressure values Angle value, wherein, brightness value corresponding to different touch-control range of pressure values is different;Finally the brightness value of flash lamp is adjusted to touch-control Brightness value corresponding to range of pressure values.In embodiments of the present invention, when user needs to adjust the brightness value of flash lamp, without use Family is clicked on brightness regulation button and is adjusted, and user need to only input the i.e. adjustable flash lamp of touch control operation on touch screen.So as to Flash lamp can easily be adjusted.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, it will use below required in embodiment Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the present invention, general for this area For logical technical staff, on the premise of not paying creative work, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic flow sheet of flash adjustment method disclosed in the embodiment of the present invention;
Fig. 2 is the schematic flow sheet of another flash adjustment method disclosed in the embodiment of the present invention;
Fig. 3 is a kind of structural representation of user terminal disclosed in the embodiment of the present invention;
Fig. 4 is the structural representation of another user terminal disclosed in the embodiment of the present invention;
Fig. 5 is the structural representation of another user terminal disclosed in the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is part of the embodiment of the present invention, rather than whole embodiments.Based on this hair Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made Example, belongs to the scope of protection of the invention.
The embodiments of the invention provide a kind of flash adjustment method and user terminal, in embodiments of the present invention, when with When family needs to adjust the brightness value of flash lamp, click on brightness regulation button without user and be adjusted, user only need to be in touch screen The upper i.e. adjustable flash lamp of input touch control operation.So as to easily adjust flash lamp.
Referring to Fig. 1, Fig. 1 is a kind of schematic flow sheet of flash adjustment method disclosed in the embodiment of the present invention.Wherein, Method shown in Fig. 1 can apply to smart mobile phone (such as Android phone, iOS mobile phones), tablet personal computer, palm PC with And mobile internet device (Mobile Internet Devices, MID), PAD etc. are configured with the user terminal of flash lamp. As shown in figure 1, the flash adjustment method may comprise steps of:
Whether touch control operation occurs on S101, detection touch-screen.
In the embodiment of the present invention, touch control operation can be divided into different types of touch-control according to different mode classifications and grasp Make.For example, touch control operation can be divided into by clicking operation and slide according to the length of touch-control time.Wherein, point Hitting operation mainly includes the touch control operation that touch-control duration is less than preset time threshold, and slide then mainly includes touch-control Duration is more than the touch control operation of preset time threshold.The setting of time threshold can be set as needed with user, such as 1 second, 2 seconds, 3 Second etc..Again for example, touch control operation can be divided into according to the touch-control pressure value of touch control operation touch operation and again Touch operation.Wherein, touching operation mainly includes the touch control operation that touch-control pressure value is less than preset pressure threshold value;Operation master is touched again If it is more than the touch control operation of preset pressure threshold value including touch-control pressure value.The setting of pressure threshold can also be user according to need Set, such as 0.1N, 0.2N, 0.3N.
If touch control operation occurs on S102, detection touch-screen, the touch parameter of touch control operation is obtained.
In the embodiment of the present invention, if touch control operation occurs for detection touch-screen, the touch-control ginseng of the touch control operation can be obtained Number.Wherein, the touch parameter is in addition to including touch-control pressure value, can also include the touch control operation trigger position (such as finger with The position of touch-screen contact), touch-control duration, touch-control direction, at least one of touch trajectory etc., the embodiment of the present invention does not limit It is fixed.
Whether S103, detection touch-control pressure value fall into default touch-control range of pressure values.
, can preset touch range of pressure values in the user terminal in the embodiment of the present invention.Wherein, the touch-control pressure value model At least one subclass can be included by enclosing, that is, it is small to include pressure value difference in the big touch-control range of pressure values of pressure value difference Touch-control range of pressure values.For example, when the big touch-control range of pressure values of pressure value difference is 0.1N to 1N, then its pressure value difference is 0.9N;Then the touch-control range of pressure values can be divided into multiple subclass, if 0.1N to 0.3N is the first subclass, 0.3N is extremely 0.8N closes for yield in the second subset, and 0.8N to 1N is the 3rd subclass.
In the embodiment of the present invention, the setting of touch-control range of pressure values can be that user is set as needed, can also It is that user terminal is set according to the history of user setting record, can also be that user terminal inputs touch control operation according to user When the average value of touch-control pressure value set.
In the embodiment of the present invention, the average value of the touch-control pressure value when user terminal inputs touch control operation according to user enters During row setting touch pressure limit, it may comprise steps of:
11) the touch-control pressure value of the touch control operation each time in preset time period stored in user terminal is obtained;
12) average value of the touch-control pressure value in above-mentioned preset time period is determined;
13) touch-control pressure limit is set to the scope to match with above-mentioned average value according to default setting rule.
For example, the touch-control pressure value of the touch control operation inputted as user in one day be 0.2N, 0.3N, 0.5N and 0.2N, then the average value of its corresponding touch-control pressure value is 0.3N, then (0.3+n) N or (0.3-n) N can be arranged into touch-control Pressure limit, wherein, n is the natural number more than 0.
S104, if so, from default range of pressure values and the mapping relations of brightness value, obtain touch-control range of pressure values pair The brightness value answered.
In the embodiment of the present invention, can in the user terminal with preset pressure value scope and the mapping relations of brightness value.Its In, the mapping relations are mainly used for describing the corresponding relation of range of pressure values and brightness value, that is, different range of pressure values Corresponding to different brightness values.
In the embodiment of the present invention, the mapping relations of default range of pressure values and brightness value can be that user enters as needed Row setting or user terminal set record according to the history of user and set;The present invention is not construed as limiting.
, can be from pre- if detection touch-control pressure value when falling into default touch-control range of pressure values in the embodiment of the present invention If range of pressure values and brightness value mapping relations in, obtain touch-control range of pressure values corresponding to brightness value, wherein, it is different Brightness value corresponding to touch-control range of pressure values is different.
S105, the brightness value of flash lamp adjusted to brightness value corresponding to touch-control range of pressure values.
In the embodiment of the present invention, when in the mapping relations from default range of pressure values and brightness value, touch-control pressure is obtained It is worth after brightness value corresponding to scope, then the brightness value of flash lamp can be adjusted to brightness corresponding to touch-control range of pressure values Value.
In Fig. 1, after on detection touch-screen touch control operation occurs for user terminal, then touching for touch control operation can be obtained Parameter is controlled, touch parameter includes touch-control pressure value;And detect whether touch-control pressure value falls into default touch-control range of pressure values;If It is from default range of pressure values and the mapping relations of brightness value, to obtain brightness value corresponding to touch-control range of pressure values, its In, brightness value corresponding to different touch-control range of pressure values is different;Finally the brightness value of flash lamp is adjusted to touch-control pressure value Brightness value corresponding to scope.In embodiments of the present invention, when user needs to adjust the brightness value of flash lamp, clicked on without user Brightness regulation button is adjusted, and user need to only input the i.e. adjustable flash lamp of touch control operation on touch screen.So as to just Flash lamp is adjusted promptly.
Referring to Fig. 2, Fig. 2 is the schematic flow sheet of another flash adjustment method disclosed in the embodiment of the present invention, such as Shown in Fig. 2, the flash adjustment method may comprise steps of:
S201, obtain current environment brightness value.
In the embodiment of the present invention, before whether touch control operation occurring on detection touch-screen, the shape of flash lamp should be also detected Whether state is in opening.Wherein, the mode for opening flash lamp can be that user is opened by inputting touch command, Can be that user terminal determines the need for opening according to current environment brightness value.For example, current environment brightness value ratio When higher, may then shooting effect be caused to be deteriorated when opening flash lamp.Therefore, when ambient brightness value is higher, do not automatically turn on Flash lamp.
Whether S202, detection current environment brightness value are less than predetermined luminance threshold value.
, can predetermined luminance threshold value in the user terminal in the embodiment of the present invention.Wherein, the setting of the luminance threshold can be with It is that user is set as needed or user terminal sets record according to the history of user and set, can be with It is the optimal luminance threshold that user terminal is got from large database concept.
In the embodiment of the present invention, after current environment brightness value is obtained, then whether current environment brightness value can be detected Less than predetermined luminance threshold value.
If S203, detection current environment brightness value are less than predetermined luminance threshold value, flash lamp is opened.
In the embodiment of the present invention, if detection current environment brightness value is less than predetermined luminance threshold value, illustrate current environment brightness Value, then can be by the shooting quality of opening flash lamp to improve under low light environment than relatively low.
In the embodiment of the present invention, after flash lamp is opened, perform target touch-control whether occurs on step detection touch-screen Before operation, it can also comprise the following steps:
21) current brightness of flash lamp value is obtained;
22) according to default ambient brightness value and the mapping relations of brightness of flash lamp value, current brightness of flash lamp value is detected Whether matched with current environment brightness value;
If 23) detect current brightness of flash lamp value to mismatch with current environment brightness value, input touch control operation is prompted.
In the embodiment of the present invention, the mapping that can preset ambient brightness value and brightness of flash lamp value in the user terminal is closed System.Wherein, the mapping relations are mainly used in describing the corresponding relation of ambient brightness value and brightness of flash lamp value.It is that is, different The brightness value of flash lamp corresponding to ambient brightness value differs.
In the embodiment of the present invention, the mapping relations of ambient brightness value and brightness of flash lamp value can be that user enters as needed Row setting or user terminal set record according to the history of user and set;The present invention is not construed as limiting.
, then can be according to default ambient brightness value and flash lamp after flash lamp is opened in the embodiment of the present invention The mapping relations of brightness value, detect whether current brightness of flash lamp value matches with current environment brightness value;If matching, without again Adjust the brightness value of flash lamp.If mismatching, can prompt to input touch control operation.
Whether touch control operation occurs on S204, detection touch-screen.
If touch control operation occurs on S205, detection touch-screen, the touch parameter of touch control operation is obtained.
In the embodiment of the present invention, touch parameter can also include the triggering of the touch control operation in addition to including touch-control pressure value At least one of position (position that such as finger contacts with touch-screen), touch-control duration, touch-control direction, touch trajectory, this hair Bright embodiment is not construed as limiting.
If S206, detection touch-control pressure value fall into default touch-control range of pressure values, from default range of pressure values with it is bright In the mapping relations of angle value, brightness value corresponding to touch-control range of pressure values is obtained.
In the embodiment of the present invention, brightness value corresponding to different touch-control range of pressure values is different.When detection touch-control pressure value Default touch-control range of pressure values is fallen into, from default range of pressure values and the mapping relations of brightness value, obtains touch-control pressure It is worth brightness value corresponding to scope.
S207, the brightness value of flash lamp adjusted to brightness value corresponding to touch-control range of pressure values.
, then can be by flash lamp after brightness value corresponding to touch-control range of pressure values is got in the embodiment of the present invention Brightness value is adjusted to brightness value corresponding with touch-control range of pressure values.
As an alternative embodiment, after the brightness value of regulation flash lamp, camera can also be controlled to rotate, So that flash lamp can be glistened using reference object as with reference to center.Wherein, flash lamp rotation is controlled to include following Step:
31) from the mapping relations of default range of pressure values and angle, obtain and rotated corresponding to touch-control range of pressure values Angle, and from the mapping relations of default touch-control direction and direction of rotation, determine that target corresponding to target touch-control direction is revolved Turn direction, wherein, angle corresponding to different touch-control range of pressure values is different;
32) flash lamp is controlled to rotate the above-mentioned anglec of rotation along target direction of rotation.
In the embodiment of the present invention, can mapping relations of preset pressure value scope and angle in the user terminal, wherein, should The mapping relations of range of pressure values and angle are mainly used in describing the mapping relations of range of pressure values and angle.It is that is, different Angle differs corresponding to range of pressure values.For example, when 0.1N to 0.3N is first pressure value scope, 0.3N to 0.8N is Second pressure value scope, 0.8N to 1N are the 3rd range of pressure values, wherein, 0.1N to 0.3N is corresponding to first pressure value scope Angle be 5 degree, 0.3N to 0.8N be second pressure value scope corresponding to angle be 10 degree, 0.8N to 1N is the 3rd range of pressure values Corresponding angle is 15 degree.
In the embodiment of the present invention, the mapping relations of range of pressure values and angle can be that user is set as needed, Can also be that user terminal is set according to the history of user setting record;The present invention is not construed as limiting.
, can also mapping relations of preset touch direction and direction of rotation in the user terminal in the embodiment of the present invention.Its In, the mapping relations of touch-control direction and direction of rotation are mainly used in describing the corresponding relation of touch-control direction and direction of rotation, that is, Direction of rotation corresponding to different touch-control directions is different.For example, when touch-control direction is first direction, then revolved corresponding to it Turn direction and be alternatively first direction;When touch-control direction is second direction, its corresponding direction of rotation is second direction.Wherein, First direction and second direction are relative direction.
In the embodiment of the present invention, the mapping relations in default touch-control direction and direction of rotation can be that user enters as needed Row setting or user terminal set record according to the history of user and set;The present invention is not construed as limiting.
In the embodiment of the present invention, when in the mapping relations from default range of pressure values and angle, touch-control pressure value is obtained The anglec of rotation corresponding to scope, and from the mapping relations of default touch-control direction and direction of rotation, determine target touch-control side To after corresponding target direction of rotation, then flash lamp can be controlled to rotate the above-mentioned anglec of rotation along target direction of rotation.Lift For example, when in the mapping relations from default range of pressure values and angle, the anglec of rotation corresponding to touch-control range of pressure values is obtained Spend for 10 degree, from the mapping relations of default touch-control direction and direction of rotation, determine that target corresponding to target touch-control direction is revolved It is first direction to turn direction, then flash lamp can be controlled to rotate 10 degree along a first direction.
As another optional embodiment, after the brightness value of regulation flash lamp, camera can also be controlled to revolve Turn, so that flash lamp can be glistened using reference object as with reference to center.Wherein, flash lamp rotation is controlled to include Following steps:
41) from the mapping relations of default range of pressure values and speed, rotary speed corresponding to touch-control pressure value is obtained, And from the mapping relations of touch-control direction and direction of rotation, obtain target direction of rotation corresponding to target touch-control direction;
42) rotated according to rotary speed and target direction of rotation, control flash lamp.
, can mapping relations of preset pressure value scope and speed in the user terminal in the embodiment of the present invention.Wherein, press The mapping relations of force value scope and speed are mainly used in describing the mapping relations of range of pressure values and speed, that is, different pressures Speed corresponding to force value scope is different.For example, when 0.1N to 0.3N is first pressure value scope, 0.3N to 0.8N is second Range of pressure values, 0.8N to 1N are the 3rd range of pressure values, wherein, 0.1N to 0.3N is speed corresponding to first pressure value scope For 0.01m s, 0.3N to 0.8N be second pressure value scope corresponding to speed be 0.02m s, 0.8N to 1N is the 3rd pressure value Speed corresponding to scope be 0.03m s.
, can also mapping relations of preset touch direction and direction of rotation in the user terminal in the embodiment of the present invention.Its In, the mapping relations of touch-control direction and direction of rotation are mainly used in describing the corresponding relation of touch-control direction and direction of rotation, that is, Direction of rotation corresponding to different touch-control directions is different.For example, when touch-control direction is first direction, then revolved corresponding to it Turn direction and be alternatively first direction;When touch-control direction is second direction, its corresponding direction of rotation is second direction.Wherein, First direction and second direction are relative direction.
In the embodiment of the present invention, when in the mapping relations from default range of pressure values and speed, touch-control pressure value is obtained Corresponding rotary speed, and from the mapping relations of touch-control direction and direction of rotation, obtain mesh corresponding to target touch-control direction After mark direction of rotation;Then according to rotary speed and target direction of rotation flash lamp can be controlled to be rotated.Citing comes Say, when in the mapping relations from default range of pressure values and speed, obtain rotary speed 0.02m corresponding to touch-control pressure value S, when in the mapping relations from default touch-control direction and direction of rotation, determining target direction of rotation corresponding to target touch-control direction For first direction, then can control flash lamp with 0.02m s rotary speed rotated to first direction.
In fig. 2, it is described in detail after the brightness value of flash lamp is adjusted, flash lamp can also be controlled to be revolved Turn, so as to further increase the flexibility of terminal.In embodiments of the present invention, when user needs to adjust the brightness of flash lamp When value and control flash lamp are rotated, click on fixed button without user and be adjusted, user only need to be defeated on touch screen Entering touch control operation can be controlled.So as to add the convenience of user terminal.
Referring to Fig. 3, Fig. 3 is a kind of structural representation of user terminal disclosed in the embodiment of the present invention, for execution State flash adjustment method.Wherein, the user terminal shown in Fig. 3 can include but is not limited to smart mobile phone (such as Android hands Machine, iOS mobile phones etc.), tablet personal computer, palm PC and mobile internet device (Mobile Internet Devices, MID), PAD etc. is configured with the user terminal of flash lamp.As shown in figure 3, the user terminal can include:First detection unit 301st, first acquisition unit 302, the second detection unit 303, second acquisition unit 304 and adjustment unit 305, wherein,
First detection unit 301, whether touch control operation occurs on touch-screen for detecting.
In the embodiment of the present invention, touch control operation can be divided into different types of touch-control according to different mode classifications and grasp Make.For example, touch control operation can be divided into by clicking operation and slide according to the length of touch-control time.Wherein, point Hitting operation mainly includes the touch control operation that touch-control duration is less than preset time threshold, and slide then mainly includes touch-control Duration is more than the touch control operation of preset time threshold.The setting of time threshold can be set as needed with user, such as 1 second, 2 seconds, 3 Second etc..Again for example, touch control operation can be divided into according to the touch-control pressure value of touch control operation touch operation and again Touch operation.Wherein, touching operation mainly includes the touch control operation that touch-control pressure value is less than preset pressure threshold value;Operation master is touched again If it is more than the touch control operation of preset pressure threshold value including touch-control pressure value.The setting of pressure threshold can also be user according to need Set, such as 0.1N, 0.2N, 0.3N.
First acquisition unit 302, if touch control operation occurs on the first detection unit 301 detection touch-screen, obtain and touch The touch parameter of operation is controlled, touch parameter includes touch-control pressure value.
In the embodiment of the present invention, if touch control operation occurs for detection touch-screen, the touch-control ginseng of the touch control operation can be obtained Number.Wherein, the touch parameter is in addition to including touch-control pressure value, can also include the touch control operation trigger position (such as finger with The position of touch-screen contact), touch-control duration, touch-control direction, at least one of touch trajectory etc., the embodiment of the present invention does not limit It is fixed.
Second detection unit 303, for detecting whether touch-control pressure value falls into default touch-control range of pressure values.
, can preset touch range of pressure values in the user terminal in the embodiment of the present invention.Wherein, the touch-control pressure value model At least one subclass can be included by enclosing, that is, it is small to include pressure value difference in the big touch-control range of pressure values of pressure value difference Touch-control range of pressure values.For example, when the big touch-control range of pressure values of pressure value difference is 0.1N to 1N, then its pressure value difference is 0.9N;Then the touch-control range of pressure values can be divided into multiple subclass, if 0.1N to 0.3N is the first subclass, 0.3N is extremely 0.8N closes for yield in the second subset, and 0.8N to 1N is the 3rd subclass.
In the embodiment of the present invention, the setting of touch-control range of pressure values can be that user is set as needed, can also It is that user terminal is set according to the history of user setting record, can also be that user terminal inputs touch control operation according to user When the average value of touch-control pressure value set.
In the embodiment of the present invention, the average value of the touch-control pressure value when user terminal inputs touch control operation according to user enters During row setting touch pressure limit, it may comprise steps of:
11) the touch-control pressure value of the touch control operation each time in preset time period stored in user terminal is obtained;
12) average value of the touch-control pressure value in above-mentioned preset time period is determined;
13) touch-control pressure limit is set to the scope to match with above-mentioned average value according to default setting rule.
For example, the touch-control pressure value of the touch control operation inputted as user in one day be 0.2N, 0.3N, 0.5N and 0.2N, then the average value of its corresponding touch-control pressure value is 0.3N, then (0.3+n) N or (0.3-n) N can be arranged into touch-control Pressure limit, wherein, n is the natural number more than 0.
Second acquisition unit 304, if falling into default touch-control pressure for the second detection unit 303 detection touch-control pressure value It is worth scope, from default range of pressure values and the mapping relations of brightness value, obtains brightness value corresponding to touch-control range of pressure values, Wherein, brightness value corresponding to different touch-control range of pressure values is different.
Adjustment unit 305, for the brightness value of flash lamp to be adjusted to brightness value corresponding to touch-control range of pressure values.
In the embodiment of the present invention, can in the user terminal with preset pressure value scope and the mapping relations of brightness value.Its In, the mapping relations are mainly used for describing the corresponding relation of range of pressure values and brightness value, that is, different range of pressure values Corresponding to different brightness values.
In the embodiment of the present invention, the mapping relations of default range of pressure values and brightness value can be that user enters as needed Row setting or user terminal set record according to the history of user and set;The present invention is not construed as limiting.
In the embodiment of the present invention, if the second detection unit 303 detection touch-control pressure value falls into default touch-control pressure value model When enclosing, then second acquisition unit 304 can obtain touch-control pressure from default range of pressure values and the mapping relations of brightness value It is worth brightness value corresponding to scope, wherein, brightness value corresponding to different touch-control range of pressure values is different.
In the embodiment of the present invention, when second acquisition unit 304 is from default range of pressure values and the mapping relations of brightness value In, obtain corresponding to touch-control range of pressure values after brightness value, then adjustment unit 305 brightness value of flash lamp can be adjusted to Brightness value corresponding to touch-control range of pressure values.
In figure 3, detected in the first detection unit 301 on touch-screen after generation touch control operation, then first acquisition unit 302 can obtain the touch parameter of touch control operation, and touch parameter includes touch-control pressure value;Second detection unit 303 simultaneously detects tactile Whether pressure control force value falls into default touch-control range of pressure values;If so, second acquisition unit 304 from default range of pressure values with In the mapping relations of brightness value, brightness value corresponding to touch-control range of pressure values is obtained, wherein, different touch-control range of pressure values pair The brightness value answered is different;Last adjustment unit 305 adjusts the brightness value of flash lamp to brightness corresponding to touch-control range of pressure values Value.In embodiments of the present invention, when user needs to adjust the brightness value of flash lamp, click on brightness regulation button without user and enter Row regulation, user need to only input the i.e. adjustable flash lamp of touch control operation on touch screen.So as to easily adjust flash lamp.
Referring to Fig. 4, Fig. 4 is the structural representation of another user terminal disclosed in the embodiment of the present invention, for performing Above-mentioned flash adjustment method.Wherein, Fig. 4 is that further refinement obtains on the basis of Fig. 3, except including all shown in Fig. 3 Outside unit, it can also include:5th acquiring unit 306, the 3rd detection unit 307, opening unit 308, the 6th acquiring unit 309th, the 4th detection unit 310, Tip element 311, the 4th acquiring unit 312, the second control unit 313, the 3rd acquiring unit 314th, the control unit 316 of determining unit 315 and first, wherein,
5th acquiring unit 306, for the first detection unit 301 detection touch-screen on whether occur touch control operation it Before, obtain current environment brightness value.
3rd detection unit 307, for detecting whether current environment brightness value is less than predetermined luminance threshold value.
Opening unit 308, if being less than predetermined luminance threshold value for the 3rd detection unit 307 detection current environment brightness value, Open flash lamp.
In the embodiment of the present invention, before whether touch control operation occurring on the first detection unit 301 detection touch-screen, should also Whether the state of detection flash lamp is in opening.Wherein, the mode for opening flash lamp can be user by inputting touch-control Instruction is opened or user terminal determines the need for opening according to current environment brightness value.For example, when When preceding ambient brightness value is higher, may then shooting effect be caused to be deteriorated when opening flash lamp.Therefore, it is higher in ambient brightness value When, do not automatically turn on flash lamp.
, can predetermined luminance threshold value in the user terminal in the embodiment of the present invention.Wherein, the setting of the luminance threshold can be with It is that user is set as needed or user terminal sets record according to the history of user and set, can be with It is the optimal luminance threshold that user terminal is got from large database concept.
In the embodiment of the present invention, after the 5th acquiring unit 306 obtains current environment brightness value, then opening unit 308 It can detect whether current environment brightness value is less than predetermined luminance threshold value.
In the embodiment of the present invention, if the 3rd detection unit 307 detection current environment brightness value is less than predetermined luminance threshold value, say Bright current environment brightness value is than relatively low, then opening unit 308 can be by the shooting of opening flash lamp to improve under low light environment Quality.
6th acquiring unit 309, after opening flash lamp in opening unit 308, the detection of the first detection unit 301 is touched Touch before target touch control operation whether occurs on screen, obtain current brightness of flash lamp value.
4th detection unit 310, for the mapping relations according to default ambient brightness value and brightness of flash lamp value, detection Whether current brightness of flash lamp value matches with current environment brightness value.
Tip element 311, if detecting current brightness of flash lamp value and current environment brightness value for the 4th detection unit 310 Mismatch, prompt input touch control operation.
In the embodiment of the present invention, the mapping that can preset ambient brightness value and brightness of flash lamp value in the user terminal is closed System.Wherein, the mapping relations are mainly used in describing the corresponding relation of ambient brightness value and brightness of flash lamp value.It is that is, different The brightness value of flash lamp corresponding to ambient brightness value differs.
In the embodiment of the present invention, the mapping relations of ambient brightness value and brightness of flash lamp value can be that user enters as needed Row setting or user terminal set record according to the history of user and set;The present invention is not construed as limiting.
In the embodiment of the present invention, after opening unit 308 opens flash lamp, then the 4th detection unit 310 can root According to default ambient brightness value and the mapping relations of brightness of flash lamp value, current brightness of flash lamp value and current environment brightness are detected Whether value matches;If matching, without adjusting the brightness value of flash lamp again.If mismatching, Tip element 311 can prompt defeated Enter touch control operation.
4th acquiring unit 312, for from the mapping relations of default range of pressure values and speed, obtaining touch-control pressure Rotary speed corresponding to value, and from the mapping relations of touch-control direction and direction of rotation, obtain corresponding to target touch-control direction Target direction of rotation.
Second control unit 313, for being rotated according to rotary speed and target direction of rotation, control flash lamp.
, can mapping relations of preset pressure value scope and speed in the user terminal in the embodiment of the present invention.Wherein, press The mapping relations of force value scope and speed are mainly used in describing the mapping relations of range of pressure values and speed, that is, different pressures Speed corresponding to force value scope is different.For example, when 0.1N to 0.3N is first pressure value scope, 0.3N to 0.8N is second Range of pressure values, 0.8N to 1N are the 3rd range of pressure values, wherein, 0.1N to 0.3N is speed corresponding to first pressure value scope For 0.01m s, 0.3N to 0.8N be second pressure value scope corresponding to speed be 0.02m s, 0.8N to 1N is the 3rd pressure value Speed corresponding to scope be 0.03m s.
, can also mapping relations of preset touch direction and direction of rotation in the user terminal in the embodiment of the present invention.Its In, the mapping relations of touch-control direction and direction of rotation are mainly used in describing the corresponding relation of touch-control direction and direction of rotation, that is, Direction of rotation corresponding to different touch-control directions is different.For example, when touch-control direction is first direction, then revolved corresponding to it Turn direction and be alternatively first direction;When touch-control direction is second direction, its corresponding direction of rotation is second direction.Wherein, First direction and second direction are relative direction.
In the embodiment of the present invention, when in the mapping relations from default range of pressure values and speed, touch-control pressure value is obtained Corresponding rotary speed, and from the mapping relations of touch-control direction and direction of rotation, obtain mesh corresponding to target touch-control direction After mark direction of rotation;Then according to rotary speed and target direction of rotation flash lamp can be controlled to be rotated.Citing comes Say, when in the mapping relations from default range of pressure values and speed, obtain rotary speed 0.02m corresponding to touch-control pressure value S, when in the mapping relations from default touch-control direction and direction of rotation, determining target direction of rotation corresponding to target touch-control direction For first direction, then can control flash lamp with 0.02m s rotary speed rotated to first direction.
3rd acquiring unit 314, for from the mapping relations of default range of pressure values and angle, obtaining touch-control pressure It is worth the anglec of rotation corresponding to scope;
Determining unit 315, for from the mapping relations in default touch-control direction and direction of rotation, determining target touch-control side To corresponding target direction of rotation, wherein, angle corresponding to different touch-control range of pressure values is different.
First control unit 316, for controlling flash lamp to rotate the above-mentioned anglec of rotation along target direction of rotation.
In the embodiment of the present invention, can mapping relations of preset pressure value scope and angle in the user terminal, wherein, should The mapping relations of range of pressure values and angle are mainly used in describing the mapping relations of range of pressure values and angle.It is that is, different Angle differs corresponding to range of pressure values.For example, when 0.1N to 0.3N is first pressure value scope, 0.3N to 0.8N is Second pressure value scope, 0.8N to 1N are the 3rd range of pressure values, wherein, 0.1N to 0.3N is corresponding to first pressure value scope Angle be 5 degree, 0.3N to 0.8N be second pressure value scope corresponding to angle be 10 degree, 0.8N to 1N is the 3rd range of pressure values Corresponding angle is 15 degree.
In the embodiment of the present invention, the mapping relations of range of pressure values and angle can be that user is set as needed, Can also be that user terminal is set according to the history of user setting record;The present invention is not construed as limiting.
, can also mapping relations of preset touch direction and direction of rotation in the user terminal in the embodiment of the present invention.Its In, the mapping relations of touch-control direction and direction of rotation are mainly used in describing the corresponding relation of touch-control direction and direction of rotation, that is, Direction of rotation corresponding to different touch-control directions is different.For example, when touch-control direction is first direction, then revolved corresponding to it Turn direction and be alternatively first direction;When touch-control direction is second direction, its corresponding direction of rotation is second direction.Wherein, First direction and second direction are relative direction.
In the embodiment of the present invention, the mapping relations in default touch-control direction and direction of rotation can be that user enters as needed Row setting or user terminal set record according to the history of user and set;The present invention is not construed as limiting.
In the embodiment of the present invention, when the 3rd acquiring unit 314 is from the mapping relations of default range of pressure values and angle, Obtain the anglec of rotation corresponding to touch-control range of pressure values, and determining unit 315 is from default touch-control direction and direction of rotation In mapping relations, after determining target direction of rotation corresponding to target touch-control direction, then the first control unit 316 can control sudden strain of a muscle Light lamp rotates the above-mentioned anglec of rotation along target direction of rotation.For example, when the 3rd acquiring unit 314 is from default pressure value In the mapping relations of scope and angle, it is 10 degree to obtain the anglec of rotation corresponding to touch-control range of pressure values, and determining unit 315 is from pre- If touch-control direction and direction of rotation mapping relations in, it is first party to determine target direction of rotation corresponding to target touch-control direction To then the first control unit 316 can control flash lamp to rotate 10 degree along a first direction.
In Fig. 4, it is described in detail after the brightness value of flash lamp is adjusted, flash lamp can also be controlled to be revolved Turn, so as to further increase the flexibility of terminal.In embodiments of the present invention, when user needs to adjust the brightness of flash lamp When value and control flash lamp are rotated, click on fixed button without user and be adjusted, user only need to be defeated on touch screen Entering touch control operation can be controlled.So as to add the convenience of user terminal.
Referring to Fig. 5, Fig. 5 is the structural representation of another user terminal disclosed in the embodiment of the present invention, for performing Above-mentioned flash adjustment method.As shown in figure 5, the user terminal 500 can include:At least one processor 501, it is at least one Pressure sensor 502, at least one user interface 503, the grade component of memory 504.Wherein, these components pass through one or more Bus 505 is communicatively coupled.It will be understood by those skilled in the art that the structure of the user terminal shown in Fig. 5 is not formed Restriction to the embodiment of the present invention, it both can be busbar network or hub-and-spoke configuration, can also include than illustrating more More or less parts, either combine some parts or different parts arrangement.Wherein:
Processor 501 is the control centre of user terminal, utilizes each of various interfaces and the whole user terminal of connection Individual part, by running or performing the program and/or module that are stored in memory 504, and call and be stored in memory 504 Interior data, to perform the various functions of user terminal and processing data.Processor 501 can be by integrated circuit (Integrated Circuit, abbreviation IC) is formed, such as can be made up of the IC of single encapsulation, can also be by more of connection The encapsulation IC of identical function or difference in functionality and form.For example, processor 501 can only include central processing unit (Central Processing Unit, abbreviation CPU) or CPU, digital signal processor (digital signal Processor, abbreviation DSP), graphics processor (Graphic Processing Unit, abbreviation GPU) and various control chips Combination.In embodiments of the present invention, CPU can be single arithmetic core, can also include multioperation core.
Pressure sensor 502 is used for the pressure value for obtaining the contact action for user terminal screen.
User interface 503 can include display screen (Display), keyboard (Keyboard) etc., wherein, the embodiment of the present invention Middle display screen is touch-screen, for facilitating user to be interacted by contact action and user terminal.
Memory 504 can be used for storage software program and module, processor 501, pressure sensor 502 and user to connect Mouth 503, should so as to perform the various functions of user terminal by calling the software program and module that are stored in memory 504 With and realize data processing.Memory 504 mainly includes program storage area and data storage area, wherein, program storage area can Application program needed for storage program area, at least one function etc.;Data storage area can store the use according to user terminal Data created etc..In embodiments of the present invention, operating system can be android system, iOS system or Windows behaviour Make system etc..
Specifically, processor 501 calls the application program being stored in memory 504, for performing following operation:
Whether touch control operation occurs on detection touch-screen;
If touch control operation occurs on detection touch-screen, the touch parameter of touch control operation is obtained, touch parameter includes touch-control pressure Force value;
Whether detection touch-control pressure value falls into default touch-control range of pressure values;
If so, from default range of pressure values and the mapping relations of brightness value, obtain corresponding to touch-control range of pressure values Brightness value, wherein, brightness value corresponding to different touch-control range of pressure values is different;
The brightness value of flash lamp is adjusted to brightness value corresponding to touch-control range of pressure values.
In the embodiment of the present invention, processor 501 calls the application program being stored in memory 504, and touch parameter also wraps Target touch-control direction is included, for performing following operation:
From the mapping relations of default range of pressure values and angle, the anglec of rotation corresponding to touch-control range of pressure values is obtained Degree, and from the mapping relations of default touch-control direction and direction of rotation, determine that target corresponding to target touch-control direction rotates Direction, wherein, angle corresponding to different touch-control range of pressure values is different;
Flash lamp is controlled to rotate the above-mentioned anglec of rotation along target direction of rotation.
In the embodiment of the present invention, processor 501 calls the application program being stored in memory 504, when touch parameter bag When including touch-control pressure value and target touch-control direction, following steps are can also carry out:
From the mapping relations of default range of pressure values and speed, rotary speed corresponding to touch-control pressure value is obtained, with And from the mapping relations of touch-control direction and direction of rotation, obtain target direction of rotation corresponding to target touch-control direction;
According to rotary speed and target direction of rotation, control flash lamp is rotated.
In the embodiment of the present invention, processor 501 calls the application program being stored in memory 504, is performing step inspection Survey on touch-screen before whether touch control operation occurring, can also comprise the following steps:
Obtain current environment brightness value;
Whether detection current environment brightness value is less than predetermined luminance threshold value;
If detection current environment brightness value is less than predetermined luminance threshold value, flash lamp is opened.
In the embodiment of the present invention, processor 501 calls the application program being stored in memory 504, performs step and opens After flash lamp, before target touch control operation whether occurs on step detection touch-screen, it can also comprise the following steps:
Obtain current brightness of flash lamp value;
According to default ambient brightness value and the mapping relations of brightness of flash lamp value, current brightness of flash lamp value is detected with working as Whether preceding ambient brightness value matches;
If detecting current brightness of flash lamp value to mismatch with current environment brightness value, input touch control operation is prompted.
Specifically, the terminal introduced in the embodiment of the present invention can implement the flash lamp that the present invention combines Fig. 1, Fig. 2 introduction Part or all of flow in adjusting method embodiment.
Module or submodule in all embodiments of the invention, universal integrated circuit, such as CPU (Central can be passed through Processing Unit, central processing unit), or pass through ASIC (Application Specific Integrated Circuit, application specific integrated circuit) realize.
Step in present invention method can be sequentially adjusted, merged and deleted according to actual needs.
Unit in terminal of the embodiment of the present invention can be combined, divided and deleted according to actual needs.
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with The hardware of correlation is instructed to complete by computer program, described program can be stored in a computer read/write memory medium In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, abbreviation RAM) etc..
Above disclosure is only preferred embodiment of present invention, can not limit the right model of the present invention with this certainly Enclose, therefore the equivalent variations made according to the claims in the present invention, still belong to the scope that the present invention is covered.

Claims (8)

  1. A kind of 1. flash adjustment method, it is characterised in that including:
    Whether touch control operation occurs on detection touch-screen;
    The touch control operation occurs on the touch-screen if detecting, obtains the touch parameter of the touch control operation, the touch-control ginseng Number includes touch-control pressure value;
    Detect whether the touch-control pressure value falls into default touch-control range of pressure values;
    If so, from default range of pressure values and the mapping relations of brightness value, obtain corresponding to the touch-control range of pressure values Brightness value, wherein, brightness value corresponding to different touch-control range of pressure values is different;
    The brightness value of the flash lamp is adjusted to brightness value corresponding to the touch-control range of pressure values;
    Wherein, the touch parameter also includes target touch-control direction, and methods described also includes:
    From the mapping relations of default range of pressure values and angle, the anglec of rotation corresponding to the touch-control range of pressure values is obtained Degree, and from the mapping relations of default touch-control direction and direction of rotation, determine target corresponding to the target touch-control direction Direction of rotation, wherein, angle corresponding to different touch-control range of pressure values is different;
    The flash lamp is controlled to rotate the anglec of rotation along the target direction of rotation.
  2. 2. according to the method for claim 1, it is characterised in that when the touch parameter include the touch-control pressure value and During the target touch-control direction, methods described also includes:
    From the mapping relations of default range of pressure values and speed, rotary speed corresponding to the touch-control pressure value is obtained, with And from the mapping relations of default touch-control direction and direction of rotation, obtain target rotation side corresponding to the target touch-control direction To;
    According to the rotary speed and the target direction of rotation, the flash lamp is controlled to be rotated.
  3. 3. the method according to any one in claim 1~2, it is characterised in that whether sent out on the detection touch-screen Before raw touch control operation, methods described also includes:
    Obtain current environment brightness value;
    Detect whether the current environment brightness value is less than predetermined luminance threshold value;
    If detecting the current environment brightness value is less than the predetermined luminance threshold value, the flash lamp is opened.
  4. 4. according to the method for claim 3, it is characterised in that after the unlatching flash lamp, the detection touches Before target touch control operation whether occurs on screen, methods described also includes:
    Obtain current brightness of flash lamp value;
    According to default ambient brightness value and the mapping relations of brightness of flash lamp value, the current brightness of flash lamp value and institute are detected State whether current environment brightness value matches;
    If the detection current brightness of flash lamp value mismatches with the current environment brightness value, input touch control operation is prompted.
  5. A kind of 5. user terminal, it is characterised in that including:
    First detection unit, whether touch control operation occurs on touch-screen for detecting;
    First acquisition unit, the touch control operation occurs on the touch-screen if being detected for first detection unit, obtains The touch parameter of the touch control operation, the touch parameter include touch-control pressure value;
    Second detection unit, for detecting whether the touch-control pressure value falls into default touch-control range of pressure values;
    Second acquisition unit, if detecting the touch-control pressure value for second detection unit falls into default touch-control pressure value Scope, from default range of pressure values and the mapping relations of brightness value, obtain brightness corresponding to the touch-control range of pressure values Value, wherein, brightness value corresponding to different touch-control range of pressure values is different;
    Adjustment unit, for the brightness value of flash lamp to be adjusted to brightness value corresponding to the touch-control range of pressure values;
    Wherein, the touch parameter also includes target touch-control direction, and the user terminal also includes:
    3rd acquiring unit, for from the mapping relations of default range of pressure values and angle, obtaining the touch-control pressure value The anglec of rotation corresponding to scope;
    Determining unit, for from the mapping relations in default touch-control direction and direction of rotation, determining the target touch-control direction Corresponding target direction of rotation, wherein, angle corresponding to different touch-control range of pressure values is different;
    First control unit, for controlling the flash lamp to rotate the anglec of rotation along the target direction of rotation.
  6. 6. user terminal according to claim 5, it is characterised in that when the touch parameter includes the touch-control pressure value And during the target touch-control direction, the user terminal also includes:
    4th acquiring unit, for from the mapping relations of default range of pressure values and speed, obtaining the touch-control pressure value Corresponding rotary speed, and from the mapping relations of touch-control direction and direction of rotation, it is corresponding to obtain the target touch-control direction Target direction of rotation;
    Second control unit, for according to the rotary speed and the target direction of rotation, controlling the flash lamp to carry out Rotation.
  7. 7. the user terminal according to any one in claim 5~6, it is characterised in that the user terminal also includes:
    5th acquiring unit, for before whether touch control operation occurring on first detection unit detection touch-screen, obtaining Current environment brightness value;
    3rd detection unit, for detecting whether the current environment brightness value is less than predetermined luminance threshold value;
    Opening unit, if detecting the current environment brightness value for the 3rd detection unit is less than the predetermined luminance threshold Value, opens the flash lamp.
  8. 8. user terminal according to claim 7, it is characterised in that the user terminal also includes:
    6th acquiring unit, after opening flash lamp in the opening unit, first detection unit detects touch-screen On target touch control operation whether occurs before, obtain current brightness of flash lamp value;
    4th detection unit, for the mapping relations according to default ambient brightness value and brightness of flash lamp value, detection is described to work as Whether preceding flash lamp brightness value matches with the current environment brightness value;
    Tip element, if for the 4th detection unit detection current brightness of flash lamp value and the current environment brightness Value mismatches, and prompts input touch control operation.
CN201510541519.5A 2015-08-27 2015-08-27 A kind of flash adjustment method and user terminal Expired - Fee Related CN105045517B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510541519.5A CN105045517B (en) 2015-08-27 2015-08-27 A kind of flash adjustment method and user terminal
CN201810061039.2A CN108255343B (en) 2015-08-27 2015-08-27 Flash lamp adjusting method, user terminal and medium product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510541519.5A CN105045517B (en) 2015-08-27 2015-08-27 A kind of flash adjustment method and user terminal

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN201810061039.2A Division CN108255343B (en) 2015-08-27 2015-08-27 Flash lamp adjusting method, user terminal and medium product

Publications (2)

Publication Number Publication Date
CN105045517A CN105045517A (en) 2015-11-11
CN105045517B true CN105045517B (en) 2018-01-23

Family

ID=54452091

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201810061039.2A Active CN108255343B (en) 2015-08-27 2015-08-27 Flash lamp adjusting method, user terminal and medium product
CN201510541519.5A Expired - Fee Related CN105045517B (en) 2015-08-27 2015-08-27 A kind of flash adjustment method and user terminal

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN201810061039.2A Active CN108255343B (en) 2015-08-27 2015-08-27 Flash lamp adjusting method, user terminal and medium product

Country Status (1)

Country Link
CN (2) CN108255343B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108255343A (en) * 2015-08-27 2018-07-06 广东欧珀移动通信有限公司 A kind of flash adjustment method and user terminal and medium product

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105224226B (en) * 2015-10-13 2018-12-11 广东欧珀移动通信有限公司 A kind of method and mobile terminal adjusting terminal shooting lamp
CN105528157B (en) * 2015-12-10 2019-10-25 Oppo广东移动通信有限公司 A kind of multimedia content management method and user terminal
CN105898922A (en) * 2016-05-19 2016-08-24 捷开通讯科技(上海)有限公司 Flash lamp brightness control system and method of electronic device
CN106941585A (en) * 2017-05-15 2017-07-11 上海与德科技有限公司 A kind of control device of flash lamp, control method and mobile terminal
CN110297437B (en) * 2018-03-21 2022-10-21 南京迈瑞生物医疗电子有限公司 Operating table control method and device
CN109120909A (en) * 2018-09-13 2019-01-01 深圳市天视通电子科技有限公司 A kind of full-color photographic device, the system and method for adjustable light compensating lamp brightness
CN111778678B (en) * 2019-03-18 2023-08-08 青岛海尔洗衣机有限公司 Laundry treating apparatus and control method thereof
CN110213422B (en) * 2019-05-14 2021-05-28 惠州Tcl移动通信有限公司 Mobile terminal flash enabling control method, mobile terminal and storage medium
CN110971834B (en) * 2019-12-09 2021-09-10 维沃移动通信有限公司 Flash lamp control method and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104615378A (en) * 2015-02-28 2015-05-13 联想(北京)有限公司 Information processing method and electronic equipment
CN104714741A (en) * 2013-12-11 2015-06-17 北京三星通信技术研究有限公司 Method and device for touch operation
CN104853111A (en) * 2015-04-30 2015-08-19 广东欧珀移动通信有限公司 Shooting method and terminal
CN104853093A (en) * 2015-04-30 2015-08-19 广东欧珀移动通信有限公司 Rotatable camera control method and mobile terminal
CN104866191A (en) * 2015-04-30 2015-08-26 广东欧珀移动通信有限公司 Photography method and mobile terminal

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201549156U (en) * 2009-12-03 2010-08-11 冠捷投资有限公司 Display with combined touch control and button functions
KR101824513B1 (en) * 2010-12-29 2018-02-01 삼성전자 주식회사 Terminal and brightness control method thereof
CN202419252U (en) * 2012-01-10 2012-09-05 曹文虎 Touch pressure lamp
CN103941991B (en) * 2013-01-21 2017-02-08 联想(北京)有限公司 Information processing method and electronic equipment
CN103595842B (en) * 2013-11-13 2016-08-17 广东欧珀移动通信有限公司 A kind of flash lamp is as brightness of illumination control method during pocket lamp and mobile terminal
CN103593597B (en) * 2013-11-15 2017-02-08 国网内蒙古东部电力有限公司兴安供电公司 Method for controlling flashlight of smart mobile terminal
CN104580924B (en) * 2014-12-30 2017-10-17 广东欧珀移动通信有限公司 The method of adjustment and terminal of a kind of flash power
CN108255343B (en) * 2015-08-27 2021-06-01 Oppo广东移动通信有限公司 Flash lamp adjusting method, user terminal and medium product

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104714741A (en) * 2013-12-11 2015-06-17 北京三星通信技术研究有限公司 Method and device for touch operation
CN104615378A (en) * 2015-02-28 2015-05-13 联想(北京)有限公司 Information processing method and electronic equipment
CN104853111A (en) * 2015-04-30 2015-08-19 广东欧珀移动通信有限公司 Shooting method and terminal
CN104853093A (en) * 2015-04-30 2015-08-19 广东欧珀移动通信有限公司 Rotatable camera control method and mobile terminal
CN104866191A (en) * 2015-04-30 2015-08-26 广东欧珀移动通信有限公司 Photography method and mobile terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108255343A (en) * 2015-08-27 2018-07-06 广东欧珀移动通信有限公司 A kind of flash adjustment method and user terminal and medium product

Also Published As

Publication number Publication date
CN105045517A (en) 2015-11-11
CN108255343B (en) 2021-06-01
CN108255343A (en) 2018-07-06

Similar Documents

Publication Publication Date Title
CN105045517B (en) A kind of flash adjustment method and user terminal
CN105183284B (en) A kind of method and user terminal for checking short message
CN106843739B (en) A kind of display control method and mobile terminal of mobile terminal
US10488975B2 (en) Touch gesture detection assessment
CN106231178B (en) A kind of self-timer method and mobile terminal
CN105118019B (en) A kind of image processing method and user terminal
CN105049732B (en) A kind of camera shooting head adjusting method and user terminal
US20160349983A1 (en) Terminal screen shot method and terminal
US20140176452A1 (en) System and method for providing tactile feedback
CN109583356A (en) Fingerprint identification method and Related product
CN105224216B (en) A kind of user terminal control method and user terminal
CN109428969A (en) Edge touch control method, device and the computer readable storage medium of double screen terminal
US20240077948A1 (en) Gesture-based display interface control method and apparatus, device and storage medium
WO2017032020A1 (en) Image processing method and electronic terminal
CN107300973A (en) screen rotation control method, system and device
CN109283996A (en) Display control method and Related product
CN107798228A (en) A kind of face identification method and mobile terminal
CN109376700A (en) Fingerprint identification method and Related product
CN110245607A (en) Eyeball tracking method and Related product
CN105630301A (en) Menu selection system and method as well as electronic device
CN104301824B (en) Line traffic control equipment, controller, method and device
CN111651030A (en) Sensor detection method and device, storage medium and mobile terminal
CN105373323B (en) Method of operating an electronic device, operating device and electronic equipment
CN104978118B (en) A kind of graphical interface of user display methods, device and terminal device
CN109144455A (en) display control method and related product

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CP01 Change in the name or title of a patent holder
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180123

CF01 Termination of patent right due to non-payment of annual fee