CN108255343B - Flash lamp adjusting method, user terminal and medium product - Google Patents

Flash lamp adjusting method, user terminal and medium product Download PDF

Info

Publication number
CN108255343B
CN108255343B CN201810061039.2A CN201810061039A CN108255343B CN 108255343 B CN108255343 B CN 108255343B CN 201810061039 A CN201810061039 A CN 201810061039A CN 108255343 B CN108255343 B CN 108255343B
Authority
CN
China
Prior art keywords
touch
pressure value
preset
brightness value
touch pressure
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810061039.2A
Other languages
Chinese (zh)
Other versions
CN108255343A (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 CN201810061039.2A priority Critical patent/CN108255343B/en
Publication of CN108255343A publication Critical patent/CN108255343A/en
Application granted granted Critical
Publication of CN108255343B publication Critical patent/CN108255343B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)
  • Studio Devices (AREA)

Abstract

The embodiment of the invention discloses a flash lamp adjusting method and a user terminal, wherein the method comprises the following steps: after detecting that touch operation occurs on the touch screen, the user terminal can acquire touch parameters of the touch operation, wherein the touch parameters comprise touch pressure values; detecting whether the touch pressure value falls into a preset touch pressure value range or not; if yes, obtaining a brightness value corresponding to the touch pressure value range from a mapping relation between a preset pressure value range and the brightness value, wherein the brightness values corresponding to different touch pressure value ranges are different; and finally, adjusting the brightness value of the flash lamp to a brightness value corresponding to the touch pressure value range. In the embodiment of the invention, when the user needs to adjust the brightness value of the flash lamp, the user does not need to click the brightness adjusting key for adjustment, and the user only needs to input touch operation on the touch screen to adjust the flash lamp. Thereby the flash lamp can be conveniently adjusted.

Description

Flash lamp adjusting method, user terminal and medium product
Technical Field
The invention relates to the technical field of electronics, in particular to a flash lamp adjusting method, a user terminal and a medium product.
Background
With the rapid development of electronic technology and the rapid popularization of terminals, the functions of terminals are increasingly improved. Therefore, the configuration requirements for the terminal are also increasing. For example, in order to make a terminal have a shooting function, the terminal is usually provided with a camera. In order to improve the quality of shooting in a low-light environment, a flash is generally provided together with a camera. However, in practical applications, since the brightness value of the environment may vary according to the environment, the brightness value of the flash lamp needs to be adjusted to better reflect the function of the flash lamp.
At present, when the brightness value of a flash lamp is adjusted, a user needs to click a brightness adjusting key to adjust the brightness value. Because the common brightness adjusting keys are usually preset fixed keys, when the position clicked by a user is not matched with the position of the brightness adjusting key, the brightness value of the flash lamp cannot be adjusted, and therefore the convenience of adjusting the flash lamp is reduced.
Disclosure of Invention
The embodiment of the invention provides a flash lamp adjusting method and a user terminal, which can conveniently adjust a flash lamp.
In a first aspect, an embodiment of the present invention discloses a method for adjusting a flash lamp, including:
detecting whether touch operation occurs on the touch screen;
if the touch operation on the touch screen is detected, acquiring touch parameters of the touch operation, wherein the touch parameters comprise touch pressure values;
detecting whether the touch pressure value falls into a preset touch pressure value range or not;
if yes, obtaining a brightness value corresponding to the touch pressure value range from a mapping relation between a preset pressure value range and the brightness value, wherein the brightness values corresponding to different touch pressure value ranges are different;
and adjusting the brightness value of the flash lamp to a brightness value corresponding to the touch pressure value range.
With reference to the implementation manner of the first aspect, in a first possible implementation manner of the first aspect, the touch parameter further includes a target touch direction, and the method further includes:
acquiring a rotation angle corresponding to the touch pressure value range from a preset mapping relation between the touch pressure value range and an angle, and determining a target rotation direction corresponding to the target touch direction from a preset mapping relation between the touch direction and the rotation direction, wherein the angles corresponding to different touch pressure value ranges are different;
and controlling the flash lamp to rotate by the rotation angle along the target rotation direction.
With reference to the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, when the touch parameter includes the touch pressure value and the target touch direction, the method further includes:
acquiring a rotation speed corresponding to the touch pressure value from a mapping relation between a preset pressure value range and the speed, and acquiring a target rotation direction corresponding to the target touch direction from the mapping relation between the touch direction and the rotation direction;
and controlling the flash lamp to rotate according to the rotating speed and the target rotating direction.
With reference to the implementation manner of the first aspect, the first possible implementation manner of the first aspect, and any one implementation manner of the second possible implementation manner of the first aspect, in a third possible implementation manner of the first aspect, before the detecting whether a touch operation occurs on the touch screen, the method further includes:
acquiring a current environment brightness value;
detecting whether the current environment brightness value is lower than a preset brightness threshold value or not;
and if the current environment brightness value is detected to be lower than the preset brightness threshold value, starting the flash lamp.
With reference to the third possible implementation manner of the first aspect, in a fourth possible implementation manner of the first aspect, after the flash is turned on, before detecting whether a target touch operation occurs on the touch screen, the method further includes:
acquiring the brightness value of a current flash lamp;
detecting whether the current flashlight brightness value is matched with the current environment brightness value or not according to a mapping relation between a preset environment brightness value and a flashlight brightness value;
and if the current flash lamp brightness value is detected not to be matched with the current environment brightness value, prompting to input touch operation.
In a second aspect, an embodiment of the present invention further discloses a user terminal, including:
the first detection unit is used for detecting whether touch operation occurs on the touch screen;
the first obtaining unit is used for obtaining a touch parameter of the touch operation if the first detecting unit detects that the touch operation occurs on the touch screen, wherein the touch parameter comprises a touch pressure value;
the second detection unit is used for detecting whether the touch pressure value falls into a preset touch pressure value range or not;
the second obtaining unit is configured to obtain, if the second detecting unit detects that the touch pressure value falls within a preset touch pressure value range, a luminance value corresponding to the touch pressure value range from a mapping relationship between the preset touch pressure value range and the luminance value, where luminance values corresponding to different touch pressure value ranges are different;
and the adjusting unit is used for adjusting the brightness value of the flash lamp to a brightness value corresponding to the touch pressure value range.
With reference to the user terminal of the second aspect, in a first possible user terminal of the second aspect, the touch parameter further includes a target touch direction, and the user terminal further includes:
the third obtaining unit is used for obtaining a rotation angle corresponding to the touch pressure value range from a preset mapping relation between the pressure value range and the angle;
the device comprises a determining unit, a judging unit and a judging unit, wherein the determining unit is used for determining a target rotation direction corresponding to the target touch direction from a preset mapping relation between the touch direction and the rotation direction, and angles corresponding to different touch pressure value ranges are different;
a first control unit for controlling the flash to rotate by the rotation angle in the target rotation direction.
With reference to the first possible user terminal of the second aspect, in a second possible user terminal of the second aspect, when the touch parameter includes the touch pressure value and the target touch direction, the user terminal further includes:
a fourth obtaining unit, configured to obtain a rotation speed corresponding to the touch pressure value from a mapping relationship between a preset pressure value range and a speed, and obtain a target rotation direction corresponding to the target touch direction from a mapping relationship between the touch direction and the rotation direction;
and the second control unit is used for controlling the flash lamp to rotate according to the rotating speed and the target rotating direction.
With reference to any one of the user terminal of the second aspect, the first possible user terminal of the second aspect, and the second possible user terminal of the second aspect, in a third possible user terminal of the second aspect, the user terminal further includes:
the fifth acquiring unit is used for acquiring the current environment brightness value before the first detecting unit detects whether touch operation occurs on the touch screen;
the third detection unit is used for detecting whether the current environment brightness value is lower than a preset brightness threshold value or not;
and the starting unit is used for starting the flash lamp if the third detection unit detects that the current environment brightness value is lower than the preset brightness threshold value.
With reference to the third possible user terminal of the second aspect, in a fourth possible user terminal of the second aspect, the user terminal further includes:
the sixth acquisition unit is used for acquiring the brightness value of the current flash lamp after the flash lamp is started by the starting unit and before the first detection unit detects whether the target touch operation is performed on the touch screen;
the fourth detection unit is used for detecting whether the current flashlight brightness value is matched with the current environment brightness value according to the mapping relation between the preset environment brightness value and the flashlight brightness value;
and the prompting unit is used for prompting to input touch operation if the fourth detection unit detects that the current flash lamp brightness value is not matched with the current environment brightness value.
In the embodiment of the invention, after the user terminal detects that the touch operation occurs on the touch screen, the touch parameter of the touch operation can be obtained, wherein the touch parameter comprises a touch pressure value; detecting whether the touch pressure value falls into a preset touch pressure value range or not; if yes, obtaining a brightness value corresponding to the touch pressure value range from a mapping relation between a preset pressure value range and the brightness value, wherein the brightness values corresponding to different touch pressure value ranges are different; and finally, adjusting the brightness value of the flash lamp to a brightness value corresponding to the touch pressure value range. In the embodiment of the invention, when the user needs to adjust the brightness value of the flash lamp, the user does not need to click the brightness adjusting key for adjustment, and the user only needs to input touch operation on the touch screen to adjust the flash lamp. Thereby the flash lamp can be conveniently adjusted.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a schematic flow chart of a method for adjusting a flash lamp according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of another flash lamp adjusting method according to the embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a user terminal according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of another user terminal disclosed in the embodiment of the present invention;
fig. 5 is a schematic structural diagram of another user terminal disclosed in the embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a flash lamp adjusting method and a user terminal. Thereby the flash lamp can be conveniently adjusted.
Referring to fig. 1, fig. 1 is a schematic flow chart illustrating a method for adjusting a flash lamp according to an embodiment of the present invention. The method shown in fig. 1 may be applied to a user terminal equipped with a flash lamp, such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palmtop computer, a Mobile Internet Device (MID), a PAD, etc. As shown in fig. 1, the flash lamp adjusting method may include the steps of:
s101, detecting whether touch operation occurs on the touch screen.
In the embodiment of the invention, the touch operation can be divided into different types of touch operation according to different classification modes. For example, the touch operation can be divided into a click operation and a slide operation according to the length of the touch time. The click operation mainly includes a touch operation with a touch duration smaller than a preset time threshold, and the slide operation mainly includes a touch operation with a touch duration larger than a preset time threshold. The setting of the time threshold can be set by the user according to needs, such as 1 second, 2 seconds, 3 seconds and the like. For another example, the touch operation can be divided into a light touch operation and a heavy touch operation according to the touch pressure value of the touch operation. The light touch operation mainly comprises a touch operation of which the touch pressure value is smaller than a preset pressure threshold; the re-touch operation mainly comprises a touch operation of which the touch pressure value is greater than a preset pressure threshold value. The pressure threshold may also be set by the user as desired, such as 0.1N, 0.2N, 0.3N, etc.
S102, if the touch operation on the touch screen is detected, obtaining touch parameters of the touch operation.
In the embodiment of the invention, if the touch operation of the touch screen is detected, the touch parameter of the touch operation can be acquired. The touch parameter may include at least one of a trigger position (e.g., a position where a finger contacts the touch screen), a touch duration, a touch direction, a touch trajectory, and the like of the touch operation, besides the touch pressure value.
S103, detecting whether the touch pressure value falls into a preset touch pressure value range.
In the embodiment of the invention, the touch pressure value range can be preset in the user terminal. The touch pressure value range may include at least one subset, that is, the touch pressure value range with a large pressure value difference includes the touch pressure value range with a small pressure value difference. For example, when the touch pressure value range with a large pressure value difference is 0.1N to 1N, the pressure value difference is 0.9N; the touch pressure value range may be divided into a plurality of subsets, for example, 0.1N to 0.3N is a first subset, 0.3N to 0.8N is a second subset, and 0.8N to 1N is a third subset.
In the embodiment of the present invention, the setting of the range of the touch pressure value may be performed by the user as needed, or may be performed by the user terminal according to a history setting record of the user, or may be performed by the user terminal according to an average value of the touch pressure values when the user inputs the touch operation.
In the embodiment of the present invention, when the user terminal sets the touch pressure range according to the average value of the touch pressure values when the user inputs the touch operation, the method may include the following steps:
11) acquiring a touch pressure value of each touch operation in a preset time period, which is stored in a user terminal;
12) determining an average value of touch pressure values in the preset time period;
13) and setting the touch pressure range to be in a range matched with the average value according to a preset setting rule.
For example, when the touch pressure values of the touch operation input by the user in one day are 0.2N, 0.3N, 0.5N, and 0.2N, and the average value of the corresponding touch pressure values is 0.3N, then (0.3+ N) N or (0.3-N) N may be set as the touch pressure range, where N is a natural number greater than 0.
And S104, if so, acquiring a brightness value corresponding to the touch pressure value range from the mapping relation between the preset pressure value range and the brightness value.
In the embodiment of the invention, the mapping relation between the preset pressure value range and the brightness value can be realized in the user terminal. The mapping relationship is mainly used to describe the corresponding relationship between the pressure value range and the brightness value, that is, different pressure value ranges correspond to different brightness values.
In the embodiment of the invention, the mapping relation between the preset pressure value range and the brightness value can be set by a user according to needs, or can be set by a user terminal according to the historical setting record of the user; the invention is not limited.
In the embodiment of the present invention, if it is detected that the touch pressure value falls within the preset touch pressure value range, the luminance value corresponding to the touch pressure value range may be obtained from the mapping relationship between the preset touch pressure value range and the luminance value, where the luminance values corresponding to different touch pressure value ranges are different.
And S105, adjusting the brightness value of the flash lamp to a brightness value corresponding to the touch pressure value range.
In the embodiment of the present invention, after the luminance value corresponding to the touch pressure value range is obtained from the mapping relationship between the preset pressure value range and the luminance value, the luminance value of the flash lamp may be adjusted to the luminance value corresponding to the touch pressure value range.
In fig. 1, after detecting that a touch operation occurs on a touch screen, a user terminal may obtain a touch parameter of the touch operation, where the touch parameter includes a touch pressure value; detecting whether the touch pressure value falls into a preset touch pressure value range or not; if yes, obtaining a brightness value corresponding to the touch pressure value range from a mapping relation between a preset pressure value range and the brightness value, wherein the brightness values corresponding to different touch pressure value ranges are different; and finally, adjusting the brightness value of the flash lamp to a brightness value corresponding to the touch pressure value range. In the embodiment of the invention, when the user needs to adjust the brightness value of the flash lamp, the user does not need to click the brightness adjusting key for adjustment, and the user only needs to input touch operation on the touch screen to adjust the flash lamp. Thereby the flash lamp can be conveniently adjusted.
Referring to fig. 2, fig. 2 is a schematic flow chart of another flash lamp adjusting method according to an embodiment of the present invention, and as shown in fig. 2, the flash lamp adjusting method may include the following steps:
s201, acquiring a current environment brightness value.
In the embodiment of the invention, before detecting whether the touch operation occurs on the touch screen, whether the state of the flash lamp is in an on state or not is also detected. The flash lamp can be turned on by a user by inputting a touch instruction, or the user terminal determines whether the flash lamp needs to be turned on according to the current environment brightness value. For example, when the current ambient brightness value is high, the shooting effect may be deteriorated when the flash is turned on. Therefore, when the ambient brightness value is high, the flash lamp is not automatically turned on.
S202, detecting whether the current environment brightness value is lower than a preset brightness threshold value.
In the embodiment of the invention, the brightness threshold value can be preset in the user terminal. The setting of the brightness threshold may be performed by the user as needed, or may be performed by the user terminal according to a history setting record of the user, or may be an optimal brightness threshold acquired by the user terminal from a large database.
In the embodiment of the invention, after the current environment brightness value is obtained, whether the current environment brightness value is lower than the preset brightness threshold value or not can be detected.
And S203, if the current environment brightness value is lower than the preset brightness threshold value, starting a flash lamp.
In the embodiment of the invention, if the current environment brightness value is detected to be lower than the preset brightness threshold, which indicates that the current environment brightness value is lower, the shooting quality in a low-light environment can be improved by starting the flash lamp.
In the embodiment of the present invention, after the flash is turned on, before the step of detecting whether the target touch operation occurs on the touch screen is executed, the method may further include the following steps:
21) acquiring the brightness value of a current flash lamp;
22) detecting whether the current flashlight brightness value is matched with the current environment brightness value or not according to the mapping relation between the preset environment brightness value and the flashlight brightness value;
23) and if the current flash lamp brightness value is detected to be not matched with the current environment brightness value, prompting to input touch operation.
In the embodiment of the invention, the mapping relation between the environment brightness value and the flash lamp brightness value can be preset in the user terminal. The mapping relationship is mainly used for describing the corresponding relationship between the environment brightness value and the flash lamp brightness value. That is, the brightness values of the flash lamps corresponding to different ambient brightness values are different.
In the embodiment of the invention, the mapping relation between the environment brightness value and the flash lamp brightness value can be set by a user according to needs, or can be set by a user terminal according to the historical setting record of the user; the invention is not limited.
In the embodiment of the invention, after the flash lamp is started, whether the current flash lamp brightness value is matched with the current environment brightness value can be detected according to the mapping relation between the preset environment brightness value and the flash lamp brightness value; if the brightness value of the flash lamp is matched with the brightness value of the flash lamp, the brightness value of the flash lamp does not need to be adjusted. If not, the input of touch operation can be prompted.
And S204, detecting whether touch operation occurs on the touch screen.
S205, if the touch operation on the touch screen is detected, acquiring the touch parameter of the touch operation.
In this embodiment of the present invention, the touch parameter may further include at least one of a trigger position (e.g., a position where a finger contacts the touch screen), a touch duration, a touch direction, a touch trajectory, and the like of the touch operation, besides the touch pressure value, which is not limited in the embodiment of the present invention.
And S206, if the touch pressure value is detected to fall into the preset touch pressure value range, acquiring a brightness value corresponding to the touch pressure value range from the mapping relation between the preset pressure value range and the brightness value.
In the embodiment of the invention, the corresponding brightness values of different touch pressure value ranges are different. When the detected touch pressure value falls into the preset touch pressure value range, the brightness value corresponding to the touch pressure value range is obtained from the mapping relation between the preset pressure value range and the brightness value.
And S207, adjusting the brightness value of the flash lamp to a brightness value corresponding to the touch pressure value range.
In the embodiment of the invention, after the brightness value corresponding to the touch pressure value range is obtained, the brightness value of the flash lamp can be adjusted to the brightness value corresponding to the touch pressure value range.
As an alternative embodiment, after the brightness value of the flash is adjusted, the camera may be controlled to rotate, so that the flash may flash with the shooting object as a reference center. Wherein controlling the flash to rotate may include:
31) acquiring a rotation angle corresponding to a touch pressure value range from a preset mapping relation between the touch pressure value range and an angle, and determining a target rotation direction corresponding to a target touch direction from the preset mapping relation between the touch direction and the rotation direction, wherein the angles corresponding to different touch pressure value ranges are different;
32) and controlling the flash lamp to rotate along the target rotation direction by the rotation angle.
In the embodiment of the invention, the mapping relation between the pressure value range and the angle can be preset in the user terminal, wherein the mapping relation between the pressure value range and the angle is mainly used for describing the mapping relation between the pressure value range and the angle. That is, the angles corresponding to different pressure value ranges are different. For example, when 0.1N to 0.3N is the first pressure value range, 0.3N to 0.8N is the second pressure value range, and 0.8N to 1N is the third pressure value range, wherein the angle corresponding to the 0.1N to 0.3N is 5 degrees, the angle corresponding to the 0.3N to 0.8N is 10 degrees, and the angle corresponding to the 0.8N to 1N is 15 degrees.
In the embodiment of the invention, the mapping relation between the pressure value range and the angle can be set by a user according to needs, or can be set by a user terminal according to the historical setting record of the user; the invention is not limited.
In the embodiment of the present invention, a mapping relationship between the touch direction and the rotation direction may also be preset in the user terminal. The mapping relationship between the touch direction and the rotation direction is mainly used for describing the corresponding relationship between the touch direction and the rotation direction, that is, the rotation directions corresponding to different touch directions are different. For example, when the touch direction is the first direction, the corresponding rotation direction may also be the first direction; when the touch direction is the second direction, the corresponding rotation direction is the second direction. The first direction and the second direction are opposite directions.
In the embodiment of the present invention, the preset mapping relationship between the touch direction and the rotation direction may be set by the user as needed, or may be set by the user terminal according to a history setting record of the user; the invention is not limited.
In the embodiment of the present invention, after the rotation angle corresponding to the touch pressure value range is obtained from the mapping relationship between the preset pressure value range and the angle, and the target rotation direction corresponding to the target touch direction is determined from the mapping relationship between the preset touch direction and the rotation direction, the flash lamp may be controlled to rotate along the target rotation direction by the rotation angle. For example, when the rotation angle corresponding to the touch pressure value range is 10 degrees obtained from the mapping relationship between the preset pressure value range and the angle, and the target rotation direction corresponding to the target touch direction is determined to be the first direction from the mapping relationship between the preset touch direction and the rotation direction, the flash lamp may be controlled to rotate 10 degrees along the first direction.
As another alternative, after adjusting the brightness value of the flash, the camera may be controlled to rotate, so that the flash may flash with the photographic subject as a reference center. Wherein controlling the flash to rotate may include:
41) acquiring a rotating speed corresponding to a touch pressure value from a mapping relation between a preset pressure value range and the speed, and acquiring a target rotating direction corresponding to a target touch direction from the mapping relation between the touch direction and the rotating direction;
42) and controlling the flash lamp to rotate according to the rotating speed and the target rotating direction.
In the embodiment of the invention, the mapping relation between the pressure value range and the speed can be preset in the user terminal. The mapping relationship between the pressure value range and the speed is mainly used for describing the mapping relationship between the pressure value range and the speed, that is, the speeds corresponding to different pressure value ranges are different. For example, when 0.1N to 0.3N is the first pressure value range, 0.3N to 0.8N is the second pressure value range, and 0.8N to 1N is the third pressure value range, wherein 0.1N to 0.3N is the speed corresponding to the first pressure value range and is 0.01m \ s, 0.3N to 0.8N is the speed corresponding to the second pressure value range and is 0.02m \ s, and 0.8N to 1N is the speed corresponding to the third pressure value range and is 0.03m \ s.
In the embodiment of the present invention, a mapping relationship between the touch direction and the rotation direction may also be preset in the user terminal. The mapping relationship between the touch direction and the rotation direction is mainly used for describing the corresponding relationship between the touch direction and the rotation direction, that is, the rotation directions corresponding to different touch directions are different. For example, when the touch direction is the first direction, the corresponding rotation direction may also be the first direction; when the touch direction is the second direction, the corresponding rotation direction is the second direction. The first direction and the second direction are opposite directions.
In the embodiment of the invention, when the rotation speed corresponding to the touch pressure value is obtained from the mapping relation between the preset pressure value range and the speed, and the target rotation direction corresponding to the target touch direction is obtained from the mapping relation between the touch direction and the rotation direction; the flash may be controlled to rotate according to the rotation speed and the target rotation direction. For example, when the rotation speed 0.02m \ s corresponding to the touch pressure value is obtained from the mapping relationship between the preset pressure value range and the speed, and when the target rotation direction corresponding to the target touch direction is determined to be the first direction from the mapping relationship between the preset touch direction and the rotation direction, the flash lamp can be controlled to rotate towards the first direction at the rotation speed of 0.02m \ s.
In fig. 2, it is detailed that after the brightness value of the flash is adjusted, the flash can be controlled to rotate, so that the flexibility of the terminal can be further increased. In the embodiment of the invention, when a user needs to adjust the brightness value of the flash lamp and control the flash lamp to rotate, the user does not need to click a fixed key for adjustment, and the user only needs to input touch operation on the touch screen for control. Thereby increasing convenience of the user terminal.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a user terminal according to an embodiment of the present invention, configured to execute the method for adjusting a flash. The user terminal shown in fig. 3 may include, but is not limited to, a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a palmtop computer, a Mobile Internet Device (MID), a PAD, and other user terminals equipped with a flash lamp. As shown in fig. 3, the user terminal may include: a first detection unit 301, a first acquisition unit 302, a second detection unit 303, a second acquisition unit 304, and an adjustment unit 305, wherein,
the first detecting unit 301 is configured to detect whether a touch operation occurs on the touch screen.
In the embodiment of the invention, the touch operation can be divided into different types of touch operation according to different classification modes. For example, the touch operation can be divided into a click operation and a slide operation according to the length of the touch time. The click operation mainly includes a touch operation with a touch duration smaller than a preset time threshold, and the slide operation mainly includes a touch operation with a touch duration larger than a preset time threshold. The setting of the time threshold can be set by the user according to needs, such as 1 second, 2 seconds, 3 seconds and the like. For another example, the touch operation can be divided into a light touch operation and a heavy touch operation according to the touch pressure value of the touch operation. The light touch operation mainly comprises a touch operation of which the touch pressure value is smaller than a preset pressure threshold; the re-touch operation mainly comprises a touch operation of which the touch pressure value is greater than a preset pressure threshold value. The pressure threshold may also be set by the user as desired, such as 0.1N, 0.2N, 0.3N, etc.
The first obtaining unit 302 is configured to obtain a touch parameter of the touch operation if the first detecting unit 301 detects that the touch operation occurs on the touch screen, where the touch parameter includes a touch pressure value.
In the embodiment of the invention, if the touch operation of the touch screen is detected, the touch parameter of the touch operation can be acquired. The touch parameter may include at least one of a trigger position (e.g., a position where a finger contacts the touch screen), a touch duration, a touch direction, a touch trajectory, and the like of the touch operation, besides the touch pressure value.
The second detecting unit 303 is configured to detect whether the touch pressure value falls within a preset touch pressure value range.
In the embodiment of the invention, the touch pressure value range can be preset in the user terminal. The touch pressure value range may include at least one subset, that is, the touch pressure value range with a large pressure value difference includes the touch pressure value range with a small pressure value difference. For example, when the touch pressure value range with a large pressure value difference is 0.1N to 1N, the pressure value difference is 0.9N; the touch pressure value range may be divided into a plurality of subsets, for example, 0.1N to 0.3N is a first subset, 0.3N to 0.8N is a second subset, and 0.8N to 1N is a third subset.
In the embodiment of the present invention, the setting of the range of the touch pressure value may be performed by the user as needed, or may be performed by the user terminal according to a history setting record of the user, or may be performed by the user terminal according to an average value of the touch pressure values when the user inputs the touch operation.
In the embodiment of the present invention, when the user terminal sets the touch pressure range according to the average value of the touch pressure values when the user inputs the touch operation, the method may include the following steps:
11) acquiring a touch pressure value of each touch operation in a preset time period, which is stored in a user terminal;
12) determining an average value of touch pressure values in the preset time period;
13) and setting the touch pressure range to be in a range matched with the average value according to a preset setting rule.
For example, when the touch pressure values of the touch operation input by the user in one day are 0.2N, 0.3N, 0.5N, and 0.2N, and the average value of the corresponding touch pressure values is 0.3N, then (0.3+ N) N or (0.3-N) N may be set as the touch pressure range, where N is a natural number greater than 0.
The second obtaining unit 304 is configured to, if the second detecting unit 303 detects that the touch pressure value falls within a preset touch pressure value range, obtain a luminance value corresponding to the touch pressure value range from a mapping relationship between the preset touch pressure value range and the luminance value, where luminance values corresponding to different touch pressure value ranges are different.
The adjusting unit 305 is configured to adjust the brightness value of the flash to a brightness value corresponding to the touch pressure value range.
In the embodiment of the invention, the mapping relation between the preset pressure value range and the brightness value can be realized in the user terminal. The mapping relationship is mainly used to describe the corresponding relationship between the pressure value range and the brightness value, that is, different pressure value ranges correspond to different brightness values.
In the embodiment of the invention, the mapping relation between the preset pressure value range and the brightness value can be set by a user according to needs, or can be set by a user terminal according to the historical setting record of the user; the invention is not limited.
In an embodiment of the present invention, if the second detecting unit 303 detects that the touch pressure value falls within the preset touch pressure value range, the second obtaining unit 304 may obtain the luminance value corresponding to the touch pressure value range from a mapping relationship between the preset touch pressure value range and the luminance value, where the luminance values corresponding to different touch pressure value ranges are different.
In an embodiment of the invention, after the second obtaining unit 304 obtains the luminance value corresponding to the touch pressure value range from the mapping relationship between the preset pressure value range and the luminance value, the adjusting unit 305 may adjust the luminance value of the flash lamp to the luminance value corresponding to the touch pressure value range.
In fig. 3, after the first detection unit 301 detects that a touch operation occurs on the touch screen, the first obtaining unit 302 may obtain a touch parameter of the touch operation, where the touch parameter includes a touch pressure value; the second detection unit 303 detects whether the touch pressure value falls within a preset touch pressure value range; if yes, the second obtaining unit 304 obtains the luminance value corresponding to the touch pressure value range from the mapping relationship between the preset pressure value range and the luminance value, where the luminance values corresponding to different touch pressure value ranges are different; finally, the adjusting unit 305 adjusts the brightness value of the flash lamp to a brightness value corresponding to the touch pressure value range. In the embodiment of the invention, when the user needs to adjust the brightness value of the flash lamp, the user does not need to click the brightness adjusting key for adjustment, and the user only needs to input touch operation on the touch screen to adjust the flash lamp. Thereby the flash lamp can be conveniently adjusted.
Referring to fig. 4, fig. 4 is a schematic structural diagram of another user terminal according to an embodiment of the present invention, configured to execute the method for adjusting a flash. Fig. 4 is further detailed on the basis of fig. 3, and may include, in addition to all the units shown in fig. 3: a fifth acquisition unit 306, a third detection unit 307, a start unit 308, a sixth acquisition unit 309, a fourth detection unit 310, a presentation unit 311, a fourth acquisition unit 312, a second control unit 313, a third acquisition unit 314, a determination unit 315, and a first control unit 316, wherein,
a fifth obtaining unit 306, configured to obtain a current environment brightness value before the first detecting unit 301 detects whether a touch operation occurs on the touch screen.
A third detecting unit 307, configured to detect whether the current environment brightness value is lower than a preset brightness threshold.
The turning-on unit 308 is configured to turn on the flash if the third detecting unit 307 detects that the current environment brightness value is lower than the preset brightness threshold.
In the embodiment of the present invention, before the first detecting unit 301 detects whether the touch operation occurs on the touch screen, it should be detected whether the flash is in an on state. The flash lamp can be turned on by a user by inputting a touch instruction, or the user terminal determines whether the flash lamp needs to be turned on according to the current environment brightness value. For example, when the current ambient brightness value is high, the shooting effect may be deteriorated when the flash is turned on. Therefore, when the ambient brightness value is high, the flash lamp is not automatically turned on.
In the embodiment of the invention, the brightness threshold value can be preset in the user terminal. The setting of the brightness threshold may be performed by the user as needed, or may be performed by the user terminal according to a history setting record of the user, or may be an optimal brightness threshold acquired by the user terminal from a large database.
In this embodiment of the present invention, after the fifth obtaining unit 306 obtains the current environment brightness value, the starting unit 308 may detect whether the current environment brightness value is lower than a preset brightness threshold.
In the embodiment of the present invention, if the third detecting unit 307 detects that the current environment brightness value is lower than the preset brightness threshold, which indicates that the current environment brightness value is lower, the starting unit 308 may improve the shooting quality in the low-light environment by starting the flash lamp.
A sixth obtaining unit 309, configured to obtain a current flash brightness value before the first detecting unit 301 detects whether a target touch operation occurs on the touch screen after the flash is turned on by the turning-on unit 308.
The fourth detecting unit 310 is configured to detect whether the current brightness value of the flash is matched with the current brightness value of the environment according to a mapping relationship between a preset brightness value of the environment and the brightness value of the flash.
The prompting unit 311 is configured to prompt to input a touch operation if the fourth detecting unit 310 detects that the current flash brightness value is not matched with the current environment brightness value.
In the embodiment of the invention, the mapping relation between the environment brightness value and the flash lamp brightness value can be preset in the user terminal. The mapping relationship is mainly used for describing the corresponding relationship between the environment brightness value and the flash lamp brightness value. That is, the brightness values of the flash lamps corresponding to different ambient brightness values are different.
In the embodiment of the invention, the mapping relation between the environment brightness value and the flash lamp brightness value can be set by a user according to needs, or can be set by a user terminal according to the historical setting record of the user; the invention is not limited.
In this embodiment of the present invention, after the flash lamp is turned on by the turning-on unit 308, the fourth detecting unit 310 may detect whether the current flash lamp brightness value is matched with the current environment brightness value according to a preset mapping relationship between the environment brightness value and the flash lamp brightness value; if the brightness value of the flash lamp is matched with the brightness value of the flash lamp, the brightness value of the flash lamp does not need to be adjusted. If not, the prompt unit 311 may prompt to input a touch operation.
The fourth obtaining unit 312 is configured to obtain a rotation speed corresponding to the touch pressure value from a mapping relationship between a preset pressure value range and a speed, and obtain a target rotation direction corresponding to the target touch direction from a mapping relationship between the touch direction and the rotation direction.
And a second control unit 313 for controlling the flash to rotate according to the rotation speed and the target rotation direction.
In the embodiment of the invention, the mapping relation between the pressure value range and the speed can be preset in the user terminal. The mapping relationship between the pressure value range and the speed is mainly used for describing the mapping relationship between the pressure value range and the speed, that is, the speeds corresponding to different pressure value ranges are different. For example, when 0.1N to 0.3N is the first pressure value range, 0.3N to 0.8N is the second pressure value range, and 0.8N to 1N is the third pressure value range, wherein 0.1N to 0.3N is the speed corresponding to the first pressure value range and is 0.01m \ s, 0.3N to 0.8N is the speed corresponding to the second pressure value range and is 0.02m \ s, and 0.8N to 1N is the speed corresponding to the third pressure value range and is 0.03m \ s.
In the embodiment of the present invention, a mapping relationship between the touch direction and the rotation direction may also be preset in the user terminal. The mapping relationship between the touch direction and the rotation direction is mainly used for describing the corresponding relationship between the touch direction and the rotation direction, that is, the rotation directions corresponding to different touch directions are different. For example, when the touch direction is the first direction, the corresponding rotation direction may also be the first direction; when the touch direction is the second direction, the corresponding rotation direction is the second direction. The first direction and the second direction are opposite directions.
In the embodiment of the invention, when the rotation speed corresponding to the touch pressure value is obtained from the mapping relation between the preset pressure value range and the speed, and the target rotation direction corresponding to the target touch direction is obtained from the mapping relation between the touch direction and the rotation direction; the flash may be controlled to rotate according to the rotation speed and the target rotation direction. For example, when the rotation speed 0.02m \ s corresponding to the touch pressure value is obtained from the mapping relationship between the preset pressure value range and the speed, and when the target rotation direction corresponding to the target touch direction is determined to be the first direction from the mapping relationship between the preset touch direction and the rotation direction, the flash lamp can be controlled to rotate towards the first direction at the rotation speed of 0.02m \ s.
A third obtaining unit 314, configured to obtain a rotation angle corresponding to the touch pressure value range from a mapping relationship between preset pressure value ranges and angles;
the determining unit 315 is configured to determine a target rotation direction corresponding to the target touch direction from a mapping relationship between preset touch directions and rotation directions, where angles corresponding to different touch pressure value ranges are different.
A first control unit 316 for controlling the flash to rotate by the above-mentioned rotation angle in the target rotation direction.
In the embodiment of the invention, the mapping relation between the pressure value range and the angle can be preset in the user terminal, wherein the mapping relation between the pressure value range and the angle is mainly used for describing the mapping relation between the pressure value range and the angle. That is, the angles corresponding to different pressure value ranges are different. For example, when 0.1N to 0.3N is the first pressure value range, 0.3N to 0.8N is the second pressure value range, and 0.8N to 1N is the third pressure value range, wherein the angle corresponding to the 0.1N to 0.3N is 5 degrees, the angle corresponding to the 0.3N to 0.8N is 10 degrees, and the angle corresponding to the 0.8N to 1N is 15 degrees.
In the embodiment of the invention, the mapping relation between the pressure value range and the angle can be set by a user according to needs, or can be set by a user terminal according to the historical setting record of the user; the invention is not limited.
In the embodiment of the present invention, a mapping relationship between the touch direction and the rotation direction may also be preset in the user terminal. The mapping relationship between the touch direction and the rotation direction is mainly used for describing the corresponding relationship between the touch direction and the rotation direction, that is, the rotation directions corresponding to different touch directions are different. For example, when the touch direction is the first direction, the corresponding rotation direction may also be the first direction; when the touch direction is the second direction, the corresponding rotation direction is the second direction. The first direction and the second direction are opposite directions.
In the embodiment of the present invention, the preset mapping relationship between the touch direction and the rotation direction may be set by the user as needed, or may be set by the user terminal according to a history setting record of the user; the invention is not limited.
In an embodiment of the present invention, when the third obtaining unit 314 obtains the rotation angle corresponding to the touch pressure value range from the mapping relationship between the preset pressure value range and the angle, and the determining unit 315 determines the target rotation direction corresponding to the target touch direction from the mapping relationship between the preset touch direction and the rotation direction, then the first control unit 316 may control the flash lamp to rotate along the target rotation direction by the rotation angle. For example, when the third obtaining unit 314 obtains the rotation angle corresponding to the touch pressure value range as 10 degrees from the mapping relationship between the preset pressure value range and the angle, and the determining unit 315 determines the target rotation direction corresponding to the target touch direction as the first direction from the mapping relationship between the preset touch direction and the rotation direction, the first control unit 316 may control the flash to rotate 10 degrees along the first direction.
In fig. 4, it is detailed that after the brightness value of the flash is adjusted, the flash can be controlled to rotate, so that the flexibility of the terminal can be further increased. In the embodiment of the invention, when a user needs to adjust the brightness value of the flash lamp and control the flash lamp to rotate, the user does not need to click a fixed key for adjustment, and the user only needs to input touch operation on the touch screen for control. Thereby increasing convenience of the user terminal.
Referring to fig. 5, fig. 5 is a schematic structural diagram of another user terminal according to an embodiment of the present invention, configured to execute the method for adjusting a flash. As shown in fig. 5, the user terminal 500 may include: at least one processor 501, at least one pressure sensor 502, at least one user interface 503, memory 504, and the like. Wherein the components are communicatively coupled via one or more buses 505. It will be understood by those skilled in the art that the configuration of the user terminal shown in fig. 5 is not intended to limit the embodiments of the present invention, and may be a bus configuration, a star configuration, a combination of more or fewer components than those shown, or a different arrangement of components. Wherein:
the processor 501 is a control center of the user terminal, connects various parts of the entire user terminal using various interfaces and lines, and performs various functions of the user terminal and processes data by operating or executing programs and/or modules stored in the memory 504 and calling data stored in the memory 504. The processor 501 may be composed of an Integrated Circuit (IC), for example, a single packaged IC, or a plurality of packaged ICs connected with the same or different functions. For example, the processor 501 may include only a Central Processing Unit (CPU), or may be a combination of a CPU, a Digital Signal Processor (DSP), a Graphics Processing Unit (GPU), and various control chips. In the embodiment of the present invention, the CPU may be a single operation core, or may include multiple operation cores.
The pressure sensor 502 is used for acquiring a pressure value of a touch screen operation for a screen of the user terminal.
The user interface 503 may include a Display screen (Display), a Keyboard (Keyboard), and the like, where the Display screen is a touch screen in the embodiment of the present invention, and is used for facilitating a user to interact with a user terminal through a touch screen operation.
The memory 504 may be used for storing software programs and modules, and the processor 501, the pressure sensor 502 and the user interface 503 execute various functional applications of the user terminal and implement data processing by calling the software programs and modules stored in the memory 504. The memory 504 mainly includes a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function, and the like; the data storage area may store data created according to the use of the user terminal, and the like. In the embodiment of the present invention, the operating system may be an Android system, an iOS system, a Windows operating system, or the like.
In particular, the processor 501 invokes an application program stored in the memory 504 for performing the following operations:
detecting whether touch operation occurs on the touch screen;
if the touch operation on the touch screen is detected, acquiring touch parameters of the touch operation, wherein the touch parameters comprise touch pressure values;
detecting whether the touch pressure value falls into a preset touch pressure value range or not;
if yes, obtaining a brightness value corresponding to the touch pressure value range from a mapping relation between a preset pressure value range and the brightness value, wherein the brightness values corresponding to different touch pressure value ranges are different;
and adjusting the brightness value of the flash lamp to a brightness value corresponding to the touch pressure value range.
In the embodiment of the present invention, the processor 501 invokes an application program stored in the memory 504, and the touch parameters further include a target touch direction, which is used to perform the following operations:
acquiring a rotation angle corresponding to a touch pressure value range from a preset mapping relation between the touch pressure value range and an angle, and determining a target rotation direction corresponding to a target touch direction from the preset mapping relation between the touch direction and the rotation direction, wherein the angles corresponding to different touch pressure value ranges are different;
and controlling the flash lamp to rotate along the target rotation direction by the rotation angle.
In the embodiment of the present invention, the processor 501 invokes an application program stored in the memory 504, and when the touch parameter includes a touch pressure value and a target touch direction, the following steps may be further performed:
acquiring a rotating speed corresponding to a touch pressure value from a mapping relation between a preset pressure value range and the speed, and acquiring a target rotating direction corresponding to a target touch direction from the mapping relation between the touch direction and the rotating direction;
and controlling the flash lamp to rotate according to the rotating speed and the target rotating direction.
In this embodiment of the present invention, the processor 501 invokes the application program stored in the memory 504, and before the step of executing detects whether the touch operation occurs on the touch screen, the method may further include the following steps:
acquiring a current environment brightness value;
detecting whether the current environment brightness value is lower than a preset brightness threshold value or not;
and if the current environment brightness value is detected to be lower than the preset brightness threshold value, starting the flash lamp.
In this embodiment of the present invention, the processor 501 calls the application program stored in the memory 504, and after the step of executing the step of turning on the flash, before the step of detecting whether the target touch operation occurs on the touch screen, the method may further include the following steps:
acquiring the brightness value of a current flash lamp;
detecting whether the current flashlight brightness value is matched with the current environment brightness value or not according to the mapping relation between the preset environment brightness value and the flashlight brightness value;
and if the current flash lamp brightness value is detected to be not matched with the current environment brightness value, prompting to input touch operation.
Specifically, the terminal described in the embodiment of the present invention may implement part or all of the processes in the embodiments of the flash lamp adjusting method described in conjunction with fig. 1 and fig. 2 of the present invention.
The modules or sub-modules in all embodiments of the present invention may be implemented by a general-purpose Integrated Circuit, such as a CPU (Central Processing Unit), or an ASIC (Application Specific Integrated Circuit).
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs.
The units in the terminal of the embodiment of the invention can be merged, divided and deleted according to actual needs.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.

