Movatterモバイル変換


[0]ホーム

URL:


CN113709302A - Brightness adjusting method and system for light-emitting equipment - Google Patents

Brightness adjusting method and system for light-emitting equipment
Download PDF

Info

Publication number
CN113709302A
CN113709302ACN202110839170.9ACN202110839170ACN113709302ACN 113709302 ACN113709302 ACN 113709302ACN 202110839170 ACN202110839170 ACN 202110839170ACN 113709302 ACN113709302 ACN 113709302A
Authority
CN
China
Prior art keywords
sliding
brightness
value
emitting device
light
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110839170.9A
Other languages
Chinese (zh)
Other versions
CN113709302B (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.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Haier Technology Co Ltd, Haier Smart Home Co LtdfiledCriticalQingdao Haier Technology Co Ltd
Priority to CN202110839170.9ApriorityCriticalpatent/CN113709302B/en
Publication of CN113709302ApublicationCriticalpatent/CN113709302A/en
Application grantedgrantedCritical
Publication of CN113709302BpublicationCriticalpatent/CN113709302B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

Translated fromChinese

本发明提供一种发光设备亮度调节方法及系统,该方法包括:获取移动终端屏幕上滑动动作的滑动起始点和滑动结束点;根据所述滑动起始点和所述滑动结束点,确定所述滑动动作的滑动方向;根据所述滑动方向对应的像素值,确定单位像素亮度值;根据所述滑动方向、所述滑动起始点和所述滑动结束点,确定滑动像素值,并根据所述滑动像素值和所述单位像素亮度值,获取亮度差值,以根据所述亮度差值对发光设备当前亮度进行调节。本发明能够实现快速连续对灯光亮度进行调节,提高了用户终端操作的便捷性。

Figure 202110839170

The present invention provides a method and system for adjusting the brightness of a light-emitting device. The method includes: acquiring a sliding start point and a sliding end point of a sliding action on a screen of a mobile terminal; and determining the sliding start point and the sliding end point according to the sliding start point and the sliding end point. The sliding direction of the action; according to the pixel value corresponding to the sliding direction, determine the unit pixel brightness value; according to the sliding direction, the sliding start point and the sliding end point, determine the sliding pixel value, and according to the sliding pixel value value and the unit pixel brightness value, and obtain the brightness difference value, so as to adjust the current brightness of the light-emitting device according to the brightness difference value. The present invention can realize the rapid and continuous adjustment of the brightness of the light, and improve the convenience of the user terminal operation.

Figure 202110839170

Description

Brightness adjusting method and system for light-emitting equipment
Technical Field
The invention relates to the technical field of intelligent household appliances, in particular to a method and a system for adjusting the brightness of a light-emitting device.
Background
With the development of science and technology, household appliances gradually enter an intelligent era. The intelligent household appliance is controlled and can be operated and realized through the mobile terminal.
At present, in most of control pages of intelligent household appliances, the brightness value of light is adjusted by clicking a button at a specific position on a mobile terminal page or dragging a sliding bar, and the final brightness value is issued to a control device, so that the brightness of the light is controlled. Fig. 1 is a schematic diagram illustrating brightness adjustment achieved by clicking a page button in the prior art, as shown in fig. 1, a user must click a page fixing position, such as the + or-button in fig. 1, accurately to change a brightness value. Fig. 2 is a schematic diagram illustrating brightness adjustment achieved by dragging a slider in the prior art, and as shown in fig. 2, a user must click a circular slider to change a brightness value.
However, the above scheme requires a fine operation, and the user must check the screen at the same time when controlling the smart home appliance, which is poor in convenience. Therefore, a method and a system for adjusting the brightness of a light emitting device are needed to solve the above problems.
Disclosure of Invention
Aiming at the problems in the prior art, the invention provides a method and a system for adjusting the brightness of a light-emitting device.
The invention provides a brightness adjusting method of a light-emitting device, which comprises the following steps:
acquiring a sliding starting point and a sliding ending point of a sliding action on a screen of the mobile terminal;
determining the sliding direction of the sliding action according to the sliding starting point and the sliding ending point;
determining a unit pixel brightness value according to the pixel value corresponding to the sliding direction;
and determining a sliding pixel value according to the sliding direction, the sliding starting point and the sliding ending point, and acquiring a brightness difference value according to the sliding pixel value and the unit pixel brightness value so as to adjust the current brightness of the light-emitting device according to the brightness difference value.
According to the brightness adjusting method of the light emitting device provided by the invention, the determining the sliding direction of the sliding action according to the sliding starting point and the sliding ending point comprises the following steps:
acquiring a horizontal distance between the sliding starting point and the sliding end point and a vertical distance between the sliding starting point and the sliding end point according to the sliding starting point and the sliding end point;
judging the horizontal distance and the vertical distance, and if the horizontal distance is greater than the vertical distance, judging that the sliding direction is the horizontal direction;
and if the horizontal distance is smaller than or equal to the vertical distance, judging to acquire that the sliding direction is the vertical direction.
According to the brightness adjusting method of the light emitting device provided by the invention, the determining the unit pixel brightness value according to the pixel value corresponding to the sliding direction comprises the following steps:
if the sliding direction is the horizontal direction, determining the brightness value of the unit pixel according to the pixel value of the screen width corresponding to the horizontal direction;
and if the sliding direction is the vertical direction, determining the unit pixel brightness value according to the pixel value of the screen height corresponding to the vertical direction.
According to a luminance adjusting method of a light emitting device provided by the present invention, determining a sliding pixel according to the sliding direction, the sliding start point and the sliding end point, and obtaining a luminance difference value according to the sliding pixel and the unit pixel luminance value, includes:
if the sliding direction is the horizontal direction, determining a first sliding pixel according to the horizontal distance between the sliding end point and the sliding start point, and acquiring a brightness difference value corresponding to the first sliding pixel according to the first sliding pixel and the unit pixel brightness value;
and if the sliding direction is the vertical direction, determining a second sliding pixel according to the vertical distance between the sliding end point and the sliding start point, and acquiring a brightness difference value corresponding to the second sliding pixel according to the second sliding pixel and the unit pixel brightness value.
According to a luminance adjusting method of a light emitting apparatus provided by the present invention, after the obtaining of the luminance difference value according to the sliding pixel and the unit pixel luminance value, the method further includes:
acquiring a brightness value to be adjusted of the light-emitting device according to the current brightness value of the light-emitting device and the brightness difference value;
and judging the brightness value to be adjusted of the light-emitting device, and adjusting the brightness of the light-emitting device according to the judgment result.
According to the brightness adjusting method of the light emitting device provided by the invention, the judging of the brightness value to be adjusted of the light emitting device and the brightness adjustment of the light emitting device according to the judging result comprise the following steps:
judging the brightness value to be adjusted of the light-emitting device, and if the brightness value to be adjusted of the light-emitting device is judged to be larger than a first preset threshold, adjusting the current brightness value of the light-emitting device to be the first preset threshold;
if the brightness value to be adjusted of the light-emitting device is judged to be smaller than a second preset threshold value, adjusting the current brightness value of the light-emitting device to the second preset threshold value;
and if the brightness value to be adjusted of the light-emitting device is judged to be greater than or equal to the second preset threshold value and less than or equal to the first preset threshold value, adjusting the current brightness value of the light-emitting device to the brightness adjustment value of the light-emitting device.
The present invention also provides a brightness adjusting system of a light emitting device, comprising:
the sliding position determining module is used for acquiring a sliding starting point and a sliding ending point of a sliding action on a screen of the mobile terminal;
a sliding direction obtaining module, configured to determine a sliding direction of the sliding motion according to the sliding starting point and the sliding ending point;
the unit pixel brightness determining module is used for determining the unit pixel brightness value according to the pixel value corresponding to the sliding direction;
and the brightness difference value acquisition module is used for determining a sliding pixel value according to the sliding direction, the sliding starting point and the sliding ending point, and acquiring a brightness difference value according to the sliding pixel value and the unit pixel brightness value so as to adjust the current brightness of the light-emitting device according to the brightness difference value.
According to the brightness adjusting system of the light emitting device provided by the present invention, the sliding direction obtaining module further comprises:
a distance determining unit for acquiring a horizontal distance between the sliding start point and the sliding end point and a vertical distance between the sliding start point and the sliding end point according to the sliding start point and the sliding end point;
the first judging unit is used for judging the horizontal distance and the vertical distance, and if the horizontal distance is greater than the vertical distance, judging that the sliding direction is the horizontal direction;
and the second judging unit is used for judging that the sliding direction is the vertical direction if the horizontal distance is smaller than or equal to the vertical distance.
The invention also provides an electronic device, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the program to realize the steps of the method for adjusting the brightness of the light-emitting device.
The present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when being executed by a processor, carries out the steps of the method for adjusting the brightness of a light emitting device as described in any one of the above.
According to the brightness adjusting method and system of the light-emitting device, the screen of the mobile terminal slides, the sliding direction is determined according to the sliding starting point and the sliding end point, and the screen of the mobile phone can slide at any position quickly; obtaining the brightness value of the unit pixel through the screen pixel value corresponding to the sliding direction; and obtaining a brightness difference value according to the sliding pixel value and the brightness value of the unit pixel, thereby realizing the rapid and continuous brightness adjustment of the light-emitting equipment according to the brightness difference value and improving the convenience of the operation of the user terminal.
Drawings
In order to more clearly illustrate the technical solutions of the present invention or the prior art, the drawings needed for the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
FIG. 1 is a diagram illustrating brightness adjustment by clicking a page button in the prior art;
FIG. 2 is a schematic diagram illustrating brightness adjustment by dragging a slider in the prior art;
fig. 3 is a schematic flow chart of a brightness adjustment method for a light emitting device according to the present invention;
fig. 4 is a schematic diagram of a sliding position on a screen of a mobile terminal according to the present invention;
FIG. 5 is a schematic structural diagram of a brightness adjustment system of a light-emitting device according to the present invention;
fig. 6 is a schematic structural diagram of an electronic device provided in the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but 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.
Fig. 3 is a schematic flow chart of a method for adjusting brightness of a light emitting device according to the present invention, and as shown in fig. 3, the present invention provides a method for adjusting brightness of a light emitting device, including:
step 301, acquiring a sliding starting point and a sliding ending point of a sliding action on a screen of the mobile terminal;
step 302, determining the sliding direction of the sliding action according to the sliding starting point and the sliding ending point;
step 303, determining a unit pixel brightness value according to the pixel value corresponding to the sliding direction;
step 304, determining a sliding pixel value according to the sliding direction, the sliding starting point and the sliding ending point, and obtaining a brightness difference value according to the sliding pixel value and the unit pixel brightness value to adjust the current brightness of the light-emitting device according to the brightness difference value.
In the invention, the user takes the whole screen of the mobile terminal as an effective operation area (for example, in a control page of a smart lamp H5), and performs a sliding action at any position of the screen of the mobile terminal, so as to obtain a sliding starting point and a sliding ending point of the sliding action on the screen of the mobile terminal. Specifically, the swipe start point is the start point coordinate of the swipe action, and the swipe end point is the end point coordinate of the swipe action.
Further, the sliding direction of the sliding motion is further determined by acquiring the sliding start point coordinate and the sliding end point coordinate of the sliding motion. The sliding direction may be a horizontal direction, a vertical direction, or a direction with any angle.
Further, since each pixel has a corresponding luminance value, the unit pixel luminance value is determined by the corresponding pixel value on the screen of the mobile terminal in the sliding direction.
Further, judging the sliding direction, and obtaining a sliding pixel value according to the judgment result of the sliding direction, the sliding starting point coordinate and the sliding ending point coordinate; acquiring a brightness difference value according to the sliding pixel value and the brightness value of the unit pixel; and further obtaining a brightness value to be adjusted of the target light-emitting device through the brightness difference value, and sending the brightness value to be adjusted of the target light-emitting device to the light-emitting device, so as to adjust the brightness value of the light-emitting device.
Since the screen interface of the user terminal is complex and needs to be refined, the old or the children may not be able to understand how to operate immediately (the old may not see the screen clearly because of eyesight). The brightness adjusting method of the light-emitting equipment provided by the invention has the advantages that the sliding direction is determined according to the sliding starting point and the sliding ending point by sliding on the screen of the mobile terminal, so that the sliding of the screen of the mobile phone at any position is realized; obtaining the brightness value of the unit pixel through the screen pixel value corresponding to the sliding direction; and obtaining a brightness difference value according to the sliding pixel value and the brightness value of the unit pixel, thereby realizing the rapid and continuous brightness adjustment of the light-emitting equipment according to the brightness difference value and improving the convenience of the operation of the user terminal.
On the basis of the above embodiment, the determining the sliding direction of the sliding motion according to the sliding starting point and the sliding ending point includes:
acquiring a horizontal distance between the sliding starting point and the sliding end point and a vertical distance between the sliding starting point and the sliding end point according to the sliding starting point and the sliding end point;
judging the horizontal distance and the vertical distance, and if the horizontal distance is greater than the vertical distance, judging that the sliding direction is the horizontal direction;
and if the horizontal distance is smaller than or equal to the vertical distance, judging to acquire that the sliding direction is the vertical direction.
Fig. 4 is a schematic diagram of a sliding position on a screen of a mobile terminal according to the present invention, as shown in fig. 4, a plane coordinate system is established with an upper left corner of the screen as a coordinate origin (0, 0), a horizontal direction as an x-axis, a vertical direction as a y-axis, and a coordinate of the sliding origin is a (x) (x-axis)1,y1) The coordinates of the end point of sliding are B (x)2,y2). Optionally, when the mobile terminal places the screen in a normal state, the horizontal direction is the width direction of the screen, and the vertical direction is the height direction of the screen; when the mobile terminal turns over the screen, the horizontal direction is the height direction of the screen, and the vertical direction is the width direction of the screen.
Further, according to the sliding starting point coordinate and the sliding ending point coordinate, obtaining a horizontal distance | x between the sliding starting point coordinate and the sliding ending point coordinate2-x1I, which is the absolute value of the difference between the two horizontal coordinates; obtaining the vertical distance y between the coordinates of the sliding starting point and the sliding ending point2-y1I, the absolute value of the difference between the two ordinate.
Further, if the horizontal distance is greater than the vertical distance, | x2-x1|>|y2-y1If the sliding direction is the x axis in the horizontal direction; if the horizontal distance is less than or equal to the vertical distance, | x2-x1|≤|y2-y1And the y axis in the vertical direction is taken as the sliding direction.
On the basis of the above embodiment, the determining a unit pixel brightness value according to the pixel value corresponding to the sliding direction includes:
if the sliding direction is the horizontal direction, determining the brightness value of the unit pixel according to the pixel value of the screen width corresponding to the horizontal direction;
and if the sliding direction is the vertical direction, determining the unit pixel brightness value according to the pixel value of the screen height corresponding to the vertical direction.
In one embodiment, the mobile terminal is normally placed, the upper left corner of the screen is used as a coordinate origin (0, 0), the horizontal direction is used as an x axis, the vertical direction is used as a y axis to establish a plane coordinate system, and included angles between a straight line where a sliding starting point and a sliding ending point are located and the x axis and the y axis are obtained according to the sliding starting point coordinate and the sliding ending point coordinate. If the included angle between the straight line and the x axis is larger than the included angle between the straight line and the y axis, determining the sliding direction as the vertical direction; otherwise, determining the sliding direction as the horizontal direction.
Further, if the sliding direction of the sliding motion on the screen of the mobile terminal is the x axis in the horizontal direction, the unit pixel brightness value is obtained according to the pixel value of the screen width corresponding to the horizontal direction. Specifically, if the sliding direction is the horizontal direction, the unit pixel luminance value is the pixel value of the screen width ÷ m.
And if the sliding direction of the sliding action on the screen of the mobile terminal is a vertical direction y axis, obtaining the brightness value of the unit pixel according to the pixel value of the screen height corresponding to the vertical direction. Specifically, if the sliding direction is the horizontal direction, the unit pixel luminance value is the pixel value of the screen height ÷ m. Wherein m represents the maximum value of the brightness adjusting range of the light-emitting device, and the value of the invention is 100.
On the basis of the above embodiment, determining a sliding pixel according to the sliding direction, the sliding start point, and the sliding end point, and obtaining a luminance difference value according to the sliding pixel and the unit pixel luminance value includes:
if the sliding direction is the horizontal direction, determining a first sliding pixel according to the horizontal distance between the sliding end point and the sliding start point, and acquiring a brightness difference value corresponding to the first sliding pixel according to the first sliding pixel and the unit pixel brightness value;
and if the sliding direction is the vertical direction, determining a second sliding pixel according to the vertical distance between the sliding end point and the sliding start point, and acquiring a brightness difference value corresponding to the second sliding pixel according to the second sliding pixel and the unit pixel brightness value.
In the invention, if the sliding direction of the sliding motion on the screen of the mobile terminal is the x axis in the horizontal direction, the first sliding pixel is x2-x1So that the brightness difference corresponding to the first sliding pixel is the product of the first pixel and the unit pixel brightness value. If the sliding direction of the sliding motion on the screen of the mobile terminal is a vertical y-axis, the second sliding pixel is y2-y1So that the luminance difference value corresponding to the second sliding pixel is the product of the luminance value of the second pixel and the luminance value of the unit pixel.
On the basis of the above embodiment, after the obtaining of the luminance difference value according to the sliding pixel and the unit pixel luminance value, the method further includes:
acquiring a brightness value to be adjusted of the light-emitting device according to the current brightness value of the light-emitting device and the brightness difference value;
and judging the brightness value to be adjusted of the light-emitting device, and adjusting the brightness of the light-emitting device according to the judgment result.
In the invention, the whole screen of the mobile terminal is used as an effective operation range, the sliding direction and the sliding distance are calculated according to the sliding starting point coordinate and the sliding ending point coordinate, and the brightness value of a unit pixel is calculated according to the width and the height of the screen; acquiring a brightness difference value according to the brightness values of the sliding pixel and the unit pixel; and adding the current brightness value and the brightness difference value of the light-emitting device to obtain a brightness value to be adjusted of the light-emitting device, so as to adjust the brightness of the light-emitting device according to the brightness value to be adjusted of the light-emitting device.
Furthermore, the range of the brightness value to be adjusted of the light-emitting device is judged, and the brightness value to be adjusted of the light-emitting device beyond the range is correspondingly changed according to the judgment result, so that the adjustment of the light-emitting device is more accurate.
In the invention, the user can quickly and continuously adjust the brightness of the light-emitting device in a finger sliding mode without accurately clicking a fixed position of a screen or staring at the screen for operation, so that the operation of the user is more convenient and simpler, and the user experience is effectively improved.
On the basis of the above embodiment, the determining the value to be adjusted of the luminance of the light emitting device and adjusting the luminance of the light emitting device according to the determination result includes:
judging the brightness value to be adjusted of the light-emitting device, and if the brightness value to be adjusted of the light-emitting device is judged to be larger than a first preset threshold, adjusting the current brightness value of the light-emitting device to be the first preset threshold;
if the brightness value to be adjusted of the light-emitting device is judged to be smaller than a second preset threshold value, adjusting the current brightness value of the light-emitting device to the second preset threshold value;
and if the brightness value to be adjusted of the light-emitting device is judged to be greater than or equal to the second preset threshold value and less than or equal to the first preset threshold value, adjusting the current brightness value of the light-emitting device to the brightness adjustment value of the light-emitting device.
In the invention, a first preset threshold and a second preset threshold correspond to the adjusting range of the light brightness, the first preset threshold is the maximum value of the adjusting range of the light-emitting device brightness, and the second preset threshold is the minimum value of the adjusting range of the light-emitting device brightness.
In the present invention, the first preset threshold value is 100, and the second preset threshold value is 0.
Further, adding the current brightness value and the brightness difference value of the light-emitting device to obtain a brightness value to be adjusted of the light-emitting device, judging the brightness value to be adjusted of the light-emitting device, and if the brightness value to be adjusted of the light-emitting device is greater than 100, obtaining a final brightness value to be adjusted of the light brightness of 100, adjusting the brightness of the light-emitting device to the maximum brightness; if the brightness value to be adjusted of the light-emitting device is smaller than 0, and the final brightness value to be adjusted of the light-emitting device is 0, adjusting the brightness of the light-emitting device to the lowest brightness, namely, turning off the light-emitting device; and if the brightness value to be adjusted of the light-emitting device is more than or equal to 0 and less than or equal to 100, adjusting the brightness of the light-emitting device according to the brightness value to be adjusted of the light-emitting device obtained by adding the brightness value of the light-emitting device and the brightness difference value of the lamp light.
It should be noted that the brightness adjusting method for the lighting device mentioned in the above embodiments is not only applicable to lighting devices, but also applicable to temperature adjustment by air conditioner, or sound adjustment for similar household appliances.
Fig. 5 is a schematic structural diagram of a brightness adjusting system of a light emitting device according to the present invention, and as shown in fig. 5, the brightness adjusting system of a light emitting device according to the present invention includes a slidingposition determining module 501, a slidingdirection obtaining module 502, a unit pixelbrightness determining module 503, and a brightnessdifference obtaining module 504, where the slidingposition determining module 501 obtains a sliding start point and a sliding end point of a sliding action on a screen of a mobile terminal; the slidingdirection obtaining module 502 is configured to determine a sliding direction of the sliding action according to the sliding starting point and the sliding ending point; the unit pixelbrightness determining module 503 is configured to determine a unit pixel brightness value according to a pixel value corresponding to the sliding direction; the luminancedifference obtaining module 504 is configured to determine a sliding pixel value according to the sliding direction, the sliding start point, and the sliding end point, and obtain a luminance difference value according to the sliding pixel value and the unit pixel luminance value, so as to adjust the current luminance of the light emitting device according to the luminance difference value.
The brightness adjusting system of the light-emitting equipment provided by the invention can determine the sliding direction according to the sliding starting point and the sliding ending point by sliding on the screen of the mobile terminal, thereby realizing the sliding of the screen of the mobile phone at any position; obtaining the brightness value of the unit pixel through the screen pixel value corresponding to the sliding direction; and obtaining a brightness difference value according to the sliding pixel value and the brightness value of the unit pixel, thereby realizing the rapid and continuous brightness adjustment of the light-emitting equipment according to the brightness difference value and improving the convenience of the operation of the user terminal.
On the basis of the above embodiment, the sliding direction obtaining module further includes a distance determining unit, a first judging unit and a second judging unit, where the distance determining unit is configured to obtain a horizontal distance between the sliding start point and the sliding end point and a vertical distance between the sliding start point and the sliding end point according to the sliding start point and the sliding end point; the first judging unit is used for judging the horizontal distance and the vertical distance, and if the horizontal distance is greater than the vertical distance, judging that the sliding direction is the horizontal direction; the second judging unit is used for judging that the sliding direction is the vertical direction if the horizontal distance is smaller than or equal to the vertical distance.
The system provided by the present invention is used for executing the above method embodiments, and for the specific processes and details, reference is made to the above embodiments, which are not described herein again.
Fig. 6 is a schematic structural diagram of an electronic device provided in the present invention, and as shown in fig. 6, the electronic device may include: a processor (processor)601, a communication Interface (Communications Interface)602, a memory (memory)603 and acommunication bus 604, wherein theprocessor 601, thecommunication Interface 602 and thememory 603 complete communication with each other through thecommunication bus 604. Theprocessor 601 may invoke logic instructions in thememory 603 to perform a lighting device brightness adjustment method comprising: acquiring a sliding starting point and a sliding ending point of a sliding action on a screen of the mobile terminal; determining the sliding direction of the sliding action according to the sliding starting point and the sliding ending point; determining a unit pixel brightness value according to the pixel value corresponding to the sliding direction; and determining a sliding pixel value according to the sliding direction, the sliding starting point and the sliding ending point, and acquiring a brightness difference value according to the sliding pixel value and the unit pixel brightness value so as to adjust the current brightness of the light-emitting device according to the brightness difference value.
In addition, the logic instructions in thememory 603 may be implemented in the form of software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions, which when executed by a computer, enable the computer to perform the method for adjusting the brightness of a light emitting device provided by the above methods, the method comprising: acquiring a sliding starting point and a sliding ending point of a sliding action on a screen of the mobile terminal; determining the sliding direction of the sliding action according to the sliding starting point and the sliding ending point; determining a unit pixel brightness value according to the pixel value corresponding to the sliding direction; and determining a sliding pixel value according to the sliding direction, the sliding starting point and the sliding ending point, and acquiring a brightness difference value according to the sliding pixel value and the unit pixel brightness value so as to adjust the current brightness of the light-emitting device according to the brightness difference value.
In yet another aspect, the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored, the computer program being implemented by a processor to perform the above-provided brightness adjustment method for a lighting apparatus, the method comprising: acquiring a sliding starting point and a sliding ending point of a sliding action on a screen of the mobile terminal; determining the sliding direction of the sliding action according to the sliding starting point and the sliding ending point; determining a unit pixel brightness value according to the pixel value corresponding to the sliding direction; and determining a sliding pixel value according to the sliding direction, the sliding starting point and the sliding ending point, and acquiring a brightness difference value according to the sliding pixel value and the unit pixel brightness value so as to adjust the current brightness of the light-emitting device according to the brightness difference value.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for adjusting brightness of a light emitting device, comprising:
acquiring a sliding starting point and a sliding ending point of a sliding action on a screen of the mobile terminal;
determining the sliding direction of the sliding action according to the sliding starting point and the sliding ending point;
determining a unit pixel brightness value according to the pixel value corresponding to the sliding direction;
and determining a sliding pixel value according to the sliding direction, the sliding starting point and the sliding ending point, and acquiring a brightness difference value according to the sliding pixel value and the unit pixel brightness value so as to adjust the current brightness of the light-emitting device according to the brightness difference value.
2. The method for adjusting brightness of a light emitting device according to claim 1, wherein said determining a sliding direction of the sliding action according to the sliding starting point and the sliding ending point comprises:
acquiring a horizontal distance between the sliding starting point and the sliding end point and a vertical distance between the sliding starting point and the sliding end point according to the sliding starting point and the sliding end point;
judging the horizontal distance and the vertical distance, and if the horizontal distance is greater than the vertical distance, judging that the sliding direction is the horizontal direction;
and if the horizontal distance is smaller than or equal to the vertical distance, judging to acquire that the sliding direction is the vertical direction.
3. The method for adjusting brightness of a light emitting device according to claim 1, wherein said determining a unit pixel brightness value according to a pixel value corresponding to the sliding direction comprises:
if the sliding direction is the horizontal direction, determining the brightness value of the unit pixel according to the pixel value of the screen width corresponding to the horizontal direction;
and if the sliding direction is the vertical direction, determining the unit pixel brightness value according to the pixel value of the screen height corresponding to the vertical direction.
4. The method for adjusting brightness of a light emitting device according to claim 1, wherein determining a sliding pixel according to the sliding direction, the sliding start point and the sliding end point, and obtaining a brightness difference value according to the sliding pixel and the unit pixel brightness value comprises:
if the sliding direction is the horizontal direction, determining a first sliding pixel according to the horizontal distance between the sliding end point and the sliding start point, and acquiring a brightness difference value corresponding to the first sliding pixel according to the first sliding pixel and the unit pixel brightness value;
and if the sliding direction is the vertical direction, determining a second sliding pixel according to the vertical distance between the sliding end point and the sliding start point, and acquiring a brightness difference value corresponding to the second sliding pixel according to the second sliding pixel and the unit pixel brightness value.
5. The method for adjusting luminance of a light emitting apparatus according to claim 1, wherein after said obtaining a luminance difference value based on a sliding pixel luminance value and said unit pixel luminance value, said method further comprises:
acquiring a brightness value to be adjusted of the light-emitting device according to the current brightness value of the light-emitting device and the brightness difference value;
and judging the brightness value to be adjusted of the light-emitting device, and adjusting the brightness of the light-emitting device according to the judgment result.
6. The method for adjusting the brightness of the light-emitting device according to claim 5, wherein the determining the value to be adjusted of the brightness of the light-emitting device and adjusting the brightness of the light-emitting device according to the determination result comprises:
judging the brightness value to be adjusted of the light-emitting device, and if the brightness value to be adjusted of the light-emitting device is judged to be larger than a first preset threshold, adjusting the current brightness value of the light-emitting device to be the first preset threshold;
if the brightness value to be adjusted of the light-emitting device is judged to be smaller than a second preset threshold value, adjusting the current brightness value of the light-emitting device to the second preset threshold value;
and if the brightness value to be adjusted of the light-emitting device is judged to be greater than or equal to the second preset threshold value and less than or equal to the first preset threshold value, adjusting the current brightness value of the light-emitting device to the brightness adjustment value of the light-emitting device.
7. A lighting device brightness adjustment system, comprising:
the sliding position determining module is used for acquiring a sliding starting point and a sliding ending point of a sliding action on a screen of the mobile terminal;
a sliding direction obtaining module, configured to determine a sliding direction of the sliding motion according to the sliding starting point and the sliding ending point;
the unit pixel brightness determining module is used for determining the unit pixel brightness value according to the pixel value corresponding to the sliding direction;
and the brightness difference value acquisition module is used for determining a sliding pixel value according to the sliding direction, the sliding starting point and the sliding ending point, and acquiring a brightness difference value according to the sliding pixel value and the unit pixel brightness value so as to adjust the current brightness of the light-emitting device according to the brightness difference value.
8. The system of claim 7, wherein the sliding direction obtaining module further comprises:
a distance determining unit for acquiring a horizontal distance between the sliding start point and the sliding end point and a vertical distance between the sliding start point and the sliding end point according to the sliding start point and the sliding end point;
the first judging unit is used for judging the horizontal distance and the vertical distance, and if the horizontal distance is greater than the vertical distance, judging that the sliding direction is the horizontal direction;
and the second judging unit is used for judging that the sliding direction is the vertical direction if the horizontal distance is smaller than or equal to the vertical distance.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the method for adjusting the brightness of a light emitting device according to any one of claims 1 to 6 when executing the program.
10. A non-transitory computer readable storage medium, on which a computer program is stored, wherein the computer program, when being executed by a processor, implements the steps of the method for adjusting the brightness of a light emitting device according to any one of claims 1 to 6.
CN202110839170.9A2021-07-232021-07-23 Method, system, electronic device and storage medium for adjusting brightness of light-emitting deviceActiveCN113709302B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202110839170.9ACN113709302B (en)2021-07-232021-07-23 Method, system, electronic device and storage medium for adjusting brightness of light-emitting device

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202110839170.9ACN113709302B (en)2021-07-232021-07-23 Method, system, electronic device and storage medium for adjusting brightness of light-emitting device

Publications (2)

Publication NumberPublication Date
CN113709302Atrue CN113709302A (en)2021-11-26
CN113709302B CN113709302B (en)2023-02-03

Family

ID=78650426

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202110839170.9AActiveCN113709302B (en)2021-07-232021-07-23 Method, system, electronic device and storage medium for adjusting brightness of light-emitting device

Country Status (1)

CountryLink
CN (1)CN113709302B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN114489456A (en)*2022-01-042022-05-13杭州涂鸦信息技术有限公司Lighting system control method, lighting system control device, computer equipment and readable storage medium
CN114610218A (en)*2022-05-162022-06-10广州市保伦电子有限公司 A sliding operation method of a display interface and a display device
CN115989946A (en)*2022-11-292023-04-21海尔优家智能科技(北京)有限公司Method and device for adjusting shading equipment, storage medium and electronic device

Citations (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103051760A (en)*2012-12-182013-04-17广东欧珀移动通信有限公司 A screen brightness adjustment method based on a touch screen mobile phone
CN103558980A (en)*2013-10-212014-02-05广东明创软件科技有限公司 Method for quickly adjusting screen backlight time and mobile terminal thereof
US20140223388A1 (en)*2013-02-042014-08-07Samsung Electronics Co., Ltd.Display control method and apparatus
CN105138268A (en)*2015-08-282015-12-09广东欧珀移动通信有限公司 Method and system for adjusting brightness of display terminal screen
CN105204762A (en)*2015-08-272015-12-30广东欧珀移动通信有限公司Method for regulating screen brightness and user terminal
CN105872211A (en)*2016-03-282016-08-17乐视控股(北京)有限公司Screen brightness adjusting method and terminal
CN107734119A (en)*2017-09-212018-02-23惠州Tcl移动通信有限公司A kind of method, storage medium and terminal for adjusting screen intensity

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103051760A (en)*2012-12-182013-04-17广东欧珀移动通信有限公司 A screen brightness adjustment method based on a touch screen mobile phone
US20140223388A1 (en)*2013-02-042014-08-07Samsung Electronics Co., Ltd.Display control method and apparatus
CN103558980A (en)*2013-10-212014-02-05广东明创软件科技有限公司 Method for quickly adjusting screen backlight time and mobile terminal thereof
CN105204762A (en)*2015-08-272015-12-30广东欧珀移动通信有限公司Method for regulating screen brightness and user terminal
CN105138268A (en)*2015-08-282015-12-09广东欧珀移动通信有限公司 Method and system for adjusting brightness of display terminal screen
CN105872211A (en)*2016-03-282016-08-17乐视控股(北京)有限公司Screen brightness adjusting method and terminal
CN107734119A (en)*2017-09-212018-02-23惠州Tcl移动通信有限公司A kind of method, storage medium and terminal for adjusting screen intensity

Cited By (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN114489456A (en)*2022-01-042022-05-13杭州涂鸦信息技术有限公司Lighting system control method, lighting system control device, computer equipment and readable storage medium
CN114489456B (en)*2022-01-042024-01-30杭州涂鸦信息技术有限公司Lighting system control method, lighting system control device, computer device, and readable storage medium
CN114610218A (en)*2022-05-162022-06-10广州市保伦电子有限公司 A sliding operation method of a display interface and a display device
CN114610218B (en)*2022-05-162022-08-12广州市保伦电子有限公司 A sliding operation method of a display interface and a display device
CN115989946A (en)*2022-11-292023-04-21海尔优家智能科技(北京)有限公司Method and device for adjusting shading equipment, storage medium and electronic device

Also Published As

Publication numberPublication date
CN113709302B (en)2023-02-03

Similar Documents

PublicationPublication DateTitle
CN113709302A (en)Brightness adjusting method and system for light-emitting equipment
JP6529659B2 (en) Information processing method, terminal and computer storage medium
US10613740B2 (en)Method for controlling screen of user terminal and user terminal
US11249613B2 (en)Method and apparatus for displaying orbiting icons corresponding to program application functions
US20180147488A1 (en)Information processing method, terminal, and computer storage medium
CN108628656A (en)Interface adaptation method, device, computer equipment and storage medium on ios device
US20150244911A1 (en)System and method for human computer interaction
US11219820B2 (en)Control method for virtual controlled object, apparatus, storage medium, and electronic apparatus
CN109960449A (en) A kind of screen projection display method and related device
CN104977904A (en)Visible and controllable intelligent household control system and control method thereof
CN112230836A (en)Object moving method and device, storage medium and electronic device
CN104238887B (en)The icon lookup method and device of conventional application program
CN107247551A (en)Brightness adjusting method and device
CN113625878B (en)Gesture information processing method, device, equipment, storage medium and program product
CN113457117B (en)Virtual unit selection method and device in game, storage medium and electronic equipment
CN111240628A (en) Content display method, device, mobile terminal and storage medium
CN107256122B (en)screen brightness adjusting method, device, terminal and computer readable storage medium
CN107315355A (en)A kind of electrical apparatus control equipment and method
CN115061380A (en)Device control method and device, electronic device and readable storage medium
US20230338844A1 (en)Operation control method and apparatus, storage medium, and electronic device
US9229614B2 (en)Storage medium storing information processing program, information processing device, information processing system, and method for calculating specified position
CN112948048A (en)Information processing method, information processing device, electronic equipment and storage medium
TW201344557A (en)Apparatus and method for automatically controlling display screen density
CN114007308B (en)Color temperature control method, device and equipment of desk lamp, storage medium and desk lamp
CN105487801B (en)Progress bar adjusting method and mobile terminal

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp