CN112992060B - Display method and device of display screen of electronic equipment and electronic equipment - Google Patents

Display method and device of display screen of electronic equipment and electronic equipment Download PDF

Info

Publication number
CN112992060B
CN112992060B CN202110229736.6A CN202110229736A CN112992060B CN 112992060 B CN112992060 B CN 112992060B CN 202110229736 A CN202110229736 A CN 202110229736A CN 112992060 B CN112992060 B CN 112992060B
Authority
CN
China
Prior art keywords
display screen
optical sensor
display
frame number
time
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
CN202110229736.6A
Other languages
Chinese (zh)
Other versions
CN112992060A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202110229736.6A priority Critical patent/CN112992060B/en
Publication of CN112992060A publication Critical patent/CN112992060A/en
Application granted granted Critical
Publication of CN112992060B publication Critical patent/CN112992060B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • G09G3/22Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources
    • G09G3/30Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels
    • G09G3/32Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels semiconductive, e.g. using light-emitting diodes [LED]
    • G09G3/3208Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels semiconductive, e.g. using light-emitting diodes [LED] organic, e.g. using organic light-emitting diodes [OLED]
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2360/00Aspects of the architecture of display systems
    • G09G2360/14Detecting light within display terminals, e.g. using a single or a plurality of photosensors
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2360/00Aspects of the architecture of display systems
    • G09G2360/14Detecting light within display terminals, e.g. using a single or a plurality of photosensors
    • G09G2360/144Detecting light within display terminals, e.g. using a single or a plurality of photosensors the light being ambient light

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)
  • Control Of El Displays (AREA)

Abstract

The application discloses a display method and device of a display screen of electronic equipment and the electronic equipment, and belongs to the technical field of terminals. The method comprises the following steps: determining an adjustment time interval corresponding to a display screen of the electronic equipment and adjustment duration of the display screen in the adjustment time interval according to working parameters of the optical sensor; the method comprises the steps of adjusting time intervals at intervals, controlling a local area corresponding to an optical sensor in the display screen to be in a non-luminous state within the time range of the adjusted time, and controlling the optical sensor to be in a working state within the time range of the adjusted time. Meanwhile, the display screen does not display the frame within a short time range periodically, so that the influence of the change of the display mode of the display screen on the display effect of the display screen is reduced, and the display effect of the display screen is improved.

Description

Display method and device of display screen of electronic equipment and electronic equipment
Technical Field
The application belongs to the technical field of terminals, and particularly relates to a display method and device of a display screen of electronic equipment and the electronic equipment.
Background
With the development of technology and intense competition, full-screen mobile electronic devices have become the mainstream of the market, and because the front structural space of the full-screen mobile electronic devices is compressed to the utmost, a large number of micro-seam or under-screen schemes are applied.
In the prior art, optical sensors may be disposed below an Organic Light-Emitting Diode (OLED) screen based on the Light permeability of the OLED screen, so that the optical sensors do not occupy the front space of the electronic device, and simultaneously ambient Light in a front area of the screen of the electronic device may be received through the OLED screen. Meanwhile, in order to avoid the interference of self-luminescence of the OLED screen on the optical sensor and the influence of the light source of the optical sensor on the display of the OLED screen, currently, the area corresponding to the optical sensor in the screen can be controlled to be in a power-off state in the whole working period of the optical sensor, or the optical sensor is controlled to be in a non-operating state when the screen is in a power-on state to display a picture frame, so as to reduce the mutual influence between the screen and the optical sensor.
However, in the prior art, the forced screen is in the power-off state for a long time, which greatly affects the display of the screen of the electronic device, so that the display effect of the screen is poor, and the user experience is reduced, or the working time of the optical sensor is changed, so that the detection process of the optical sensor is affected, and the detection accuracy of the optical sensor is reduced.
Disclosure of Invention
The embodiment of the application aims to provide a display method and a display device of a display screen of electronic equipment and the electronic equipment, and can solve the problem that in the prior art, when mutual influence between the display screen and an optical sensor is avoided, the display effect of the display screen is poor or the detection precision of the optical sensor is reduced.
In a first aspect, an embodiment of the present application provides a display method for a display screen of an electronic device, where an optical sensor is disposed below the display screen, and the method includes:
acquiring working parameters of the optical sensor;
determining an adjustment time interval corresponding to a display screen of the electronic equipment and adjustment duration of the display screen in the adjustment time interval according to the working parameters of the optical sensor;
and controlling a local area corresponding to the optical sensor in the display screen to be in a non-luminous state within the time range of the adjusting time length every interval of the adjusting time interval, and controlling the optical sensor to be in a working state within the time range of the adjusting time length.
In a second aspect, an embodiment of the present application provides a display device of a display screen of an electronic device, where an optical sensor is disposed below the display screen, and the device includes:
the acquisition module is used for acquiring working parameters of the optical sensor;
the first determining module is used for determining an adjusting time interval corresponding to a display screen of the electronic equipment and adjusting time length of the display screen in the adjusting time interval according to the working parameters of the optical sensor;
and the control module is used for controlling a local area corresponding to the optical sensor in the display screen at each interval of the adjusting time interval, and controlling the optical sensor to be in a non-luminous state within the time range of the adjusting time length and to be in a working state within the time range of the adjusting time length.
In a third aspect, an embodiment of the present application further provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, where the program or instructions, when executed by the processor, implement the steps of the method according to the first aspect.
In a fourth aspect, the present embodiments also provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In the embodiment of the application, the working parameters of the optical sensor are obtained; determining an adjustment time interval corresponding to a display screen of the electronic equipment and adjustment duration of the display screen in the adjustment time interval according to working parameters of the optical sensor; the method comprises the steps of adjusting time intervals at intervals, controlling local areas corresponding to the optical sensors in the display screen to be in a non-luminous state within the time range of the adjusted time, and controlling the optical sensors to be in a working state within the time range of the adjusted time. Meanwhile, the display screen is in a non-luminous state only in each working period of the optical sensor, namely the time range of the adjustment duration in the adjustment time interval, namely, the frame is not displayed in a shorter time range periodically, so that the influence of the change of the display mode of the display screen on the display effect of the display screen is reduced, and the display effect of the display screen is improved.
Drawings
Fig. 1 is a flowchart illustrating steps of a display method of a display screen of an electronic device according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a display mode of a display screen according to an embodiment of the present disclosure;
FIG. 4 is a schematic diagram of a process for determining a display mode of a display screen according to an embodiment of the present application;
fig. 5 is a display method of a display screen of an electronic device according to an embodiment of the present application;
FIG. 6 is a schematic diagram illustrating an embodiment of an adjusting method for an optical sensor;
FIG. 7 is a schematic diagram illustrating an adjustment of a local area in a display screen according to an embodiment of the present application;
fig. 8 is a block diagram of a display device of a display screen of an electronic device according to an embodiment of the present application;
fig. 9 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The following describes in detail the display of the display screen of the electronic device according to the embodiments of the present application with reference to the accompanying drawings.
Fig. 1 is a flowchart of steps of a display method of a display screen of an electronic device according to an embodiment of the present application, where as shown in fig. 1, the method may include:
and 101, acquiring working parameters of the optical sensor.
In this step, the working parameters of the optical sensor in the electronic device may be first obtained, so as to adjust the display mode of the display screen of the electronic device according to the working parameters of the optical sensor, thereby avoiding the mutual influence between the display screen of the electronic device and the optical sensor.
Fig. 2 is a schematic structural diagram of an electronic device according to an embodiment of the present application, as shown in fig. 2, in the electronic device, due to the light transmittancy of the glass cover plate 30 and the display screen 20, the optical sensor 10 may be disposed below the display screen 20 of the electronic device by using a structural design scheme under the screen, so that the optical sensor 10 does not occupy a front space of the electronic device, and meanwhile, ambient light in a front area of the display screen 20 of the electronic device may be received through the glass cover plate 30 and the display screen 20, so as to complete a light detection function of the optical sensor 10. The electronic device can be a tablet computer, a notebook computer, a single lens reflex, a micro single camera, a handheld game machine and other electronic devices using the off-screen optical sensor.
The optical sensor may be a photosensitive sensor, an infrared sensor, or a metal oxide semiconductor (CMOS) image sensor of an off-screen camera. The optical sensor generally operates for a short time and according to a certain period, that is, the optical sensor operates according to a certain operating period, and the operating time of each operating period is short. For example, the optical sensor operates at intervals of 30 ms and 5 ms, so as to receive and detect the ambient light of the area above the display screen of the electronic device corresponding to the optical sensor, that is, the operating parameters of the optical sensor are: the duty cycle is 30 milliseconds and the duration of the operation is 5 milliseconds.
Step 102, determining an adjustment time interval corresponding to a display screen of the electronic equipment and an adjustment duration of the display screen in the adjustment time interval according to the working parameters of the optical sensor.
In this step, an adjustment time interval that needs to adjust the display mode of the display screen of the electronic device, that is, an adjustment time interval corresponding to the display screen of the electronic device and an adjustment duration of the display screen in the adjustment time interval may be determined according to the obtained operating parameters of the optical sensor.
Specifically, because the optical sensor is disposed below the display screen of the electronic device, the optical sensor is interfered by self-luminescence of the display screen when receiving ambient light, thereby affecting the detection accuracy of the optical sensor. Meanwhile, as part of the optical sensors are provided with light sources, the light sources emitted by the optical sensors during working can also have certain influence on the display effect of the display screen. Therefore, it is necessary to force the optical sensor and the display screen not to operate in the same time period, so as to avoid the mutual influence between the optical sensor and the display screen.
In the embodiment of the present application, since the optical sensor generally operates for a short time and operates according to a certain period, that is, the optical sensor operates according to a certain operating period, the operating time for operating in each operating period is short. Therefore, the display screen of the electronic device can be controlled to stop displaying the picture frame in the adjustment time length corresponding to the working time length of the optical sensor according to the adjustment time interval corresponding to the working period of the optical sensor, namely, the display screen of the electronic device is controlled to be in a non-luminous state when the optical sensor is in the working state, so that the mutual influence between the optical sensor and the display screen is avoided.
Specifically, the refresh frequency of the OLED display can reach 90 hz and 120 hz at present, that is, the OLED display can refresh and display 90 frames or 120 frames in a period of 1 second, and for human eyes, the display of the electronic device can feel that the picture in the display is smooth by refreshing and displaying 24 frames per second. Therefore, when the refresh frequency of the display screen of the electronic device is high, the display screen stops displaying the picture frame within the adjustment duration of each adjustment time interval at every interval of the adjustment time interval, so that the display screen is in a non-luminous state, which not only can ensure that the optical sensor and the display screen do not work simultaneously, but also can ensure that the display effect of the display screen is not influenced after the display mode of the display screen is adjusted.
For example, fig. 3 is a schematic diagram of a display mode of a display panel according to an embodiment of the present application, as shown in fig. 3, if an initial refresh frequency of the display panel is 120 hz, that is, the display panel displays 120 frames per second, a display time of each frame is 1/120 seconds (8.3 milliseconds), and accordingly, the display panel is in a light-emitting state in the whole process, and one frame of frame is switched every 1/120 seconds, so as to complete the display of the display panel. If the display mode of the display screen is adjusted, and the adjustment time interval B is a period, the display screen is in a non-light-emitting state in a time period corresponding to the adjustment time duration C in the adjustment time interval B, and is in a light-emitting state in a time period corresponding to the light-emitting time duration D, it can be ensured that one frame of picture frame is displayed on the display screen at an interval of 1/24 seconds (41.8 milliseconds), and at this time, the refresh frequency of the display screen is changed to 24 hertz. The display mode of the display screen of the electronic equipment is changed from 120 Hz to 24 Hz, the display screen does not need to be in a light-emitting state all the time, but the picture in the display screen is smooth for a user, so the display effect of the display screen is not influenced by the change of the display mode of the display screen.
Correspondingly, the display screen of the electronic equipment is in a non-luminous state within the time period corresponding to the adjustment duration C every time the time interval B is adjusted, and if the optical sensor below the display screen of the electronic equipment is in a working state, the optical sensor and the display screen cannot be influenced mutually.
Therefore, the working period and the working duration of the optical sensor can be determined according to the working parameters of the optical sensor, so that the display mode of the display screen can be adjusted according to the working period and the working duration of the sensor. Specifically, the working period of the optical sensor may be determined as the adjustment time interval B of the display screen, and the working duration of the optical sensor may be determined as the adjustment time duration of the display screen.
Fig. 4 is a schematic diagram of a process for determining a display mode of a display screen according to an embodiment of the present application, and as shown in fig. 4, first obtaining operating parameters of an optical sensor, including an operating period T and an operating duration T1 of the optical sensor, so as to determine an operating mode of the optical sensor shown in fig. 4 according to the operating parameters of the optical sensor: taking T as a working period, the working state is in the working state in the working period T1 in each working period T. Correspondingly, the display mode of the display screen of the electronic device can be adjusted according to the working mode of the optical sensor, and the normal display mode of the display screen is that the display screen is in a light-emitting state in the full time period to display the picture frame. The adjusted display mode is as follows: according to the method, an adjustment time interval T ' which is the same as the working period T of an optical sensor is taken as a display period, in an adjustment time length T2 corresponding to the working time length T1 of the optical sensor in each display period T ', a display screen is in a non-luminous state, mutual influence between the display screen and the optical sensor in the working state at the time is avoided, the display screen is in a luminous state in a time period except the adjustment time length T2 in each display period T ', smooth display of pictures is achieved, and at the moment, the optical sensor is in a non-working state, so that mutual influence between the display screen and the optical sensor is avoided.
And 103, controlling a local area corresponding to the optical sensor in the display screen at intervals of the adjusting time interval to be in a non-luminous state within the time range of the adjusting time interval, and simultaneously controlling the optical sensor to be in a working state within the time range of the adjusting time interval.
In this step, after the adjustment time interval and the adjustment duration of the display screen are determined, the local area corresponding to the optical sensor in the display screen is controlled at each time interval to be in the non-light-emitting state within the time range of the adjustment duration, and the optical sensor is controlled to be in the working state within the time range of the adjustment duration, so that the display screen and the optical sensor are not in the working state at the same time, and the mutual influence between the display screen and the optical sensor is avoided.
In the embodiment of the application, if the display screen of the electronic device is an OLED screen, the specific method for controlling the display screen to be in the non-luminous state may be to control the display screen to display a black frame, so as to prevent light emitted by the display screen from affecting the detection process of the optical sensor; if the Display screen of the electronic device is a Liquid Crystal Display (LCD), a specific method for controlling the Display screen to be in a non-light-emitting state may be to control the Display screen to be in a power-off state, so as to prevent light emitted by the Display screen from affecting the detection process of the optical sensor.
Specifically, only a partial region of the display screen of the electronic device corresponding to the optical sensor may be adjusted without adjusting the display mode of the entire region of the display screen of the electronic device.
Referring to fig. 2, the local area 21 includes a projection area of the clear aperture of the photosensitive device of the optical sensor 10 on the display screen 20, the size of the local area 21 may be greater than or equal to the size of the clear aperture of the photosensitive device of the optical sensor 10, and in order to prevent ambient light outside the clear aperture from disturbing the clear aperture of the optical sensor 10 through the internal structure of the display screen 20, the size of the local area 21 may be set to be greater than the size of the clear aperture of the photosensitive device of the optical sensor 10. Meanwhile, the foam 40 may be disposed between the optical sensor 10 and the display screen 20 in other areas except the position corresponding to the optical sensor 10, so as to prevent the foam 40 for shielding and buffering from shielding the ambient light received by the optical sensor 10.
In this embodiment of the application, the step of specifically executing the adjustment time interval at each interval, controlling the local area corresponding to the optical sensor in the display screen, and being in the non-light-emitting state within the time range of the adjustment time duration may be completed based on the frame of the picture displayed in the display screen. Referring to fig. 3, in the normal display mode of the display screen, the display screen displays at a refresh frequency of 120 hz, that is, one frame of picture frame is displayed every 8.3 ms, in the adjusted display mode of the display screen, a local area corresponding to the optical sensor in the display screen is controlled every adjustment time interval B, and is in a non-light-emitting state in the time range of the adjustment time length C, and is in a light-emitting state in the time range of the light-emitting time length D, that is, every 5 frames of picture frames are displayed every interval, and 4 frames of picture frames included in the time range of the adjustment time length C are not displayed, and only 1 frame of picture frame included in the time range of the light-emitting time length D is displayed.
To sum up, the display method of the display screen of the electronic device provided by the embodiment of the present application includes: acquiring working parameters of the optical sensor; determining an adjustment time interval corresponding to a display screen of the electronic equipment and adjustment duration of the display screen in the adjustment time interval according to working parameters of the optical sensor; the method comprises the steps of adjusting time intervals at intervals, controlling local areas corresponding to the optical sensors in the display screen to be in a non-luminous state within the time range of the adjusted time, and controlling the optical sensors to be in a working state within the time range of the adjusted time. Meanwhile, the display screen is in a non-luminous state only in each working period of the optical sensor, namely the time range of the adjustment duration in the adjustment time interval, namely, the frame is not displayed in a shorter time range periodically, so that the influence of the change of the display mode of the display screen on the display effect of the display screen is reduced, and the display effect of the display screen is improved.
Fig. 5 is a flowchart illustrating steps of a display method of a display screen of an electronic device according to an embodiment of the present application, where as shown in fig. 5, the method may include:
step 201, acquiring an original working period of the optical sensor, and an original working time length of the optical sensor in each original working period.
In this step, raw operating parameters of the optical sensor may first be obtained, including a raw duty cycle of the optical sensor, and a raw operating time period of the optical sensor within each raw duty cycle.
Fig. 6 is a schematic diagram of adjusting an operation mode of an optical sensor according to an embodiment of the present application, and as shown in fig. 6, the operation mode of the optical sensor during a normal operation process is as follows: taking T ' as the original working period, the working state is in the working state in the original working period T1 ' in each original working period T '.
Step 202, when the original working time length is greater than a preset working time length, determining a separation value, dividing each original working cycle into a plurality of time periods with the number equal to the separation value, wherein the sum of the working time lengths of the optical sensor in the working state in each time period is equal to the original working time length.
In this step, since it is necessary to avoid the mutual influence between the display screen of the electronic device and the optical sensor, it is necessary to ensure that the optical sensor and the display screen respectively operate in different time ranges, that is, in the case that the optical sensor is in an operating state within the original operating time period T1 ' in each original operating period T ', it is necessary to ensure that the display screen of the electronic device is in a non-lighting state within the time range corresponding to the original operating time period T1 '.
Further, if the original operating time T1' of the optical sensor is longer and is greater than the preset time, it indicates that the operating time of the optical sensor is longer, and the time required for the display screen to be in the non-light-emitting state each time is also longer. Therefore, in order to avoid the influence of the non-luminous state for a long time on the display effect of the display screen, if the original working time length T1' of the optical sensor is greater than the preset time length, the working mode of the optical sensor needs to be adjusted, and under the condition that the total working time length of the optical sensor is not changed, the working period of the optical sensor and the working time length in each working period are reduced, so that the detection performance of the optical sensor is not influenced after the working mode of the optical sensor is adjusted; meanwhile, the screen refreshing mode of the display screen is determined according to the adjusted working mode of the optical sensor, the display effect of the display screen is not affected after the display mode of the display screen is adjusted, and meanwhile, the working mode of the adjusted optical sensor is matched with the refreshing time of the screen, and the detection process of the optical sensor is not affected with the display of the display screen.
Specifically, when the original operating time period T1 'is greater than the preset time period, the division value for dividing the original operating period T' of the optical sensor is first determined, and then each original operating period is divided into a plurality of time periods equal to the division value according to the division value, so as to ensure that the sum of the operating time periods of the optical sensor in each time period is equal to the original operating time period.
Referring to fig. 6, the original duty cycle T 'is divided into 5 time segments T by dividing the value by 5, the duration of the working state of the optical sensor in each time segment is T1, and T1 can be one fifth of T1', so that after the adjustment of the working mode of the optical sensor, the sum of the durations of the working state of the optical sensor in the five time segments T is still equal to the duration T1 'of the working state of the optical sensor in one original duty cycle T' when the optical sensor is normally working.
The preset duration may be a duration that the display screen is in a non-light-emitting state every time when the user experience is not affected, which is determined empirically. The division value may be a fixed value determined according to the original operating time period T1 ' and the preset time period of the optical sensor, for example, if the original operating time period T1 ' is 100 milliseconds and the preset time period is 50 milliseconds, the division value may be determined to be 2, so as to divide the original operating period T ' into two time periods, the operating time period of the optical sensor in each time period is 50 milliseconds, i.e., the sum of the operating time periods T1 of the optical sensor in the two time periods T is equal to the original operating time period T1 ' in one original operating time period T1 ', and the total operating time period of the optical sensor is ensured to be constant. Therefore, under the condition that the working effect of the optical sensor is not influenced, the working time of the optical sensor is shortened, the working time of the display in a non-luminous state is shortened, and the use experience of a user when the user watches the display screen of the electronic equipment is ensured.
Step 203, determining the time periods as the work cycles of the optical sensor, and determining the time length of the optical sensor in the working state in each time period as the working time length of the optical sensor in each work cycle.
In this step, the time period determined in the above step may be determined as the working period T after the adjustment of the working mode of the optical sensor, the time period during which the optical sensor is in the working state in each time period may be determined as the working time period T1 during which the optical sensor is in each working period T, so as to further use the working period T and the working time period T1 of the optical sensor as the working parameters of the optical sensor, and adjust the display mode of the display screen of the electronic device according to the working parameters of the optical sensor.
And 204, acquiring the display frequency of the display frame of the display screen of the electronic equipment.
In this step, the display frequency of the display screen frame of the electronic device may be determined according to the relevant parameter of the electronic device.
Step 205, determining a first frame number of a picture frame corresponding to the display screen in the working period of the optical sensor according to the display frequency and the working period of the optical sensor.
In this step, the working parameter of the optical sensor includes the working period of the optical sensor, so that after the working period of the optical sensor and the display frequency of the display frame of the display screen are obtained, the first frame number of the corresponding frame of the display screen in the working period of the optical sensor, that is, the number of the normal display frame in the time range of the working period when the display screen works normally, can be further determined according to the working period of the optical sensor and the display frequency of the display frame of the display screen.
Specifically, the product of the display frequency and the duty cycle of the optical sensor may be calculated, and the first frame number may be obtained by taking an integer up from the calculated product.
For example, if the display frequency of the display screen is 90 hz and the duty cycle of the optical sensor is 0.04 s, the product of the two is 3.6, and after the integer is taken up, the first frame number is 4, that is, before the display mode of the display screen is adjusted, when the display screen normally displays a frame at the frequency of 90 hz, a frame of 4 can be displayed in one duty cycle of the optical sensor.
And step 206, determining an adjustment time interval corresponding to the display screen according to the first frame number and the display frequency.
In this step, an adjustment time interval corresponding to the display screen may be further determined according to the determined first frame number and the display frequency of the display screen, and since the finally determined adjustment time interval of the display screen is determined according to the frame number of the picture frames in the display screen, the operation mode of the optical sensor finally determined by the adjustment time interval is adapted to the picture frames displayed in the display screen.
For example, if the display frequency of the display screen is 90 hz, the display duration of each frame of the display screen may be 1/90 seconds, and when the first frame number is 4, the display duration of displaying 4 frames of the display screen may be 2/45 seconds, so that 2/45 seconds may be determined as the adjustment time interval corresponding to the display screen, that is, 2/45 seconds may be used as the adjustment period to adjust the display mode of the display screen.
And step 207, determining a second frame number of the corresponding picture frame when the display screen is in the non-luminous state in the working period of the optical sensor according to the display frequency and the working time of the optical sensor.
In this step, the working parameters of the optical sensor further include the working duration of the optical sensor in each working period, so that after the working duration of the optical sensor in each working period and the display frequency of the display frame of the display screen are obtained, a second frame number of the display screen in a non-lighting state in the working period of the optical sensor, that is, the number of the frame frames in the time range of the working duration of the optical sensor when the display screen normally works, can be further determined according to the working duration of the optical sensor and the display frequency of the display frame of the display screen, and the light emitted by the display screen when the frame frames are displayed can affect the detection of the optical sensor on the ambient light, and meanwhile, the self-luminescence of the optical sensor can also have a certain effect on the display of the frame frames.
Specifically, the product of the display frequency and the operating time of the optical sensor may be calculated, and the second frame number may be obtained by taking an integer of the calculated product.
For example, if the display frequency of the display screen is 90 hz, the working period of the optical sensor is 0.04 s, and the working duration of the optical sensor in each working period is 0.008 s, the product of the display frequency and the working duration of the optical sensor is 0.72, after an integer is taken up, a second frame number of 1 can be obtained, that is, before the display mode of the display screen is adjusted, when the display screen normally displays a picture at a frequency of 90 hz, the display screen correspondingly displays 1 frame of picture within the time range of the working duration in one working period of the optical sensor.
And 208, determining the corresponding adjustment duration of the display screen according to the second frame number and the display frequency.
In this step, the adjustment duration corresponding to the display screen may be further determined according to the determined second frame number and the display frequency of the display screen, and since the finally determined adjustment time interval of the display screen is determined by the frame number of the picture frames in the display screen, the operation mode of the optical sensor finally determined by the adjustment time interval is adapted to the picture frames displayed in the display screen.
For example, if the display frequency of the display screen is 90 hz, the display duration of each frame of the display screen is 1/90 seconds, and when the second frame number is 1, the display duration of displaying 1 frame of the display screen is 1/90 seconds, so that 1/90 seconds can be determined as the adjustment duration corresponding to the display screen, that is, 2/45 seconds can be used as the adjustment period to adjust the display mode of the display screen, so that each interval 2/45 seconds controls the display screen to be in a non-light-emitting state within a time range of 1/90 seconds.
Correspondingly, every 2/45 seconds, the display screen is controlled to be in a non-luminous state within the time range of 1/90 seconds, and based on the picture frames in the display screen, the display screen is controlled to make 1 frame of the 4 frame picture frames be a black picture at every 4 frame intervals.
Step 209, at each interval of the adjustment time interval, controlling a local area corresponding to the optical sensor in the display screen to be in a non-light emitting state within the time range of the adjustment time interval, and simultaneously controlling the optical sensor to be in a working state within the time range of the adjustment time interval.
In this step, after the adjustment time interval and the adjustment duration of the display screen are determined, the local area corresponding to the optical sensor in the display screen is controlled at each time interval to be in the non-light-emitting state within the time range of the adjustment duration, and the optical sensor is controlled to be in the working state within the time range of the adjustment duration, so that the display screen and the optical sensor are not in the working state at the same time, and the mutual influence between the display screen and the optical sensor is avoided.
Optionally, under the condition that a local area of the display screen includes a plurality of display elements arranged in an array, the controlling of the local area of the display screen corresponding to the optical sensor is in a process of a non-light-emitting state within a time range of adjusting the duration specifically may include:
sub-step 2091 determines a plurality of target display elements of the display screen corresponding to the local region.
In addition, fig. 7 is a schematic diagram of adjusting a local area in a display screen according to an embodiment of the present application, as shown in fig. 7, a local area a in the display screen of an electronic device is an area corresponding to an optical sensor under the display screen, and therefore, a display mode of the local area a needs to be adjusted such that the display mode of the local area a is continuously in a light-emitting state, is adjusted to be in a non-light-emitting state at each adjustment time interval, and is within a time range of an adjustment time duration in each adjustment time interval.
In the process, the display screen of the electronic device is composed of a plurality of display elements (namely, pixel points) arranged in an array, and the process that the display screen is adjusted from a light-emitting state to a non-light-emitting state or from the non-light-emitting state to the light-emitting state is that the state of each display element is refreshed in sequence, so that all the display elements in the display screen are refreshed to another state. And the rule of refreshing the state of each display element in the display screen in turn, generally, the refresh is performed along a side parallel to the display screen in a whole row, that is, when the display screen is adjusted from a light-emitting state to a non-light-emitting state, firstly, the display elements in the first row in the display screen can be sequentially adjusted from the light-emitting state to the non-light-emitting state in a sequence from left to right, and then the display elements in the second row are sequentially adjusted from the light-emitting state to the non-light-emitting state in a sequence from left to right, until the adjustment of the states of the display elements in the whole display screen is completed, the adjustment of the display mode in the display screen cannot be completed.
Correspondingly, only the process of adjusting the display mode of the local area a in the display screen is finished by sequentially refreshing from the first display element in the first row of the display screen including the local area a to the last display element in the last row of the display screen including the local area a. Therefore, the process of adjusting the local area display mode requires a time period, and is not completed at a certain instant. Referring to fig. 4, in the curve corresponding to the display mode after the display screen is adjusted, T0 is the refresh time required to adjust all the display elements in the local area a in the display screen from the light-emitting state to the non-light-emitting state, that is, to complete the adjustment of the local area a from the light-emitting state to the non-light-emitting state.
Further, in the above process of calculating the product of the display frequency and the operating time of the optical sensor, the refresh time T0 corresponding to the local area a may be determined first, and then the sum T3 of the operating time T1 of the optical sensor and the refresh time T0 may be calculated, and the product of the sum T3 of the time and the display frequency may be further calculated, so that the second frame number of the corresponding frame may be calculated by using the product of the sum T3 of the time and the display frequency when the display screen is in the non-lighting state in the operating cycle of the optical sensor.
In the embodiment of the present application, a plurality of target display elements arranged in an array may be firstly included in the local area a of the display screen.
Sub-step 2092 controls, line by line, the target display elements in the array to be in the non-illuminated state for the time range of the adjusted time duration, or controls each of the target display elements in the array to be in the non-illuminated state for the time range of the adjusted time duration simultaneously.
In this step, after the plurality of target display elements arranged in an array included in the local region of the display screen are determined, the refresh modes of the display elements in the local region and other regions of the display screen may be separated, so that the target display elements included in the local region independently use a row-by-row refresh mode or a synchronous refresh mode in the local region, thereby reducing a refresh time period T0 required for adjusting all the display elements in the local region from a light-emitting state to a non-light-emitting state, i.e., adjusting the local region from the light-emitting state to the non-light-emitting state, and accordingly, the time period during which the optical sensor is in the operating state may be increased.
For example, referring to fig. 7, the target display elements in the local area a are distributed in an array, and thus, the target display elements in the local area a may be controlled to adjust from a light-emitting state to a non-light-emitting state row by row, or each target display element in the local area a may be controlled to notify that the adjustment from the light-emitting state to the non-light-emitting state is made.
And step 210, determining a third frame number of the corresponding picture frame when the display screen is in a light-emitting state in the time range except the adjustment duration in the adjustment time interval according to the first frame number and the second frame number.
In this step, since a local area of the display screen corresponding to the optical sensor is in a non-light-emitting state within the time range of the adjustment time period, the brightness of the local area is reduced relative to other areas in the display screen of the electronic device.
In the embodiment of the application, in order to avoid the reduction of the brightness of the local area to cause the reduction of the display effect of the display screen, the brightness compensation can be performed on the local area when the local area is in a luminous state, so that the reduction of the brightness of the local area is compensated, and the display effect of the display screen is improved.
Specifically, the third frame number may be determined according to a first frame number and a second frame number, where the first frame number may be a frame number included in the display screen in the working period of the optical sensor, and may be determined according to step 205, and the second frame number may be a frame number included in the display screen in the non-lighting state in the working period of the optical sensor, and may be determined according to step 207.
Specifically, the difference between the first frame number and the second frame number may be calculated so that the third frame number of the corresponding picture frame when the display screen is in the lighting state in the time range other than the adjustment duration in the adjustment time interval is equal to the difference between the first frame number and the second frame number. The method comprises the steps of controlling the picture frame of the second frame number in the picture frames of the first frame number to be a black picture frame, controlling the picture frame of the third frame number in the picture frames of the first frame number to be a normally displayed picture frame, and further performing brightness compensation on the picture frames of the third frame number after the display mode is adjusted, so that the integral sum of the brightness of the picture frames of the third frame number in the display screen after the display mode is adjusted is equal to the integral sum of the brightness of the picture frames of the first frame number in the display screen before the display mode is adjusted, and therefore the brightness seen by human eyes after the display mode is adjusted is consistent with the brightness effect of the normally displayed picture before the display mode is adjusted, the phenomenon that the brightness of the display screen is changed due to the adjustment of the display mode of the display screen is avoided, and the use experience of a user is improved.
And step 211, determining the brightness reduction range of the display screen according to the picture frame corresponding to the first frame number and the picture frame corresponding to the third frame number.
In this step, after determining the first frame number of the frame corresponding to the display screen in the working period of the optical sensor and the third frame number of the frame corresponding to the display screen in the light-emitting state in the time range except the adjustment duration in the adjustment time interval, the brightness decrease range of the display screen before and after the display mode adjustment of the display screen may be determined according to the frame corresponding to the third frame number and the frame corresponding to the third frame number.
Optionally, step 211 may specifically include:
sub-step 2111, determining a first luminance integrated value of the picture frame of the third frame number, and a second luminance integrated value of the picture frame of the first frame number.
In this step, it may be determined that the integrated sum of the luminances of the picture frames of the third frame number after the display mode adjustment is recorded as the first luminance integrated value first, and then the integrated sum of the luminances of the picture frames of the first frame number before the display mode adjustment is recorded as the second luminance integrated value.
Sub-step 2112, determining the brightness drop amplitude of the display screen according to the first brightness integrated value and the second brightness integrated value.
In this step, since the picture frames normally displayed in each adjustment time interval are the first number of frames in total before the adjustment of the display mode, and the picture frames displayed in each adjustment time interval are the third number of frames in total after the adjustment of the display mode. Correspondingly, the brightness descending range of the local area of the display screen is the difference value of the first brightness integral value and the second brightness integral value.
In the embodiment of the application, if the brightness difference of each frame of picture frame is ignored and the brightness of each frame of picture frame is the same, the brightness reduction range of the display screen can be simply determined according to the number of the picture frames before and after the display mode. For example, if the first frame number is N frames and the second frame number is M frames, the brightness of the local area in the display screen is decreased by M/N after the display mode is adjusted.
And 212, determining a brightness compensation value according to the first frame number and the second frame number under the condition that the brightness descending amplitude is larger than a preset amplitude value, and performing brightness compensation on the picture frame of the third frame number according to the brightness compensation value.
In this step, after determining the brightness decrease amplitude of the local region in the display screen, if the brightness decrease amplitude is greater than the preset amplitude, it indicates that the brightness decrease amplitude of the local region in the display screen is relatively large, which may affect the display effect of the local region, so that the brightness of the local region received by the user is significantly lower than the brightness of normal display, a brightness compensation value may be determined according to the first frame number and the second frame number, thereby performing brightness compensation on the picture frame of the third frame number according to the brightness compensation value.
Specifically, if the first frame number N is 4 frames and the second frame number M is 1 frame, the third frame number K is N-M3, that is, the local area of the display screen is 4 frames at intervals, 1 frame of the 4 frame frames is a black frame, the 3 frame frames are normally displayed frames, and the luminance of the local area of the display screen is decreased by 25%, so that the luminance compensation value is determined to be 25% of the luminance of the normally displayed 3 frame frames, and the luminance of the normally displayed 3 frame frames is increased by 25%, so as to compensate the decrease in luminance caused by the 1 frame being a black frame.
Specifically, the luminance of the local region can be adjusted by adjusting the current value corresponding to the display element included in the local region.
The preset amplitude may be a brightness reduction amplitude of the display screen, for example, 10% or 20%, determined according to the user experience of the user on the electronic device, without affecting the user experience or the visual effect of the user.
To sum up, the display method of the display screen of the electronic device provided by the embodiment of the present application includes: acquiring working parameters of the optical sensor; determining an adjustment time interval corresponding to a display screen of the electronic equipment and adjustment duration of the display screen in the adjustment time interval according to working parameters of the optical sensor; the method comprises the steps of adjusting time intervals at intervals, controlling local areas corresponding to the optical sensors in the display screen to be in a non-luminous state within the time range of the adjusted time, and controlling the optical sensors to be in a working state within the time range of the adjusted time. Meanwhile, the display screen is only in a non-luminous state in each working period of the optical sensor, namely the time range of the adjustment duration in the adjustment time interval, namely, no picture frame is periodically displayed in a shorter time range, so that the influence of the change of the display mode of the display screen on the display effect of the display screen is reduced, and the display effect of the display screen is improved.
In addition, in order to avoid the reduction of the brightness of the local area to cause the reduction of the display effect of the display screen, the brightness compensation can be carried out on the local area when the local area is in a luminous state, so that the reduction of the brightness of the local area is compensated, and the display effect of the display screen is improved.
It should be noted that, in the display method of the display screen of the electronic device provided in the embodiment of the present application, the execution main body may be a display device of the display screen of the electronic device, or a control module in the display device of the display screen of the electronic device, for executing the display method of the display screen of the electronic device. In this embodiment, a display method of a display screen of an electronic device, which is provided by the embodiment of the present application, is described by taking a display device of the display screen of the electronic device executing a display method of a display screen of a loaded electronic device as an example.
Fig. 8 is a block diagram of a display device of a display screen of an electronic device according to an embodiment of the present application, where as shown in fig. 8, the device 300 includes:
an obtaining module 301, configured to obtain working parameters of the optical sensor;
a first determining module 302, configured to determine, according to a working parameter of the optical sensor, an adjustment time interval corresponding to a display screen of an electronic device and an adjustment duration of the display screen in the adjustment time interval;
and the control module 303 is configured to control a local area, corresponding to the optical sensor, in the display screen at each interval of the adjustment time interval, to be in a non-light-emitting state within the time range of the adjustment time duration, and to control the optical sensor to be in a working state within the time range of the adjustment time duration.
Optionally, the working parameter of the optical sensor includes a working period of the optical sensor, and the first determining module 302 specifically includes:
the first obtaining submodule is used for obtaining the display frequency of a display screen display picture frame of the electronic equipment;
the first determining submodule is used for determining a first frame number of a picture frame corresponding to the display screen in the working period of the optical sensor according to the display frequency and the working period of the optical sensor;
and the second determining submodule is used for determining the adjusting time interval corresponding to the display screen according to the first frame number and the display frequency.
Optionally, the working parameters of the optical sensor further include a working time of the optical sensor in each working cycle, and the first determining module 302 specifically includes:
a third determining submodule, configured to determine, according to the display frequency and the working duration of the optical sensor, a second frame number of a corresponding picture frame when the display screen is in the non-light-emitting state in a working period of the optical sensor;
and the fourth determining submodule is used for determining the corresponding adjustment duration of the display screen according to the second frame number and the display frequency.
Optionally, the apparatus further comprises:
a second determining module, configured to determine a difference between a first frame number and a second frame number as a third frame number of a corresponding frame when the display screen is in a light-emitting state in a time range in the adjustment time interval except for the adjustment duration, where the first frame number is a difference between the first frame number and the second frame number, the first frame number is a frame number included in a working period of the optical sensor by the display screen, and the second frame number is a frame number included in a working period of the optical sensor by the display screen in a non-light-emitting state;
a third determining module, configured to determine a brightness decrease range of the display screen according to the picture frame corresponding to the first frame number and the picture frame corresponding to the third frame number;
and the compensation module is used for determining a brightness compensation value according to the first frame number and the second frame number under the condition that the brightness descending amplitude is larger than a preset amplitude value, and performing brightness compensation on the picture frame of the third frame number according to the brightness compensation value.
Optionally, the third determining module specifically includes:
a fifth determining sub-module for determining a first luminance integral value of the picture frame of the third frame number and a second luminance integral value of the picture frame of the first frame number;
and the sixth determining sub-module is used for determining the brightness reduction amplitude of the display screen according to the first brightness integrated value and the second brightness integrated value.
Optionally, the local region includes a plurality of display elements arranged in an array; the control module specifically comprises:
a seventh determining sub-module, configured to determine a plurality of target display elements included in the local area of the display screen;
and the control sub-module is used for controlling the target display elements in the array to be in the non-lighting state within the time range of the adjusting time length line by line or controlling each target display element in the array to be in the non-lighting state within the time range of the adjusting time length simultaneously.
Optionally, the obtaining module 303 specifically includes:
the first acquisition submodule is used for acquiring the original working period of the optical sensor and the original working time length of the optical sensor in each original working period;
an eighth determining submodule, configured to determine a separation value when the original operating time is longer than a preset time, divide each original operating period into a plurality of time periods whose number is equal to the separation value, where a sum of the times that the optical sensor is in an operating state in each time period is equal to the original operating time;
a ninth determining submodule, configured to determine the time periods as the duty cycles of the optical sensor, and determine a duration in which the optical sensor is in an operating state in each of the time periods as an operating duration of the optical sensor in each of the duty cycles.
Optionally, when the display screen is an organic light emitting semiconductor screen, the non-light emitting state is a state in which the local area displays a black picture frame.
The display device of the display screen of the electronic device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The display device of the display screen of the electronic device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The display device of the display screen of the electronic device provided in the embodiment of the present application can implement each process implemented by the display device of the display screen of the electronic device in the method embodiments of fig. 1 and fig. 5, and for avoiding repetition, details are not repeated here.
To sum up, the display device of the display screen of the electronic device provided by the embodiment of the present application includes: acquiring working parameters of the optical sensor; determining an adjustment time interval corresponding to a display screen of the electronic equipment and adjustment duration of the display screen in the adjustment time interval according to working parameters of the optical sensor; the method comprises the steps of adjusting time intervals at intervals, controlling local areas corresponding to the optical sensors in the display screen to be in a non-luminous state within the time range of the adjusted time, and controlling the optical sensors to be in a working state within the time range of the adjusted time. Meanwhile, the display screen is in a non-luminous state only in each working period of the optical sensor, namely the time range of the adjustment duration in the adjustment time interval, namely, the frame is not displayed in a shorter time range periodically, so that the influence of the change of the display mode of the display screen on the display effect of the display screen is reduced, and the display effect of the display screen is improved.
Optionally, an embodiment of the present application further provides an electronic device, which includes a processor, a memory, and a program or an instruction stored in the memory and executable on the processor, where the program or the instruction is executed by the processor to implement each process of the display method embodiment of the display screen of the electronic device, and can achieve the same technical effect, and in order to avoid repetition, the details are not described here again.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 9 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 400 includes, but is not limited to: radio unit 401, network module 402, audio output unit 403, input unit 404, sensor 405, display unit 406, user input unit 407, interface unit 408, memory 409, and processor 410.
Those skilled in the art will appreciate that the electronic device 400 may further include a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 410 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 9 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is not repeated here.
The processor 410 is used for acquiring the working parameters of the optical sensor;
determining an adjustment time interval corresponding to a display screen of the electronic equipment and adjustment duration of the display screen in the adjustment time interval according to the working parameters of the optical sensor;
and controlling a local area corresponding to the optical sensor in the display screen to be in a non-luminous state within the time range of the adjusting time length every interval of the adjusting time interval, and controlling the optical sensor to be in a working state within the time range of the adjusting time length.
In the application, the local area of the electronic equipment display screen is controlled to adjust the time interval at intervals, and the optical sensor is in a non-luminous state within the time range of the adjustment duration, so that the optical sensor is in a working state within the time range of the adjustment duration, the display mode of the display screen is changed instead of the working time of the optical sensor, mutual influence between the display screen and the optical sensor is avoided, and the detection precision of the optical sensor is ensured. Meanwhile, the display screen is in a non-luminous state only in each working period of the optical sensor, namely the time range of the adjustment duration in the adjustment time interval, namely, the frame is not displayed in a shorter time range periodically, so that the influence of the change of the display mode of the display screen on the display effect of the display screen is reduced, and the display effect of the display screen is improved.
Optionally, the processor 410 is further configured to obtain a display frequency of a display frame of a display screen of the electronic device;
determining a first frame number of a corresponding picture frame of the display screen in the working period of the optical sensor according to the display frequency and the working period of the optical sensor;
and determining the adjustment time interval corresponding to the display screen according to the first frame number and the display frequency.
Optionally, the processor 410 is further configured to determine, according to the display frequency and the working duration of the optical sensor, a second frame number of a corresponding picture frame when the display screen is in the non-light-emitting state in the working period of the optical sensor;
and determining the corresponding adjustment time length of the display screen according to the second frame number and the display frequency.
Optionally, the processor 410 is further configured to determine, in a time range in the adjustment time interval except for the adjustment duration, a third frame number of a corresponding picture frame when the display screen is in a light-emitting state according to a first frame number and a second frame number, where the third frame number is equal to a difference between the first frame number and the second frame number, the first frame number is a frame number included in a working period of the display screen in the optical sensor, and the second frame number is a frame number included in the display screen in the non-light-emitting state in the working period of the optical sensor;
determining the brightness reduction range of the display screen according to the picture frame corresponding to the first frame number and the picture frame corresponding to the third frame number;
and under the condition that the brightness descending amplitude is larger than a preset amplitude value, determining a brightness compensation value according to the first frame number and the second frame number, and performing brightness compensation on the picture frame of the third frame number according to the brightness compensation value.
Optionally, the processor 410 is further configured to determine a first luminance integrated value of the picture frame of the third frame number and a second luminance integrated value of the picture frame of the first frame number;
and determining the brightness reduction amplitude of the display screen according to the first brightness integrated value and the second brightness integrated value.
Optionally, the processor 410 is further configured to determine a plurality of target display elements included in the display screen and the local area;
controlling, line by line, the target display elements in the array to be in the non-emitting state for the time range of the adjusted time duration, or controlling each target display element in the array to be in the non-emitting state for the time range of the adjusted time duration at the same time.
Optionally, the processor 410 is further configured to obtain an original working period of the optical sensor, and an original working time length of the optical sensor in each original working period;
under the condition that the original working time length is longer than a preset time length, determining a separation value, dividing each original working period into a plurality of time periods with the number equal to the separation value, wherein the sum of the working time lengths of the optical sensor in a working state in each time period is equal to the original working time length;
determining the time periods as the working cycles of the optical sensor, and determining the time length of the optical sensor in the working state in each time period as the working time length of the optical sensor in each working cycle.
In the application, the local area of the electronic equipment display screen is controlled to adjust the time interval at intervals, and the optical sensor is in a non-luminous state within the time range of the adjustment duration, so that the optical sensor is in a working state within the time range of the adjustment duration, the display mode of the display screen is changed instead of the working time of the optical sensor, mutual influence between the display screen and the optical sensor is avoided, and the detection precision of the optical sensor is ensured. Meanwhile, the display screen is in a non-luminous state only in each working period of the optical sensor, namely the time range of the adjustment duration in the adjustment time interval, namely, the frame is not displayed in a shorter time range periodically, so that the influence of the change of the display mode of the display screen on the display effect of the display screen is reduced, and the display effect of the display screen is improved.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the display method embodiment of the display screen of the electronic device, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the display method embodiment of the display screen of the electronic device, and can achieve the same technical effect, and in order to avoid repetition, the description is omitted here.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (15)

1. A display method of a display screen of an electronic device, wherein an optical sensor is arranged below the display screen, the method comprising:
acquiring working parameters of the optical sensor;
determining an adjustment time interval corresponding to a display screen of the electronic equipment and adjustment duration of the display screen in the adjustment time interval according to the working parameters of the optical sensor;
controlling a local area corresponding to the optical sensor in the display screen to be in a non-luminous state within the time range of the adjusting duration and controlling the optical sensor to be in a working state within the time range of the adjusting duration at each interval of the adjusting time interval;
wherein the operating parameter of the optical sensor comprises an operating period of the optical sensor.
2. The method according to claim 1, wherein the step of determining the adjustment time interval corresponding to the display screen of the electronic device according to the operating parameter of the optical sensor specifically comprises:
acquiring the display frequency of a display screen display picture frame of the electronic equipment;
determining a first frame number of a corresponding picture frame of the display screen in the working period of the optical sensor according to the display frequency and the working period of the optical sensor;
and determining the adjustment time interval corresponding to the display screen according to the first frame number and the display frequency.
3. The method according to claim 2, wherein the operating parameters of the optical sensor further include an operating duration of the optical sensor in each of the operating cycles, and the step of determining the adjustment duration of the display screen in the adjustment time interval includes:
determining a second frame number of a corresponding picture frame when the display screen is in the non-luminous state in the working period of the optical sensor according to the display frequency and the working time of the optical sensor;
and determining the corresponding adjustment time length of the display screen according to the second frame number and the display frequency.
4. The method of claim 1, wherein the step of controlling a local area of the display screen corresponding to the optical sensor at each of the adjustment time intervals to be in a non-emitting state for a time period of the adjustment time period is followed by the step of:
determining a third frame number of a corresponding picture frame when the display screen is in a light-emitting state in a time range except the adjustment duration in the adjustment time interval according to a first frame number and a second frame number, wherein the third frame number is equal to a difference value of the first frame number and the second frame number, the first frame number is a frame number included in a working period of the optical sensor by the display screen, and the second frame number is a frame number included in a working period of the optical sensor by the display screen when the display screen is in a non-light-emitting state;
determining the brightness reduction range of the display screen according to the picture frame corresponding to the first frame number and the picture frame corresponding to the third frame number;
and under the condition that the brightness descending amplitude is larger than a preset amplitude value, determining a brightness compensation value according to the first frame number and the second frame number, and performing brightness compensation on the picture frame of the third frame number according to the brightness compensation value.
5. The method according to claim 4, wherein the step of determining a brightness decrease of the display screen according to the picture frame corresponding to the first frame number and the picture frame corresponding to the third frame number specifically comprises:
determining a first luminance integral value of the picture frame of the third frame number and a second luminance integral value of the picture frame of the first frame number;
and determining the brightness reduction amplitude of the display screen according to the first brightness integrated value and the second brightness integrated value.
6. The method of claim 1, wherein the local area comprises a plurality of display elements arranged in an array;
the step of controlling a local area of the display screen corresponding to the optical sensor to be in a non-light-emitting state within the time range of the adjustment duration specifically includes:
determining a plurality of target display elements contained in the display screen and the local area;
controlling, line by line, the target display elements in the array to be in the non-emitting state for the time range of the adjusted time duration, or controlling each target display element in the array to be in the non-emitting state for the time range of the adjusted time duration at the same time.
7. The method according to claim 1, wherein the step of obtaining the operating parameters of the optical sensor comprises:
acquiring original work periods of the optical sensor and original work time of the optical sensor in each original work period;
under the condition that the original working time length is longer than a preset time length, determining a separation value, dividing each original working period into a plurality of time periods with the number equal to the separation value, wherein the sum of the working time lengths of the optical sensor in a working state in each time period is equal to the original working time length;
determining the time periods as the working cycles of the optical sensor, and determining the time length of the optical sensor in the working state in each time period as the working time length of the optical sensor in each working cycle.
8. A display device of a display screen of an electronic apparatus, characterized in that an optical sensor is provided below the display screen, the device comprising:
the acquisition module is used for acquiring working parameters of the optical sensor;
the first determining module is used for determining an adjusting time interval corresponding to a display screen of the electronic equipment and adjusting time length of the display screen in the adjusting time interval according to the working parameters of the optical sensor;
the control module is used for controlling a local area corresponding to the optical sensor in the display screen at each interval of the adjusting time interval, and controlling the optical sensor to be in a non-luminous state within the time range of the adjusting time interval and to be in a working state within the time range of the adjusting time interval;
wherein the operating parameter of the optical sensor comprises an operating period of the optical sensor.
9. The apparatus according to claim 8, wherein the first determining module specifically includes:
the first obtaining submodule is used for obtaining the display frequency of a display screen display picture frame of the electronic equipment;
the first determining submodule is used for determining a first frame number of a picture frame corresponding to the display screen in the working period of the optical sensor according to the display frequency and the working period of the optical sensor;
and the second determining submodule is used for determining the adjusting time interval corresponding to the display screen according to the first frame number and the display frequency.
10. The apparatus according to claim 9, wherein the operating parameters of the optical sensor further include an operating time of the optical sensor in each of the operating cycles, and the first determining module specifically includes:
a third determining submodule, configured to determine, according to the display frequency and the working duration of the optical sensor, a second frame number of a corresponding picture frame when the display screen is in the non-light-emitting state in a working period of the optical sensor;
and the fourth determining submodule is used for determining the corresponding adjustment duration of the display screen according to the second frame number and the display frequency.
11. The apparatus of claim 8, further comprising:
a second determining module, configured to determine, according to a first frame number and a second frame number, a third frame number of a corresponding picture frame when the display screen is in a light-emitting state in a time range in the adjustment time interval except for the adjustment duration, where the third frame number is equal to a difference between the first frame number and the second frame number, the first frame number is a frame number included in a working period of the optical sensor by the display screen, and the second frame number is a frame number included in the non-light-emitting state by the display screen in the working period of the optical sensor;
a third determining module, configured to determine a brightness decrease range of the display screen according to the picture frame corresponding to the first frame number and the picture frame corresponding to the third frame number;
and the compensation module is used for determining a brightness compensation value according to the first frame number and the second frame number under the condition that the brightness descending amplitude is larger than a preset amplitude value, and performing brightness compensation on the picture frame of the third frame number according to the brightness compensation value.
12. The apparatus according to claim 11, wherein the third determining module specifically includes:
a fifth determination sub-module for determining a first luminance integral value of the picture frame of the third frame number and a second luminance integral value of the picture frame of the first frame number;
and the sixth determining sub-module is used for determining the brightness reduction amplitude of the display screen according to the first brightness integrated value and the second brightness integrated value.
13. The apparatus of claim 8, wherein the local region comprises a plurality of display elements arranged in an array; the control module specifically comprises:
a seventh determining sub-module, configured to determine a plurality of target display elements included in the local area of the display screen;
and the control sub-module is used for controlling the target display elements in the array to be in the non-lighting state within the time range of the adjusting time length line by line or controlling each target display element in the array to be in the non-lighting state within the time range of the adjusting time length simultaneously.
14. The apparatus according to claim 8, wherein the obtaining module specifically includes:
the first acquisition submodule is used for acquiring the original working period of the optical sensor and the original working time length of the optical sensor in each original working period;
an eighth determining submodule, configured to determine a separation value when the original operating time is longer than a preset time, divide each original operating period into a plurality of time periods whose number is equal to the separation value, where a sum of the times that the optical sensor is in an operating state in each time period is equal to the original operating time;
a ninth determining submodule, configured to determine the time periods as the duty cycles of the optical sensor, and determine a duration in which the optical sensor is in an operating state in each of the time periods as an operating duration of the optical sensor in each of the duty cycles.
15. An electronic device, comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions, when executed by the processor, implementing the steps of the display method of the display screen of the electronic device according to any one of claims 1-7.
CN202110229736.6A 2021-03-02 2021-03-02 Display method and device of display screen of electronic equipment and electronic equipment Active CN112992060B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110229736.6A CN112992060B (en) 2021-03-02 2021-03-02 Display method and device of display screen of electronic equipment and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110229736.6A CN112992060B (en) 2021-03-02 2021-03-02 Display method and device of display screen of electronic equipment and electronic equipment

Publications (2)

Publication Number Publication Date
CN112992060A CN112992060A (en) 2021-06-18
CN112992060B true CN112992060B (en) 2022-08-02

Family

ID=76351945

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110229736.6A Active CN112992060B (en) 2021-03-02 2021-03-02 Display method and device of display screen of electronic equipment and electronic equipment

Country Status (1)

Country Link
CN (1) CN112992060B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107818753A (en) * 2017-11-22 2018-03-20 广东欧珀移动通信有限公司 Screen brightness regulation method, device, storage medium and electronic equipment
CN109238460A (en) * 2018-08-24 2019-01-18 维沃移动通信有限公司 A kind of method and terminal device obtaining ambient light intensity
CN109410833A (en) * 2018-08-29 2019-03-01 北京小米移动软件有限公司 Environment light detection method, device, terminal and storage medium
CN110134034A (en) * 2019-03-26 2019-08-16 华为技术有限公司 A kind of optical sensor condition control method and electronic equipment
CN111754929A (en) * 2019-03-26 2020-10-09 北京小米移动软件有限公司 Ambient light parameter acquisition method and device and storage medium
CN111798796A (en) * 2020-07-23 2020-10-20 欧菲微电子技术有限公司 Display screen brightness adjusting method and display device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109036331B (en) * 2018-08-24 2020-04-24 京东方科技集团股份有限公司 Display screen brightness adjusting method and device and display screen

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107818753A (en) * 2017-11-22 2018-03-20 广东欧珀移动通信有限公司 Screen brightness regulation method, device, storage medium and electronic equipment
CN109238460A (en) * 2018-08-24 2019-01-18 维沃移动通信有限公司 A kind of method and terminal device obtaining ambient light intensity
CN109410833A (en) * 2018-08-29 2019-03-01 北京小米移动软件有限公司 Environment light detection method, device, terminal and storage medium
CN110134034A (en) * 2019-03-26 2019-08-16 华为技术有限公司 A kind of optical sensor condition control method and electronic equipment
WO2020192362A1 (en) * 2019-03-26 2020-10-01 华为技术有限公司 State control method for light sensor and electronic device
CN111754929A (en) * 2019-03-26 2020-10-09 北京小米移动软件有限公司 Ambient light parameter acquisition method and device and storage medium
CN111798796A (en) * 2020-07-23 2020-10-20 欧菲微电子技术有限公司 Display screen brightness adjusting method and display device