Claims (10)

1. A flash lamp adjustment method, comprising:
detecting whether touch operation occurs on the touch screen;
if the touch operation on the touch screen is detected, acquiring touch parameters of the touch operation, wherein the touch parameters comprise touch pressure values;
detecting whether the touch pressure value falls into a preset touch pressure value range or not, wherein the touch pressure value range comprises a plurality of subsets;
if yes, obtaining a brightness value corresponding to the touch pressure value range from a mapping relation between a preset pressure value range and the brightness value, wherein the brightness values corresponding to different touch pressure value ranges are different; adjusting the brightness value of the flash lamp to a brightness value corresponding to the touch pressure value range; after adjusting the brightness value of the flash, controlling the camera to rotate so that the flash flashes with the shooting object as a reference center;
wherein the content of the first and second substances,
the touch parameters further include a target touch direction, and the method further includes: acquiring a rotation angle corresponding to the touch pressure value range from a preset mapping relation between the touch pressure value range and an angle, and determining a target rotation direction corresponding to the target touch direction from a preset mapping relation between the touch direction and the rotation direction, wherein the angles corresponding to different touch pressure value ranges are different; controlling the flash to rotate by the rotation angle along the target rotation direction;
the touch pressure range is set according to an average value of touch pressure values when a user inputs touch operation, and the method specifically includes the following steps: acquiring a touch pressure value of each touch operation in a preset time period, which is stored in a user terminal; determining an average value of touch pressure values in the preset time period; and setting the touch pressure range to be in a range matched with the average value according to a preset setting rule.
2. The method of claim 1, wherein when the touch parameter comprises the touch pressure value and the target touch direction, the method further comprises:
acquiring a rotation speed corresponding to the touch pressure value from a mapping relation between a preset pressure value range and the speed, and acquiring a target rotation direction corresponding to the target touch direction from a mapping relation between a preset touch direction and the rotation direction;
and controlling the flash lamp to rotate according to the rotating speed and the target rotating direction.
3. The method according to any one of claims 1-2, wherein before detecting whether a touch operation occurs on the touch screen, the method further comprises:
acquiring a current environment brightness value;
detecting whether the current environment brightness value is lower than a preset brightness threshold value or not;
and if the current environment brightness value is detected to be lower than the preset brightness threshold value, starting the flash lamp.
4. The method of claim 3, wherein after the turning on the flash and before the detecting whether the target touch operation occurs on the touch screen, the method further comprises:
acquiring the brightness value of a current flash lamp;
detecting whether the current flashlight brightness value is matched with the current environment brightness value or not according to a mapping relation between a preset environment brightness value and a flashlight brightness value;
and if the current flash lamp brightness value is detected not to be matched with the current environment brightness value, prompting to input touch operation.
5. A user terminal, comprising:
the first detection unit is used for detecting whether touch operation occurs on the touch screen;
the first obtaining unit is used for obtaining a touch parameter of the touch operation if the first detecting unit detects that the touch operation occurs on the touch screen, wherein the touch parameter comprises a touch pressure value;
the second detection unit is used for detecting whether the touch pressure value falls into a preset touch pressure value range or not, and the touch pressure value range comprises a plurality of subsets;
the second obtaining unit is configured to obtain, if the second detecting unit detects that the touch pressure value falls within a preset touch pressure value range, a luminance value corresponding to the touch pressure value range from a mapping relationship between the preset touch pressure value range and the luminance value, where luminance values corresponding to different touch pressure value ranges are different;
the adjusting unit is used for adjusting the brightness value of the flash lamp to a brightness value corresponding to the touch pressure value range; after adjusting the brightness value of the flash, controlling the camera to rotate so that the flash flashes with the shooting object as a reference center;
wherein the touch parameter further includes a target touch direction, and the user terminal further includes:
the third obtaining unit is used for obtaining a rotation angle corresponding to the touch pressure value range from a preset mapping relation between the pressure value range and the angle;
the device comprises a determining unit, a judging unit and a judging unit, wherein the determining unit is used for determining a target rotation direction corresponding to the target touch direction from a preset mapping relation between the touch direction and the rotation direction, and angles corresponding to different touch pressure value ranges are different;
a first control unit for controlling the flash to rotate by the rotation angle in the target rotation direction;
the touch pressure range is set according to an average value of touch pressure values when a user inputs touch operation, and the method specifically includes the following steps: acquiring a touch pressure value of each touch operation in a preset time period, which is stored in a user terminal; determining an average value of touch pressure values in the preset time period; and setting the touch pressure range to be in a range matched with the average value according to a preset setting rule.
6. The user terminal according to claim 5, wherein when the touch parameter includes the touch pressure value and the target touch direction, the user terminal further includes:
a fourth obtaining unit, configured to obtain a rotation speed corresponding to the touch pressure value from a mapping relationship between a preset pressure value range and a speed, and obtain a target rotation direction corresponding to the target touch direction from a mapping relationship between a touch direction and a rotation direction;
and the second control unit is used for controlling the flash lamp to rotate according to the rotating speed and the target rotating direction.
7. The UE of any one of claims 5 to 6, further comprising:
the fifth acquiring unit is used for acquiring the current environment brightness value before the first detecting unit detects whether touch operation occurs on the touch screen;
the third detection unit is used for detecting whether the current environment brightness value is lower than a preset brightness threshold value or not;
and the starting unit is used for starting the flash lamp if the third detection unit detects that the current environment brightness value is lower than the preset brightness threshold value.
8. The user terminal according to claim 7, wherein the user terminal further comprises:
the sixth acquisition unit is used for acquiring the brightness value of the current flash lamp after the flash lamp is started by the starting unit and before the first detection unit detects whether the target touch operation is performed on the touch screen;
the fourth detection unit is used for detecting whether the current flashlight brightness value is matched with the current environment brightness value according to the mapping relation between the preset environment brightness value and the flashlight brightness value;
and the prompting unit is used for prompting to input touch operation if the fourth detection unit detects that the current flash lamp brightness value is not matched with the current environment brightness value.
9. A user terminal, comprising: the system comprises at least one processor, at least one network interface, a user interface, a memory and at least one communication bus, wherein the communication bus is used for realizing connection communication among the components;
wherein the processor is configured to invoke an application stored in the memory to perform the method of any of claims 1 to 4.
10. A computer-readable storage medium, comprising: the computer readable storage medium stores a computer program for instructing associated hardware to perform the method of any one of claims 1 to 4.
CN201810061039.2A 2015-08-27 2015-08-27 Flash lamp adjusting method, user terminal and medium product Active CN108255343B (en)

Priority Applications (1)

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

Applications Claiming Priority (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

Related Parent Applications (1)

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

Publications (2)

Publication Number Publication Date
CN108255343A CN108255343A (en) 2018-07-06
CN108255343B true CN108255343B (en) 2021-06-01

Family

ID=54452091

Family Applications (2)

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

Family Applications Before (1)

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

Country Status (1)

Country Link
CN (2) CN105045517B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105045517B (en) * 2015-08-27 2018-01-23 广东欧珀移动通信有限公司 A kind of flash adjustment method and user terminal
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 (3)

* 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
CN202419252U (en) * 2012-01-10 2012-09-05 曹文虎 Touch pressure lamp
CN103593597A (en) * 2013-11-15 2014-02-19 青岛尚慧信息技术有限公司 Method for controlling flashlight of smart mobile terminal

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101824513B1 (en) * 2010-12-29 2018-02-01 삼성전자 주식회사 Terminal and brightness control method thereof
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
CN104714741A (en) * 2013-12-11 2015-06-17 北京三星通信技术研究有限公司 Method and device for touch operation
CN104580924B (en) * 2014-12-30 2017-10-17 广东欧珀移动通信有限公司 The method of adjustment and terminal of a kind of flash power
CN104615378A (en) * 2015-02-28 2015-05-13 联想(北京)有限公司 Information processing method and electronic equipment
CN104853093B (en) * 2015-04-30 2018-01-23 广东欧珀移动通信有限公司 The control method and mobile terminal of a kind of rotatable camera
CN104853111B (en) * 2015-04-30 2018-09-04 广东欧珀移动通信有限公司 A kind of image pickup method and terminal
CN107623819B (en) * 2015-04-30 2019-08-09 Oppo广东移动通信有限公司 A kind of method taken pictures and mobile terminal and related media production
CN105045517B (en) * 2015-08-27 2018-01-23 广东欧珀移动通信有限公司 A kind of flash adjustment method and user terminal

Patent Citations (3)

* 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
CN202419252U (en) * 2012-01-10 2012-09-05 曹文虎 Touch pressure lamp
CN103593597A (en) * 2013-11-15 2014-02-19 青岛尚慧信息技术有限公司 Method for controlling flashlight of smart mobile terminal

Also Published As

Publication number Publication date
CN105045517B (en) 2018-01-23
CN108255343A (en) 2018-07-06
CN105045517A (en) 2015-11-11

Similar Documents

Publication Publication Date Title
CN108255343B (en) Flash lamp adjusting method, user terminal and medium product
CN109961780B (en) A man-machine interaction method a device(s) Server and storage medium
US10958850B2 (en) Electronic device and method for capturing image by using display
CN109155071B (en) Color detection method and terminal
WO2017032068A1 (en) Text message viewing method and user terminal
CN110047443B (en) Backlight brightness adjusting method and device, mobile terminal and storage medium
CN110582078A (en) Bluetooth pairing method and device, storage medium and electronic equipment
CN113792278A (en) Method and device for displaying application and picture and electronic equipment
US20130154947A1 (en) Determining a preferred screen orientation based on known hand positions
CN105118019A (en) Image processing method and user terminal
CN108510964B (en) Screen brightness adjusting range adjusting method and device, terminal and storage medium
WO2018161540A1 (en) Fingerprint registration method and related product
US20170131893A1 (en) Terminal control method and device
CN104853111A (en) Shooting method and terminal
CN112532885B (en) Anti-shake method and device and electronic equipment
CN108445475B (en) Data processing method and device and related medium product
CN107463051B (en) Exposure method and device
CN109413256B (en) Contact person information processing method and device, storage medium and electronic equipment
WO2021003692A1 (en) Algorithm configuration method, device, system, and movable platform
CN110800277B (en) Call processing method and related product
CN107765545B (en) Automatic screen lightening method and device and computer storage medium
CN107580182B (en) Snapshot method, mobile terminal and computer readable storage medium
CN105653093A (en) Method and device for adjusting screen brightness in portable terminal
CN112416172A (en) Electronic equipment control method and device and electronic equipment
CN110855838A (en) Positioning service control method, positioning service control device, mobile terminal and 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
CB02 Change of applicant information

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

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

Address before: No.18, Wusha Haibin Road, Chang'an Town, Dongguan City, Guangdong Province

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

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant