CN111176601B - Processing method and device - Google Patents

Processing method and device Download PDF

Info

Publication number
CN111176601B
CN111176601B CN201911241899.5A CN201911241899A CN111176601B CN 111176601 B CN111176601 B CN 111176601B CN 201911241899 A CN201911241899 A CN 201911241899A CN 111176601 B CN111176601 B CN 111176601B
Authority
CN
China
Prior art keywords
light intensity
display screen
value
intensity value
display
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911241899.5A
Other languages
Chinese (zh)
Other versions
CN111176601A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201911241899.5A priority Critical patent/CN111176601B/en
Publication of CN111176601A publication Critical patent/CN111176601A/en
Application granted granted Critical
Publication of CN111176601B publication Critical patent/CN111176601B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/147Digital output to display device ; Cooperation and interconnection of the display device with other functional units using display panels
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0346Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of the device orientation or free movement in a 3D space, e.g. 3D mice, 6-DOF [six degrees of freedom] pointers using gyroscopes, accelerometers or tilt-sensors

Abstract

The invention discloses a processing method, which comprises the following steps: acquiring a first light intensity value of a first display screen and a second light intensity value of a second display screen, wherein the first display screen and the second display screen can move relatively; determining an adjustment strategy; and adjusting the display brightness of the first display screen and the second display screen based on the adjustment strategy, the first light intensity value and the second light intensity value. The invention also discloses a processing device.

Description

