Screen brightness control method and device
By using spherical coordinate systems and visible spherical areas in electronic devices to adjust screen brightness, the problem of difficulty in improving power saving efficiency in complex environments in the prior art is solved, and more efficient screen power saving and extended device battery life are achieved.
Patent Information
- Application Number
- CN202110466866.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-28
- Publication Date
- 2025-03-25
- Estimated Expiration
- 2041-04-28
AI Technical Summary
In the prior art, the screen saves power only by detecting gestures, and it is difficult to improve power saving efficiency in some more complex practical environments.
By acquiring the posture data of the electronic device, it is converted into a second vector in the spherical coordinate system, and flexibly adjusting the screen brightness according to the relationship between the second vector and the visible spherical area in the spherical coordinate system.
In complex usage scenarios, the power saving efficiency of the screen is improved and the battery life of electronic devices is extended. Especially in the warehousing and picking scenarios of logistics and warehousing systems, the power saving needs of screens under complex picking operations are met.
Smart Images

Figure CN115249450B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a screen brightness control method and device. Background Art
[0002] Electronic devices have limited battery life due to limitations on battery performance and battery capacity. In order to maximize the battery life of electronic devices, you can increase the battery life by adjusting the screen brightness while using the electronic devices.
[0003] In the related art, a gyroscope sensor may be built into an electronic device. The gyroscope sensor is an angular motion detection device that can analyze the gesture operation currently being performed on the electronic device, such as raising a hand holding an electronic device, letting go of a hand holding an electronic device, etc. Based on the analysis of user usage habits, it can be found that the user watches the screen of the electronic device when raising the hand holding the electronic device, and stops watching when letting go of the hand holding the electronic device. Therefore, through the gesture operation detected by the gyroscope sensor, when the gesture operation is detected as a hand raising operation, the screen can be adjusted to light up; when the gesture operation is detected as a hand letting go operation, the screen can be adjusted to darken. In this way, when the user lets go of the electronic device and does not use it, the screen will automatically darken to save power and increase the battery life of the electronic device.
[0004] However, in the current solution, only by detecting the hand-raising and hand-releasing gestures to save screen power, it is still impossible to achieve the purpose of accurate power consumption optimization. In some more complex practical environments, the power saving effect that this power saving method can achieve is still minimal. For example, in the logistics scenario, a logistics PDA (Personal Digital Assistant) is used to sort goods. Since the operations performed by the handheld logistics PDA are relatively complex, it is still difficult to achieve accurate light and dark screens only through the current power saving method. Summary of the invention
[0005] An embodiment of the present application provides a screen brightness control method to flexibly adjust the brightness of the screen of the electronic device based on the relationship between a second vector reflecting the tilt direction of the electronic device in the spherical coordinate system and the visible spherical area in the spherical coordinate system, thereby solving the problem in the related art that it is difficult to improve the power saving efficiency in some more complex practical environments by only detecting gesture actions to save screen power.
[0006] Correspondingly, an embodiment of the present application also provides a screen brightness control device, an electronic device and a storage medium to ensure the implementation and application of the above method.
[0007] In order to solve the above problems, an embodiment of the present application discloses a screen brightness control method, the method comprising:
[0008] Acquire posture data of the electronic device, wherein the posture data includes a first vector in a rectangular coordinate system for reflecting a tilt direction of the electronic device;
[0009] transforming the first vector into a second vector in a spherical coordinate system;
[0010] The brightness of the screen of the electronic device is adjusted according to the relationship between the second vector and the visible spherical area in the spherical coordinate system; wherein the visible spherical area is used to reflect the area of the screen of the electronic device that is in a visible state.
[0011] The present application embodiment discloses a screen brightness control device, the device comprising:
[0012] An acquisition module, used for acquiring posture data of the electronic device, wherein the posture data includes a first vector in a rectangular coordinate system for reflecting a tilt direction of the electronic device;
[0013] A mapping module, configured to convert the first vector into a second vector in a spherical coordinate system;
[0014] An adjustment module is used to adjust the brightness of the screen of the electronic device according to the relationship between the second vector and the visible spherical area in the spherical coordinate system; wherein the visible spherical area is used to reflect the area of the screen of the electronic device that is in a visible state.
[0015] An embodiment of the present application discloses a logistics scanning device, characterized in that the logistics scanning device includes a screen brightness control device.
[0016] An embodiment of the present application further discloses an electronic device, including: a processor; and a memory, on which executable code is stored. When the executable code is executed, the processor executes one or more methods described in the embodiments of the present application.
[0017] The embodiments of the present application also disclose one or more machine-readable media on which executable codes are stored. When the executable codes are executed, the processor executes one or more methods described in the embodiments of the present application.
[0018] Compared with the prior art, the embodiments of the present application have the following advantages:
[0019] In an embodiment of the present application, the electronic device can establish a spherical coordinate system for expressing the tilt direction of the electronic device, so that the tilt direction can be expressed by a second vector in the spherical coordinate system. In addition, a visible spherical area can be established in the sphere in the spherical coordinate system to reflect that the screen of the electronic device is in a visible state. The visible spherical area limits the size of the visible range. When the second vector is within the range limited by the visible spherical area, the electronic device can be considered to be in a visible posture; so that the present application can flexibly adjust the brightness of the screen of the electronic device based on the relationship between the second vector reflecting the tilt direction of the electronic device in the spherical coordinate system and the visible spherical area in the spherical coordinate system, solving the problem in the related art that it is difficult to improve the power saving efficiency in some more complex practical environments by only detecting gesture actions to save screen power. In addition, in the warehouse picking scenario of the logistics warehousing system, the logistics PDA can focus the power saving strategy on whether the picker is watching the screen, and can meet the screen power saving requirements under complex picking operations. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 is an architecture diagram of an electronic device according to an embodiment of the present application;
[0021] Figure 2 is a schematic diagram of a rectangular coordinate system of an embodiment of the present application;
[0022] Figure 3 This is a schematic diagram of a logistics warehousing system in an embodiment of the present application;
[0023] Figure 4 is a schematic diagram of a spherical coordinate system in an embodiment of the present application;
[0024] Figure 5 is another schematic diagram of a spherical coordinate system according to an embodiment of the present application;
[0025] Figure 6 is a flowchart of the steps of a screen brightness control method according to an embodiment of the present application;
[0026] Figure 7 is a flowchart of another screen brightness control method embodiment of the present application;
[0027] Figure 8 is an interface diagram of an electronic device according to an embodiment of the present application;
[0028] Fig. 9 is a schematic diagram of setting a visible spherical area in an embodiment of the present application;
[0029] Fig.10 is a schematic diagram of another arrangement of a visible spherical area in an embodiment of the present application;
[0030] Fig.11is a schematic diagram of another spherical coordinate system of an embodiment of the present application;
[0031] Fig.12 is a schematic diagram of a logistics PDA according to an embodiment of the present application;
[0032] Fig.13 It is a schematic diagram of the placement of a logistics PDA in an embodiment of the present application;
[0033] Fig.14 is a schematic diagram of placement of another logistics PDA in an embodiment of the present application;
[0034] Fig.15 is a structural block diagram of a screen brightness control device according to an embodiment of the present application;
[0035] Fig.16 It is a structural block diagram of a logistics scanning device according to an embodiment of the present application;
[0036] Fig.17 It is a schematic diagram of the structure of a device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0037] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0038] In order to enable those skilled in the art to better understand the present application, the concepts involved in the present application are explained below:
[0039] Logistics PDA (Personal Digital Assistant): Logistics PDA is also called bar gun in the logistics and express delivery industry. It is one of the important equipment for intelligent logistics management. Logistics PDA is equipped with a professional scanning engine and has a fast scanning speed. Logistics PDA is generally light and portable, comfortable to hold, and reduces the fatigue of couriers' hands. The operating environment of the logistics and express delivery industry is complex and changeable, and has high requirements for the communication performance, stability of use, protection level, and battery life of logistics PDA.
[0040] Inertial Measurement Unit (IMU) chip: IMU chip is a chip mainly used to detect and measure acceleration and rotational motion. Its principle is to use the law of inertia. Logistics PDA can be equipped with IMU chip to realize posture acquisition. IMU chip can include motion detection devices such as three-axis gyroscope and three-axis accelerometer, which are used to detect angular velocity, acceleration and other data, and measure motion posture based on quaternion data algorithm, and output three-dimensional posture data.
[0041] Posture data: The IMU chip detects angular velocity, acceleration and other data, and measures motion posture based on quaternion data algorithm to output three-dimensional data. In the rectangular coordinate system, the posture data includes a first vector that is calculated based on the data collected on the three coordinate axes of the rectangular coordinate system and is used to reflect the tilt direction of the electronic device.
[0042] Spherical coordinate system: The spherical coordinate system is a three-dimensional coordinate system used to determine the position of points, lines, surfaces and bodies in three-dimensional space. It uses the coordinate origin as the reference point and consists of azimuth, elevation and distance. The spherical coordinate system is a three-dimensional orthogonal coordinate system that uses spherical coordinates to represent the position of a point p in three-dimensional space.
[0043] Visible spherical area: the area in the sphere shown by the spherical coordinate system, which is used to reflect that the screen of the electronic device is in a visible state. Specifically, the embodiment of the present application can establish a spherical coordinate system, and convert the first vector in the rectangular coordinate system collected by the IMU chip and used to reflect the tilt direction of the electronic device into a second vector in the spherical coordinate system, so that the second vector in the spherical coordinate system can reflect the tilt posture of the electronic device. When the tilt posture is within the range limited by the visible spherical area, the tilt posture can be considered to be a visible posture, that is, the electronic device is in the posture of the screen being viewed.
[0044] Reference Figure 1 , which shows an architecture diagram of an electronic device provided in an embodiment of the present application, including: a screen 10, a processor 20 and a posture sensor 30.
[0045] Among them, the screen 10 is used to display the interactive information provided by the electronic device, and the processor 20 can obtain the posture data transmitted by the posture sensor 30, process the posture data, and adjust the brightness of the screen 10 according to the processing result. The posture sensor 30 is a high-performance three-dimensional motion posture measurement device using micro-electromechanical technology, which can detect the posture data of the electronic device and send the posture data to the processor 20 for processing.
[0046] In one implementation, the posture sensor 30 may be an IMU chip, which may include motion detection devices such as a three-axis gyroscope and a three-axis accelerometer for detecting angular velocity, acceleration and other data, and performing motion posture measurement based on a quaternion data algorithm to output three-dimensional posture data.
[0047] Among them, refer to Figure 2, which shows a schematic diagram of a rectangular coordinate system provided by an embodiment of the present application. When the IMU chip includes a three-axis gyroscope and a three-axis accelerometer, the IMU chip can be called a 6-axis IMU chip, which can obtain the gyroscope values collected by the gyroscope on three axes (x-axis, y-axis, and z-axis) and the acceleration values collected by the accelerometer on three axes (x-axis, y-axis, and z-axis), and send these two data to the processor 20. The processor 20 can use Kalman filtering and gravity field fusion algorithms to calculate the posture data of the electronic device, such as the first vector r reflecting the tilt direction of the electronic device calculated according to the respective components of the gravity acceleration of the electronic device on the x-axis, y-axis, and z-axis in the rectangular coordinate system: rx, ry, and rz, as well as data such as the roll angle and the pitch angle, wherein r 2 =rx 2 +ry 2 +rz 2 .
[0048] Furthermore, the spherical coordinate system can be used to reflect a three-dimensional spherical scene. The embodiment of the present application can further map the first vector to the spherical coordinate system to obtain a second vector, thereby reflecting the change in the tilt direction of the electronic device in the three-dimensional scene. In addition, since the spherical coordinate system is a three-dimensional coordinate system, the sphere shown by the spherical coordinate system can also be used to set a visible spherical area on the sphere to limit the size of the visible range of the screen of the electronic device, thereby quantifying the visible range.
[0049] In the usage scenarios of electronic devices, screen power consumption is an important factor affecting battery life. Related technologies use a gyroscope to detect the gesture operation currently performed by the electronic device and adjust the screen brightness according to the gesture operation. However, sensing the gesture operation is only a node, and it is difficult for the electronic device to maintain perception of the state after the gesture operation, and it is impossible to adjust the screen brightness accordingly according to the state after the gesture operation. In complex usage scenarios, the electronic device may have a large screen power consumption in the state after the gesture operation, and related technologies cannot optimize this. For example, after detecting that the electronic device raises the hand to light up the screen, if the electronic device is deflected to a posture where the screen is not being viewed, gesture recognition is difficult to recognize this state. At this time, the high brightness of the screen causes greater power consumption.
[0050] In response to the above problems, the embodiments of the present application can optimize the screen brightness of the electronic device by focusing on whether the electronic device is in a state where the screen is being viewed by the user. When the user is viewing the screen, the screen can be turned on; when the user is not viewing the screen, the screen can be turned off or the screen brightness can be lowered to reduce screen power consumption, thereby taking into account both screen power saving and normal use of the electronic device in complex usage scenarios.
[0051] For example, refer to Figure 3, which shows a schematic diagram of a logistics warehousing system provided by an embodiment of the present application. In a logistics warehousing system scenario, the electronic device may be a logistics PDA 41. A picker 40 may hold the logistics PDA 41 and scan the code of an express parcel 51 on a shelf 50 to obtain product information, and upload the product information to a management terminal 52 for management. In actual logistics operations, the battery life of the logistics PDA 41 is an important factor affecting the picking efficiency. Moreover, the picker 40 needs to frequently switch between screen viewing and scanning code picking during the picking process. After turning on the screen to view, if the picker 40 turns the logistics PDA 41 to a non-viewing mode to scan code to transfer goods, the picker 40 is not viewing the screen at this time. However, if the screen remains on, it will lead to a waste of power. Over time, the battery life of the logistics PDA 41 will be seriously affected.
[0052] In order to achieve the purpose of saving power, in the embodiment of the present application, refer to Figure 4 , which shows a schematic diagram of a spherical coordinate system provided in an embodiment of the present application. A spherical coordinate system (OXYZ) can be established in the logistics PDA, and according to actual needs, a visible spherical area 61 can be divided in the sphere 60 shown in the spherical coordinate system (OXYZ). The logistics PDA can determine the posture of the logistics PDA by processing the posture data collected by the IMU chip through the processor, and convert the first vector r used to reflect the tilt direction of the logistics PDA into a second vector R in the spherical coordinate system (OXYZ), and then adjust the brightness of the screen of the logistics PDA according to the relationship between the second vector R and the visible spherical area 61 in the spherical coordinate system. When it is determined that the logistics PDA is in a posture where the screen is being viewed by the user, the screen is brightened; when it is determined that the logistics PDA is not in a posture where the screen is being viewed by the user, the screen is dimmed. In this way, on the basis of ensuring the normal realization of the screen display function, the screen power saving can be further performed, thereby improving the endurance of the logistics PDA.
[0053] Specifically, the reference vector D pointing from the center O of the spherical coordinate system (OXYZ) to the center m of the visible spherical area 61 can reflect that the logistics PDA is in the tilted direction when the screen is directly viewed by the user. The angle θ between the second vector R reflecting the current tilt posture of the logistics PDA and the reference vector D can reflect the degree of deviation between the current tilt posture of the logistics PDA and the posture of the logistics PDA when the screen is directly viewed by the user. Figure 5, which shows another schematic diagram of a spherical coordinate system provided by an embodiment of the present application. When the logistics PDA is in the posture of the picker 41 viewing the screen, the logistics PDA can detect that the angle θ between the second vector R and the reference vector D in the spherical coordinate system is less than the first preset angle threshold. At this time, the intersection of the second vector R and the sphere is in the visible spherical area 61. The processor can determine that the logistics PDA is in a visible posture, and the logistics PDA will further brighten the screen brightness to meet the normal viewing experience of the picker 41. When the logistics PDA is not in the posture of the picker 41 viewing the screen, such as the picker 41 turns his back to the screen to perform a code scanning operation, the logistics PDA can detect that the angle between the second vector R' and the reference vector D in the spherical coordinate system is greater than the first preset angle threshold. At this time, the intersection of the second vector R' and the sphere is not in the visible spherical area 61. The processor can determine that the logistics PDA is in a non-visible posture, and the logistics PDA will further dim the screen brightness to save power on the screen and improve battery life. Therefore, in the warehouse picking scenario of the logistics warehousing system, the logistics PDA can focus the power saving strategy on whether the picker is watching the screen and meet the screen power saving requirements under complex picking operations.
[0054] It should be noted that the first preset angle threshold can be obtained according to the radius of the visible spherical area 61. In addition, according to different actual needs, the visible spherical area 61 can also be a non-circular spherical area, which can be any regular shape or irregular shape.
[0055] In addition, in another implementation, it is also possible to directly Figure 2 The first vector r used to reflect the tilt direction of the electronic device is analyzed, and whether the electronic device is in a posture where the screen is viewed by the user is determined according to whether the first vector r satisfies the visible posture condition. The posture condition can be a set visible angle range. When the angle between the first vector R and the set reference vector is within the visible angle range, it is considered that the electronic device is in a posture where the screen is viewed by the user. The reference vector can be a tilt direction of the electronic device when the user looks directly at the screen.
[0056] Optionally, the electronic device includes: any one of a logistics PDA, a mobile phone, and a wearable device.
[0057] Furthermore, in other scenarios, electronic devices can be equipped with IMU chips and processor chips, so as to meet the requirements of posture data acquisition and posture data processing in the embodiments of the present application. For example, in scenarios such as mobile phone operation and wearable device operation, mobile phones and wearable devices are equipped with IMU chips and processor chips. Therefore, electronic devices working in other scenarios can also adopt a screen brightness control method provided by the present application, so as to flexibly adjust the brightness of the screen of the electronic device based on the relationship between the second vector reflecting the tilt direction of the electronic device in the spherical coordinate system and the visible spherical area in the spherical coordinate system.
[0058] Furthermore, electronic devices can all be equipped with a system on a chip (SoC), which is an integrated circuit that integrates a computer or other electronic system into a single chip, and can assist electronic devices in achieving corresponding functions. The system chip can process digital signals, analog signals, mixed signals, and even higher frequency signals. During the use of electronic devices, the power consumption of the system chip also affects the battery life of the electronic devices. The power consumption of the system chip is positively correlated with the operating frequency of the system chip, that is, the higher the operating frequency of the system chip, the higher the power consumption of the system chip.
[0059] In an embodiment of the present application, in order to further improve the battery life of an electronic device, while dimming the screen brightness of the electronic device to save power, the operating frequency of the system chip can be reduced to further save power; while brightening the screen brightness of the electronic device to achieve clear viewing, the operating frequency of the system chip can also be increased to improve the processing efficiency of the system chip.
[0060] For example, assuming that the normal operating frequency of the system chip is 500MHz, the operating frequency of the system chip can be adjusted from 500MHz to 250MHz in the process of adjusting the screen brightness of the electronic device from 100% to 50%. Of course, in practical applications, the operating frequency of the system chip can be reduced according to the actual needs of the operating system of the electronic device, and the embodiments of the present application are not limited thereto.
[0061] It should be noted that, for other types of chips, the embodiments of the present application can also reduce the operating frequency of the chip, thereby reducing power consumption.
[0062] In an embodiment of the present application, the electronic device can establish a spherical coordinate system for expressing the tilt direction of the electronic device, so that the tilt direction can be expressed by a second vector in the spherical coordinate system. In addition, a visible spherical area can be established in the sphere in the spherical coordinate system to reflect that the screen of the electronic device is in a visible state. The visible spherical area limits the size of the visible range. When the second vector is within the range limited by the visible spherical area, the electronic device can be considered to be in a visible posture; so that the present application can flexibly adjust the brightness of the screen of the electronic device based on the relationship between the second vector reflecting the tilt direction of the electronic device in the spherical coordinate system and the visible spherical area in the spherical coordinate system, solving the problem in the related art that it is difficult to improve the power saving efficiency in some more complex practical environments by only detecting gesture actions to save screen power. In addition, in the warehouse picking scenario of the logistics warehousing system, the logistics PDA can focus the power saving strategy on whether the picker is watching the screen, and can meet the screen power saving requirements under complex picking operations.
[0063] Reference Figure 6 , which shows a flowchart of the steps of a screen brightness control method provided by an embodiment of the present application, including:
[0064] Step 101: Acquire posture data of an electronic device, wherein the posture data includes a first vector in a rectangular coordinate system for reflecting a tilt direction of the electronic device.
[0065] In an embodiment of the present application, a posture sensor may be built into the electronic device. The posture sensor may be an IMU chip. The IMU chip may include motion detection devices such as a three-axis gyroscope and a three-axis accelerometer for detecting angular velocity, acceleration and other data, and performing motion posture measurement based on a quaternion data algorithm to output three-dimensional posture data.
[0066] Among them, refer to Figure 2 In the case where the IMU chip includes a three-axis gyroscope and a three-axis accelerometer, the IMU chip can be called a 6-axis IMU chip, which can obtain the gyroscope values collected by the gyroscope on three axes (x-axis, y-axis, and z-axis) and the acceleration values collected by the accelerometer on three axes (x-axis, y-axis, and z-axis), and send the two data to the processor 20. The processor 20 can use Kalman filtering and gravity field fusion algorithms to calculate the posture data of the electronic device, such as the first vector r reflecting the tilt direction of the electronic device calculated according to the respective components of the gravity acceleration of the electronic device on the x-axis, y-axis, and z-axis in the rectangular coordinate system: rx, ry, and rz, as well as data such as the roll angle and the pitch angle, where r 2 =rx 2 +ry 2 +rz 2 .
[0067] Step 102: convert the first vector into a second vector in a spherical coordinate system.
[0068] In an embodiment of the present application, the spherical coordinate system can be used to reflect a three-dimensional spherical scene. The embodiment of the present application can further map the first vector to the spherical coordinate system to obtain a second vector, thereby reflecting the change in the tilt direction of the electronic device in the three-dimensional scene. In addition, since the spherical coordinate system is a three-dimensional coordinate system, the sphere shown by the spherical coordinate system can also be used to set a visible spherical area on the sphere to limit the size of the visible range of the screen of the electronic device, thereby quantifying the visible range.
[0069] Specifically, refer to Figure 4 , the first vector in the rectangular coordinate system is converted to the second vector in the spherical coordinate system, which can be obtained by formula 1: To achieve this, substitute the x, y, and z axis values of the first vector into Formula 1 to obtain the value of the second vector R.
[0070] Step 103: adjust the brightness of the screen of the electronic device according to the relationship between the second vector and the visible spherical area in the spherical coordinate system; wherein the visible spherical area is used to reflect the area of the screen of the electronic device that is in a visible state.
[0071] The embodiments of the present application can optimize the screen brightness of an electronic device by focusing on whether the electronic device is in a state where the screen is being viewed by a user. When the screen is being viewed by a user, the screen can be turned on; when the screen is not being viewed by a user, the screen can be turned off or the screen brightness can be lowered to reduce screen power consumption, thereby taking into account both screen power saving and normal use of the electronic device in complex usage scenarios.
[0072] Specifically, a reference vector pointing from the center of the spherical coordinate system to the center of the visible spherical area can reflect that the electronic device is in a tilted direction where the screen is being looked directly at by the user. The size of the angle between the second vector reflecting the current tilt posture of the electronic device and the reference vector can reflect the degree of deviation between the current tilt posture of the electronic device and the posture where the screen is being looked directly at by the user. If the angle between the second vector and the reference vector is less than a first preset angle threshold, then the intersection of the second vector and the sphere is in the visible spherical area, and the processor can determine that the electronic device is in a visible posture, and the electronic device will further brighten the screen. If the angle between the second vector and the reference vector is greater than the first preset angle threshold, then the intersection of the second vector and the sphere is not in the visible spherical area, and the processor can determine that the electronic device is in a non-visible posture, and the electronic device will further dim the screen.
[0073] To summarize, in an embodiment of the present application, an electronic device can establish a spherical coordinate system for expressing the tilt direction of the electronic device, so that the tilt direction can be expressed by a second vector in the spherical coordinate system. In addition, a visible spherical area can be established in the sphere in the spherical coordinate system to reflect that the screen of the electronic device is in a visible state. The visible spherical area limits the size of the visible range. When the second vector is within the range limited by the visible spherical area, the electronic device can be considered to be in a visible posture; so that the present application can flexibly adjust the brightness of the screen of the electronic device based on the relationship between the second vector reflecting the tilt direction of the electronic device in the spherical coordinate system and the visible spherical area in the spherical coordinate system, thereby solving the problem in the related art that it is difficult to improve the power saving efficiency in some more complex practical environments by only detecting gesture actions to save screen power. In addition, in the warehouse picking scenario of the logistics warehousing system, the logistics PDA can focus the power saving strategy on whether the picker is watching the screen, and can meet the screen power saving requirements under complex picking operations.
[0074] Reference Figure 7 , shows a flowchart of another screen brightness control method embodiment of the present application. It includes:
[0075] Step 201 : acquiring posture data of an electronic device, wherein the posture data includes a first vector in a rectangular coordinate system for reflecting a tilt direction of the electronic device.
[0076] This step may refer to the above step 101 and will not be described again here.
[0077] Step 202: Setting a visible spherical area in the spherical coordinate system according to the posture data and the input performed on the electronic device.
[0078] In an embodiment of the present application, a user can hold the electronic device in various postures and, when in the target posture, perform input to the electronic device to collect current posture data. The posture data can be used to reflect the characteristics of the target posture. The posture data is mapped to a spherical coordinate system, and the intersection of the second vector contained in the posture data and the spherical surface can be found on the spherical surface of the spherical coordinate system. The visible spherical area can be divided through one or more intersection points finally obtained.
[0079] Among them, the user can perform input while looking directly at the center of the screen, and the input triggers the collection of posture data. The target posture may include: the posture of the electronic device reflected by the collected posture data when the user is looking directly at the center of the screen. Through the posture data, the intersection of the second vector contained in the posture data and the spherical surface can be found on the spherical surface of the spherical coordinate system. The intersection point can be used as the center of the visible spherical area. After further determining the radius of the visible spherical area, the visible spherical area can be obtained.
[0080] It should be noted that the input performed on the electronic device may include triggering operations on controls displayed in the interface (such as a mark button, a confirmation button, etc.), and may also include some gesture operations that do not change the posture of the electronic device, such as double-clicking the screen, pressing the screen, etc. It may also include triggering operations performed on physical buttons of the electronic device, which is not limited in the embodiments of the present application.
[0081] Optionally, the spherical coordinate system and the second vector are displayed in response to an input performed on the electronic device.
[0082] In the embodiments of this application, refer to Figure 8 , which shows an interface diagram of an electronic device of the present application. After triggering the operation of setting the visible spherical area, the electronic device can display the spherical coordinate system (OXYZ), and display the posture data collected by the electronic device in the spherical coordinate system, that is, the second vector R, and display a mark button for triggering the response input, and prompt: "Vector R is used to reflect the tilt direction of the electronic device. Please change the posture of the electronic device and mark the feature points used to construct the visible spherical area when the vector R is in a suitable position."
[0083] When the user changes the posture of the electronic device, the vector R will be updated in real time. The user can click the mark button at the appropriate position and establish feature points to construct the visible spherical area based on the relationship between the current posture of the electronic device and the visible range of the screen.
[0084] Optionally, in one implementation, step 202 may specifically include:
[0085] Sub-step 2021: determine the intersection of a second vector obtained in response to an input performed on the electronic device and the spherical surface of the spherical coordinate system as the center of the visible spherical area; the input includes: input performed when the user looks directly at the center of the screen.
[0086] Sub-step 2022, determining the radius value of the visible spherical area according to the size of the screen and a preset conversion ratio, and obtaining the visible spherical area in combination with the center, or obtaining the visible spherical area according to the received input radius value in combination with the center.
[0087] In one implementation, the user can perform input while looking directly at the center of the screen, and the input triggers the collection of posture data. The second vector R contained in the collected posture data reflects the tilt direction of the electronic device when the user looks directly at the center of the screen. At this time, the second vector R can be used as a reference vector, and the intersection of the second vector R on the spherical surface of the spherical coordinate system and the spherical surface can be used as the center of the visible spherical area.
[0088] Furthermore, one method can determine the radius value of the visible spherical area through the size of the screen and a preset conversion ratio. For example, based on the analysis of the screen size of the electronic device and the spherical coordinate system, the conversion ratio between the size of the screen and the radius value of the visible spherical area is determined. By obtaining the screen size of the electronic device and multiplying it by the conversion ratio, the radius value of the visible spherical area of the screen size of the electronic device can be directly obtained. Using the determined center of the visible spherical area and the radius value of the visible spherical area, the visible spherical area can be established in the spherical coordinate system.
[0089] Another way, refer to Figure 8 In the interface displayed after the operation of setting the visible spherical area is triggered, an input box for triggering the radius value of the visible spherical area can be set. The user can input the radius value of the visible spherical area according to actual needs. The visible spherical area can be established in the spherical coordinate system using the determined center of the visible spherical area and the radius value of the visible spherical area.
[0090] Optionally, in another implementation, step 202 may specifically include:
[0091] Sub-step 2023: In response to four inputs executed sequentially on the electronic device, a second vector obtained during each input is obtained, and each intersection point of the second vector and the spherical surface of the spherical coordinate system is used as a first fitting point.
[0092] Sub-step 2024: fitting the visible spherical area according to the four first fitting points.
[0093] Among them, the four inputs include: input executed when the user looks directly at the upper edge of the screen; input executed when the user looks directly at the lower edge of the screen; input executed when the user looks directly at the left edge of the screen; input executed when the user looks directly at the right edge of the screen.
[0094] In another implementation, referring to Fig. 9 , which shows a schematic diagram of setting a visible spherical area of the present application. In the process of setting the visible spherical area, the user can change the posture of the electronic device four times, including: posture a when the user looks directly at the upper edge of the screen; posture b when the user looks directly at the lower edge of the screen; posture c when the user looks directly at the left edge of the screen; posture d when the user looks directly at the right edge of the screen, and perform an input for each posture to obtain four second vectors, and obtain four first fitting points in the sphere 60 of the spherical coordinate system from the four second vectors: a1, b1, c1, d1, and these four first fitting points can be used to fit the visible spherical area 61 in the sphere 60.
[0095] Optionally, in another implementation, step 202 may specifically include:
[0096] Sub-step 2025: In response to five inputs executed sequentially on the electronic device, a second vector obtained during each input is obtained, and each intersection point of the second vector and the spherical surface of the spherical coordinate system is used as a second fitting point.
[0097] Sub-step 2026: fitting the visible spherical area according to the five second fitting points.
[0098] Among them, the five inputs include: input executed when the user looks directly at the center of the screen; input executed when the user looks directly at the upper edge of the screen; input executed when the user looks directly at the lower edge of the screen; input executed when the user looks directly at the left edge of the screen; input executed when the user looks directly at the right edge of the screen.
[0099] In another implementation, referring to Fig.10 , which shows another schematic diagram of setting the visible spherical area of the present application. In the process of setting the visible spherical area, the user can change the posture of the electronic device four times, including: posture A when the user looks directly at the upper edge of the screen; posture B when the user looks directly at the lower edge of the screen; posture C when the user looks directly at the left edge of the screen; posture D when the user looks directly at the right edge of the screen, and posture E when the user looks directly at the center of the screen, and perform an input once for each posture to obtain five second vectors, and obtain five second fitting points in the sphere 60 of the spherical coordinate system from the five second vectors: A1, B1, C1, D1, E1, and these five second fitting points can be used to fit a more accurate visible spherical area 61 in the sphere 60.
[0100] Step 203: convert the first vector into a second vector in a spherical coordinate system.
[0101] This step may refer to the above step 102 and will not be described again here.
[0102] Step 204 : determining an angle θ between a reference vector pointing from the center of the spherical coordinate system to the center of the visible spherical area and the second vector.
[0103] In the embodiment of the present application, the size of the angle θ between the second vector and the reference vector can reflect the degree of deviation between the current tilt posture of the electronic device and the posture of the electronic device when the screen is being viewed directly by the user. The larger the angle θ, the more the current tilt posture of the electronic device deviates from the posture of the electronic device when the screen is being viewed directly by the user; the smaller the angle θ, the closer the current tilt posture of the electronic device is to the posture of the electronic device when the screen is being viewed directly by the user.
[0104] Step 205: adjusting the brightness of the screen of the electronic device according to the angle θ.
[0105] Optionally, in one implementation, step 205 may specifically include:
[0106] Sub-step 2051: when the angle θ is less than or equal to a first preset angle threshold, determine that the user is watching the screen of the electronic device, and increase the brightness of the screen.
[0107] Sub-step 2052: when the angle θ is greater than the first preset angle value, determine that the user is not viewing the screen of the electronic device, and reduce the brightness of the screen.
[0108] Further references Figure 5 In the logistics warehousing scenario, when the logistics PDA is in the posture of the picker 41 watching the screen, the logistics PDA can detect that the angle θ between the second vector R and the reference vector D in the spherical coordinate system is less than the first preset angle threshold. At this time, the intersection of the second vector R and the sphere is in the visible spherical area 61. The processor can determine that the logistics PDA is in a visible posture, and the logistics PDA will further brighten the screen brightness to meet the normal viewing experience of the picker 41. When the logistics PDA is not in the posture of the picker 41 watching the screen, such as the picker 41 turns his back to the screen to scan the code, the logistics PDA can detect that the angle between the second vector R' and the reference vector D in the spherical coordinate system is greater than the first preset angle threshold. At this time, the intersection of the second vector R' and the sphere is not in the visible spherical area 61. The processor can determine that the logistics PDA is in a non-visible posture, and the logistics PDA will further dim the screen brightness to save screen power and improve battery life. The first preset angle threshold can be obtained according to the radius of the visible spherical area 61, for example, it can be 30 degrees.
[0109] Optionally, in the process of increasing the brightness of the screen, the smaller the value of the angle θ is, the greater the brightness of the screen is; in the process of decreasing the brightness of the screen, the larger the value of the angle θ is, the smaller the brightness of the screen is.
[0110] When the angle θ is smaller, the probability that the user is watching the screen of the electronic device is greater, and the screen brightness can be adjusted to be greater, so that the user can clearly watch the screen content. When the angle θ is larger, the probability that the user is watching the screen of the electronic device is smaller, and the screen brightness can be adjusted to be darker, so that the screen can save power.
[0111] Optionally, step 205 may further include:
[0112] Sub-step 2053: when the angle θ is greater than the first preset angle threshold, and the duration for which the angle θ is greater than the first preset angle threshold exceeds a preset duration threshold, turning off the screen.
[0113] When the angle θ is greater than the first preset angle threshold, the electronic device can determine that the user is not currently watching the screen, and when the angle θ is greater than the first preset angle threshold for a duration that exceeds a preset duration threshold (such as 30 seconds), it can be considered that the user is no longer using the electronic device to watch the screen. At this time, the screen can be turned off directly, thereby further saving screen power consumption.
[0114] Optionally, in another implementation, step 205 may specifically include:
[0115] Sub-step 2054: determining the target brightness corresponding to the current angle θ according to a preset corresponding relationship, wherein the corresponding relationship includes the corresponding relationship between different angles and brightness, and the larger the angle, the smaller the brightness corresponding to the angle.
[0116] Sub-step 2055: adjusting the brightness of the screen of the electronic device to the target brightness.
[0117] For example, the corresponding relationship can be pre-set: 0 degrees (angle θ is 0, i.e. the user is looking directly at the screen) - 100% brightness, 10 degrees - 90% brightness, 20 degrees - 80% brightness, 30 degrees - 70% brightness... and based on the angle θ between the second vector currently collected by the electronic device and the reference vector, the corresponding target brightness is searched in the corresponding relationship, and the brightness of the screen of the electronic device is adjusted to the target brightness, thereby achieving the purpose of flexibly adjusting the screen brightness according to the posture of the electronic device.
[0118] Optionally, before adjusting the brightness of the screen of the electronic device according to the relationship between the second vector and the visible spherical area in the spherical coordinate system, the method further includes:
[0119] Step 207: Setting a custom spherical area associated with the visible spherical area in the spherical coordinate system.
[0120] Step 208: Adjust the brightness of the screen according to the angle α between the reference subvector pointing from the center of the spherical coordinate system to the center of the custom spherical area and the second vector.
[0121] In the embodiments of the present application, due to the diversity of the structure of the electronic device itself and the complexity of the use environment of the electronic device, when using the electronic device, it is affected by the structure and environment itself, and often there are some specific posture ranges. These specific posture ranges include: some specific visible posture ranges and / or some specific non-visible posture ranges. For example, when the posture of the electronic device is within some specific visible posture ranges, it is not within the range defined by the visible spherical area of the embodiment itself or overlaps with the range defined by the visible spherical area, but when the posture of the electronic device is within these specific visible posture ranges, the screen needs to be turned on for the user to view the screen normally; when the posture of the electronic device is within some specific non-visible posture ranges, and these specific non-visible posture ranges overlap with the range defined by the visible spherical area, but when the posture of the electronic device is within these specific non-visible posture ranges, the screen needs to be turned off to reduce screen power consumption.
[0122] Therefore, refer to Fig.11 , which shows a schematic diagram of another spherical coordinate system of the present application. In the embodiment of the present application, for these specific posture ranges, a first custom spherical area 62 and a first custom spherical area 63 associated with the visible spherical area 61 can be set in the spherical coordinate system; and the angle α between the reference subvector D1 pointing to the center of the custom spherical area by the spherical coordinate system and the second vector R is used to adjust the brightness of the screen. Specifically, in the case where the custom spherical area is an area reflecting the visible posture range, when the second vector R overlaps with the custom spherical area due to the change of the angle α, it can be judged that the screen needs to be bright for the user to watch; in the case where the second vector R does not overlap with the custom spherical area due to the change of the angle α, it can be judged that the screen is dark to save power consumption; in the case where the custom spherical area is an area reflecting the non-visible posture range, when the second vector R overlaps with the custom spherical area due to the change of the angle α, it can be judged that the screen is dark to save power consumption; in the case where the second vector R does not overlap with the custom spherical area due to the change of the angle α, it can be judged that the screen needs to be bright for the user to watch.
[0123] The radius of the custom spherical area can be set according to actual needs. According to different actual needs, the custom spherical area can also be a non-circular spherical area, which can be any regular shape or irregular shape. The method for setting the division of the custom spherical area can refer to the method for setting the division of the visible spherical area in the above embodiment.
[0124] Optionally, the custom spherical area has a visible type and a non-visual type; step 208 may specifically include:
[0125] Sub-step 2081: for a non-visual custom spherical area, when the angle α is less than or equal to a second preset angle threshold, determine that the user is not watching the screen, and reduce the brightness of the screen.
[0126] Sub-step 2082: for the non-visual type custom spherical area, when the angle α is greater than the second preset angle threshold, determine that the user is watching the screen, and increase the brightness of the screen.
[0127] Sub-step 2083: for the custom spherical area of the visual type, when the angle α is less than or equal to the third preset angle threshold, determine that the user is watching the screen, and increase the brightness of the screen.
[0128] Sub-step 2084: for the custom spherical area of the visual type, when the angle α is greater than the third preset angle threshold, determine that the user is not watching the screen, and reduce the brightness of the screen.
[0129] Specifically, the second preset angle threshold can be obtained according to the radius of the non-visual custom spherical area; and the third preset angle threshold can be obtained according to the radius of the visual custom spherical area.
[0130] In an embodiment of the present application, the screen brightness adjustment logic based on the custom spherical area can take precedence over the screen brightness adjustment logic based on the visible spherical area.
[0131] Optional, see Fig.12 , which shows a schematic diagram of a logistics PDA of the present application. A support member 412 is provided on the side of the logistics handheld computer 41 away from the screen 411; further reference is made to Fig.11 The custom spherical area includes: a first custom spherical area 62 and a second custom spherical area 63 overlapping the visible spherical area, and the first custom spherical area 62 and the second custom spherical area 63 are arranged relatively; Fig.13 , which shows a schematic diagram of placing a logistics PDA of the present application. The logistics PDA 41 is arranged on a horizontal plane with the first side q and the support member 612 as support, or, referring to Fig.14 , which shows another schematic diagram of the placement of the logistics PDA of the present application. When the logistics PDA 41 is arranged on a horizontal plane with the second side p and the support 612 as support, the first custom spherical area 62 and the second custom spherical area 63 are determined to be non-visible types, and the second side p is the side opposite to the first side q.
[0132] In the logistics warehousing system scenario, the pickers often need to place the logistics handheld computer 41 on the desktop or table to perform other operations during the busy picking process. The logistics handheld computer 41 used by the pickers is as follows: Fig.12 As shown, a support member 412 is provided on one side of the logistics handheld computer 41 away from the screen 411. The logistics handheld computer 41 can be supported and placed based on one side and the support member 412, that is, Fig.13 and Fig.14 The posture shown, but in Fig.13 and Fig.14 In the posture shown, the picker does not need to look at the screen, so the screen needs to be dimmed to save power. Fig.13 and Fig.14 The posture shown is a non-visible posture. Fig.13 and Fig.14 The non-visible range of the posture of the logistics palm computer 41 shown in the figure overlaps with the visible range defined by the visible spherical area of the screen itself, so it can be Fig.11 In the spherical coordinate system in the spherical coordinate system, a first custom spherical area 62 and a second custom spherical area 63 overlapping with the visible spherical area 61 are set, and the first custom spherical area 62 and the second custom spherical area 63 are set relatively; the first custom spherical area 62 can correspond to Fig.13 The non-visible range of the posture shown; the second custom spherical area 63 can correspond to Fig.14 The gesture shown is in a non-visible range, and the first custom spherical area 62 and the second custom spherical area 63 are non-visible types, that is, when the angle α between the reference subvector from the center of the spherical coordinate system to the center of the first custom spherical area 62 and the second vector R is less than or equal to the second preset angle threshold, it is determined that the user is not watching the screen, and the brightness of the screen is reduced; when the angle α is greater than the second preset angle threshold, it is determined that the user is watching the screen, and the brightness of the screen is increased; when the angle α' between the reference subvector from the center of the spherical coordinate system to the center of the second custom spherical area 63 and the second vector R is less than or equal to the second preset angle threshold, it is determined that the user is not watching the screen, and the brightness of the screen is reduced; when the angle α' is greater than the second preset angle threshold, it is determined that the user is watching the screen, and the brightness of the screen is increased. The value of the angle α can be obtained from the radius of the second custom spherical area 62; the value of the angle α' can be obtained from the radius of the second custom spherical area 63.
[0133] To summarize, in an embodiment of the present application, an electronic device can establish a spherical coordinate system for expressing the tilt direction of the electronic device, so that the tilt direction can be expressed by a second vector in the spherical coordinate system. In addition, a visible spherical area can be established in the sphere in the spherical coordinate system to reflect that the screen of the electronic device is in a visible state. The visible spherical area limits the size of the visible range. When the second vector is within the range limited by the visible spherical area, the electronic device can be considered to be in a visible posture; so that the present application can flexibly adjust the brightness of the screen of the electronic device based on the relationship between the second vector reflecting the tilt direction of the electronic device in the spherical coordinate system and the visible spherical area in the spherical coordinate system, thereby solving the problem in the related art that it is difficult to improve the power saving efficiency in some more complex practical environments by only detecting gesture actions to save screen power. In addition, in the warehouse picking scenario of the logistics warehousing system, the logistics PDA can focus the power saving strategy on whether the picker is watching the screen, and can meet the screen power saving requirements under complex picking operations.
[0134] Reference Fig.15 , shows a structural block diagram of a screen brightness control device according to an embodiment of the present application. The screen brightness control device 300 may specifically include the following modules:
[0135] An acquisition module 301 is used to acquire posture data of an electronic device, wherein the posture data includes a first vector in a rectangular coordinate system for reflecting a tilt direction of the electronic device;
[0136] A mapping module 302, configured to convert the first vector into a second vector in a spherical coordinate system;
[0137] The adjustment module 303 is used to adjust the brightness of the screen of the electronic device according to the relationship between the second vector and the visible spherical area in the spherical coordinate system; wherein the visible spherical area is used to reflect the area of the screen of the electronic device that is in a visible state.
[0138] Optionally, the device further comprises:
[0139] A setting module is used to set a visible spherical area in the spherical coordinate system according to the posture data and the input performed on the electronic device.
[0140] Optionally, the setting module includes:
[0141] A first response submodule, configured to determine the intersection of a second vector obtained in response to an input performed on the electronic device and the spherical surface of the spherical coordinate system as the center of the visible spherical surface area; the input includes: input performed when the user looks directly at the center of the screen;
[0142] The radius acquisition submodule is used to determine the radius value of the visible spherical area according to the size of the screen and the preset conversion ratio, and obtain the visible spherical area in combination with the center; or, obtain the visible spherical area according to the received input radius value in combination with the center.
[0143] Optionally, the setting module includes:
[0144] A second response submodule, configured to, in response to four inputs sequentially executed on the electronic device, obtain a second vector obtained at each input, and use an intersection point between each second vector and the spherical surface of the spherical coordinate system as a first fitting point;
[0145] A first fitting submodule, configured to obtain the visible spherical area by fitting the four first fitting points;
[0146] Among them, the four inputs include: input executed when the user looks directly at the upper edge of the screen; input executed when the user looks directly at the lower edge of the screen; input executed when the user looks directly at the left edge of the screen; input executed when the user looks directly at the right edge of the screen.
[0147] Optionally, the setting module includes:
[0148] A third response submodule, configured to, in response to five inputs sequentially executed on the electronic device, obtain a second vector obtained at each input, and use an intersection point between each second vector and the spherical surface of the spherical coordinate system as a second fitting point;
[0149] A second fitting submodule, configured to obtain the visible spherical area by fitting the five second fitting points;
[0150] Among them, the five inputs include: input executed when the user looks directly at the center of the screen; input executed when the user looks directly at the upper edge of the screen; input executed when the user looks directly at the lower edge of the screen; input executed when the user looks directly at the left edge of the screen; input executed when the user looks directly at the right edge of the screen.
[0151] Optionally, the spherical coordinate system and the second vector are displayed in response to an input performed on the electronic device.
[0152] Optionally, the adjustment module includes:
[0153] An angle determination submodule, used to determine an angle θ between a reference vector pointing from the center of the spherical coordinate system to the center of the visible spherical area and the second vector;
[0154] The adjustment submodule is used to adjust the brightness of the screen of the electronic device according to the angle θ.
[0155] Optionally, the adjustment submodule includes:
[0156] A first adjustment unit, configured to determine that the user is viewing the screen of the electronic device and increase the brightness of the screen when the angle θ is less than or equal to a first preset angle threshold;
[0157] The second adjustment unit is used to determine that the user is not watching the screen of the electronic device and reduce the brightness of the screen when the angle θ is greater than the first preset angle value.
[0158] Optionally, in the process of increasing the brightness of the screen, the smaller the value of the angle θ is, the greater the brightness of the screen is;
[0159] In the process of reducing the brightness of the screen, the larger the value of the angle θ is, the smaller the brightness of the screen is.
[0160] Optionally, the device further comprises:
[0161] The screen-off module is used to turn off the screen when the angle θ is greater than the first preset angle threshold and the duration for which the angle θ is greater than the first preset angle threshold exceeds a preset duration threshold.
[0162] Optionally, the adjustment submodule includes:
[0163] A brightness mapping unit, used to determine the target brightness corresponding to the current angle θ according to a preset corresponding relationship, wherein the corresponding relationship includes a corresponding relationship between different angles and brightness, and the larger the angle, the smaller the brightness corresponding to the angle;
[0164] An adjustment unit is used to adjust the brightness of the screen of the electronic device to the target brightness.
[0165] Optionally, the device further comprises:
[0166] An association module, used for setting a custom spherical area associated with the visible spherical area in the spherical coordinate system;
[0167] The device also includes:
[0168] The adjustment module is used to adjust the brightness of the screen according to the angle α between the reference subvector pointing from the center of the spherical coordinate system to the center of the custom spherical area and the second vector.
[0169] Optionally, the custom spherical area has a visible type and a non-visual type;
[0170] The adjustment module comprises:
[0171] A first adjustment submodule is used for determining that the user is not viewing the screen and reducing the brightness of the screen when the angle α is less than or equal to a second preset angle threshold for a non-visual custom spherical area;
[0172] A second adjustment submodule is used for determining that the user is watching the screen and increasing the brightness of the screen when the angle α is greater than the second preset angle threshold for the non-visual custom spherical area;
[0173] A third adjustment submodule is used for determining that the user is watching the screen and increasing the brightness of the screen when the angle α is less than or equal to a third preset angle threshold for the custom spherical area of the visual type;
[0174] The fourth adjustment submodule is used for determining, for the custom spherical area of the visual type, that the user is not watching the screen and reducing the brightness of the screen when the angle α is greater than the third preset angle threshold.
[0175] Optionally, when the electronic device includes a logistics handheld computer, a support is provided on a side of the logistics handheld computer away from the screen; the custom spherical surface area includes: a first custom spherical surface area and a second custom spherical surface area overlapping the visible spherical surface area, and the first custom spherical surface area and the second custom spherical surface area are arranged opposite to each other;
[0176] When the logistics handheld computer is arranged on a horizontal plane with the first side and the support member as support, or when the logistics handheld computer is arranged on a horizontal plane with the second side and the support member as support, the first custom spherical area and the second custom spherical area are determined to be non-visual types, and the second side is the side opposite to the first side.
[0177] Optionally, the electronic device includes: any one of a logistics PDA, a mobile phone, and a wearable device.
[0178] In summary, in the embodiments of the present application, the electronic device can establish a spherical coordinate system for expressing the tilt direction of the electronic device, so that the tilt direction can be expressed by a second vector in the spherical coordinate system. In addition, a visible spherical area can be established in the sphere in the spherical coordinate system to reflect that the screen of the electronic device is in a visible state. The visible spherical area limits the size of the visible range. When the second vector is within the range limited by the visible spherical area, the electronic device can be considered to be in a visible posture; so that the present application can flexibly adjust the brightness of the screen of the electronic device based on the relationship between the second vector reflecting the tilt direction of the electronic device in the spherical coordinate system and the visible spherical area in the spherical coordinate system, solving the problem in the related art that it is difficult to improve the power saving efficiency in some more complex practical environments by only detecting gesture actions to save screen power. In addition, in the warehouse picking scenario of the logistics warehousing system, the logistics PDA can focus the power saving strategy on whether the picker is watching the screen, and can meet the screen power saving requirements under complex picking operations.
[0179] Reference Fig.16 , shows a structural block diagram of a logistics scanning device in an embodiment of the present application, which may specifically include a screen brightness control device 300.
[0180] In the embodiment of the present application, the specific explanation of the logistics scanning device can refer to the description of the logistics PDA in the above embodiment, which will not be repeated here.
[0181] In summary, in the embodiments of the present application, the logistics scanning device can establish a spherical coordinate system for expressing the tilt direction of the logistics scanning device, so that the tilt direction can be expressed by a second vector in the spherical coordinate system. In addition, a visible spherical area can be established in the sphere in the spherical coordinate system to reflect that the screen of the logistics scanning device is in a visible state. The visible spherical area limits the size of the visible range. When the second vector is within the range limited by the visible spherical area, the logistics scanning device can be considered to be in a visible posture; this allows the present application to flexibly adjust the brightness of the screen of the logistics scanning device based on the relationship between the second vector reflecting the tilt direction of the logistics scanning device in the spherical coordinate system and the visible spherical area in the spherical coordinate system, thereby solving the problem in the related art that it is difficult to improve the power saving efficiency in some more complex practical environments by only detecting gesture actions to save screen power. In addition, in the warehouse picking scenario of the logistics warehousing system, the logistics PDA can focus the power saving strategy on whether the picker is watching the screen, and can meet the screen power saving requirements under complex picking operations.
[0182] The embodiment of the present application also provides a non-volatile readable storage medium, which stores one or more modules (programs). When the one or more modules are applied to a device, the device can execute instructions (instructions) of each method step in the embodiment of the present application.
[0183] The present application embodiment provides one or more machine-readable media on which instructions are stored, and when executed by one or more processors, an electronic device executes one or more of the methods described in the above embodiments. In the present application embodiment, the electronic device includes various types of devices such as terminal devices and server terminals (clusters).
[0184] The embodiments of the present disclosure may be implemented as a device that uses any appropriate hardware, firmware, software, or any combination thereof to perform desired configurations, and the device may include electronic devices such as terminal devices and server (cluster). Fig.17 An exemplary device 700 that can be used to implement various embodiments described in the embodiments of the present application is schematically shown.
[0185] For one embodiment, Fig.17 An exemplary apparatus 700 is shown having one or more processors 702, a control module (chip set) 704 coupled to at least one of the processor(s) 702, a memory 706 coupled to the control module 704, a non-volatile memory (NVM) / storage device 708 coupled to the control module 704, one or more input / output devices 710 coupled to the control module 704, and a network interface 712 coupled to the control module 704.
[0186] The processor 702 may include one or more single-core or multi-core processors, and the processor 702 may include any combination of general-purpose processors or special-purpose processors (such as graphics processors, application processors, baseband processors, etc.). In some embodiments, the device 700 can be used as a terminal device, a server (cluster), and other devices described in the embodiments of the present application.
[0187] In some embodiments, the apparatus 700 may include one or more computer-readable media (e.g., memory 706 or NVM / storage device 708) having instructions 714 and one or more processors 702 combined with the one or more computer-readable media and configured to execute the instructions 714 to implement a module to perform the actions described in the present disclosure.
[0188] For one embodiment, the control module 704 may include any suitable interface controller to provide any suitable interface to at least one of the processor(s) 702 and / or any suitable device or component in communication with the control module 704 .
[0189] The control module 704 may include a memory controller module to provide an interface to the memory 706. The memory controller module may be a hardware module, a software module, and / or a firmware module.
[0190] The memory 706 may be used, for example, to load and store data and / or instructions 714 for the device 700. For one embodiment, the memory 706 may include any suitable volatile memory, such as a suitable DRAM. In some embodiments, the memory 706 may include double data rate type four synchronous dynamic random access memory (DDR4 SDRAM).
[0191] For one embodiment, control module 704 may include one or more input / output controllers to provide an interface to NVM / storage device 708 and input / output device(s) 710 .
[0192] For example, NVM / storage 708 may be used to store data and / or instructions 714. NVM / storage 708 may include any suitable non-volatile memory (e.g., flash memory) and / or may include any suitable non-volatile storage device(s) (e.g., one or more hard disk drives (HDDs), one or more compact disk (CD) drives, and / or one or more digital versatile disk (DVD) drives).
[0193] NVM / storage device 708 may include storage resources that are physically part of the device on which apparatus 700 is installed, or it may be accessible to the device without being part of the device. For example, NVM / storage device 708 may be accessed via input / output device(s) 710 over a network.
[0194] (One or more) input / output devices 710 may provide an interface for the apparatus 700 to communicate with any other appropriate device, and the input / output device 710 may include a communication component, an audio component, a sensor component, etc. The network interface 712 may provide an interface for the apparatus 700 to communicate through one or more networks, and the apparatus 700 may wirelessly communicate with one or more components of a wireless network according to any of one or more wireless network standards and / or protocols, for example, accessing a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G, 5G, etc., or a combination thereof for wireless communication.
[0195] For one embodiment, at least one of the processor(s) 702 may be packaged together with the logic of one or more controllers (e.g., a memory controller module) of the control module 704. For one embodiment, at least one of the processor(s) 702 may be packaged together with the logic of one or more controllers of the control module 704 to form a system-in-package (SiP). For one embodiment, at least one of the processor(s) 702 may be integrated on the same die with the logic of one or more controllers of the control module 704. For one embodiment, at least one of the processor(s) 702 may be integrated on the same die with the logic of one or more controllers of the control module 704 to form a system-on-chip (SoC).
[0196] In various embodiments, the device 700 may be, but is not limited to, a terminal device such as a server, a desktop computing device, or a mobile computing device (e.g., a laptop computing device, a handheld computing device, a tablet computer, a netbook, etc.). In various embodiments, the device 700 may have more or fewer components and / or different architectures. For example, in some embodiments, the device 700 includes one or more cameras, a keyboard, a liquid crystal display (LCD) screen (including a touch screen display), a non-volatile memory port, multiple antennas, a graphics chip, an application-specific integrated circuit (ASIC), and a speaker.
[0197] Among them, the main control chip can be used as a processor or control module in the detection device, sensor data, location information, etc. are stored in a memory or NVM / storage device, the sensor group can be used as an input / output device, and the communication interface may include a network interface.
[0198] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0199] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0200] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0201] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0202] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable terminal device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0203] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present application.
[0204] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0205] The above is a detailed introduction to a screen brightness control method, device, electronic device and storage medium provided by the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for general technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A screen brightness control method, characterized in that: The method comprises: Acquire posture data of the electronic device, wherein the posture data includes a first vector in a rectangular coordinate system for reflecting a tilt direction of the electronic device; setting a visible spherical area in the spherical coordinate system according to the posture data and an input performed on the electronic device; transforming the first vector into a second vector in a spherical coordinate system; The brightness of the screen of the electronic device is adjusted according to the relationship between the second vector and the visible spherical area in the spherical coordinate system; wherein the visible spherical area is used to reflect the area of the screen of the electronic device that is in a visible state.
2. The method according to claim 1, characterized in that: The step of setting a visible spherical area in the spherical coordinate system according to the posture data and the input performed on the electronic device includes: Determining the intersection of a second vector obtained in response to an input performed on the electronic device and the spherical surface of the spherical coordinate system as the center of the visible spherical surface area; the input includes: input performed when the user looks directly at the center of the screen; Determine the radius of the visible spherical area according to the size of the screen and a preset conversion ratio, and obtain the visible spherical area in combination with the center; Or, the visible spherical area is obtained according to the received input radius value and in combination with the center.
3. The method according to claim 1, characterized in that The step of setting a visible spherical area in the spherical coordinate system according to the posture data and the input performed on the electronic device includes: In response to four inputs sequentially performed on the electronic device, a second vector obtained at each input is obtained, and an intersection point between each second vector and the spherical surface of the spherical coordinate system is used as a first fitting point; The visible spherical area is obtained by fitting the four first fitting points; Among them, the four inputs include: input executed when the user looks directly at the upper edge of the screen; input executed when the user looks directly at the lower edge of the screen; input executed when the user looks directly at the left edge of the screen; input executed when the user looks directly at the right edge of the screen.
4. The method according to claim 1, characterized in that: The step of setting a visible spherical area in the spherical coordinate system according to the posture data and the input performed on the electronic device includes: In response to five inputs sequentially performed on the electronic device, a second vector obtained at each input is obtained, and an intersection point between each second vector and the spherical surface of the spherical coordinate system is used as a second fitting point; The visible spherical area is obtained by fitting according to the five second fitting points; Among them, the five inputs include: input executed when the user looks directly at the center of the screen; input executed when the user looks directly at the upper edge of the screen; input executed when the user looks directly at the lower edge of the screen; input executed when the user looks directly at the left edge of the screen; input executed when the user looks directly at the right edge of the screen.
5. The method according to any one of claims 1 to 4, characterized in that: In response to an input performed on the electronic device, the spherical coordinate system and the second vector are displayed.
6. A screen brightness control device, characterized in that: The device comprises: An acquisition module, used for acquiring posture data of the electronic device, wherein the posture data includes a first vector in a rectangular coordinate system for reflecting a tilt direction of the electronic device; a setting module, configured to set a visible spherical area in the spherical coordinate system according to the posture data and an input performed on the electronic device; A mapping module, configured to convert the first vector into a second vector in a spherical coordinate system; An adjustment module is used to adjust the brightness of the screen of the electronic device according to the relationship between the second vector and the visible spherical area in the spherical coordinate system; wherein the visible spherical area is used to reflect the area of the screen of the electronic device that is in a visible state.
7. A logistics scanning device, characterized in that: The logistics scanning equipment includes: a screen brightness control device as described in claim 6.
8. An electronic device, characterized in that: include: processor; and A memory having executable codes stored thereon, which, when executed, causes the processor to execute the method according to any one of claims 1 to 5.
9. A machine-readable medium having executable codes stored thereon, which, when executed, causes a processor to perform the method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Method for switching screen state and terminal
CN108600517A