CN114840114A - Display control method, device and storage medium - Google Patents

Display control method, device and storage medium Download PDF

Info

Publication number
CN114840114A
CN114840114A CN202210781408.1A CN202210781408A CN114840114A CN 114840114 A CN114840114 A CN 114840114A CN 202210781408 A CN202210781408 A CN 202210781408A CN 114840114 A CN114840114 A CN 114840114A
Authority
CN
China
Prior art keywords
display mode
terminal equipment
interface
mode
terminal device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210781408.1A
Other languages
Chinese (zh)
Other versions
CN114840114B (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.)
Honor Device Co Ltd
Original Assignee
Honor Device 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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202210781408.1A priority Critical patent/CN114840114B/en
Publication of CN114840114A publication Critical patent/CN114840114A/en
Application granted granted Critical
Publication of CN114840114B publication Critical patent/CN114840114B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition
    • G06V30/14Image acquisition
    • G06V30/148Segmentation of character regions
    • G06V30/153Segmentation of character regions using recognition of characters or words
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Software Systems (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Multimedia (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the application provides a display control method, a display control device and a storage medium, which are applied to terminal equipment comprising a display screen and comprise the following steps: the terminal equipment receives a first operation; responding to the first operation, the terminal equipment displays a first interface, wherein the first interface comprises an identifier of a first display mode, and the identifier of the first display mode is marked to be in an un-started state; the terminal equipment automatically starts a first display mode based on ambient light and/or the content of a focus window in the terminal equipment; the terminal equipment receives a second operation; and responding to the second operation, the terminal equipment displays a second interface, wherein the second interface comprises the identifier of the first display mode, and the identifier of the first display mode is marked to be in the starting state. Therefore, the terminal equipment can automatically start the corresponding display mode, manual operation of a user is reduced, and use experience of the user is improved.

Description

Display control method, device and storage medium
Technical Field
The present application relates to the field of terminal technologies, and in particular, to a display control method and apparatus, and a storage medium.
Background
With the development of terminal technology, electronic devices equipped with display screens have become a part of people's work and life. In some scenarios, the light of the electronic device may cause harm to the human eye when browsing content on the display screen. For example, the display screen is bright, the eyes do not adapt to light, and the user feels dazzling when viewing the display screen.
The electronic device can provide display modes such as an electronic book mode, an eye protection mode and a dark color mode to reduce the damage of light to human eyes. In a possible implementation, the user can manually turn on the corresponding display mode according to the environment or requirements. Some users may not know the way the display mode is turned on or know that the electronic device may provide the display mode, such that the display mode may not be fully utilized.
Disclosure of Invention
The embodiment of the application provides a display control method, a display control device and a storage medium, so that a terminal device can automatically start an eye protection mode, a dark color mode or an electronic book mode, the operation of a user is simplified, and the use experience of the user is improved.
In a first aspect, an embodiment of the present application provides a display control method, which is applied to a terminal device including a display screen, and the method includes: the terminal equipment receives a first operation; responding to the first operation, the terminal equipment displays a first interface, wherein the first interface comprises an identifier of a first display mode, and the identifier of the first display mode is marked to be in an un-started state; the terminal equipment automatically starts a first display mode based on ambient light and/or the content of a focus window in the terminal equipment; the terminal equipment receives a second operation; and responding to the second operation, the terminal equipment displays a second interface, wherein the second interface comprises the identifier of the first display mode, and the identifier of the first display mode is marked to be in the starting state. Therefore, the terminal equipment can determine the applicable display mode according to the ambient light and/or the content of the focus window, and automatically start the display mode, so that the manual operation of a user is reduced, and the use experience of the user is improved.
When the first operation is a pull-down operation, the first interface is a pull-down interface. The first operation may be a pull-down operation for the interface a of fig. 6, the first interface may be a pull-down interface as shown in b of fig. 6, and the first display mode may be any one of an eye-protection mode, a dark color mode, or an electronic book mode. The identifier of the first display mode may be any one of an eye-protection mode icon 601, a dark color mode icon 602, or an electronic book mode icon 603.
Or when the first operation is an operation of opening a display mode interface in the setting application, the first interface is an interface in the setting application. The first operation may be a click operation on the "display and brightness" control 701 in the interface a of fig. 7, the first interface may be the interface b of fig. 7, and the first display mode may be any one of an eye protection mode, a dark color mode, and an electronic book mode. The indication of the first display mode may be any one of an "eye-protection mode" control 702, an "e-book mode" control 703, and a "dark mode" control 704.
And/or when the second operation is a pull-down operation, the second interface is a pull-down interface. The second operation may be a pull-down operation for the interface c of fig. 6, the second interface may be the interface d of fig. 6, and the first display mode may be any one of an eye-protection mode, a dark color mode, or an electronic book mode. The identifier of the first display mode may be any one of an eye-protection mode icon 601, a dark color mode icon 602, or an electronic book mode icon 603.
Or when the second operation is an operation of opening a display mode interface in the setting application, the second interface is an interface in the setting application. The second operation may be a click operation on the "display and brightness" control 701 in the interface a of fig. 7, the second interface may be the interface d of fig. 7, and the first display mode may be any one of an eye protection mode, a dark color mode, and an electronic book mode. The indication of the first display mode may be any one of an "eye-protection mode" control 702, an "e-book mode" control 703, and a "dark mode" control 704.
In one possible implementation manner, the automatically starting, by the terminal device, the first display mode based on the ambient light and/or the content of the focus window in the terminal device includes: the terminal equipment identifies the number of characters in the focus window; and when the number of the characters in the focus window is larger than or equal to the number threshold, the terminal equipment automatically starts a first display mode, wherein the first display mode comprises an electronic book mode. Therefore, the terminal equipment can determine the applicable display mode according to the content of the focus window and automatically start the display mode, so that the manual operation of a user is reduced, and the use experience of the user is improved.
In one possible implementation manner, the identifying, by the terminal device, the number of the texts in the focus window includes: the terminal equipment registers input window management of the terminal equipment based on the detection service; the detection service is configured as a service for deriving a number of words of the focus window and an ambient light reading; a detection service of the terminal equipment acquires a focus window from input window management; the terminal equipment starts an Optical Character Recognition (OCR) service in the terminal equipment based on the detection service; the terminal device captures a focus window based on the detection service and sends the captured image to an OCR service; and the terminal equipment obtains the number of characters in the screenshot recognized by the OCR service based on the detection service. Therefore, the terminal equipment can obtain the focus window and the number of characters in the focus window based on the detection service, so that whether the electronic book mode is automatically started or not is determined, manual operation of a user is reduced, and use experience of the user is improved.
In a possible implementation manner, after the terminal device displays the second interface, the method further includes: the terminal equipment detects that the focus window is switched; the terminal equipment identifies the number of characters in the focus window; when the number of the characters in the focus window is smaller than the number threshold, the terminal equipment automatically exits the electronic book mode; the terminal equipment receives a third operation; and responding to the third operation, the terminal equipment displays a third interface, the third interface comprises the identifier of the first display mode, and the identifier of the first display mode is marked to be in an un-started state. Therefore, when the focus window changes, the terminal device can detect the number of the characters in the focus window again, and automatically quits the electronic book mode when the number of the characters is smaller than the number threshold, so that the accuracy of automatically opening and closing the electronic book mode of the terminal device is improved, and the use experience of a user is further improved.
Wherein the third operation may correspond to a drop-down operation in the interface a of fig. 6, and the third interface may correspond to a drop-down interface of the interface b of fig. 6; alternatively, the third operation may correspond to an operation of opening a display mode interface in the setup application in the a interface of fig. 7, and the third interface may correspond to an interface which is the setup application in the b interface of fig. 7. The terminal equipment enters a third interface, and the identification of the electronic book mode in the third interface is marked to be in an un-started state.
In one possible implementation manner, the automatically starting, by the terminal device, the first display mode based on the ambient light and/or the content of the focus window in the terminal device includes: the terminal equipment acquires an ambient light report value; when the ambient light report value is smaller than or equal to the report value threshold value, the terminal equipment automatically starts a first display mode, wherein the first display mode comprises an eye protection mode or a dark color mode. Therefore, the terminal equipment can determine the applicable display mode according to the ambient light and automatically start the display mode, so that the manual operation of a user is reduced, and the use experience of the user is improved.
In one possible implementation manner, when the ambient light threshold is less than or equal to the threshold, the terminal device automatically turns on the first display mode, including: when the ambient light report value is less than or equal to the report value threshold value, the terminal equipment displays prompt information, and the prompt information is used for prompting a user to select an eye protection mode or a dark color mode; responding to the selection of a user on the eye protection mode, automatically starting the eye protection mode by the terminal equipment, wherein the first display mode is the eye protection mode; or responding to the selection of the user to the dark color mode, and automatically starting the dark color mode by the terminal equipment, wherein the first display mode is the dark color mode. Therefore, before the terminal equipment determines to automatically start the eye protection mode or the dark color mode based on the ambient light report value, the user can select the started display mode to be the eye protection mode or the dark color mode according to habit preferences, and the use experience of the user is improved.
In one possible implementation, the method for acquiring the ambient light report by the terminal device includes: the terminal equipment registers an ambient light sensor of the terminal equipment based on the detection service; the terminal equipment obtains an ambient light report value in the environment based on an ambient light sensor; the detection service of the terminal device obtains an ambient light report from an ambient light sensor. Therefore, the terminal equipment can obtain the ambient light report value based on the detection service, so that whether the eye protection mode or the dark color mode is automatically started or not is determined, the manual operation of a user is reduced, and the use experience of the user is improved.
In a possible implementation manner, the first interface further includes an identifier of the second display mode, and the identifier of the second display mode is marked in an inactivated state; the second interface also comprises an identifier of a second display mode, and the identifier of the second display mode is marked as a starting state; the terminal device automatically starts a first display mode based on the ambient light and/or the content of a focus window in the terminal device, and the method comprises the following steps: the terminal equipment acquires the ambient light report value and the number of characters in a focus window; when the number of the characters in the focus window is larger than or equal to the number threshold, the terminal equipment automatically starts a first display mode; the first display mode comprises an electronic book mode; the method further comprises the following steps: when the ambient light report value is smaller than or equal to the report value threshold value, the terminal equipment automatically starts a second display mode, and the second display mode comprises an eye protection mode or a dark color mode. Therefore, the terminal equipment can automatically start the electronic book mode and the eye protection mode or the dark color mode at the same time, manual operation of a user is reduced, and use experience of the user is improved.
In a possible implementation manner, after the terminal device displays the second interface, the method further includes: the terminal equipment detects that the focus window is switched; the terminal equipment identifies the number of characters in the focus window; when the number of the characters in the focus window is smaller than the number threshold, the terminal equipment automatically exits the electronic book mode and continuously keeps the opening of the second display mode; the terminal equipment receives a fourth operation; and responding to the fourth operation, the terminal equipment displays a fourth interface, the fourth interface comprises an identifier of the first display mode and an identifier of the second display mode, the identifier of the first display mode is marked in an unactivated state, and the identifier of the second display mode is marked in an activated state. Therefore, the terminal equipment can automatically close the electronic book mode when the number of characters in the focus window is lower than the number threshold, and continue to use the eye protection mode or the dark color mode, so that the accuracy of opening or closing the display mode of the terminal equipment is improved, and the use experience of a user is improved.
The fourth operation may correspond to a pull-down operation in the interface c of fig. 10, the fourth display interface may correspond to the interface d of fig. 10, the identifier of the first display mode may correspond to the e-book mode icon 603, and the e-book mode icon 603 is marked in an un-activated state; the indication of the second display mode may correspond to eye-protection mode icon 601, eye-protection mode icon 601 being marked as active.
In a possible implementation manner, after the terminal device displays the second interface, the method further includes: the terminal equipment acquires an ambient light report value; when the ambient light report value is greater than the report value threshold value, the terminal equipment automatically exits the eye protection mode or the dark color mode and continues to keep the first display mode started; the terminal equipment receives the fifth operation; and responding to a fifth operation, the terminal equipment displays a fifth interface, wherein the fifth interface comprises an identifier of the first display mode and an identifier of the second display mode, the identifier of the first display mode is marked in an activated state, and the identifier of the second display mode is marked in an inactivated state. Like this, terminal equipment can be when ambient light newspaper is higher than the newspaper threshold value, self-closing eyeshield mode or dark mode, and continue to use the electronic book mode, has promoted the accuracy that terminal equipment opened or closed the display mode, has promoted user's use and has experienced.
The fifth operation may correspond to the pull-down operation in the interface a of fig. 11, the fifth display interface may correspond to the interface b of fig. 11, the identifier of the first display mode may correspond to the e-book mode icon 603, and the e-book mode icon 603 is marked in a started state; the indication of the second display mode may correspond to eye-protection mode icon 601, eye-protection mode icon 601 being marked as inactive.
In a possible implementation manner, before the terminal device automatically starts the first display mode based on the ambient light and/or the content of the focus window in the terminal device, the method further includes: the terminal equipment obtains bright screen broadcast; the terminal device automatically starts a first display mode based on the ambient light and/or the content of a focus window in the terminal device, and the method comprises the following steps: in response to the bright screen broadcast, the terminal device automatically turns on the first display mode based on ambient light and/or content of a focus window in the terminal device. Therefore, the terminal equipment can start to acquire the contents in the ambient light and/or the focus window after being lightened, so that the terminal equipment can automatically start a corresponding display mode, manual operation of a user is reduced, and the use experience of the user is improved.
In one possible implementation, the bright SCREEN broadcast includes an intent.
In one possible implementation, the terminal device obtains a SCREEN-OFF broadcast, where the SCREEN-OFF broadcast includes intent.action _ SCREEN _ OFF; the terminal device registers the ambient light sensor service and the window management service based on the detection service. Therefore, the power consumption of the terminal equipment is reduced when the screen is turned off, and the electric quantity is saved.
In a second aspect, an embodiment of the present application provides a terminal device, which may also be referred to as a terminal (terminal), a User Equipment (UE), a Mobile Station (MS), a Mobile Terminal (MT), or the like. The terminal device may be a mobile phone (mobile phone), a smart tv, a wearable device, a tablet computer (Pad), a computer with a wireless transceiving function, a Virtual Reality (VR) terminal device, an Augmented Reality (AR) terminal device, a wireless terminal in industrial control (industrial control), a wireless terminal in self-driving (self-driving), a wireless terminal in remote surgery (remote medical supply), a wireless terminal in smart grid (smart grid), a wireless terminal in transportation safety (transportation safety), a wireless terminal in smart city (smart city), a wireless terminal in smart home (smart home), and so on.
The terminal device comprises a processor for invoking a computer program in a memory for performing the method according to the first aspect.
In a third aspect, embodiments of the present application provide a computer-readable storage medium storing computer instructions that, when executed on a terminal device, cause the terminal device to perform the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a computer program product, which, when executed, causes a terminal device to perform the method according to the first aspect.
In a fifth aspect, embodiments of the present application provide a chip comprising a processor, the processor being configured to call a computer program in a memory to perform the method according to the first aspect.
It should be understood that the second aspect to the fifth aspect of the present application correspond to the technical solutions of the first aspect of the present application, and the beneficial effects achieved by the aspects and the corresponding possible implementations are similar and will not be described again.
Drawings
Fig. 1 is a schematic diagram of a hardware structure of a terminal device according to an embodiment of the present disclosure;
fig. 2 is a schematic diagram of a software structure of a terminal device according to an embodiment of the present application;
FIG. 3 is a schematic diagram of an interface for enabling a display mode in a possible implementation;
FIG. 4 is a schematic diagram of an interface for enabling a display mode in a possible implementation;
fig. 5 is a schematic interface diagram of a display mode according to an embodiment of the present disclosure;
fig. 6 is a schematic interface diagram of an automatic display mode activation according to an embodiment of the present disclosure;
fig. 7 is a schematic interface diagram of an automatic display mode activation according to an embodiment of the present disclosure;
FIG. 8 is a schematic flow chart illustrating an exemplary method for automatically turning on or off a display mode according to an embodiment of the present disclosure;
fig. 9 is a schematic flowchart of internal interaction of a terminal device according to an embodiment of the present application;
fig. 10 is an interface schematic diagram of a display control method according to an embodiment of the present application;
fig. 11 is an interface schematic diagram of a display control method according to an embodiment of the present application;
fig. 12 is a schematic structural diagram of a display control apparatus according to an embodiment of the present application.
Detailed Description
In the embodiments of the present application, terms such as "first" and "second" are used to distinguish the same or similar items having substantially the same function and action. For example, the first chip and the second chip are only used for distinguishing different chips, and the sequence order thereof is not limited. Those skilled in the art will appreciate that the terms "first," "second," etc. do not denote any order or quantity, nor do the terms "first," "second," etc. denote any order or importance.
It should be noted that in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described herein as "exemplary" or "e.g.," is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present relevant concepts in a concrete fashion.
In the embodiments of the present application, "at least one" means one or more, "a plurality" means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone, wherein A and B can be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of the singular or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, a-b, a-c, b-c, or a-b-c, wherein a, b, c can be single or multiple.
The display control method provided by the embodiment of the application can be applied to electronic equipment with a display screen. The electronic device includes a terminal device, which may also be referred to as a terminal (terminal), a User Equipment (UE), a Mobile Station (MS), a Mobile Terminal (MT), and so on. The terminal device may be a mobile phone (mobile phone), a smart tv, a wearable device, a tablet computer (Pad), a computer with a wireless transceiving function, a Virtual Reality (VR) terminal device, an Augmented Reality (AR) terminal device, a wireless terminal in industrial control (industrial control), a wireless terminal in self-driving (self-driving), a wireless terminal in remote surgery (remote medical supply), a wireless terminal in smart grid (smart grid), a wireless terminal in transportation safety (transportation safety), a wireless terminal in smart city (smart city), a wireless terminal in smart home (smart home), and so on. The embodiment of the present application does not limit the specific technology and the specific device form adopted by the terminal device.
In order to better understand the embodiments of the present application, the following describes the structure of the terminal device according to the embodiments of the present application:
fig. 1 shows a schematic configuration diagram of a terminal device 100. The terminal device may include: a Radio Frequency (RF) circuit 110, a memory 120, an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, a wireless fidelity (WiFi) module 170, a processor 180, a power supply 190, and a bluetooth module 1100. Those skilled in the art will appreciate that the terminal device configuration shown in fig. 1 is not intended to be limiting of the terminal device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following specifically describes each constituent component of the terminal device with reference to fig. 1:
the RF circuit 110 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, receives downlink information of a base station and then processes the received downlink information to the processor 180; in addition, the data for designing uplink is transmitted to the base station. Typically, the RF circuitry includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuitry 110 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to global system for mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, and Short Message Service (SMS).
The memory 120 may be used to store software programs and modules, and the processor 180 executes various functional applications and data processing of the terminal device by operating the software programs and modules stored in the memory 120. The memory 120 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required by at least one function, a boot loader (boot loader), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the terminal device, and the like. Further, the memory 120 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 130 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the terminal device. Specifically, the input unit 130 may include a touch panel 131 and other input devices 132. The touch panel 131, also referred to as a touch screen, may collect touch operations of a user on or near the touch panel 131 (e.g., operations of the user on or near the touch panel 131 using any suitable object or accessory such as a finger or a stylus pen), and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 131 may include two parts, i.e., a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 180, and can receive and execute commands sent by the processor 180. In addition, the touch panel 131 may be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The input unit 130 may include other input devices 132 in addition to the touch panel 131. In particular, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 140 may be used to display information input by a user or information provided to the user and various menus of the terminal device. The display unit 140 may include a display panel 141, and optionally, the display panel 141 may be configured in the form of a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), or the like. Further, the touch panel 131 can cover the display panel 141, and when the touch panel 131 detects a touch operation on or near the touch panel 131, the touch operation is transmitted to the processor 180 to determine the type of the touch event, and then the processor 180 provides a corresponding visual output on the display panel 141 according to the type of the touch event. Although in fig. 1, the touch panel 131 and the display panel 141 are two independent components to implement the input and output functions of the terminal device, in some embodiments, the touch panel 131 and the display panel 141 may be integrated to implement the input and output functions of the terminal device.
The terminal device may also include at least one sensor 150, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel 141 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 141 or a backlight when the terminal device is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), detect the magnitude and direction of gravity when stationary, and can be used for applications (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration) for recognizing the attitude of the terminal device, and related functions (such as pedometer and tapping) for vibration recognition; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured in the terminal device, detailed description is omitted here.
Audio circuitry 160, speaker 161, and microphone 162 may provide an audio interface between the user and the terminal device. The audio circuit 160 may transmit the electrical signal converted from the received audio data to the speaker 161, and convert the electrical signal into a sound signal for output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electrical signal, which is received by the audio circuit 160 and converted into audio data, and then the audio data is processed by the audio data output processor 180, and then the processed audio data is sent to another terminal device through the RF circuit 110, or the audio data is output to the memory 120 for further processing.
WiFi belongs to a short-distance wireless transmission technology, and the terminal device can help a user to send and receive e-mails, browse webpages, access streaming media and the like through the WiFi module 170, and provides wireless broadband internet access for the user. Although fig. 1 shows the WiFi module 170, it is understood that it does not belong to the essential constitution of the terminal device, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 180 is a control center of the terminal device, connects various parts of the entire terminal device using various interfaces and lines, and performs various functions of the terminal device and processes data by running or executing software programs or modules stored in the memory 120 and calling data stored in the memory 120, thereby integrally monitoring the terminal device. Alternatively, processor 180 may include one or more processing units; preferably, the processor 180 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 180.
The terminal device also includes a power supply 190 (e.g., a battery) for supplying power to the various components, and preferably, the power supply may be logically connected to the processor 180 via a power management system, so that functions such as managing charging, discharging, and power consumption may be performed via the power management system.
The bluetooth technology belongs to short distance wireless transmission technology, and terminal equipment can establish bluetooth connection with other terminal equipment that possess bluetooth module through bluetooth module 1100 to data transmission carries out based on the bluetooth communication link. The bluetooth module 1100 may be Bluetooth Low Energy (BLE) or a module according to actual needs. It is understood that the bluetooth module does not belong to the essential components of the terminal device and may be omitted entirely as needed within the scope of not changing the essence of the invention, for example, the bluetooth module may not be included in the server.
Although not shown, the terminal device may further include a camera. Optionally, the position of the camera on the terminal device may be front-located, rear-located, or built-in (the camera body may be extended when in use), which is not limited in this embodiment of the present application.
Optionally, the terminal device may include a single camera, a dual camera, or a triple camera, and the like, which is not limited in this embodiment. Cameras include, but are not limited to, wide angle cameras, tele cameras, or depth cameras, among others.
For example, the terminal device may include three cameras, one being a main camera, one being a wide camera, and one being a tele camera.
Optionally, when the terminal device includes a plurality of cameras, the plurality of cameras may be all front-mounted, all rear-mounted, all built-in, at least partially front-mounted, at least partially rear-mounted, or at least partially built-in, and the like, which is not limited in this embodiment of the application.
The software system of the terminal device 100 may adopt a hierarchical architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, a cloud architecture, or the like. The embodiment of the present application takes an Android system with a layered architecture as an example, and exemplarily illustrates a software structure of the terminal device 100.
Fig. 2 is a schematic diagram of a software structure of the terminal device 100 according to the embodiment of the present application.
The layered architecture divides the software into several layers, each layer having a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, which are an application layer, an application framework layer, a native layer and a kernel layer from top to bottom.
The application layer may include a series of application packages.
As shown in fig. 2, the application packages may include camera, calendar, phone, map, phone, music, settings, mailbox, video, display mode, etc. applications. The display mode application programs may include an eye protection mode, a dark color mode, an electronic book mode, and the like.
And the eye protection mode application program is used for reducing the damage of screen light to the eyes of a user. Exemplarily, blue light with short wavelength between 400-480nm has higher energy, human eyes receive the short-wave blue light for a long time and may damage retina, which affects health of human eyes, and the eye protection mode can perform vision protection from the angle of reducing the blue light. After the terminal equipment starts the eyeshield mode application program, the terminal equipment adjusts the color temperature of the display screen by changing the brightness and the RGB value, for example, the terminal equipment can weaken or filter out the blue light of the short wave band. Due to the fact that blue light is weakened, compared with original content, content displayed after the terminal device starts the eye protection mode is in a yellowish warm color temperature state.
The deep color mode application program has the capabilities of saving electric quantity and improving highlight visibility. After the terminal device starts the dark color mode, a display screen of the terminal device can display a low-light User Interface (UI), the interface uses a dark color (usually black or gray) as a main background color, and the terminal device can adjust an RGB value, saturation, brightness, and the like of the UI interface to achieve a display effect of the dark color mode.
The electronic book mode application program is used for reducing the damage of screen light to the eyes of a user when the user reads text information. After the terminal equipment starts the electronic book mode, the terminal equipment can display the UI interfaces with three colors of black, white and gray. The terminal equipment can be used for lowering the color temperature and reducing the blue light through operations such as brightness adjustment, RGB (red, green and blue) setting, gray scale control and the like, so that the effect of protecting eyes of a user is achieved.
The application framework layer provides an Application Programming Interface (API) and a programming framework for the application program of the application layer. The application framework layer includes a number of predefined functions.
As shown in fig. 2, the application framework layer may include a power manager service (power manager service), a detection service (detector service), an Optical Character Recognition (OCR) service, a sensor manager service (sensor manager service), a window manager service (window manager service), and other modules.
A power management service, which may be used to provide an interface to an application, such as keeping the system awake in an audio scene, waking up a cell phone screen scene in a message notification; the method can also be used for controlling the standby state of the terminal equipment, such as the on-off state of a display screen, a backlight lamp, a distance sensor, a light sensor and other hardware equipment. In the embodiment of the application, the power management service can send corresponding broadcast when the power management state of the terminal equipment changes. For example, when the terminal device is on screen, the power management service sends a screen-up broadcast; when the terminal equipment is in screen off, the power management service sends screen off broadcast and the like.
And detecting the service, which is a newly created service in an application framework layer of the terminal device, and is used for realizing the display control method in the embodiment of the application. For example: the detection service may be operable to obtain a focus window from the input management window and an ambient light report driven by the ambient light sensor; the detection service can be used for calling OCR service and screenshot service to obtain the number of characters in the focus window; the detection service can be used for judging the relation between the number of characters in the focus window and the number threshold value and judging the relation between the ambient light report value and the report value threshold value; the detection service can also be used for automatically starting corresponding display modes (an eye protection mode, a dark color mode and an electronic book mode) in the application program layer, and the like.
And the OCR service is used for analyzing, identifying and processing the image file and acquiring character information.
And the sensor management service is used for the unified management of the sensors (sensors) in the terminal equipment. The sensor management service may interact with corresponding sensor drivers in the Native layer, thereby invoking sensor drivers in the kernel layer. For example, in the embodiment of the present application, the sensor management service may manage driving of the ambient light sensor to obtain the ambient light report.
And the window management service is used for unified management of windows (windows) in a system of the terminal equipment. For example, the window management service in the embodiment of the present application may be used to obtain the focus window and manage the window information.
The Native layer is a local service and a link library realized through C and C + + languages, wherein the Native layer can be used for communicating with the application program framework layer, executing corresponding operation and feeding back an operation result to the framework layer; and the native layer can also be used for interacting with a hardware driver at the bottom layer so as to realize the operation of the terminal equipment.
The sensor driver may include a plurality of sensors in the terminal device, for example, a pressure sensor, a gyro sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like. The ambient light sensor involved in the embodiments of the present application may be used to sense the light intensity in a scene and transmit light information to an upper layer service in the form of an ambient light report.
And the input window management can be used for acquiring a focus window of the terminal equipment.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
The express delivery prompting method provided by the embodiment of the application is described in detail below with reference to the accompanying drawings. It should be noted that "at … …" in the embodiment of the present application may be at the instant of a certain condition, or may be within a certain period of time after a certain condition occurs, and the embodiment of the present application is not particularly limited to this.
With the development of terminal technology, electronic devices equipped with display screens have become a part of people's work and life. In some scenarios, the light of the electronic device may cause harm to the human eye when browsing content on the display screen. For example, the display screen is bright, the eyes do not adapt to light, and the user feels dazzling when viewing the display screen. The electronic device can provide display modes such as an electronic book mode, an eye protection mode and a dark color mode to reduce damage of light to human eyes.
Illustratively, the terminal device may provide modes for controlling the display of the display screen, including but not limited to: an electronic book mode, a dark color mode and an eye protection mode. In some scenes, when a user reads text information such as novels and news by using a terminal device, the user can manually start an electronic book mode; in some scenes, when the brightness of the environment where the user is located is low, the user can select to turn on the dark color mode or the eye protection mode, and browse the content in the display screen based on the display mode.
The terminal device in the embodiment of the present application may be exemplified by a mobile phone, but the example does not limit the embodiment of the present application.
For example, fig. 3 illustrates one possible implementation of a method for a user to manually turn on a display mode. As shown in the interface a of fig. 3, a plurality of function icons, for example, common function icons such as a mobile data icon, a wireless network icon, a screen capture icon, and a bluetooth icon, may be displayed in the pull-down panel of the terminal device, and display mode icons such as an eye protection mode icon 301, a dark mode icon 302, and an electronic book mode icon 303 may also be displayed in the pull-down panel of the terminal device. When a user wishes to turn on a certain display mode, the icon of the corresponding display mode may be manually clicked. Taking the e-book mode as an example, when the terminal device receives a click operation on the e-book mode icon 303, the terminal device enters an interface shown in b of fig. 3. In the b interface of fig. 3, the ebook mode icon 303 is in an on state. At this time, after the terminal device exits from the pull-down panel, the user may use the e-book mode to read the text message in the interface shown in c of fig. 3.
Or, for example, fig. 4 is another method of enabling the display mode manually by the user in a possible implementation. The terminal device can enter the interface a of fig. 4 through the "display and brightness" control of the setup menu, and the interface can provide an eye protection mode, an electronic book mode, and a dark color mode. Taking the manual eye protection mode as an example, when the terminal device receives a click operation for the "eye protection mode" control, the terminal device may enter an interface shown in b of fig. 4. In the interface b shown in fig. 4, the user may select the eye protection mode to be turned on for a period of time and the eye protection mode to be turned on all day, the terminal device receives the click operation for the control "turn on all day", and the terminal device enters the interface shown in fig. 4 c. In the interface c of fig. 4, the "all day on" control is in an on state, and when the terminal device receives a click operation for exiting the eye protection mode, the terminal device may enter the interface d shown in fig. 4. In the interface d of fig. 4, the "eye protection mode" control is in the on state. It can be understood that, when the terminal device is turned on in the eye protection mode, the color temperature of the content displayed by the terminal device changes, and the display state is a display state that is yellow, as shown in an interface c of fig. 4 and an interface d of fig. 4.
It should be noted that, in the above two possible implementations, the user needs to autonomously select and manually turn on the display mode. In some cases, the user may not know the display mode or may not know the starting path of the display mode, so that the display mode cannot be fully utilized, and the user experience is reduced. In other cases, the user needs to select a corresponding display mode according to the use scene of the terminal device, for example, when the light is low, the user can manually turn on an eye-protection mode or a dark color mode; when the light is high, the user can manually turn off the eye protection mode or the dark color mode; when the user reads the text information, the electronic book mode can be started, and the like. Thus, there may be a problem that the display mode is not adapted to the usage scenario of the terminal device. For example, the terminal device is turned on in the eye protection mode at night, and the user needs to turn off the eye protection mode manually in the morning. For another example, when the user opens the e-book mode while reading the novel, and after a while, the terminal device opens the panning application, at this time, the user browses a black and white and gray panning interface, which affects the shopping experience of the user, and the user needs to turn off the e-book mode. Therefore, the user needs to switch the display mode according to the use scene of the terminal equipment, the operation is complex, and the use experience of the user is reduced.
In view of this, an embodiment of the present application provides a display control method, in which a terminal device receives a first operation; responding to the first operation, the terminal equipment displays a first interface, wherein the first interface comprises an identifier of a first display mode, and the identifier of the first display mode is marked to be in an un-started state; the terminal equipment automatically starts a first display mode based on ambient light and/or the content of a focus window in the terminal equipment; the terminal equipment receives a second operation; and responding to the second operation, the terminal equipment displays a second interface, wherein the second interface comprises the identifier of the first display mode, and the identifier of the first display mode is marked to be in the starting state. Therefore, the terminal equipment can automatically start the corresponding display mode according to the use scene, so that the manual operation of a user is reduced, and the use experience of the user is improved.
For example, the display control method provided in the embodiment of the present application is briefly described below with reference to fig. 5.
The terminal equipment is an electronic equipment which can provide any one of an eye protection mode, a dark color mode and/or an electronic book mode. The e-book mode may be as shown in an interface a of fig. 5, in which the display content (text, picture and background) of the terminal device is displayed as black, white and gray in the interface a of fig. 5. The dark mode may be as shown in interface b of fig. 5, and in interface b of fig. 5, the terminal device may display a dark (black or gray) background. The eye protection mode may be as shown in the interface c of fig. 5, where in the interface c of fig. 5, the display content (text, picture, and background) of the terminal device is in a warm color temperature state, and is shown as a yellow display content as a whole. The above display modes can reduce the damage of light to human eyes by adjusting RGB values, thereby achieving the effect of protecting the eyesight of the eyes.
According to the display control method provided by the embodiment of the application, the terminal equipment can automatically start an applicable display mode according to the use scene of the terminal equipment. The display control method according to the embodiment of the present application will be described below with reference to fig. 6. Fig. 6 is an interface schematic diagram of a display control method according to an embodiment of the present application, as shown in fig. 6.
S601, receiving a first operation by the terminal equipment; in response to the first operation, the terminal device displays a first interface, the first interface includes an identifier of a first display mode, and the identifier of the first display mode is marked in an inactivated state.
Illustratively, the first display mode is an electronic book mode. The terminal device displays an interface shown as a in fig. 6, the interface a in fig. 6 may be a pull-down interface which is not displayed in an expanded manner, and when the terminal device receives a pull-down operation in the interface a in fig. 6, the terminal device enters an interface b in fig. 6. The b interface of fig. 6 includes an eye-protection mode icon 601, a dark mode icon 602, and an e-book mode icon 603, all three of which are in an unactivated state.
The first operation may be a pull-down operation for the interface a of fig. 6, the first interface may be the interface b of fig. 6, and the first display mode may be any one of an eye protection mode, a dark color mode, and an electronic book mode. The identifier of the first display mode may be any one of the eye protection mode icon 601, the dark mode icon 602, or the e-book mode icon 603.
S602, the terminal device automatically starts a first display mode based on ambient light and/or content of a focus window in the terminal device.
The ambient light may be information related to the environment in which the terminal device is located and the light, and the focus window may be an interface displayed by the terminal device. The terminal device can obtain the ambient light and the content in the focus window, and judge the ambient light and the content to determine the applicable display mode. The terminal device automatically turns on the display mode. The following of the embodiment of the present application will describe the automatic display mode of the terminal device in detail, which is not described herein again.
S603, the terminal equipment receives a second operation; and responding to the second operation, the terminal equipment displays a second interface, wherein the second interface comprises the identifier of the first display mode, and the identifier of the first display mode is marked to be in the starting state.
Illustratively, the first display mode is an electronic book mode. After the terminal device starts the first display mode, the terminal device may display an interface as shown in c of fig. 6, the interface c of fig. 6 may be a pull-down interface that is not displayed in an expanded manner, and when the terminal device receives a pull-down operation in the interface c of fig. 6, the terminal device enters an interface d as shown in fig. 6. The d interface of fig. 6 includes an eye-protecting mode icon 601, a dark color mode icon 602, and an e-book mode icon 603, and the icons of the first display mode (e.g., e-book mode) may be in an activated state.
The second operation may be a pull-down operation for the interface c of fig. 6, the second interface may be the interface d of fig. 6, and the first display mode may be any one of an eye protection mode, a dark color mode, and an electronic book mode. The identifier of the first display mode may be any one of an eye-protection mode icon 601, a dark color mode icon 602, or an electronic book mode icon 603.
It can be understood that, in the embodiment of the present application, an electronic book mode is taken as an example, and a description is given to an example of a scenario in which the terminal device automatically turns on the first display mode. The terminal device can automatically start the display mode according to the ambient light and/or the content of the focus window in the terminal device. In the interface d of fig. 6, the eye-protection mode icon 601, the dark mode icon 602, and the electronic book mode icon 603 may be in an open state, which may be understood that when the terminal device opens the eye-protection mode, the eye-protection mode icon 601 may be in an open state; when the terminal device starts the deep color mode, the deep color mode icon 602 may be in a start state; when the terminal device starts the electronic book mode, the electronic book mode icon 603 may be in a start state; the terminal device can automatically turn on any one of the three display modes.
For example, fig. 7 is an interface schematic diagram of another display control method provided in the embodiment of the present application, as shown in fig. 7.
The terminal device may display an interface as shown in a of fig. 7, and the interface a of fig. 7 is a setting menu interface, and may include a "display and brightness" control 701. When the terminal device receives a click operation for the "display and brightness" control 701, the terminal device enters an interface b as shown in fig. 7. The b interface of fig. 7 includes an "eye-protection mode" control 702, an "e-book mode" control 703, and a "dark mode" control 704, and icons showing the modes may be in an off state.
The terminal device automatically starts a display mode based on ambient light and/or content of a focus window in the terminal device. The terminal device may display an interface as shown in c of fig. 7, and the interface c of fig. 7 is a setting menu interface, and may include a "display and brightness" control 701. When the terminal device receives a click operation for the "display and brightness" control 701, the terminal device enters a d interface shown in fig. 7. The interface d of fig. 7 includes an "eye-protection mode" control 702, an "e-book mode" control 703, and a "dark mode" control 704, wherein the controls in the first display mode (taking eye-protection mode as an example) can display the turned-on state.
It will be appreciated that the terminal device may automatically initiate the display mode based on ambient light and/or the content of a focus window in the terminal device. In the interface d of fig. 7, the "eye protection mode" control 702, the "e-book mode" control 703, and the "dark color mode" control 704 may all be in an opened state, which may be understood that when the terminal device automatically opens any display mode, the corresponding display mode control may be displayed in an opened state.
Corresponding to the descriptions of steps S601-S603, the first operation may be a click operation on the "display and brightness" control 701, the first interface may be the interface b in fig. 7, and the first display mode may be any one of an eye protection mode, a dark color mode, and an electronic book mode. The indication of the first display mode may be any one of an "eye-protection mode" control 702, an "e-book mode" control 703, and a "dark mode" control 704. After the terminal device starts the first display mode, the second operation may be a click operation for the "display and brightness" control 701, the second interface may be the interface d shown in fig. 7, and the first display mode may be any one of an eye protection mode, a dark color mode, and an electronic book mode. The indication of the first display mode may be any one of an "eye-protection mode" control 702, an "e-book mode" control 703, and a "dark mode" control 704.
When the first operation is a pull-down operation, the first interface is a pull-down interface, or when the first operation is an operation of opening a display mode interface in the setting application, the first interface is an interface in the setting application; and/or when the second operation is a pull-down operation, the second interface is a pull-down interface, or when the second operation is an operation of opening a display mode interface in the setting application, the second interface is an interface in the setting application.
It is understood that the first operation and the second operation may be different operations in addition to the above two scenarios. For example, when the first operation is a pull-down operation, the first interface is a pull-down interface; when the second operation is an operation of opening a display mode interface in the setting application, the second interface is an interface in the setting application. For another example, when the first operation is an operation of opening a display mode interface in the setting application, the first interface is an interface in the setting application; and when the second operation is a pull-down operation, the second interface is a pull-down interface. The embodiment of the present application does not limit this.
According to the display control method provided by the embodiment of the application, first operation is received through terminal equipment; responding to the first operation, the terminal equipment displays a first interface, wherein the first interface comprises an identifier of a first display mode, and the identifier of the first display mode is marked to be in an un-started state; the terminal equipment automatically starts a first display mode based on ambient light and/or the content of a focus window in the terminal equipment; the terminal equipment receives a second operation; and responding to the second operation, the terminal equipment displays a second interface, wherein the second interface comprises the identifier of the first display mode, and the identifier of the first display mode is marked to be in the starting state. Therefore, the terminal equipment can determine the applicable display mode according to the ambient light and/or the content of the focus window, and automatically start the display mode, so that the manual operation of a user is reduced, and the use experience of the user is improved.
Step S602 is further described below, in which the terminal device automatically starts a first display mode based on the content of the focus window in the terminal device, where the first display mode includes an electronic book mode, and the method includes:
s701, the terminal equipment identifies the number of characters in the focus window.
The focus window may be an interface displayed by the terminal device, and the terminal device may obtain the number of the characters in the focus window. The method for the terminal device to identify the number of characters in the focus window may include implementations such as S7011-S7015.
S7011, the terminal equipment registers input window management of the terminal equipment based on the detection service; the detection service is configured as a service for deriving the number of letters of the focus window and the ambient light value.
The terminal device can newly create a detection service, and the detection service can be used for acquiring a focus window reported by the input window management of a local (native) service and an ambient light report value reported by an ambient light sensor drive. The embodiment of the present application subsequently describes in detail the terminal device acquiring the ambient light report value, which is not described herein again. The input window management may be used to obtain a focus window of the terminal device, and report the focus window to a Window Manager Service (WMS) of a framework layer (frame). The terminal device may register input window management of the terminal device based on the detection service.
It can be understood that, if the detection service of the terminal device wishes to acquire the focus window reported by the input window management, the terminal device needs to establish a connection between the detection service and the input window management. In some embodiments, the detection service of the terminal device may register with the input window management through the window management service. After the registration is successful, the detection service of the terminal equipment can interact with the input window management.
S7012, the detection service of the terminal device obtains a focus window from the input window management.
After the detection service of the terminal equipment registers the input window management successfully, the input window management of the terminal equipment can detect the focus window and transmit the focus window to the detection service through the window management service. The detection service of the terminal device may acquire a focus window from the input window management.
S7013, the terminal device starts an Optical Character Recognition (OCR) service in the terminal device based on the detection service.
The OCR service can be used for analyzing, recognizing and processing image files and acquiring character information. The terminal equipment can start OCR service after registering input window management; the terminal device may also initiate an OCR service when the terminal device obtains the focus window. The embodiment of the application does not limit the sequence of starting the OCR service.
S7014, the terminal device captures a focus window based on the detection service and sends the captured image to an OCR service.
The terminal equipment can call screenshot service based on the detection service, and screenshot processing is carried out on the focus window by using the screenshot service to obtain a screenshot corresponding to the focus window. And the terminal equipment sends the screenshot to an OCR service based on the detection service.
It should be noted that the screenshot processing of the focus window by the terminal device is implemented inside the terminal device, and the user cannot perceive the screenshot processing of the focus window by the screenshot service in the display screen of the terminal device, and the screenshot processing does not affect the interface being read by the user.
S7015, the terminal device obtains the number of characters in the screenshot recognized by the OCR service based on the detection service.
The OCR service of the terminal device may identify the text information in the screenshot, and illustratively, the OCR service of the terminal device identifies the number of the text in the screenshot. The OCR service may report the number of characters in the screenshot to a detection service of the terminal device.
S702, when the number of the characters in the focus window is larger than or equal to the number threshold, the terminal device automatically starts a first display mode.
The first display mode may be an electronic book mode. The detection service of the terminal device may determine the applicable first display mode according to the number of the characters in the focus window. Illustratively, the terminal device may customize the quantity threshold, for example, the quantity threshold may be 200. When the number of the characters is larger than or equal to the number threshold, it can be determined that the number of the character information in the interface browsed by the user is large, and the terminal device is suitable for the electronic book mode.
Alternatively, when the number of the texts is smaller than the number threshold, it may be determined that the user browses the interface with less text information, and the terminal device is not suitable for the e-book mode. After the terminal device displays the first interface, the terminal device may not start the electronic book mode.
For example, the process of automatically turning on or off the electronic book mode of the terminal device may be as shown in fig. 8:
the detection service of the terminal equipment judges the number of characters in the focus window and determines to start the electronic book mode. The detection service of the terminal device may write a data field corresponding to the electronic book mode open state in the data, and when the observer mode (content observer) monitors that the data field of the electronic book mode changes, the electronic book mode may be opened according to the value of the database.
The detection service of the terminal equipment judges the number of characters in the focus window and determines to close the electronic book mode. The detection service of the terminal device may write a data field corresponding to an electronic book mode off state in data of the database, and may turn off the electronic book mode according to a value of the database when a content observer (content observer) monitors that the data field of the electronic book mode changes.
In the embodiment of the present application, the above description may be referred to for the process of automatically turning on or off the eye protection mode and the dark color mode of the terminal device, and this is not repeated again in the embodiment of the present application.
In the display control method provided in the embodiment of the present application, after the terminal device automatically starts the first display in step S702, the terminal device may respond to the second operation and display the second interface. After the terminal device displays the second interface, the display control method may further include:
and S703, the terminal device detects that the focus window is switched.
The input window management of the terminal equipment can detect the display window of the terminal equipment in real time, and when the display window changes, the input window management can update the focus window on the system process. The focus window may correspond to a process of the application; when the progress of the application changes, the focus window also changes. For example, taking an application as "WeChat", when a user uses a terminal device to chat with a contact, the focus window may be a chat interface of the contact; when a user browses an article in a public number using a terminal device, a focus window may be an interface displaying the article of the public number.
It can be understood that, when the user performs the up-and-down sliding operation on the display screen of the terminal device, the interface content displayed by the terminal device changes but does not exit the interface, and the terminal device still performs the same process, at this time, the focus window is not updated due to the change of the interface content.
For example, the input window management identification application may be implemented as:
system_process I/WindowManager:Changing focus from Window
when the terminal device detects that the focus window is switched, the input window management of the terminal device can report the switched focus window to the detection service through the window management service.
S704, the terminal equipment identifies the number of characters in the focus window.
The terminal device may perform steps S7013-S7015 with respect to the focus window after the detection service is switched. And the terminal equipment obtains the number of the characters in the switched focus window.
S705, when the number of the characters in the focus window is smaller than a number threshold, the terminal equipment exits the electronic book mode;
when the number of the characters is smaller than the number threshold value, it can be determined that the user browses the interface with less character information, and the terminal device is not suitable for the electronic book mode. At this time, if the terminal device has started the electronic book mode, the terminal device may automatically exit the electronic book mode.
After step S705, if the user opens the pull-down interface of the terminal device or the interface in the setting application again, the electronic book mode in the interface displays the state of not being started.
Illustratively, S706, the terminal device receives the third operation.
And S707, responding to the third operation, the terminal device displays a third interface, wherein the third interface comprises an identifier of the first display mode, and the identifier of the first display mode is marked to be in an un-started state.
The third operation may correspond to a drop-down operation in the interface a of fig. 6, and the third interface may correspond to a drop-down interface of the interface b of fig. 6; alternatively, the third operation may correspond to an operation of opening a display mode interface in the setup application in the a interface of fig. 7, and the third interface may correspond to an interface which is the setup application in the b interface of fig. 7. The terminal equipment enters a third interface, and the identification of the electronic book mode in the third interface is marked to be in an un-started state.
The above description explains that the terminal device in step S602 automatically turns on the first display mode based on the content of the focus window in the terminal device, where the first display mode includes the electronic book mode, and the following description explains that the terminal device in step S602 automatically turns on the first display mode based on the ambient light, where the first display mode includes the eye-protection mode or the dark color mode.
S801, the terminal device obtains the ambient light report value.
The ambient light report may be information about the ambient light in which the terminal device is located. The method for acquiring the ambient light report value by the terminal device may include implementation as shown in S8011-S8013.
S8011, the terminal device registers an ambient light sensor of the terminal device based on the detection service.
The ambient light sensor may be configured to sense ambient light and report an ambient light report to a sensor manager service (sensor manager service) of the framework layer. The terminal device may register an ambient light sensor of the terminal device based on the detection service.
It can be understood that, if the detection service of the terminal device wants to obtain the ambient light report value reported by the ambient light sensor, the terminal device needs to establish a connection between the detection service and the ambient light sensor. In some embodiments, the detection service of the terminal device may register with the ambient light sensor through the sensor management service. After the registration is successful, the detection service of the terminal equipment and the ambient light sensor can interact.
S8012, the terminal device obtains an ambient light report value in the environment based on the ambient light sensor.
An ambient light sensor of the terminal device can sense the illumination intensity of ambient light to obtain an ambient light report value.
S8013, the detection service of the terminal device obtains an ambient light report from the ambient light sensor.
The terminal device transmits the ambient light report to the detection service through the sensor management service. The detection service of the terminal device may obtain an ambient light report from an ambient light sensor.
S802, when the ambient light report value is larger than or equal to the report value threshold value, the terminal device automatically starts a first display mode.
The first display mode may be an eye-protection mode or a dark color mode. The detection service of the terminal device may determine the applicable first display mode according to the ambient light report. For example, the terminal device may customize the reporting threshold, for example, the reporting threshold may be 2 lux. When the report value of the ambient light is smaller than or equal to the report value threshold value, the situation that the environment where the user browses the interface is dark can be determined, and the terminal equipment is suitable for an eye protection mode or a dark color mode.
Or when the report value of the ambient light is greater than the report value threshold value, the environment where the user browses the interface is determined to be brighter, and the terminal equipment does not need to start the eye protection mode or the dark color mode. After the terminal device displays the first interface, the terminal device may not start the eye-protection mode or the dark color mode.
In one possible implementation manner, as shown in S8021-S8023, when the terminal device automatically starts the eye-protecting mode or the dark color mode, prompt information may be displayed for the user to select.
Illustratively, S8021, when the ambient light alarm value is less than or equal to the alarm value threshold value, the terminal device displays a prompt message, where the prompt message is used to prompt the user to select the eye-protecting mode or the dark color mode.
When the ambient light report value obtained by the detection service of the terminal equipment is less than or equal to the report value threshold value, the terminal equipment can display prompt information, and the user selects an eye protection mode or a dark color mode to be used.
S8022, responding to the selection of the user on the eye protection mode, automatically starting the eye protection mode by the terminal device, wherein the first display mode is the eye protection mode.
S8023, or responding to the selection of the user to the deep color mode, and automatically starting the deep color mode by the terminal equipment, wherein the first display mode is the deep color mode.
After step S8021, the terminal device displays a prompt message. The terminal device may perform step S8022 or S8023. The user may choose to use an eye-protecting mode or a dark mode.
Like this, terminal equipment can remind the user to open eyeshield mode or dark mode when ambient light is darker, simplifies the manual operation of opening the display mode of user, promotes the frequency of use of display mode, promotes user's use and experiences.
In another possible implementation manner, the terminal device may automatically start the eye protection mode or the dark color mode according to the default mode setting.
For example, the terminal device may set a display mode commonly used by the user as a default mode. Illustratively, the terminal device may record the number of times of starting the eye protection mode and the dark color mode, and set the display mode with the large number of starting times as the default mode. And when the ambient light report value is less than or equal to the report value threshold value, the terminal equipment automatically starts the default mode.
In another possible implementation, when the ambient light threshold is less than or equal to the threshold, the terminal device may further randomly start the eye protection mode or the dark color mode.
According to the display control method provided by the embodiment of the application, when the number of the characters in the focus window is larger than or equal to the number threshold, the terminal equipment automatically starts an electronic book mode; and when the ambient light report value is less than or equal to the report value threshold value, the terminal equipment automatically starts an eye protection mode or a dark color mode. Therefore, the terminal equipment can automatically start the applicable display mode, the user does not need to manually start according to the use scene, the operation of using the display mode by the user is simplified, and the use experience of the user is improved.
Optionally, before the terminal device automatically starts the first display mode based on the ambient light and/or the content of the focus window in the terminal device, the method further includes:
s901, the terminal equipment obtains bright screen broadcasting.
When the display SCREEN of the terminal device is ON, the power management service of the terminal device sends a SCREEN-ON broadcast, wherein the SCREEN-ON broadcast may include intent.
S902, responding to the bright screen broadcast, and automatically starting a first display mode by the terminal equipment based on the ambient light and/or the content of a focus window in the terminal equipment.
When the terminal device obtains the bright-screen broadcast, the terminal device can start the detection service. After the detection service of the terminal device is started, the terminal device may perform the steps of S701-S707 and/or S801-S802.
Optionally, when the terminal device executes the display control method according to the embodiment of the present application, the method further includes:
s1001, the terminal equipment obtains screen turning broadcast.
In the process of executing the display control method of the embodiment of the application, the terminal device can obtain the information screen broadcast. For example, when the display SCREEN of the terminal device is turned OFF, the power management service of the terminal device may send an OFF SCREEN broadcast, and the OFF SCREEN broadcast may include intent.
S1002, the terminal device registers the ambient light sensor and/or the input window management based on the detection service.
When the terminal equipment is in screen turning, the terminal equipment can register the ambient light sensor and/or the input window management, and the detection service of the terminal equipment is ended. And when the terminal equipment obtains the bright screen broadcast again, the terminal equipment restarts the detection service and executes the display control method provided by the embodiment of the application. Therefore, the power consumption of the terminal equipment is reduced when the screen is turned off, and the electric quantity is saved.
The display control method provided in the embodiment of the present application is further described below with reference to the software architecture of fig. 9, where fig. 9 is a schematic flow chart of the display control method provided in the embodiment of the present application, as shown in fig. 9:
the power management service sends a bright SCREEN broadcast (intent. action _ SCREEN _ ON) when the terminal device is bright, and the terminal device starts the detection service when the terminal device obtains the bright SCREEN broadcast.
After the detection service of the terminal device is started, the ambient light sensor driver can be registered through the sensor management service, and the input window management can be registered through the window management service.
An ambient light sensor of the terminal device can sense light information in the environment, and when the illumination intensity of ambient light changes, the ambient light sensor drives and records an ambient light report value and reports the ambient light report value to a detection service through a sensor management service. The input window management of the terminal equipment can monitor the focus window, and when the focus window changes, the input window management reports the new focus window to the detection service through the window management service.
The detection service of the terminal device obtains the ambient light report value, and can judge the relationship between the ambient light report value and the report value threshold value. And if the ambient light report value is less than or equal to the report value threshold value, the detection service of the terminal equipment automatically starts an eye protection mode or a dark color mode. Otherwise, when the application program of the eye protection mode or the dark color mode is started, the detection service of the terminal equipment automatically closes the eye protection mode or the dark color mode; or when the application program in the eye protection mode or the dark color mode is not started, the detection service of the terminal equipment does not execute the eye protection mode or the dark color mode.
And the detection service of the terminal equipment obtains the focus window, can capture the screen of the focus window and sends the screen to the OCR service. The OCR service recognizes the number of characters in the screenshot and reports the number of characters to the detection service. The detection service of the terminal device may determine a relationship between the number of characters in the focus window and a number threshold. And if the number of the characters is less than or equal to the number threshold, the detection service of the terminal equipment automatically starts the electronic book mode. Otherwise, when the application program of the electronic book mode is started, the detection service of the terminal equipment automatically closes the electronic book mode; or, when the application program in the electronic book mode is not started, the detection service of the terminal device does not execute the electronic book mode starting.
It can be understood that, in the above embodiments, the terminal device may separately execute the method of automatically turning on or off the electronic book mode, and separately execute the method of automatically turning on or off the dark color mode or the eye protection mode; the terminal device may also execute a method of combining multiple display modes at the same time, which is not limited in this embodiment of the present application.
For example, the terminal device may be configured according to the display control method provided in the embodiment of the present application. The terminal equipment can automatically start a first display mode, and the first display mode can be any one of an eye protection mode, a dark color mode or an electronic book mode. On the basis, the terminal device can also start a second display mode, and the second display mode can be a display mode different from the first display mode.
The following describes a scenario in which the terminal device automatically starts the first display mode and the second display mode, taking the terminal device displaying the pull-down interface as an example.
S1101, the terminal device acquires the ambient light report value and the number of characters in the focus window.
S1102, when the number of the characters in the focus window is larger than or equal to a number threshold, the terminal equipment automatically starts a first display mode; the first display mode includes an electronic book mode.
And S1103, when the ambient light report value is smaller than or equal to the report value threshold value, the terminal equipment automatically starts a second display mode, wherein the second display mode comprises an eye protection mode or a dark color mode.
The terminal equipment can automatically start an electronic book mode when the number of the characters in the focus window is larger than or equal to a number threshold; and the terminal equipment can automatically start the eye protection mode or the dark color mode when the ambient light report value is less than or equal to the report value threshold value, and the terminal equipment simultaneously uses the electronic book mode, the eye protection mode or the dark color mode.
For example, the first display mode is an electronic book mode, and the second display mode is an eye protection mode. After the terminal device performs S1103, the terminal device may display an interface a of fig. 10, and when the terminal device receives a pull-down operation of opening the pull-down interface, the terminal device may display an interface b of fig. 10. In the interface b of fig. 10, both the eye-protecting mode icon 601 and the electronic book mode icon 603 are activated. The terminal equipment can simultaneously use the electronic book mode and the eye protection mode.
In some embodiments, the terminal device may perform the following steps:
s1104, the terminal device detects that the focus window is switched.
S1105, the terminal device identifies the number of characters in the focus window.
And S1106, when the number of the characters in the focus window is smaller than the number threshold, the terminal device automatically exits the electronic book mode, and the opening of the second display mode is continuously kept.
Reference may be made to the description of steps S703-S705, which is not described in detail in this embodiment of the present application.
S1107, the terminal device receives the fourth operation.
S1108, in response to the fourth operation, the terminal device displays a fourth interface, where the fourth interface includes an identifier of the first display mode and an identifier of the second display mode, the identifier of the first display mode is marked as an inactive state, and the identifier of the second display mode is marked as an active state.
The fourth operation may be a pull-down operation, or an operation of opening a display mode interface in the setting application; taking the fourth operation as a pull-down operation as an example, exemplarily:
after the terminal device performs S1106, the terminal device may display the interface c of fig. 10, and when the terminal device receives a pull-down operation of opening the pull-down interface, the terminal device may display an interface as shown in d of fig. 10. An eye-protection mode icon 601, a dark mode icon 602, and an electronic book mode icon 603 may be displayed in the interface d of fig. 10, where the eye-protection mode icon 601 is in an activated state, and the electronic book mode icon 603 is in an inactivated state. The terminal device has exited the e-book mode and continues to use the eye-protection mode.
The fourth operation may correspond to a pull-down operation in the interface c of fig. 10, the fourth display interface may correspond to the interface d of fig. 10, the identifier of the first display mode may correspond to the e-book mode icon 603, and the e-book mode icon 603 is marked in an un-activated state; the indication of the second display mode may correspond to eye-protection mode icon 601, eye-protection mode icon 601 being marked as active.
In other embodiments, after step S1103, the terminal device may further perform the following steps:
s1109, the terminal equipment obtains the ambient light report value.
And S1110, when the terminal device detects that the ambient light report value is greater than the report value threshold value, the terminal device automatically exits the eye protection mode or the dark color mode and continues to keep the first display mode on.
The first display mode may be an electronic book mode, and the process may refer to steps S801 to S802, which are not described herein again.
S1111, the terminal equipment receives a fifth operation;
s1112, in response to the fifth operation, the terminal device displays a fifth interface, where the fifth interface includes an identifier of the first display mode and an identifier of the second display mode, the identifier of the first display mode is marked as an activated state, and the identifier of the second display mode is marked as an inactivated state.
The fifth operation may be a pull-down operation, or an operation of opening a display mode interface in the setting application; taking the fifth operation as a pull-down operation as an example, the following are exemplified:
after the terminal device performs S1111, the terminal device may display the interface a of fig. 11, and when the terminal device receives a pull-down operation of opening the pull-down interface, the terminal device may display an interface as shown in b of fig. 11. An eye-protection mode icon 601, a dark mode icon 602, and an electronic book mode icon 603 may be displayed in the interface b of fig. 11, where the eye-protection mode icon 601 is in an inactive state, and the electronic book mode icon 603 is in an active state. The terminal device has exited the eye-protection mode and continues to use the electronic book mode.
The fifth operation may correspond to the pull-down operation in the interface a of fig. 11, the fifth display interface may correspond to the interface b of fig. 11, the identifier of the first display mode may correspond to the e-book mode icon 603, and the e-book mode icon 603 is marked in a started state; the indication of the second display mode may correspond to eye-protection mode icon 601, eye-protection mode icon 601 being marked as inactive.
According to the display control method provided by the embodiment of the application, when the ambient light report value is less than or equal to the report value threshold value, the terminal equipment automatically starts an eye protection mode or a dark color mode; and when the number of the characters in the focus window is greater than or equal to the number threshold, the terminal equipment automatically starts the electronic book mode. Therefore, the terminal equipment can start the corresponding display mode according to the ambient light and the focus window, the operation of manually starting the display mode by a user is simplified, and the use experience of the user is improved.
The display control method of the embodiment of the present application has been described above, and the display control apparatus provided in the embodiment of the present application, which performs the display control method described above, is described below. Those skilled in the art will appreciate that the method and apparatus can be combined and referred to each other, and the electronic device provided in the embodiments of the present application can perform the steps in the display control method described above.
Fig. 12 is a schematic structural diagram of a display control apparatus according to an embodiment of the present application. Referring to fig. 12, the display control device 120 includes: memory 1201, processor 1202, and interface circuitry 1203. The display control apparatus may further include a display 1204, wherein the memory 1201, the processor 1202, the interface circuit 1203, and the display 1204 may communicate; illustratively, the memory 1201, the processor 1202, the interface circuit 1203 and the display 1204 can communicate through a communication bus, and the memory 1201 is used for storing computer execution instructions, is controlled to be executed by the processor 1202, and is communicated by the interface circuit 1203, so as to realize the display control method provided by the following embodiments of the present application. In a possible implementation manner, the computer execution instructions in the embodiment of the present application may also be referred to as application program codes, which is not specifically limited in the embodiment of the present application.
Optionally, the interface circuit 1203 may also include a transmitter and/or a receiver. Optionally, the processor 1202 may include one or more CPUs, and may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present application may be embodied directly in a hardware processor, or in a combination of the hardware and software modules in the processor.
The embodiment of the application also provides a computer readable storage medium. The methods described in the above embodiments may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media may include computer storage media and communication media, and may include any medium that can communicate a computer program from one place to another. A storage medium may be any target medium that can be accessed by a computer.
In one possible implementation, the computer-readable medium may include RAM, ROM, a compact disk read-only memory (CD-ROM) or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. Also, any connection is properly termed a computer-readable medium. For example, if the software is transmitted from a website, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, Digital Subscriber Line (DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. Disk and Disc, as used herein, includes Disc, laser Disc, optical Disc, Digital Versatile Disc (DVD), floppy disk and blu-ray Disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processing unit of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processing unit of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above embodiments are only for illustrating the embodiments of the present invention and are not to be construed as limiting the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made on the basis of the embodiments of the present invention shall be included in the scope of the present invention.

Claims (16)

1. A display control method is applied to a terminal device comprising a display screen, and comprises the following steps:
the terminal equipment receives a first operation;
responding to the first operation, the terminal equipment displays a first interface, wherein the first interface comprises an identifier of a first display mode, and the identifier of the first display mode is marked to be in an un-started state;
the terminal equipment automatically starts the first display mode based on ambient light and/or the content of a focus window in the terminal equipment;
the terminal equipment receives a second operation;
and responding to the second operation, the terminal equipment displays a second interface, wherein the second interface comprises the identifier of the first display mode, and the identifier of the first display mode is marked as a starting state.
2. The method according to claim 1, wherein when the first operation is a pull-down operation, the first interface is a pull-down interface, or when the first operation is an operation of opening a display mode interface in a setting application, the first interface is an interface in the setting application;
and/or when the second operation is a pull-down operation, the second interface is a pull-down interface, or when the second operation is an operation of opening a display mode interface in a setting application, the second interface is an interface in the setting application.
3. The method of claim 1, wherein the terminal device automatically opening the first display mode based on ambient light and/or content of a focus window in the terminal device comprises:
the terminal equipment identifies the number of characters in the focus window;
and when the number of the characters in the focus window is larger than or equal to a number threshold, the terminal equipment automatically starts the first display mode, wherein the first display mode comprises an electronic book mode.
4. The method of claim 3, wherein the terminal device identifies the number of words in the focus window, comprising:
the terminal equipment registers input window management of the terminal equipment based on detection service; the detection service is configured as a service for deriving the number of letters of the focus window and the ambient light report value;
the detection service of the terminal equipment acquires the focus window managed by the input window;
the terminal equipment starts an Optical Character Recognition (OCR) service in the terminal equipment based on the detection service;
the terminal device captures the focus window based on the detection service and sends the captured image to the OCR service;
and the terminal equipment obtains the number of the characters in the screenshot recognized by the OCR service based on the detection service.
5. The method of claim 4, wherein after the terminal device displays the second interface, the method further comprises:
the terminal equipment detects that the focus window is switched;
the terminal equipment identifies the number of characters in the focus window;
when the number of the characters in the focus window is smaller than the number threshold, the terminal equipment automatically exits the electronic book mode;
the terminal equipment receives a third operation;
and responding to the third operation, the terminal equipment displays a third interface, wherein the third interface comprises the identifier of the first display mode, and the identifier of the first display mode is marked to be in an un-started state.
6. The method of claim 1, wherein the terminal device automatically opening the first display mode based on ambient light and/or content of a focus window in the terminal device comprises:
the terminal equipment acquires an ambient light report value;
and when the ambient light report value is less than or equal to the report value threshold value, the terminal equipment automatically starts the first display mode, wherein the first display mode comprises an eye protection mode or a dark color mode.
7. The method of claim 6, wherein the terminal device automatically turning on the first display mode when the ambient light threshold is less than or equal to a threshold value comprises:
when the ambient light report value is smaller than or equal to the report value threshold value, the terminal equipment displays prompt information, and the prompt information is used for prompting a user to select the eye protection mode or the dark color mode;
responding to the selection of the user on the eye protection mode, and automatically starting the eye protection mode by the terminal equipment, wherein the first display mode is the eye protection mode;
or responding to the selection of the user to the dark color mode, and automatically starting the dark color mode by the terminal equipment, wherein the first display mode is the dark color mode.
8. The method of claim 7, wherein the terminal device obtaining the ambient light report comprises:
the terminal equipment registers an ambient light sensor of the terminal equipment based on a detection service;
the terminal equipment obtains an ambient light report value in the environment based on the ambient light sensor;
the detection service of the terminal device obtains the ambient light report from the ambient light sensor.
9. The method of claim 1, further comprising an identification of a second display mode in the first interface, and wherein the identification of the second display mode is flagged as an unactivated state; the second interface further comprises an identifier of the second display mode, and the identifier of the second display mode is marked as a starting state; the terminal device automatically starts the first display mode based on the ambient light and/or the content of the focus window in the terminal device, and the method comprises the following steps:
the terminal equipment acquires an ambient light report value and the number of characters in the focus window;
when the number of the characters in the focus window is larger than or equal to a number threshold value, the terminal equipment automatically starts the first display mode; the first display mode comprises an electronic book mode;
the method further comprises the following steps: and when the ambient light report value is less than or equal to the report value threshold value, the terminal equipment automatically starts the second display mode, and the second display mode comprises an eye protection mode or a dark color mode.
10. The method according to claim 9, wherein after the terminal device displays the second interface, the method further comprises:
the terminal equipment detects that the focus window is switched;
the terminal equipment identifies the number of characters in the focus window;
when the number of the characters in the focus window is smaller than the number threshold, the terminal equipment automatically exits the electronic book mode and continues to keep the second display mode started;
the terminal equipment receives a fourth operation;
responding to the fourth operation, the terminal device displays a fourth interface, wherein the fourth interface comprises the identifier of the first display mode and the identifier of the second display mode, the identifier of the first display mode is marked in an unactivated state, and the identifier of the second display mode is marked in an activated state.
11. The method according to claim 9, wherein after the terminal device displays the second interface, the method further comprises:
the terminal equipment acquires the ambient light report value;
when the ambient light report value is larger than the report value threshold value, the terminal equipment automatically exits the eye protection mode or the dark color mode and continuously keeps the first display mode to be started;
the terminal equipment receives a fifth operation;
and responding to the fifth operation, the terminal equipment displays a fifth interface, wherein the fifth interface comprises the identifier of the first display mode and the identifier of the second display mode, the identifier of the first display mode is marked to be in an activated state, and the identifier of the second display mode is marked to be in an inactivated state.
12. The method according to claim 1, wherein before the terminal device automatically starts the first display mode based on ambient light and/or content of a focus window in the terminal device, the method further comprises:
the terminal equipment obtains bright screen broadcast;
the terminal device automatically starts the first display mode based on the ambient light and/or the content of the focus window in the terminal device, and the method comprises the following steps: and responding to the bright screen broadcast, and automatically starting the first display mode by the terminal equipment based on ambient light and/or the content of a focus window in the terminal equipment.
13. The method of claim 12,
the bright SCREEN broadcast includes intent.
14. The method according to any one of claims 1-13, further comprising:
the terminal equipment obtains SCREEN-OFF broadcast, wherein the SCREEN-OFF broadcast comprises intent.ACTION _ SCREEN _ OFF;
the terminal device registers an ambient light sensor service and a window management service based on a detection service.
15. An electronic device, comprising: a memory for storing a computer program and a processor for executing the computer program to perform the method of any one of claims 1-14.
16. A computer-readable storage medium having instructions stored thereon that, when executed, cause a computer to perform the method of any of claims 1-14.
CN202210781408.1A 2022-07-05 2022-07-05 Display control method, device and storage medium Active CN114840114B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210781408.1A CN114840114B (en) 2022-07-05 2022-07-05 Display control method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210781408.1A CN114840114B (en) 2022-07-05 2022-07-05 Display control method, device and storage medium

Publications (2)

Publication Number Publication Date
CN114840114A true CN114840114A (en) 2022-08-02
CN114840114B CN114840114B (en) 2023-01-03

Family

ID=82574260

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210781408.1A Active CN114840114B (en) 2022-07-05 2022-07-05 Display control method, device and storage medium

Country Status (1)

Country Link
CN (1) CN114840114B (en)

Citations (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090243995A1 (en) * 2008-03-31 2009-10-01 Nec Lcd Technologies, Ltd. Display panel control device, liquid crystal display device, electronic apparatus, and display panel drive control device
US20100134021A1 (en) * 2007-04-02 2010-06-03 John Alfred Ayres Momentary Night Light Assembly
CN103050089A (en) * 2011-10-12 2013-04-17 富泰华工业(深圳)有限公司 Electronic device and method for adjusting brightness of display screen thereof
US20130199064A1 (en) * 2012-02-08 2013-08-08 Saf-T-Glo Limited Signs
CN105955600A (en) * 2016-05-30 2016-09-21 维沃移动通信有限公司 Mobile terminal and method for adjusting display interface of mobile terminal
US9513763B1 (en) * 2014-03-20 2016-12-06 Amazon Technologies, Inc. Adaptive user interfaces
CN107566642A (en) * 2017-08-31 2018-01-09 珠海格力电器股份有限公司 A kind of method, apparatus and intelligent terminal of functional mode switching
CN108260003A (en) * 2017-12-28 2018-07-06 深圳Tcl新技术有限公司 It is accustomed to method of data capture, intelligent terminal and readable storage medium storing program for executing
CN108469976A (en) * 2018-03-13 2018-08-31 北京车和家信息技术有限公司 Mode switching method, mode-changeover device, mobile unit and vehicle
US20180338029A1 (en) * 2017-05-22 2018-11-22 Beijing Xiaomi Mobile Software Co., Ltd. Method and device for switching display mode
CN109889652A (en) * 2018-11-30 2019-06-14 努比亚技术有限公司 A kind of eyeshield mode display control method, terminal and computer readable storage medium
CN111190683A (en) * 2019-12-31 2020-05-22 联想(北京)有限公司 Processing method and device and electronic equipment
US20210208678A1 (en) * 2020-08-27 2021-07-08 Baidu Online Network Technology (Beijing) Co., Ltd. Prompt method and apparatus for eye-protection mode, electronic device and storage medium
CN113138818A (en) * 2021-03-12 2021-07-20 维沃移动通信有限公司 Interface display method and device and electronic equipment
WO2021170040A1 (en) * 2020-02-27 2021-09-02 京东方科技集团股份有限公司 Method and device for adjusting display parameter, and display device
WO2021169402A1 (en) * 2020-02-26 2021-09-02 华为技术有限公司 Screen brightness adjustment method and electronic device
WO2021213016A1 (en) * 2020-04-20 2021-10-28 Oppo广东移动通信有限公司 Ambient light detection method and device, electronic apparatus, and storage medium
US20220057866A1 (en) * 2019-01-11 2022-02-24 Huawei Technologies Co., Ltd. Display Method and Related Apparatus
CN114416227A (en) * 2021-11-16 2022-04-29 华为技术有限公司 Window switching method, electronic device and readable storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102015102639A1 (en) * 2015-02-24 2016-08-25 Emporia Telecom Gmbh & Co Kg Method for operating a mobile terminal, application for a mobile terminal and mobile terminal
CN106210550B (en) * 2015-05-06 2019-02-19 小米科技有限责任公司 Mode regulating method and device
CN105262675A (en) * 2015-10-29 2016-01-20 北京奇虎科技有限公司 Method and apparatus for controlling chat based on electronic book

Patent Citations (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100134021A1 (en) * 2007-04-02 2010-06-03 John Alfred Ayres Momentary Night Light Assembly
US20090243995A1 (en) * 2008-03-31 2009-10-01 Nec Lcd Technologies, Ltd. Display panel control device, liquid crystal display device, electronic apparatus, and display panel drive control device
CN103050089A (en) * 2011-10-12 2013-04-17 富泰华工业(深圳)有限公司 Electronic device and method for adjusting brightness of display screen thereof
US20130199064A1 (en) * 2012-02-08 2013-08-08 Saf-T-Glo Limited Signs
US9513763B1 (en) * 2014-03-20 2016-12-06 Amazon Technologies, Inc. Adaptive user interfaces
CN105955600A (en) * 2016-05-30 2016-09-21 维沃移动通信有限公司 Mobile terminal and method for adjusting display interface of mobile terminal
US20180338029A1 (en) * 2017-05-22 2018-11-22 Beijing Xiaomi Mobile Software Co., Ltd. Method and device for switching display mode
CN107566642A (en) * 2017-08-31 2018-01-09 珠海格力电器股份有限公司 A kind of method, apparatus and intelligent terminal of functional mode switching
CN108260003A (en) * 2017-12-28 2018-07-06 深圳Tcl新技术有限公司 It is accustomed to method of data capture, intelligent terminal and readable storage medium storing program for executing
CN108469976A (en) * 2018-03-13 2018-08-31 北京车和家信息技术有限公司 Mode switching method, mode-changeover device, mobile unit and vehicle
CN109889652A (en) * 2018-11-30 2019-06-14 努比亚技术有限公司 A kind of eyeshield mode display control method, terminal and computer readable storage medium
US20220057866A1 (en) * 2019-01-11 2022-02-24 Huawei Technologies Co., Ltd. Display Method and Related Apparatus
CN111190683A (en) * 2019-12-31 2020-05-22 联想(北京)有限公司 Processing method and device and electronic equipment
WO2021169402A1 (en) * 2020-02-26 2021-09-02 华为技术有限公司 Screen brightness adjustment method and electronic device
WO2021170040A1 (en) * 2020-02-27 2021-09-02 京东方科技集团股份有限公司 Method and device for adjusting display parameter, and display device
WO2021213016A1 (en) * 2020-04-20 2021-10-28 Oppo广东移动通信有限公司 Ambient light detection method and device, electronic apparatus, and storage medium
US20210208678A1 (en) * 2020-08-27 2021-07-08 Baidu Online Network Technology (Beijing) Co., Ltd. Prompt method and apparatus for eye-protection mode, electronic device and storage medium
CN113138818A (en) * 2021-03-12 2021-07-20 维沃移动通信有限公司 Interface display method and device and electronic equipment
CN114416227A (en) * 2021-11-16 2022-04-29 华为技术有限公司 Window switching method, electronic device and readable storage medium

Also Published As

Publication number Publication date
CN114840114B (en) 2023-01-03

Similar Documents

Publication Publication Date Title
US11307733B2 (en) Always on display method and electronic device
KR102291021B1 (en) Electronic device for controlling audio output and operating mehtod thereof
WO2018126971A1 (en) Homepage interface adjustment method, apparatus and smart television
US11258893B2 (en) Method for prompting notification message and mobile terminal
WO2019105227A1 (en) Application icon display method, terminal, and computer readable storage medium
EP2704461B1 (en) Mobile terminal and control method thereof
CN108429888B (en) Light supplementing method and mobile terminal
CN112363785A (en) Terminal display method, terminal and computer readable storage medium
CN110602565A (en) Image processing method and electronic equipment
CN112445407B (en) Display method and electronic device
CN108920226B (en) Screen recording method and device
CN109407920B (en) Status icon display method, status icon processing method and related equipment
US20230152956A1 (en) Wallpaper display control method and apparatus and electronic device
CN110221795B (en) Screen recording method and terminal
KR20220158794A (en) Information presentation methods, electronic devices and storage media
CN113220176A (en) Display method and device based on widget, electronic equipment and readable storage medium
CN110928619B (en) Wallpaper setting method and device, electronic equipment and medium
CN108845785A (en) A kind of display methods and terminal
CN108769206B (en) Data synchronization method, terminal and storage medium
CN107949039B (en) Wireless network connection method and mobile terminal
CN111638842B (en) Display control method and device and electronic equipment
KR102005406B1 (en) Dispaly apparatus and controlling method thereof
WO2020151522A1 (en) Content deletion method, terminal, and computer-readable storage medium
CN113010056A (en) Desktop display control method, device, terminal and storage medium
CN109918014B (en) Page display method, wearable device and computer-readable storage medium

Legal Events

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