Also Published As

Publication number Publication date
CN112992060A (en) 2021-06-18

Similar Documents

Publication Publication Date Title
US11244653B2 (en) Driving method and driving device of display panel, and display device
CN213545872U (en) Apparatus for driving display
US20210327328A1 (en) Display apparatus and brightness adjustment method for display apparatus
RU2648583C2 (en) Liquid crystal method and display device
US8411021B2 (en) Display control apparatus and display control method for adjusting display luminance according to ambient brightness
RU2656729C2 (en) Liquid crystal display method and apparatus
CN107004393A (en) Display device, the control method of display device and control program
US10019966B2 (en) Method for displaying image and apparatus thereof
CN109036331B (en) Display screen brightness adjusting method and device and display screen
CN112017577B (en) Screen display calibration method and device
US11388363B2 (en) TV set and backlight control method, control device and readable storage medium of the TV set
CN104183216A (en) Method and device for controlling brightness of display screen of displayer
US9898982B2 (en) Display method, device and computer-readable medium
CN112242119A (en) Terminal, display parameter control method and device, and storage medium
CN111754929B (en) Ambient light parameter acquisition method and device and storage medium
CN112289278A (en) Screen brightness adjusting method, screen brightness adjusting device and electronic equipment
CN106933329A (en) A kind of method of mobile terminal adaptive energy-saving grade, device and mobile terminal
CN112992060B (en) Display method and device of display screen of electronic equipment and electronic equipment
KR101822310B1 (en) Method and device for content displaying
JP2011075800A (en) Liquid crystal display device
CN113160749B (en) Display control device, display device, recording medium, and control method
CN111383583B (en) Display control method and apparatus, electronic device, and computer-readable storage medium
CN115278027B (en) Display control method and device
CN115798394A (en) Brightness adjusting method, device and storage medium
CN117409725A (en) Method, device, medium and equipment for controlling regional backlight

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