Processing method and device
Technical Field
The invention relates to a display technology, in particular to a processing method and a processing device.
Background
At present, when a dual-screen notebook computer or a dual-screen mobile phone is used, because one of the display screens is a screen frequently operated by a user (hereinafter referred to as a first display screen), when the user frequently operates the first display screen, the first display screen is frequently shielded, so that the brightness of the first display screen is also frequently adjusted, and thus, the eyes of the user are easily tired.
Disclosure of Invention
In view of the above, embodiments of the present invention are directed to a processing method and apparatus.
The technical scheme of the embodiment of the invention is realized as follows:
according to an aspect of the application, there is provided a processing method, the method comprising:
acquiring a first light intensity value of a first display screen and a second light intensity value of a second display screen, wherein the first display screen and the second display screen can move relatively;
determining an adjustment strategy;
and adjusting the display brightness of the first display screen and the second display screen based on the adjustment strategy, the first light intensity value and the second light intensity value.
In the foregoing solution, the determining an adjustment policy includes:
determining the adjustment strategy based on the triaxial acceleration information of the first display screen and the triaxial acceleration information of the second display screen;
or, the adjustment strategy is determined based on a first light intensity change value of the first light intensity value in a preset time and a second light intensity change value of the second light intensity value in the preset time.
In the foregoing solution, the adjusting the display brightness of the first display screen and the second display screen based on the adjustment strategy, the first light intensity value, and the second light intensity value includes:
acquiring the three-axis acceleration information of the first display screen and the three-axis acceleration information of the second display screen under the condition that the adjustment strategy representation adjusts the display brightness based on the three-axis acceleration information of the first display screen and the three-axis acceleration information of the second display screen;
under the condition that the first display screen and the second display screen are in the first posture, the display brightness of the first display screen and the display brightness of the second display screen are adjusted according to the first light intensity value or the second light intensity value; the first pose characterizes that the first display screen and the second display screen are in at least one of a tent mode, a tablet computer mode and a shell mode;
or, under the condition that the first display screen and the second display screen are in the second posture, the display brightness of the first display screen and the second display screen is adjusted by the maximum light intensity value in the first light intensity value and the second light intensity value based on the three-axis acceleration information of the first display screen and the three-axis acceleration information of the second display screen; the second gesture characterizes the first display screen and the second display screen in a book mode.
In the foregoing solution, the adjusting the display brightness of the first display screen and the second display screen based on the adjustment strategy, the first light intensity value, and the second light intensity value includes:
when the adjustment strategy represents that the display brightness is adjusted based on the light intensity change values of the first light intensity value and the second light intensity value within the preset time, acquiring a first light intensity change value of the first light intensity value within the preset time and a second light intensity change value of the second light intensity value within the preset time;
comparing the first light intensity variation value with a first preset threshold value, and comparing the second light intensity variation value with a second preset threshold value, wherein the first preset threshold value is associated with the first light intensity value, and the second preset threshold value is associated with the second light intensity value;
when the comparison result indicates that the first light intensity variation value is smaller than the first preset threshold value and the second light intensity variation value is larger than the second preset threshold value, adjusting the display brightness of the first display screen and the second display screen according to the maximum light intensity value in the first light intensity value;
or, when the comparison result indicates that the first light intensity variation value is smaller than the first preset threshold value and the second light intensity variation value is smaller than the second preset threshold value, adjusting the display brightness of the first display screen and the second display screen by using the maximum light intensity value of the first light intensity value and the second light intensity value;
or acquiring the posture information of the first display screen and the second display screen when the comparison result indicates that the first light intensity variation value is greater than the first preset threshold value and the second light intensity variation value is less than the second preset threshold value; and under the condition that the first display screen and the second display screen are in the shell posture and the first display screen is positioned below the second display screen based on the posture information, adjusting the display brightness of the first display screen and the second display screen according to the maximum light intensity value in the first light intensity value and the second light intensity value.
In the above solution, before the adjusting the display brightness of the first display screen and the second display screen based on the adjustment strategy, the first light intensity value, and the second light intensity value, the method further includes:
detecting a third variation value corresponding to the first light intensity value at the current time and a fourth variation value corresponding to the second light intensity value at the current time;
calculating a quotient between the fourth variation and the third variation;
and when the quotient value is larger than a third preset threshold value, adjusting the display brightness of the first display screen and the second display screen by using the maximum light intensity value of the first light intensity value and the second light intensity value.
In the above solution, before the adjusting the display brightness of the first display screen and the second display screen based on the adjustment strategy, the first light intensity value, and the second light intensity value, the method further includes:
and saving a target light intensity value for adjusting the display brightness of the first display screen and the second display screen.
According to another aspect of the present application, there is provided a processing apparatus, the apparatus comprising:
the device comprises an acquisition unit, a display unit and a control unit, wherein the acquisition unit is used for acquiring a first light intensity value of a first display screen and a second light intensity value of a second display screen, and the first display screen and the second display screen can move relatively;
a determining unit for determining an adjustment strategy;
and the adjusting unit is used for adjusting the display brightness of the first display screen and the second display screen based on the adjusting strategy, the first light intensity value and the second light intensity value.
In the foregoing solution, the determining unit is specifically configured to determine the adjustment policy based on the three-axis acceleration information of the first display screen and the three-axis acceleration information of the second display screen; or, the adjustment strategy is determined based on a first light intensity change value of the first light intensity value in a preset time and a second light intensity change value of the second light intensity value in the preset time.
In the above scheme, the apparatus further comprises: a comparison unit;
the obtaining unit is further configured to obtain the three-axis acceleration information of the first display screen and the three-axis acceleration information of the second display screen when the adjustment strategy indicates that the display brightness is adjusted based on the three-axis acceleration information of the first display screen and the three-axis acceleration information of the second display screen; the adjustment strategy is further used for acquiring a first light intensity change value of the first light intensity value within a preset time and a second light intensity change value of the second light intensity value within the preset time under the condition that the adjustment strategy representation adjusts the display brightness based on the light intensity change values of the first light intensity value and the second light intensity value within the preset time;
the comparison unit is used for comparing the first light intensity change value with a first preset threshold value and comparing the second light intensity change value with a second preset threshold value, wherein the first preset threshold value is associated with the first light intensity value, and the second preset threshold value is associated with the second light intensity value;
the adjusting unit is specifically configured to adjust the display brightness of the first display screen and the second display screen according to the first light intensity value or the second light intensity value when the first display screen and the second display screen are determined to be in the first posture based on the three-axis acceleration information of the first display screen and the three-axis acceleration information of the second display screen; the first pose characterizes that the first display screen and the second display screen are in at least one of a tent mode, a tablet computer mode and a shell mode; or, under the condition that the first display screen and the second display screen are in the second posture, the display brightness of the first display screen and the second display screen is adjusted by the maximum light intensity value in the first light intensity value and the second light intensity value based on the three-axis acceleration information of the first display screen and the three-axis acceleration information of the second display screen; the second gesture characterizes that the first display screen and the second display screen are in a book mode; or, when the comparison result indicates that the first light intensity variation value is smaller than the first preset threshold value and the second light intensity variation value is larger than the second preset threshold value, adjusting the display brightness of the first display screen and the second display screen by using the maximum light intensity value in the first light intensity value; or, when the comparison result indicates that the first light intensity variation value is smaller than the first preset threshold value and the second light intensity variation value is smaller than the second preset threshold value, adjusting the display brightness of the first display screen and the second display screen by using the maximum light intensity value of the first light intensity value and the second light intensity value; or acquiring the posture information of the first display screen and the second display screen when the comparison result indicates that the first light intensity variation value is greater than the first preset threshold value and the second light intensity variation value is less than the second preset threshold value; and under the condition that the first display screen and the second display screen are in the shell posture and the first display screen is positioned below the second display screen based on the posture information, adjusting the display brightness of the first display screen and the second display screen according to the maximum light intensity value in the first light intensity value and the second light intensity value.
According to a third aspect of the present application, there is provided a processing apparatus, the apparatus comprising: a processor and a memory for storing a computer program operable on the processor;
wherein the processor is configured to perform the steps of any of the above methods when executing the computer program.
According to the processing method and the processing device provided by the embodiment of the invention, the first display screen and the second display screen can move relatively by acquiring the first light intensity value of the first display screen and the second light intensity value of the second display screen; determining an adjustment strategy; and adjusting the display brightness of the first display screen and the second display screen based on the adjustment strategy, the first light intensity value and the second light intensity value. Therefore, according to different adjustment strategies, different light intensity values are selected to adjust the display brightness of the two display screens, so that the display brightness of the two display screens can not be frequently adjusted, the brightness adjustment frequency of the display screens is reduced, and the harm to eyes of a user is reduced.
Drawings
FIG. 1 is a first flow chart illustrating the implementation of the processing method of the present application;
FIG. 2 is a schematic diagram of a usage mode of the electronic device of the present application;
FIG. 3 is a schematic diagram of a process for selecting a light sensor according to the present application;
FIG. 4 is a second flowchart illustrating an implementation of the processing method of the present application;
FIG. 5 is a first block diagram of a data processing apparatus according to the present application;
fig. 6 is a schematic structural diagram of a data processing apparatus according to the present application.
Detailed Description
The following detailed description of embodiments of the invention refers to the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating the present invention, are given by way of illustration and explanation only, not limitation.
Fig. 1 is a schematic flow chart of an implementation of the processing method in the present application, and as shown in fig. 1, the method includes:
101, acquiring a first light intensity value of a first display screen and a second light intensity value of a second display screen, wherein the first display screen and the second display screen can move relatively;
in the present application, the method is mainly applied to an electronic device with a dual-screen display function, for example, the electronic device may be a notebook computer, a tablet computer, a mobile phone, a tablet, a game machine, a projector, and the like.
The electronic equipment can comprise a first display screen and a second display screen, the first display screen and the second display screen can be connected in a rotating mode, and the electronic equipment can present different using postures by rotating the first display screen and the second display screen.
Specifically, the electronic device can detect the three-axis acceleration information of the first display screen and the three-axis acceleration information of the second display screen through the gravity sensor, and determine the using posture of the electronic device according to the detected three-axis acceleration information.
For example, when the three-axis acceleration information of the first display screen indicates that the X-axis is 0, the Y-axis is-1, and the Z-axis is 0, and the three-axis acceleration information of the second display screen indicates that the X-axis is 0, the Y-axis is 1, and the Z-axis is 0, in this case, it may be determined that the first display screen and the second display screen are in the shell pose.
If the three-axis acceleration information of the first display screen represents that the X-axis is 0, the Y-axis is 1 and the Z-axis is 0, and the three-axis acceleration information of the second display screen represents that the X-axis is 0, the Y-axis is-1 and the Z-axis is 0, in this case, it can be determined that the first display screen and the second display screen are in the tent attitude.
In the application, the first display screen corresponds to the first optical sensor, the second display screen corresponds to the second optical sensor, the first light intensity value of the first display screen can be acquired through the first optical sensor, and the second light intensity value of the second display screen can be acquired through the second optical sensor.
FIG. 2 is a schematic diagram of a usage mode of the electronic device of the present application; as shown in fig. 2, the electronic device has two display screens, which are respectively called a first display screen 201 and a second display screen 202, and edges of the first display screen 201 and the second display screen 202 are movably connected. By rotating the first display screen 201 or the second display screen 202, different use postures can be presented between the first display screen 201 and the second display screen 202, such as the postures shown in fig. 2.
The electronic device can detect the ambient light of the first display screen 201 through the first light sensor to obtain a first light intensity value of the first display screen, and can detect the ambient light of the second display screen 202 through the second light sensor to obtain a second light intensity value of the second display screen.
Step 102, determining an adjustment strategy;
in the application, the electronic device may determine an adjustment strategy based on the triaxial acceleration information of the first display screen and the triaxial acceleration information of the second display screen; the adjustment strategy may also be determined based on a first light intensity variation value of the first light intensity value within a preset time and a second light intensity variation value of the second light intensity value within a preset time.
Specifically, the electronic device may detect triaxial acceleration information of the first display screen and triaxial acceleration information of the second display screen through the gravity acceleration sensor, and when the electronic device detects the triaxial acceleration information of the first display screen and the triaxial acceleration information of the second display screen, it may be determined that the adjustment strategy represents triaxial acceleration information based on the first display screen and the triaxial acceleration information based on the second display screen, posture information of the first display screen and the second display screen is determined, and display brightness of the first display screen and the second display screen is adjusted based on the posture information.
In this application, this electronic equipment can also detect the first light intensity value of first display screen in the time of predetermineeing through first light sensor and change the value to and detect the second light intensity value of second light intensity value in the time of predetermineeing through the second light sensor, under the condition of detecting the first light intensity value of this first light intensity value in the time of predetermineeing and the second light intensity value of second light intensity value in the time of predetermineeing, can confirm this adjustment strategy characterization and adjust the display luminance of first display screen and second display screen based on the stability of first light intensity value and second light intensity value.
And 103, adjusting the display brightness of the first display screen and the second display screen based on the adjustment strategy, the first light intensity value and the second light intensity value.
In the method, when the adjustment strategy represents that the display brightness is adjusted based on the three-axis acceleration information of the first display screen and the three-axis acceleration information of the second display screen, the three-axis acceleration information of the first display screen and the three-axis acceleration information of the second display screen are obtained; and under the condition that the first display screen and the second display screen are in the first posture, the display brightness of the first display screen and the second display screen is adjusted according to the first light intensity value or the second light intensity value.
Here, the first pose represents that the first display screen and the second display screen are in at least one of a tent mode, a tablet mode, and a shell mode.
For example, the first display screen is an electronic ink screen, the second display screen is a liquid crystal display screen, when the electronic device determines that the first postures of the first display screen and the second display screen represent the tent mode based on the three-axis acceleration information of the first display screen and the three-axis acceleration information of the second display screen, the attribute information of the current application can be further obtained, when the current application is determined to belong to the electronic book application according to the attribute information, the display screen used by the current user is determined to be the first display screen, at this time, the second optical sensor on the second display screen can be disabled, and the display brightness of the first display screen and/or the second display screen is adjusted according to the first light intensity value detected by the first optical sensor of the first display screen. And if the current application is determined to belong to at least one of office application, chat application, game application and audio/video application according to the attribute information, determining that the display screen used by the current user is the second display screen, at the moment, disabling the first light sensor on the first display screen, and adjusting the display brightness of the first display screen and/or the second display screen according to a second light intensity value detected by the second light sensor of the second display screen.
Therefore, the optical sensor of one display screen is forbidden to output data according to different using postures of the electronic equipment, so that the power consumption can be reduced. And moreover, the phenomenon that the display brightness of the corresponding display screen is frequently adjusted due to the fact that a certain optical sensor is shielded, and fatigue feeling is caused to eyes of a user can be avoided.
In the application, the electronic device can also adjust the display brightness of the first display screen and the second display screen according to the maximum light intensity value of the first light intensity value and the second light intensity value under the condition that the first display screen and the second display screen are in the second posture based on the three-axis acceleration information of the first display screen and the three-axis acceleration information of the second display screen; and the second posture represents that the first display screen and the second display screen are in a book mode.
Here, the book mode includes a left-right arrangement mode of the first display and the second display, and also includes an up-down arrangement mode of the first display and the second display.
In the application, when the electronic device is in the dual-screen mode on state, the first display screen and the second display screen can simultaneously display different application pages and can also display the same application page. When the first display screen and the second display screen simultaneously display different application pages, the current display state of the electronic device may be referred to as a dual-screen display state. When the first display screen and the second display screen display the same application page, the current display state of the electronic device may be referred to as a full-screen display state.
In this application, this electronic equipment is under double screen mode open mode, and this first display screen and second display screen can also be in fold condition, and when first display screen and second display screen were in fold condition, can show current content through this first display screen, and through the desktop content of second display screen display this electronic equipment perhaps, this second display screen was in the black screen state. And if the first display screen and the second display screen are in the unfolding state, displaying the first application page through the first display screen and displaying the second application page through the second display screen.
In the application, the electronic device can also recognize display operation instructions corresponding to the first pressing event and the second pressing event, and performs switching control on the display states of the first application page and the second application page according to the display operation instructions. Therefore, the display states of different application pages can be accurately controlled in the screen of the electronic equipment according to the habit of the user.
In the application, when the electronic device adjusts the display brightness of the first display screen and the second display screen based on the adjustment strategy, the first light intensity value and the second light intensity value, if the adjustment strategy represents that the display brightness of the first display screen and the second display screen is adjusted based on the light intensity change value of the first light intensity value and the second light intensity value within the preset time, the first light intensity change value of the first light intensity value within the preset time and the second light intensity change value of the second light intensity value within the preset time can be obtained; and comparing the first light intensity variation value with a first preset threshold value, comparing the second light intensity variation value with a second preset threshold value, and determining a target light intensity value in the first light intensity value and the second light intensity value according to the comparison result, thereby adjusting the display brightness of the first display screen and the second display screen according to the target light intensity value.
Here, the first preset threshold value is associated with a first light intensity value and the second preset threshold value is associated with a second light intensity value.
For example, a value obtained by 20% of the first light intensity value may be used as the first preset threshold value; the value obtained by 20% of the second light intensity value is taken as the second preset threshold value.
In this application, this electronic equipment specifically can confirm that first light intensity value is in the steady state under the condition that the first light intensity variation value of comparative result sign is less than first predetermined threshold value, and second light intensity variation value is greater than the predetermined threshold value of second, and the second light intensity value is in unstable state, at this moment, can adjust the display brightness of first display screen and second display screen with the biggest light intensity value in the first light intensity value.
Here, the maximum light intensity value among the first light intensity values may be a maximum light intensity value among all the first light intensity values detected by the first light sensor within a preset time.
For example, the first light sensor of the first display screen detects 5 first light sensors within 5 seconds, compares the 5 first light sensors, sets the largest first light sensor in the comparison results as a final value, and adjusts the display luminance of the first display screen and the second display screen according to the final value.
In this application, if the comparison result represents that the first light intensity variation value is less than the first preset threshold value and the second light intensity variation value is less than the second preset threshold value, it is determined that the first light intensity value and the second light intensity value are both in a stable state, at this moment, the electronic equipment can also compare the first light intensity value and the second light intensity value, obtain a comparison result, and adjust the display brightness of the first display screen and the second display screen according to the comparison result by using the maximum light intensity value in the first light intensity value and the second light intensity value.
Here, the average value of all the first light intensity values of the first display screen in the preset time may be compared with the average value of all the second light intensity values of the second display screen in the preset time, or the maximum first light intensity value of the first display screen in the preset time may be compared with the maximum second light intensity value of the second display screen in the preset time, which is not limited herein, as long as the maximum light intensity value of the first light intensity value and the maximum second light intensity value can be compared.
In the application, if the comparison result indicates that the first light intensity variation value is greater than the first preset threshold value and the second light intensity variation value is less than the second preset threshold value, the first light intensity value is in an unstable state and the second light intensity value is in a stable state, and at the moment, the electronic equipment can also obtain the posture information of the first display screen and the second display screen; and determining that the first display screen and the second display screen are in the shell posture based on the posture information, and the first display screen is positioned below the second display screen, so that the first display screen is positioned at a position which is easy to be shielded.
In this application, this electronic equipment needs to satisfy two conditions when judging whether first display screen is in the position that is sheltered from easily, and one is that this display screen is located the below of another display screen, and second is that the light intensity value that the light sensor of this display screen detected is "0". In which case it is then determined that the first display screen is completely occluded.
In this application, the preset time may be a time set before the electronic device leaves a factory, or may be a time set by the user according to a user's need. For example, the preset time is 2 seconds, 5 seconds, 10 seconds, or the like.
The electronic equipment can also record a first light intensity value after detecting the first light intensity value of the first display screen, and can also record a second light intensity value after detecting the second light intensity value of the second display screen. And then, determining the light intensity change value of the first display screen and the second display screen within the preset time according to the first light intensity value and the second light intensity value recorded within the preset time.
Specifically, after the electronic device records the first light intensity values and the second light intensity values, the first light intensity values recorded in the preset time can be sorted according to the recording time of each first light intensity value in the preset time to obtain a sorted first light intensity value set, and the second light intensity values recorded in the preset time can be sorted according to the recording time of each second light intensity value recorded in the preset time to obtain a sorted second light intensity value set.
Then, the first light intensity value recorded for the first time in the sorted first light intensity value set is used as a first reference value, and the remaining first light intensity values except the first light intensity value recorded for the first time are used as first light intensity change values of the first display screen within the preset time. Correspondingly, the first recorded second light intensity value in the sorted second light intensity value set is used as a second reference value, and then the remaining second light intensity values except the first recorded second light intensity value are used as second light intensity change values of the second display screen within the preset time.
In this application, after obtaining the first light intensity variation value of the first display screen and the second light intensity variation value of the second display screen, the electronic device may further calculate a first difference between each first light intensity variation value and the first reference value within the preset time, and calculate a second difference between each second light intensity variation value and the second reference value within the preset time. When a first difference between each first light intensity change value of the first display screen within the preset time and a first light intensity value serving as a first reference value is smaller than a first preset threshold value, and a second difference between a second light intensity change value of the second display screen within the preset time and a second light intensity value serving as a second reference value is larger than a second preset threshold value, it is determined that the first light intensity value of the first display screen is in a stable state, and the second light intensity value of the second display screen is in an unstable state.
Here, the first preset threshold may specifically be 20% of the first light intensity value (the first reference value or the maximum first light intensity variation value); the second preset threshold may specifically be 20% of the second light intensity value (the second reference value or the maximum second light intensity variation value).
For example, the first light intensity value recorded within the preset time (5 seconds) is (500, 570, 590, 450, 410), wherein the recording time of the first light intensity value (500) is the earliest, and thus the first light intensity value (500) may be taken as the first reference value and the first light intensity value (570, 590, 450, 410) may be taken as the first light intensity variation value. Accordingly, the second light intensity value recorded within the preset time (5 seconds) is (300, 370, 386, 210, 100), wherein the recording time of the second light intensity value (300) is the earliest, and thus the second light intensity value (300) may be taken as the second reference value and the second light intensity value (370, 386, 210, 100) may be taken as the second light intensity variation value.
Then, calculating a difference between each first light intensity variation value (570, 590, 450, 410) and the first light intensity value (500), the difference between the first light intensity variation value (570) and the first light intensity value (500) being calculated to be (70); the difference between the first light intensity variation value (590) and the first light intensity value (500) is (90); the difference between the first light intensity variation value (450) and the first light intensity value (500) is (50); the difference between the first light intensity variation value (410) and the first light intensity value (500) is (90). After the difference between each first light intensity variation value and the first light intensity value is obtained, each difference (70, 90, 50, 90) can be compared with a first preset threshold (for example, 20% of the first light intensity value 500, namely 100) respectively, and according to the comparison result, each difference (70, 90, 50, 90) can be determined to be smaller than the first preset threshold (100), so that the first light intensity value of the first display screen can be determined to be in a stable state.
Accordingly, calculating a difference between each of the second light intensity variation values (370, 386, 210, 100) and the second light intensity value (300), the difference between the second light intensity variation value (370) and the second light intensity value (300) being calculated to be (70); the difference between the second light intensity variation value (386) and the second light intensity value (300) is (86); the difference between the second light intensity variation value (210) and the second light intensity value (300) is (90); the difference between the second light intensity variation value (100) and the second light intensity value (300) is (200). After the difference between each second light intensity variation value and the second light intensity value is obtained, each difference (70, 86, 90, 200) can be compared with a second preset threshold (such as 20% of the second light intensity value 300, namely 60), and according to the comparison result, each difference (70, 86, 90, 200) can be determined to be larger than the second preset threshold (60), so that the light intensity value of the second display screen can be determined to be in an unstable state.
At this time, according to the stable state of the light intensity variation values of the first display screen and the second display screen within the preset time, the electronic device may use the first light intensity value of the first display screen as the target light intensity value. For example, the target light intensity value may be a first light intensity value as a first reference value, or may be a maximum first light intensity variation value within the preset time.
This application is respectively at the time stability of predetermineeing through the light intensity value of first display screen and second display screen, selects the light intensity value of the relatively stable first display screen of light intensity value as target light intensity value, can improve electronic equipment's light intensity stability to avoid appearing too frequent light intensity and adjust and lead to the problem of user with eye fatigue to appear.
In another implementation manner, when a difference between each first light intensity variation value of the first display screen within the preset time and a first light intensity value serving as a first reference value is smaller than a first preset threshold, and a difference between each second light intensity variation value of the second display screen within the preset time and a second light intensity value serving as a second reference value is smaller than a second preset threshold, the first display screen and the second display screen are both represented to be in a stable state, at this time, the electronic device may further compare the first light intensity value of the first display screen with the second light intensity value of the second display screen, and take the maximum light intensity value as the target light intensity value according to the comparison result.
Here, the first light intensity value for comparison may be a maximum light intensity variation value of the first display within the preset time, or may be a first light intensity value as a first reference value; correspondingly, the second light intensity value for comparison may be a maximum light intensity variation value of the second display within the preset time, or may be a second light intensity value as a second reference value.
For example, the first light intensity value recorded within the preset time (5 seconds) is (500, 570, 590, 450, 410), wherein the recording time of the first light intensity value (500) is the earliest, and thus the first light intensity value (500) may be taken as the first reference value and the first light intensity value (570, 590, 450, 410) may be taken as the first light intensity variation value. Accordingly, the second light intensity value recorded within the preset time (5 seconds) is (300, 340, 320, 290, 300) in which the recording time of the second light intensity value (300) is the earliest, and thus the second light intensity value (300) may be used as the second reference value and the second light intensity value (340, 320, 290, 300) may be used as the second light intensity variation value.
Then, calculating the difference between each first light intensity variation value (570, 590, 450, 410) and the first light intensity value (500), it can be found that the difference between the first light intensity variation value (570) and the first light intensity value (500) is (70); the difference between the first light intensity variation value (590) and the first light intensity value (500) is (90); the difference between the first light intensity variation value (450) and the first light intensity value (500) is (50); the difference between the first light intensity variation value (410) and the first light intensity value (500) is (90). After obtaining the difference between each first light intensity variation value and the first light intensity value, each difference (70, 90, 50, 90) may be compared with a first preset threshold (e.g. 20% of the first light intensity value 500, i.e. 100), and according to the comparison result, it may be determined that each difference (70, 90, 50, 90) is smaller than the first preset threshold (100), so that it may be determined that the first light intensity value of the first display screen is in a stable state.
Accordingly, calculating the difference between each second light intensity variation value (340, 320, 290, 300) and the second light intensity value (300), the difference between the second light intensity variation value (340) and the second light intensity value (300) being calculated to be (40); the difference between the second light intensity variation value (320) and the second light intensity value (300) is (20); the difference between the second light intensity variation value (290) and the second light intensity value (300) is (10); the difference between the second light intensity variation value (300) and the second light intensity value (300) is (0). After obtaining the difference between each second light intensity variation value and the second light intensity value, each difference (40, 20, 10, 0) may be compared with a second preset threshold (e.g. 20% of the second light intensity value 300, i.e. 60), and according to the comparison result, it may be determined that each difference (40, 20, 10, 0) is smaller than the second preset threshold (60), so as to determine that the second light intensity value of the second display screen is in a stable state.
When the light intensity values of the first display screen and the second display screen are both in a stable state, the electronic equipment can also compare a first light intensity value (500) serving as a first reference value with a second light intensity value (300) serving as a second reference value, and can determine that the first light intensity value (500) is greater than the second light intensity value (300) according to a comparison result, and at the moment, the first light intensity value 500 of the first display screen can be used as a target light intensity value.
This application is all in under the steady state through the light intensity value at two display screens, confirms the maximum light intensity value as the target light intensity value, and this is because the maximum light intensity value shows this electronic equipment's optimum brightness, consequently, can improve electronic equipment's display effect with the most forest light intensity value as the target light intensity value.
In another implementation manner, when a difference between each first light intensity variation value of the first display screen within the preset time and the first light intensity value as the first reference value is greater than a first preset threshold, but the first display screen is located at the first position, and the first light intensity value of the first display screen is greater than the second light intensity value of the second display screen, the first light intensity value of the first display screen may be used as the target light intensity value. Here, the first position may represent a position easily occluded by a user.
Specifically, the electronic device may detect the first display screen and the second display screen through at least one of a gravity sensor, an acceleration sensor, a gyroscope and the like to acquire first coordinate information of the first display screen and second coordinate information of the second display screen; and comparing the acquired first coordinate information and the acquired second coordinate information with preset coordinate information respectively to obtain a comparison result, and when the first coordinate information is successfully matched with the preset coordinate information and the second coordinate information is unsuccessfully matched with the preset coordinate information according to the comparison result, determining that the first display screen is at the first position and the second display screen is not at the first position. At this time, if it is determined that the first light intensity value of the first display screen is greater than the second light intensity value of the second display screen according to the comparison result of the first light intensity value of the first display screen and the second light intensity value of the second display screen, the first light intensity value of the first display screen is taken as a target light intensity value. Here, the first light intensity value may be a maximum first light intensity variation value recorded by the first display within a preset time, or may be a first light intensity value as a first reference value.
For example, the first light intensity value recorded within the preset time (5 seconds) is (500, 300, 200, 100, 350), wherein the recording time of the first light intensity value (500) is the earliest, and thus the first light intensity value (500) may be taken as the first reference value and the first light intensity value (300, 200, 100, 350) may be taken as the first light intensity variation value. Accordingly, the second light intensity value recorded within the preset time (5 seconds) is (300, 340, 320, 290, 300) in which the recording time of the second light intensity value (300) is the earliest, and thus the second light intensity value (300) may be used as the second reference value and the second light intensity value (340, 320, 290, 300) may be used as the second light intensity variation value.
Then, calculating the difference between each first light intensity variation value (300, 200, 100, 350) and the first light intensity value (500), it can be found that the difference between the first light intensity variation value (300) and the first light intensity value (500) is (200); the difference between the first light intensity variation value (200) and the first light intensity value (500) is (300); the difference between the first light intensity variation value (100) and the first light intensity value (500) is (400); the difference between the first light intensity variation value (350) and the first light intensity value (500) is (150). After obtaining the difference between each first light intensity variation value and the first light intensity value, each difference (200, 300, 400, 350) may be compared with a first preset threshold (e.g. 20% of the first light intensity value 500, i.e. 100), and according to the comparison result, it may be determined that each difference (200, 300, 400, 350) is smaller than the first preset threshold (100), so that it may be determined that the first light intensity value of the first display screen is in an unstable state.
Accordingly, calculating the difference between each second light intensity variation value (340, 320, 290, 300) and the second light intensity value (300), the difference between the second light intensity variation value (340) and the second light intensity value (300) being calculated to be (40); the difference between the second light intensity variation value (320) and the second light intensity value (300) is (20); the difference between the second light intensity variation value (290) and the second light intensity value (300) is (10); the difference between the second light intensity variation value (300) and the second light intensity value (300) is (0). After obtaining the difference between each second light intensity variation value and the second light intensity value, each difference (40, 20, 10, 0) may be compared with a second preset threshold (e.g. 20% of the second light intensity value 300, i.e. 60), and according to the comparison result, it may be determined that each difference (40, 20, 10, 0) is smaller than the second preset threshold (60), so as to determine that the second light intensity value of the second display screen is in a stable state.
Then, detecting the position of the first display screen through a first gravity sensor in the first display screen to obtain first position information; correspondingly, the position of the second display screen is detected through a second gravity sensor in the second display screen, and second position information is obtained. And comparing the first position information and the second position information with preset position information respectively, and when the first position information is successfully matched with the preset position information, determining that the first display screen is in a state temporarily blocked by a user at the moment. Therefore, the phenomenon that the light sensor of one display screen is temporarily covered to generate wrong output can be avoided.
In this application, electronic equipment can also be based on the first light intensity value of this target light intensity value and the second light intensity value of second display screen after determining the target light intensity value, can make the display brightness unanimous of first display screen and second display screen on the one hand, on the other hand, can not be because of the change that a certain display screen is sheltered from or the position, and frequently adjust screen brightness, thereby the frequent regulation that has reduced screen brightness is to the damage of user's eyes.
In this application, this electronic equipment can also verify the target light intensity value who obtains. Specifically, before adjusting the display brightness of the first display screen and the second display screen based on the adjustment strategy, the first light intensity value and the second light intensity value, the electronic device may further detect a third variation value corresponding to the first light intensity value at the current time and a fourth variation value corresponding to the second light intensity value at the current time; and calculating a quotient between the fourth variation and the third variation; and when the quotient obtained by calculation is greater than a third preset threshold value, the fact that the optical sensor of one display screen is covered is indicated, and at the moment, the display brightness of the first display screen and the display brightness of the second display screen are adjusted according to the maximum light intensity value in the first light intensity value and the second light intensity value determined previously. That is, the currently determined target light intensity value is stable. If the obtained quotient value is smaller than a third preset threshold value, it indicates that the sensors of the first display screen and the second display screen are not covered currently, the currently determined target light intensity value is unstable, and the target light intensity value needs to be determined again.
It should be noted that, when the currently obtained target light intensity value is determined, the quotient between the light intensity values detected by the two light sensors is calculated only when the first light intensity value detected by the first light sensor and the second light intensity value detected by the second light sensor are changed, and whether the currently obtained target light intensity value is stable is determined by dividing the quotient obtained by the second light intensity value with the smaller light intensity value by the first light intensity value with the larger light intensity value.
In this application, when the electronic device determines that the current obtained target light intensity value is a stable effective value, the target light intensity value used for adjusting the display brightness of the first display screen and the second display screen can be further saved. The target light intensity value may be saved to the operating system.
Here, a value 2 times between the second light intensity value and the first light intensity value may be specifically used as the third preset threshold value.
For example, the obtained target light intensity value is 500, and the target light intensity value 500 is a value detected by a first light sensor of a first display screen, the current first light intensity variation value of the first display screen is 100, the current second light intensity value of a second display screen is 300, then the quotient obtained by dividing 300 by 100 is "3", and by comparing the calculated quotient "3" with a third preset threshold value "2", it can be known that "3" is greater than "2", at this time, it is represented that the first display screen is occluded, the maximum first light intensity value of the first display screen is continuously used as the target light intensity value, and the target light intensity value is saved to an operating system, so that the brightness of the first display screen and the brightness of the second display screen are adjusted by using the target light intensity value later. On the contrary, if the quotient is smaller than 2, it indicates that the light sensors of the two display screens are not shielded, and at this time, the first light intensity value of the first display screen is in an unstable state, and at this time, the target light intensity value needs to be determined again.
According to another aspect of the present application, there is also provided a data processing method, including:
step 701, acquiring a first light intensity value of a first light sensor and a second light intensity value of a second light sensor;
here, the first and second light sensors may correspond to the same display screen of the electronic device. When the electronic device obtains a first light intensity value of the first light sensor, the electronic device can also record the first light intensity value, and after obtaining a second light intensity value of the second light sensor, the electronic device can also record the second light intensity value.
Step 702, determining a target light intensity value from the first light intensity value and the second light intensity value based on light intensity variation values of the first light sensor and the second light sensor within a preset time;
specifically, the electronic device may sort all the first light intensity values and all the second light intensity values recorded within the preset time according to the recording time, so as to obtain a first light intensity value set and a second light intensity value set after sorting.
Then, the first light intensity value recorded for the first time in the sorted first light intensity value set is used as a first reference value, and the remaining first light intensity values except the first light intensity value recorded for the first time are used as first light intensity change values. And calculating a first difference value between each first light intensity change value and the first light intensity value within the preset time. Correspondingly, the first recorded second light intensity value in the sorted second light intensity value set is used as a second reference value, and then the remaining second light intensity values except the first recorded second light intensity value are used as second light intensity change values. And calculating a second difference value between each second light intensity change value and the second light intensity value within the preset time.
And comparing each first difference value with a first preset threshold value to obtain a first comparison result. And comparing each second difference value with a second preset threshold value to obtain a second comparison result.
Here, the first preset threshold may be specifically determined according to the first light intensity value, for example, 20% or 10% of the first light intensity value is used as the first preset threshold. The second preset threshold may be determined according to the second light intensity value, for example, 20% or 10% of the second light intensity value is used as the second preset threshold. Specific values of the first preset threshold and the second preset threshold are defined.
When the first comparison result indicates that each first difference value is smaller than a first preset threshold value and the second comparison result indicates that each second difference value is larger than a second preset threshold value, it is determined that the first light intensity value detected by the first light sensor is more stable than the second light intensity value detected by the second light sensor, and at this time, the first light intensity value can be used as a target light intensity value. In this way, the light intensity value detected by the light sensor with high stability is used as the target light intensity value, so that the recognition accuracy of the light sensor for the ambient light can be improved.
In this application, if the first comparison result represents that each first difference is smaller than a first preset threshold and the second comparison result represents that each second difference is smaller than a second preset threshold, it is determined that the first light intensity value detected by the first light sensor and the second light intensity value detected by the second light sensor are all stable, and at this time, the first light intensity value and the second light intensity value can be compared to obtain a third comparison result. When the third comparison result indicates that the first light intensity value is greater than the second light intensity value, the first light intensity value is better than the second light intensity value, and therefore the first light intensity value can be used as the target light intensity value. Therefore, when the light intensity values detected by the two light sensors within the preset time are both in stable values, the display brightness of the display screen can be optimized by taking the maximum light intensity value of the two light sensors as the target light intensity value.
Step 703, adjusting the brightness of the display screen corresponding to the first light sensor and the second light sensor based on the target light intensity value.
Here, the electronic device may specifically adjust the brightness of the same display screen corresponding to the first light sensor and the second light sensor based on the target light intensity value. So, adjust the demonstration luminance of this display screen through two light sensor's on a display screen stability, can improve the regulation precision to avoid this display screen when the foreign object shelters from temporarily, the screen brightness appears suddenly high suddenly the dark problem.
In this application, before the electronic device adjusts the brightness of the display screen corresponding to the first optical sensor and the second optical sensor based on the target light intensity value, if the fluctuation range of the first light intensity value currently detected by the first optical sensor is relatively large, for example, the target light intensity value is 500, the currently detected first light intensity value is 100. The quotient obtained by dividing 500 by 100 is greater than 2, and meanwhile, the second light intensity value currently detected by the second light sensor is in a stable state, at this time, the first light sensor can be considered to be temporarily blocked currently, the first light intensity value currently detected by the first light sensor can be ignored, and the first light intensity value of the first light sensor is still used as the target light intensity value. Thus, false output caused by temporary shielding of one of the light sensors can be avoided.
The scheme that this application provided discerns the light sensor that is covered at present through the stability of the light intensity value that two light sensors detected in the time of predetermineeing to when two light sensors all are in stable state, adjust the display brightness of display screen with the biggest light intensity value as final value, can improve the discernment accuracy of ambient light.
Fig. 3 is a first schematic view of a process for selecting a light sensor according to the present application, as shown in fig. 3, including:
step 301, starting an operating system;
step 302, acquiring a current use mode of the electronic equipment;
step 303, judging whether the current use mode is changed;
here, the current usage mode may be compared with a last time history usage mode that is closest to the current time according to history information of the usage mode, and when the comparison result indicates that the current usage mode is the same as the history usage mode, it is determined that the current usage mode has not changed, and then step 304 is executed; if the comparison result indicates that the current usage mode is different from the historical usage mode, it is determined that the current usage mode has changed, and step 305 is executed.
Or, whether the current usage mode is changed or not can be judged based on the triaxial acceleration information of the first display screen and the second display screen of the electronic equipment. When the three directions of the X, Y, Z axis of the first display screen and the three directions of the X, Y, Z axis of the second display screen are consistent with the latest historical three-axis acceleration information of the current time, determining that the current use mode is not changed, and executing step 304; otherwise, go to step 305.
Step 304, activating the light sensor;
here, the ambient light detection is performed by activating the light sensor corresponding to the historical usage pattern.
For example, if the first light sensor of the first display screen is activated in the history of the last time from the current time, the first light sensor is also continuously activated at this time.
Step 305, determining a current usage mode;
when the current usage mode of the electronic device changes, it needs to be determined whether the current usage mode is a tent mode, a book mode, a shell mode, a notebook mode, or a tablet mode.
For example, the electronic device may have three display screens, wherein the first display screen and the second display screen are respectively disposed on a first surface and a second surface of the first body, and the first surface and the second surface are opposite sides of the first body. The third display screen is positioned on the third surface of the second body, and the edge of the second body is rotatably connected with the edge of the first body. When the first body or the second body is rotated to enable the first display screen and the third display screen to be attached to each other, the second display screen is exposed outside the electronic device, and the electronic device is in a flat panel mode at the moment. When the first body or the second body is rotated to enable the fourth surfaces (the surfaces corresponding to the third surfaces) of the second display screen and the second body to be in a tent state, the first display screen and the third display screen are exposed outside the electronic device, the electronic device is in a tent mode at the moment, in the tent mode, if the electronic book application is currently used, the optical sensor on the third display screen side can be forbidden, and if at least one of the office application, the game application and the video application is currently used, the sensor on the first display screen side and the sensor on the second display screen side can be forbidden.
Step 306, determining a light sensor to be activated;
here, after determining the current usage mode of the electronic device, the electronic device may enable the light sensor corresponding to the current usage mode and obtain a corresponding light intensity value;
step 307, determining whether to switch the currently output light intensity value;
here, after the electronic device obtains the light intensity value according to the enabled light sensor, it is further required to determine whether the current usage mode of the electronic device is changed, if not, the display brightness of the display screen of the electronic device is adjusted according to the current light intensity value, and if so, the display brightness of the electronic device is not adjusted according to the current light intensity value.
Step 308, recording the current output light intensity value;
here, the electronic device needs to save the light intensity value after obtaining the light intensity value for adjusting the display luminance of the electronic device.
Step 309, the recorded light intensity values are updated to the operating system.
Fig. 4 is a schematic flow chart of an implementation process of the processing method in the present application, as shown in fig. 4, including:
step 401, starting an operating system;
step 402, recording light intensity values detected by two light sensors;
for example, a first light intensity value detected by a first light sensor on a first display screen is recorded, and a second light intensity value detected by a second light sensor on a second display screen is recorded;
step 403, judging whether the light intensity values detected by the two light sensors are stable, if so, executing step 404, and if not, executing step 405;
specifically, it may be determined by judging whether the light intensity variation value of the light intensity value of the sensor1 within the set time is greater than 20% of the last recorded value of the sensor1, and whether the light intensity variation value of the light intensity value of the sensor2 within the set time is greater than 20% of the last recorded value of the sensor 2.
Such as: the last recorded value of sensor1 is 500, the last recorded value of sensor2 is 300, and if the light intensity values of sensor1 are all between 490-510 in 10 seconds, the light intensity value of sensor1 is determined to be stable. If the light intensity value of sensor2 is between 290 and 310 within 10 seconds, it is determined that the light intensity value of sensor2 is also stable. At this time, the intensity values of the sensors 1 and 2 are compared, and the intensity value 500 of the sensor1 having a larger intensity value is output as the target intensity value according to the comparison result.
If the light intensity values of the sensors 2 are all 0 in 10 seconds, it is determined that the sensors 2 are completely shielded, namely the sensors 2 are stable, and at the moment, the light intensity value 500 of the sensor1 with the large light intensity value is also taken as the target light intensity value to be output.
Step 404, outputting a value;
this may be, specifically, outputting the maximum light intensity value as the target light intensity value;
step 405, calculating the credibility of the sensor 1;
specifically, it may be determined whether the first display screen on which the sensor1 is located belongs to the lower screen, that is, whether the first display screen is located below the second display screen.
Specifically, the triaxial acceleration information of the first display screen where the sensor1 is located can be acquired through the gravity sensor, and the angles of the first display screen and the second display screen where the sensor1 is located are determined according to the triaxial acceleration information, so that whether the first display screen is a lower screen or not can be determined.
Then, it is determined whether the intensity of the senson1 is close to 0 within 10 seconds.
And when the judgment result shows that the first display screen where the sensor1 is located is not off-screen and is not close to the value of 0, determining that the reliability of the sensor1 is high.
It can be seen that the longer the light intensity value of one sensor is stable (delta < 2%), and when the variation value in the preset time is smaller than the preset threshold, the higher the confidence level is.
Step 406, calculating the credibility of the sensor 2;
in particular, in the same manner as the confidence level of sensor1 is calculated.
For example, first, it is determined whether the intensity value of senon 2 is close to 0 within 10 seconds;
then, the pose change between the sensor2 and the sensor1 is determined by the triaxial acceleration information of the sensor 2.
When the second display screen where the sensor2 is located is determined to be a lower screen and is close to the value of 0, the confidence level of the sensor1 is determined to be low.
It can be seen that, when the variation value of a sensor in a preset time is greater than the set value, the reliability is low
Step 407, calculating a target light intensity value;
here, when the light intensity variation value of the sensor1 in the preset time is smaller than the preset threshold value and the light intensity variation value of the sensor2 in the preset time is larger than the preset threshold value, the light intensity value of the sensor1 is taken as the target light intensity value; this is because the stable light intensity value does not frequently adjust the brightness of the display screen, so that eye fatigue of the user can be reduced.
Alternatively, when the variation of the intensity of the sensor1 in the preset time is smaller than the preset threshold, the variation of the intensity of the sensor2 in the preset time is smaller than the preset threshold, but the intensity of the sensor1 is greater than the intensity of the sensor2, the intensity of the sensor1 is also used as the target intensity. This is because the maximum light intensity value is optimal, and thus the display effect can be optimized.
Step 408, calculating the difference between the target light intensity value and the original value;
here, the original values refer to the current light intensity variation value of the sensor1, and the current light intensity variation value of the sensor 2.
Specifically, a current first light intensity change value of the first light intensity value can be detected through the first light sensor, a current second light intensity change value of the second light intensity value can be detected through the second light sensor, the second light intensity change value is divided by the first light intensity change value, whether the obtained quotient value is larger than 2 or not is judged, when the quotient value is smaller than 2, the current target light intensity value is determined to be unstable, and when the quotient value is larger than 2, the current target light intensity value is determined to be a stable value. When it is determined that the currently calculated target light intensity value is a stable value, performing step 409;
step 409, recording the current target light intensity value to an operating system;
after the current target light intensity value is recorded to the operating system, step 404 is performed.
Through the scheme of this application, can discern which display screen's sensor is sheltered from to can be according to sheltering from and stability of sensor, come the display brightness of dynamic adjustment display screen, make electronic equipment can improve the discernment precision to ambient light.
Fig. 5 is a schematic structural diagram of a data processing apparatus according to the present application, and as shown in fig. 5, the apparatus includes: an acquisition unit 501, a determination unit 502, and an adjustment unit 503;
specifically, a first light intensity value of a first display screen and a second light intensity value of a second display screen are obtained through the obtaining unit 501, and the first display screen and the second display screen can move relatively; and triggers the determination unit 502 after acquiring the first light intensity value and the second light intensity value.
A determining unit 502, configured to determine a current adjustment policy, and after determining the current adjustment policy, trigger an adjusting unit 503.
The adjusting unit 503 adjusts the display brightness of the first display screen and the second display screen based on the adjustment strategy, the first light intensity value, and the second light intensity value.
In a preferred embodiment of the present application, the determining unit 502 is specifically configured to determine the adjustment policy based on the three-axis acceleration information of the first display screen and the three-axis acceleration information of the second display screen; or, the adjustment strategy is determined based on a first light intensity change value of the first light intensity value in a preset time and a second light intensity change value of the second light intensity value in the preset time.
In a preferred embodiment of the present application, the obtaining unit 501 is further configured to obtain the triaxial acceleration information of the first display screen and the triaxial acceleration information of the second display screen when the adjustment policy representation adjusts the display brightness based on the triaxial acceleration information of the first display screen and the triaxial acceleration information of the second display screen; and after acquiring the three-axis acceleration information of the first display screen and the three-axis acceleration information of the second display screen, triggering an adjusting unit 503.
The adjusting unit 503 adjusts the display brightness of the first display screen and the second display screen according to the first light intensity value or the second light intensity value when determining that the first display screen and the second display screen are in the first posture based on the three-axis acceleration information of the first display screen and the three-axis acceleration information of the second display screen; the first pose characterizes that the first display screen and the second display screen are in at least one of a tent mode, a tablet computer mode and a shell mode; or, under the condition that the first display screen and the second display screen are in the second posture, the display brightness of the first display screen and the second display screen is adjusted by the maximum light intensity value in the first light intensity value and the second light intensity value based on the three-axis acceleration information of the first display screen and the three-axis acceleration information of the second display screen; the second gesture characterizes the first display screen and the second display screen in a book mode.
In a preferred aspect of the present application, the processing apparatus further includes: a comparison unit 504;
specifically, the obtaining unit 501 is further configured to obtain a first light intensity variation value of the first light intensity value within a preset time and a second light intensity variation value of the second light intensity value within the preset time under the condition that the adjustment strategy representation adjusts the display brightness based on the light intensity variation values of the first light intensity value and the second light intensity value within the preset time; when the obtaining unit 501 obtains the first light intensity variation value and the second light intensity variation value, the comparing unit 504 is triggered.
The comparing unit 504 compares the first light intensity variation value with a first preset threshold value associated with the first light intensity value, and compares the second light intensity variation value with a second preset threshold value associated with the second light intensity value; when the comparing unit 504 obtains the comparison result, the adjusting unit 503 is triggered.
When the comparison result indicates that the first light intensity variation value is smaller than the first preset threshold and the second light intensity variation value is larger than the second preset threshold, the adjusting unit 503 adjusts the display brightness of the first display screen and the second display screen according to the maximum light intensity value of the first light intensity value; or, when the comparison result indicates that the first light intensity variation value is smaller than the first preset threshold value and the second light intensity variation value is smaller than the second preset threshold value, adjusting the display brightness of the first display screen and the second display screen by using the maximum light intensity value of the first light intensity value and the second light intensity value; or acquiring the posture information of the first display screen and the second display screen when the comparison result indicates that the first light intensity variation value is greater than the first preset threshold value and the second light intensity variation value is less than the second preset threshold value; and under the condition that the first display screen and the second display screen are in the shell posture and the first display screen is positioned below the second display screen based on the posture information, adjusting the display brightness of the first display screen and the second display screen according to the maximum light intensity value in the first light intensity value and the second light intensity value.
In a preferred aspect of the present application, the processing apparatus further includes: a detection unit 505 and a calculation unit 506;
specifically, the detecting unit 505 is configured to detect a third variation of the first light intensity value at the current time and a fourth variation of the second light intensity value at the current time; and triggers the calculating unit 506 after detecting the third variation value and the fourth variation value;
the calculating unit 506 is configured to calculate a quotient between the fourth variation and the third variation; and triggers the adjustment unit 503 after the quotient value is obtained.
The adjusting unit 503 is specifically configured to adjust the display brightness of the first display screen and the second display screen by using a maximum light intensity value of the first light intensity value and the second light intensity value when the quotient is greater than a third preset threshold.
In a preferred aspect of the present application, the processing apparatus further includes: a storage unit 507;
specifically, the storage unit 507 is configured to store a target light intensity value for adjusting the display brightness of the first display screen and the second display screen.
In a preferred embodiment of the present application, the comparing unit 504 may further trigger the determining unit 502 when comparing the first light intensity variation value with a first preset threshold and comparing the second light intensity variation value with a second preset threshold and obtaining a comparison result;
the determination unit 502 determines a target light intensity value among the first light intensity value and the second light intensity value according to the comparison result; and triggers the adjustment unit 503 after determining the target light intensity value.
The adjusting unit 503 adjusts the display brightness of the first display screen and the second display screen according to the target light intensity value.
In a preferred embodiment of the present application, the determining unit 502 is specifically configured to use the first light intensity value as the target light intensity value when the difference between the light intensity variation value of the first display screen within the preset time and the first light intensity value is smaller than a first preset threshold, and the difference between the light intensity variation value of the second display screen within the preset time and the second light intensity value is larger than the first preset threshold; or when the difference between the light intensity change value of the first display screen in the preset time and the first light intensity value is smaller than a first preset threshold value and the difference between the light intensity change value of the second display screen in the preset time and the second light intensity value is smaller than the first preset threshold value, taking the maximum value of the first light intensity value and the second light intensity value as the target light intensity value; or when the difference value between the light intensity change value of the first display screen in the preset time and the first light intensity value is larger than a first preset threshold value, but the first display screen is at a first position, taking the first light intensity value as a target light intensity value.
It should be noted that: in the data processing apparatus provided in the above embodiment, when performing nonlinear distortion signal cancellation, only the division of the above program modules is taken as an example, and in practical applications, the above processing may be distributed to different program modules according to needs, that is, the internal structure of the apparatus may be divided into different program modules to complete all or part of the above-described processing. In addition, the data processing apparatus and the data processing method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments for details, which are not described herein again.
It is to be noted that the data processing apparatus may also perform the simulation process in the form of software.
The present application also provides a data processing apparatus, including: a processor and a memory for storing a computer program capable of running on the processor,
wherein the processor is configured to execute, when running the computer program: acquiring a first light intensity value of a first display screen and a second light intensity value of a second display screen, wherein the first display screen and the second display screen can move relatively; determining an adjustment strategy; and adjusting the display brightness of the first display screen and the second display screen based on the adjustment strategy, the first light intensity value and the second light intensity value.
The processor is further configured to, when executing the computer program, perform: determining the adjustment strategy based on the triaxial acceleration information of the first display screen and the triaxial acceleration information of the second display screen; or, the adjustment strategy is determined based on a first light intensity change value of the first light intensity value in a preset time and a second light intensity change value of the second light intensity value in the preset time.
The processor is further configured to, when executing the computer program, perform: acquiring the three-axis acceleration information of the first display screen and the three-axis acceleration information of the second display screen under the condition that the adjustment strategy representation adjusts the display brightness based on the three-axis acceleration information of the first display screen and the three-axis acceleration information of the second display screen; under the condition that the first display screen and the second display screen are in the first posture, the display brightness of the first display screen and the display brightness of the second display screen are adjusted according to the first light intensity value or the second light intensity value; the first pose characterizes that the first display screen and the second display screen are in at least one of a tent mode, a tablet computer mode and a shell mode; or, under the condition that the first display screen and the second display screen are in the second posture, the display brightness of the first display screen and the second display screen is adjusted by the maximum light intensity value in the first light intensity value and the second light intensity value based on the three-axis acceleration information of the first display screen and the three-axis acceleration information of the second display screen; the second gesture characterizes the first display screen and the second display screen in a book mode.
The processor is further configured to, when executing the computer program, perform: when the adjustment strategy represents that the display brightness is adjusted based on the light intensity change values of the first light intensity value and the second light intensity value within the preset time, acquiring a first light intensity change value of the first light intensity value within the preset time and a second light intensity change value of the second light intensity value within the preset time; comparing the first light intensity variation value with a first preset threshold value, and comparing the second light intensity variation value with a second preset threshold value, wherein the first preset threshold value is associated with the first light intensity value, and the second preset threshold value is associated with the second light intensity value; when the comparison result indicates that the first light intensity variation value is smaller than the first preset threshold value and the second light intensity variation value is larger than the second preset threshold value, adjusting the display brightness of the first display screen and the second display screen according to the maximum light intensity value in the first light intensity value; or, when the comparison result indicates that the first light intensity variation value is smaller than the first preset threshold value and the second light intensity variation value is smaller than the second preset threshold value, adjusting the display brightness of the first display screen and the second display screen by using the maximum light intensity value of the first light intensity value and the second light intensity value; or acquiring the posture information of the first display screen and the second display screen when the comparison result indicates that the first light intensity variation value is greater than the first preset threshold value and the second light intensity variation value is less than the second preset threshold value; and under the condition that the first display screen and the second display screen are in the shell posture and the first display screen is positioned below the second display screen based on the posture information, adjusting the display brightness of the first display screen and the second display screen according to the maximum light intensity value in the first light intensity value and the second light intensity value.
The processor is further configured to, when executing the computer program, perform: detecting a third variation value corresponding to the first light intensity value at the current time and a fourth variation value corresponding to the second light intensity value at the current time; calculating a quotient between the fourth variation and the third variation; and when the quotient value is larger than a third preset threshold value, adjusting the display brightness of the first display screen and the second display screen by using the maximum light intensity value of the first light intensity value and the second light intensity value.
The processor is further configured to, when executing the computer program, perform:
and saving a target light intensity value for adjusting the display brightness of the first display screen and the second display screen.
Fig. 6 is a schematic diagram of the structural components of the data processing apparatus 600 according to the present application, as shown in fig. 6, which may be a mobile phone, a computer, a digital broadcast terminal, an information transceiver, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, etc.
Referring to fig. 6, data processing apparatus 600 may include one or more of the following components: processing component 602, memory 604, power component 606, multimedia component 608, audio component 610, input/output (I/O) interface 612, sensor component 614, and communication component 616.
The processing component 602 generally controls overall operation of the data processing apparatus 600, such as operations associated with display, telephone calls, data communications, camera capture, and information recording, among others. The processing component 602 may include one or more processors 620 to execute computer programs to perform all or part of the steps of the methods described above. Further, the processing component 602 can include one or more modules that facilitate interaction between the processing component 602 and other components. For example, the processing component 602 can include a multimedia module to facilitate interaction between the processing component 602 and the multimedia component 608.
The memory 604 may be implemented by any type of volatile or non-volatile storage device, or combination thereof. The nonvolatile Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic Random Access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical Disc, or a Compact Disc Read-Only Memory (CD-ROM); the magnetic surface storage may be disk storage or tape storage. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Enhanced Synchronous Dynamic Random Access Memory (Enhanced DRAM), Synchronous Dynamic Random Access Memory (SLDRAM), Direct Memory (DRmb Access), and Random Access Memory (DRAM). The memory 404 depicted in the embodiments of the present invention is intended to comprise, without being limited to, these and any other suitable types of memory.
The memory 604 is used to store various types of data to support the operation of the data processing apparatus 600. Examples of such data include: any computer program for operation on data processing apparatus 600, such as an operating system and application programs; contact data; telephone book data; a message; a picture; video, etc. The operating system includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, and is used for implementing various basic services and processing hardware-based tasks. The application programs may include various application programs such as a Media Player (Media Player), a Browser (Browser), etc. for implementing various application services. The program for implementing the method of the embodiment of the present invention may be included in the application program.
The power supply component 606 provides power to the various components of the data processing device 600. The power components 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the data processing device 600.
The multimedia component 608 includes a screen provided as an output interface between the data processing apparatus 600 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented by a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor can not only sense the boundary of the touch or slide operation but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 may include a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the data processing apparatus 600 is in an operation mode, such as a photographing mode or a video mode. Each front or rear camera may be a fixed optical lens system, or have a focal length and optical zoom capability.
The audio component 610 is used to output and/or input audio signals. For example, the audio component 610 may include a Microphone (MIC) for receiving external audio signals when the data processing device 600 is in an operational mode, such as a call mode, a recording mode, or a voice recognition mode. The received audio signal may further be stored in the memory 604 or transmitted via the communication component 616. In some embodiments, audio component 610 may also include a speaker for outputting audio signals.
The I/O interface 612 provides an interface for information interaction between the processing component 602 and peripheral interface modules, such as a keyboard, mouse, trackball, click wheel, keys, buttons, and the like. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 614 includes one or more sensors for providing various aspects of status assessment for the data processing apparatus 600. For example, the sensor component 614 may detect that the data processing device 600 is in an open/closed state, the relative positioning of components, such as a display and keypad of the data processing device 600; the sensor assembly 614 may also detect a change in position of the data processing device 600 or a component of the data processing device 600, the presence or absence of user contact with the data processing device 600, an orientation or acceleration/deceleration of the data processing device 600, and a change in temperature of the data processing device 600. The sensor assembly 614 may include a proximity sensor for detecting the presence of nearby objects in the absence of any physical contact. The sensor assembly 614 may also include a photosensor, such as a Metal-Oxide-Semiconductor (CMOS) image sensor or a Charge Coupled Device (CCD) image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, a temperature sensor, or the like.
The communication component 616 is used for wired or wireless communication between the data processing apparatus 600 and other devices. The data processing device 600 may access a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G, 5G, or a combination thereof. In an exemplary embodiment, the communication component 616 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the Communication component 616 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency IDentification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra WideBand (UWB) technology, BlueTooth (BT) technology, or other technologies.
The method disclosed in the above embodiments of the present invention may be applied to the processor 620, or implemented by the processor 620. Processor 620 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 620. The Processor 620 may be a general purpose Processor, a Digital Signal Processor (DSP), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. Processor 620 may implement or perform the methods, steps, and logic blocks disclosed in embodiments of the present invention. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed by the embodiment of the invention can be directly implemented by a hardware decoding processor, or can be implemented by combining hardware and software modules in the decoding processor. The software modules may be located in a storage medium that is located in the memory 604 and the processor 620 reads the information in the memory 604 and performs the steps of the aforementioned methods in conjunction with its hardware.
In an exemplary embodiment, the data processing Device 600 may be implemented by one or more Application Specific Integrated Circuits (ASICs), DSPs, Programmable Logic Devices (PLDs), Complex Programmable Logic Devices (CPLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, Micro Controllers (MCUs), microprocessors (microprocessors), or other electronic components for performing the foregoing methods.
In an exemplary embodiment, the present invention further provides a computer readable storage medium, such as the memory 604, comprising a computer program, which is executable by the processor 620 of the data processing apparatus 600 to perform the steps of the aforementioned method. The computer readable storage medium can be Memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface Memory, optical disk, or CD-ROM; or may be a variety of devices including one or any combination of the above memories, such as a mobile phone, computer, tablet device, personal digital assistant, etc.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, performs: acquiring a first light intensity value of a first display screen and a second light intensity value of a second display screen, wherein the first display screen and the second display screen can move relatively; determining an adjustment strategy; adjusting the brightness of the first display screen and the second display screen based on the adjustment strategy, the first light intensity value and the second light intensity value.
The computer program, when executed by the processor, further performs: determining the adjustment strategy based on the triaxial acceleration information of the first display screen and the triaxial acceleration information of the second display screen; or, the adjustment strategy is determined based on a first light intensity change value of the first light intensity value in a preset time and a second light intensity change value of the second light intensity value in the preset time.
The computer program, when executed by the processor, further performs: acquiring the three-axis acceleration information of the first display screen and the three-axis acceleration information of the second display screen under the condition that the adjustment strategy representation adjusts the display brightness based on the three-axis acceleration information of the first display screen and the three-axis acceleration information of the second display screen; under the condition that the first display screen and the second display screen are in the first posture, the display brightness of the first display screen and the display brightness of the second display screen are adjusted according to the first light intensity value or the second light intensity value; the first pose characterizes that the first display screen and the second display screen are in at least one of a tent mode, a tablet computer mode and a shell mode; or, under the condition that the first display screen and the second display screen are in the second posture, the display brightness of the first display screen and the second display screen is adjusted by the maximum light intensity value in the first light intensity value and the second light intensity value based on the three-axis acceleration information of the first display screen and the three-axis acceleration information of the second display screen; the second gesture characterizes the first display screen and the second display screen in a book mode.
The computer program, when executed by the processor, further performs: when the adjustment strategy represents that the display brightness is adjusted based on the light intensity change values of the first light intensity value and the second light intensity value within the preset time, acquiring a first light intensity change value of the first light intensity value within the preset time and a second light intensity change value of the second light intensity value within the preset time; comparing the first light intensity variation value with a first preset threshold value, and comparing the second light intensity variation value with a second preset threshold value, wherein the first preset threshold value is associated with the first light intensity value, and the second preset threshold value is associated with the second light intensity value; when the comparison result indicates that the first light intensity variation value is smaller than the first preset threshold value and the second light intensity variation value is larger than the second preset threshold value, adjusting the display brightness of the first display screen and the second display screen according to the maximum light intensity value in the first light intensity value; or, when the comparison result indicates that the first light intensity variation value is smaller than the first preset threshold value and the second light intensity variation value is smaller than the second preset threshold value, adjusting the display brightness of the first display screen and the second display screen by using the maximum light intensity value of the first light intensity value and the second light intensity value; or acquiring the posture information of the first display screen and the second display screen when the comparison result indicates that the first light intensity variation value is greater than the first preset threshold value and the second light intensity variation value is less than the second preset threshold value; and under the condition that the first display screen and the second display screen are in the shell posture and the first display screen is positioned below the second display screen based on the posture information, adjusting the display brightness of the first display screen and the second display screen according to the maximum light intensity value in the first light intensity value and the second light intensity value.
The computer program, when executed by the processor, further performs: detecting a third variation value corresponding to the first light intensity value at the current time and a fourth variation value corresponding to the second light intensity value at the current time; calculating a quotient between the fourth variation and the third variation; and when the quotient value is larger than a third preset threshold value, adjusting the display brightness of the first display screen and the second display screen by using the maximum light intensity value of the first light intensity value and the second light intensity value.
The computer program, when executed by the processor, further performs: and saving a target light intensity value for adjusting the display brightness of the first display screen and the second display screen.
The methods disclosed in the several method embodiments provided in the present application may be combined arbitrarily without conflict to obtain new method embodiments.
Features disclosed in several of the product embodiments provided in the present application may be combined in any combination to yield new product embodiments without conflict.
The features disclosed in the several method or apparatus embodiments provided in the present application may be combined arbitrarily, without conflict, to arrive at new method embodiments or apparatus embodiments.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (9)

1. A method of processing, the method comprising:
acquiring a first light intensity value of a first display screen and a second light intensity value of a second display screen, wherein the first display screen and the second display screen can move relatively;
determining an adjustment strategy based on the three-axis acceleration information of the first display screen and the three-axis acceleration information of the second display screen; or, determining an adjustment strategy based on a first light intensity change value of the first light intensity value within a preset time and a second light intensity change value of the second light intensity value within the preset time;
and adjusting the display brightness of the first display screen and the second display screen based on the adjustment strategy, the first light intensity value and the second light intensity value.
2. The method of claim 1, the adjusting the display brightness of the first display screen and the second display screen based on the adjustment strategy, the first light intensity value, and the second light intensity value, comprising:
acquiring the three-axis acceleration information of the first display screen and the three-axis acceleration information of the second display screen under the condition that the adjustment strategy representation adjusts the display brightness based on the three-axis acceleration information of the first display screen and the three-axis acceleration information of the second display screen;
under the condition that the first display screen and the second display screen are in the first posture, the display brightness of the first display screen and the display brightness of the second display screen are adjusted according to the first light intensity value or the second light intensity value; the first pose characterizes that the first display screen and the second display screen are in at least one of a tent mode, a tablet computer mode and a shell mode;
or, under the condition that the first display screen and the second display screen are in the second posture, the display brightness of the first display screen and the second display screen is adjusted by the maximum light intensity value in the first light intensity value and the second light intensity value based on the three-axis acceleration information of the first display screen and the three-axis acceleration information of the second display screen; the second gesture characterizes the first display screen and the second display screen in a book mode.
3. The method of claim 1, the adjusting the display brightness of the first display screen and the second display screen based on the adjustment strategy, the first light intensity value, and the second light intensity value, comprising:
when the adjustment strategy represents that the display brightness is adjusted based on the light intensity change values of the first light intensity value and the second light intensity value within the preset time, acquiring a first light intensity change value of the first light intensity value within the preset time and a second light intensity change value of the second light intensity value within the preset time;
comparing the first light intensity variation value with a first preset threshold value, and comparing the second light intensity variation value with a second preset threshold value, wherein the first preset threshold value is associated with the first light intensity value, and the second preset threshold value is associated with the second light intensity value;
when the comparison result indicates that the first light intensity variation value is smaller than the first preset threshold value and the second light intensity variation value is larger than the second preset threshold value, adjusting the display brightness of the first display screen and the second display screen according to the maximum light intensity value in the first light intensity value;
or, when the comparison result indicates that the first light intensity variation value is smaller than the first preset threshold value and the second light intensity variation value is smaller than the second preset threshold value, adjusting the display brightness of the first display screen and the second display screen by using the maximum light intensity value of the first light intensity value and the second light intensity value;
or acquiring the posture information of the first display screen and the second display screen when the comparison result indicates that the first light intensity variation value is greater than the first preset threshold value and the second light intensity variation value is less than the second preset threshold value; and under the condition that the first display screen and the second display screen are in the shell posture and the first display screen is positioned below the second display screen based on the posture information, adjusting the display brightness of the first display screen and the second display screen according to the maximum light intensity value in the first light intensity value and the second light intensity value.
4. The method of claim 3, prior to said adjusting the display brightness of the first display screen and the second display screen based on the adjustment strategy, the first light intensity value, and the second light intensity value, the method further comprising:
detecting a third variation value corresponding to the first light intensity value at the current time and a fourth variation value corresponding to the second light intensity value at the current time;
calculating a quotient between the fourth variation and the third variation;
and when the quotient value is larger than a third preset threshold value, adjusting the display brightness of the first display screen and the second display screen by using the maximum light intensity value of the first light intensity value and the second light intensity value.
5. The method of claim 1, prior to said adjusting the display brightness of the first display screen and the second display screen based on the adjustment strategy, the first light intensity value, and the second light intensity value, the method further comprising:
and saving a target light intensity value for adjusting the display brightness of the first display screen and the second display screen.
6. A processing apparatus, the apparatus comprising:
the device comprises an acquisition unit, a display unit and a control unit, wherein the acquisition unit is used for acquiring a first light intensity value of a first display screen and a second light intensity value of a second display screen, and the first display screen and the second display screen can move relatively;
the determining unit is used for determining an adjusting strategy based on the three-axis acceleration information of the first display screen and the three-axis acceleration information of the second display screen; or, determining an adjustment strategy based on a first light intensity change value of the first light intensity value within a preset time and a second light intensity change value of the second light intensity value within the preset time;
and the adjusting unit is used for adjusting the display brightness of the first display screen and the second display screen based on the adjusting strategy, the first light intensity value and the second light intensity value.
7. The apparatus according to claim 6, wherein the determining unit is specifically configured to determine the adjustment policy based on the triaxial acceleration information of the first display screen and the triaxial acceleration information of the second display screen; or, the adjustment strategy is determined based on a first light intensity change value of the first light intensity value in a preset time and a second light intensity change value of the second light intensity value in the preset time.
8. The apparatus of claim 6, the apparatus further comprising: a comparison unit;
the obtaining unit is further configured to obtain the three-axis acceleration information of the first display screen and the three-axis acceleration information of the second display screen when the adjustment strategy indicates that the display brightness is adjusted based on the three-axis acceleration information of the first display screen and the three-axis acceleration information of the second display screen; the adjustment strategy is further used for acquiring a first light intensity change value of the first light intensity value within a preset time and a second light intensity change value of the second light intensity value within the preset time under the condition that the adjustment strategy representation adjusts the display brightness based on the light intensity change values of the first light intensity value and the second light intensity value within the preset time;
the comparison unit is used for comparing the first light intensity change value with a first preset threshold value and comparing the second light intensity change value with a second preset threshold value, wherein the first preset threshold value is associated with the first light intensity value, and the second preset threshold value is associated with the second light intensity value;
the adjusting unit is specifically configured to adjust the display brightness of the first display screen and the second display screen according to the first light intensity value or the second light intensity value when the first display screen and the second display screen are determined to be in the first posture based on the three-axis acceleration information of the first display screen and the three-axis acceleration information of the second display screen; the first pose characterizes that the first display screen and the second display screen are in at least one of a tent mode, a tablet computer mode and a shell mode; or, under the condition that the first display screen and the second display screen are in the second posture, the display brightness of the first display screen and the second display screen is adjusted by the maximum light intensity value in the first light intensity value and the second light intensity value based on the three-axis acceleration information of the first display screen and the three-axis acceleration information of the second display screen; the second gesture characterizes that the first display screen and the second display screen are in a book mode; or, when the comparison result indicates that the first light intensity variation value is smaller than the first preset threshold value and the second light intensity variation value is larger than the second preset threshold value, adjusting the display brightness of the first display screen and the second display screen by using the maximum light intensity value in the first light intensity value; or, when the comparison result indicates that the first light intensity variation value is smaller than the first preset threshold value and the second light intensity variation value is smaller than the second preset threshold value, adjusting the display brightness of the first display screen and the second display screen by using the maximum light intensity value of the first light intensity value and the second light intensity value; or acquiring the posture information of the first display screen and the second display screen when the comparison result indicates that the first light intensity variation value is greater than the first preset threshold value and the second light intensity variation value is less than the second preset threshold value; and under the condition that the first display screen and the second display screen are in the shell posture and the first display screen is positioned below the second display screen based on the posture information, adjusting the display brightness of the first display screen and the second display screen according to the maximum light intensity value in the first light intensity value and the second light intensity value.
9. A processing apparatus, the apparatus comprising: a processor and a memory for storing a computer program operable on the processor;
wherein the processor is adapted to perform the steps of the method of any one of claims 1 to 5 when running the computer program.
CN201911241899.5A 2019-12-06 2019-12-06 Processing method and device Active CN111176601B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911241899.5A CN111176601B (en) 2019-12-06 2019-12-06 Processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911241899.5A CN111176601B (en) 2019-12-06 2019-12-06 Processing method and device

Publications (2)

Publication Number Publication Date
CN111176601A CN111176601A (en) 2020-05-19
CN111176601B true CN111176601B (en) 2021-09-14

Family

ID=70648756

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911241899.5A Active CN111176601B (en) 2019-12-06 2019-12-06 Processing method and device

Country Status (1)

Country Link
CN (1) CN111176601B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113539208A (en) * 2021-07-15 2021-10-22 深圳市宝能通讯技术有限公司 Screen brightness adjusting method and device and terminal equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN204515588U (en) * 2015-01-19 2015-07-29 联想(北京)有限公司 Electronic equipment
CN105759959A (en) * 2016-01-29 2016-07-13 广东欧珀移动通信有限公司 Method for controlling user terminal and user terminal
CN107025089A (en) * 2017-04-13 2017-08-08 维沃移动通信有限公司 A kind of screen awakening method and Foldable display device
CN109144454A (en) * 2018-09-20 2019-01-04 Oppo(重庆)智能科技有限公司 double-sided screen display control method and related product
US10204592B1 (en) * 2017-11-30 2019-02-12 Dell Products L.P. Configuring multiple displays of a computing device to have a similar perceived appearance

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN204515588U (en) * 2015-01-19 2015-07-29 联想(北京)有限公司 Electronic equipment
CN105759959A (en) * 2016-01-29 2016-07-13 广东欧珀移动通信有限公司 Method for controlling user terminal and user terminal
CN107025089A (en) * 2017-04-13 2017-08-08 维沃移动通信有限公司 A kind of screen awakening method and Foldable display device
US10204592B1 (en) * 2017-11-30 2019-02-12 Dell Products L.P. Configuring multiple displays of a computing device to have a similar perceived appearance
CN109144454A (en) * 2018-09-20 2019-01-04 Oppo(重庆)智能科技有限公司 double-sided screen display control method and related product

Also Published As

Publication number Publication date
CN111176601A (en) 2020-05-19

Similar Documents

Publication Publication Date Title
CN111182205B (en) Photographing method, electronic device, and medium
CN106375676A (en) Photographing control method and device of terminal equipment, and terminal equipment
CN106357934B (en) Screen locking control method and device
EP3299946B1 (en) Method and device for switching environment picture
US11199928B2 (en) Method and apparatus for preventing false touch on edge, and storage medium
EP3575917B1 (en) Collecting fingerprints
CN110413148B (en) False touch prevention detection method, device, equipment and storage medium
CN109634688B (en) Session interface display method, device, terminal and storage medium
CN107102801A (en) Terminal screen spinning solution and device
CN111488098B (en) Method and device for adjusting parameters of touch screen, electronic equipment and storage medium
CN111176601B (en) Processing method and device
CN108398845A (en) Projection device control method and projection device control device
JP5865034B2 (en) Device with camera function, program, and anti-voyeur control method
US10679026B2 (en) Method and device for controlling fingerprint sensor and storage medium
EP3995943A1 (en) Method for operating a display device, terminal, and storage medium
CN114185444A (en) Method and device for preventing mistaken touch of touch screen and storage medium
CN107329604B (en) Mobile terminal control method and device
US11798516B2 (en) Method and device for adjusting display brightness, mobile terminal and storage medium
CN111756985A (en) Image shooting method, device and storage medium
EP4339732A1 (en) Display control method and device
CN110392294A (en) Human body detecting method, device, electronic equipment and storage medium
CN108121521A (en) Control method of electronic device and device
WO2023240451A1 (en) Screen control method and apparatus, electronic device and storage medium
US11783525B2 (en) Method, device and storage medium form playing animation of a captured image
WO2023230829A1 (en) Touch detection method, apparatus, and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant