CN109189517B - Display switching method and mobile terminal - Google Patents

Display switching method and mobile terminal Download PDF

Info

Publication number
CN109189517B
CN109189517B CN201810835167.8A CN201810835167A CN109189517B CN 109189517 B CN109189517 B CN 109189517B CN 201810835167 A CN201810835167 A CN 201810835167A CN 109189517 B CN109189517 B CN 109189517B
Authority
CN
China
Prior art keywords
gray
display content
determining
scale
display
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810835167.8A
Other languages
Chinese (zh)
Other versions
CN109189517A (en
Inventor
况伟良
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201810835167.8A priority Critical patent/CN109189517B/en
Publication of CN109189517A publication Critical patent/CN109189517A/en
Application granted granted Critical
Publication of CN109189517B publication Critical patent/CN109189517B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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

Landscapes

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

Abstract

The embodiment of the invention provides a display switching method and a mobile terminal, wherein the method comprises the following steps: when the mobile terminal is in a first display state, determining display content missing in a target area, wherein the first display state is a full-screen display state, and the target area is the area missing in the special-shaped screen; judging whether the display content comprises effective information or not; and if so, switching the mobile terminal to a second display state, wherein the second display state is a state in which the missing display content is normally displayed. Whether the display content missing in the target area of the screen contains effective information or not can be automatically switched to the first display state or the second display state, the problem of missing display content is avoided, and the use experience of a user is improved.

Description

Display switching method and mobile terminal
Technical Field
The embodiment of the invention relates to the technical field of mobile terminals, in particular to a display switching method and a mobile terminal.
Background
At present, with the rapid development of mobile terminals, the requirements of people on screen occupation ratio are higher and higher. In order to increase the screen ratio, shaped screens have appeared on the market, for example: u-shaped screen. However, the irregular screen also brings about the problem of incomplete display while improving the screen ratio, for example: the characters or pictures of the game or the chat window part in the opposite region can not be completely displayed, thereby causing the problem of display loss.
In order to solve the above problems, in the prior art, basically, a mobile terminal manufacturer adapts to different application programs or scenes in advance, that is, sets which application programs or scenes need to be displayed in a full screen or non-full screen in advance. However, when displaying in a state other than an application state adapted by a mobile terminal manufacturer, there is still a problem that display contents are lost.
Disclosure of Invention
The embodiment of the invention provides a display switching method and a mobile terminal, and aims to solve the problem of content loss caused by display of a special-shaped screen in the prior art.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a method for switching display, including: when the mobile terminal is in a first display state, determining display content missing in a target area, wherein the first display state is a full-screen display state, and the target area is the area missing in the special-shaped screen; judging whether the display content comprises effective information or not; and if so, switching the mobile terminal to a second display state, wherein the second display state is a state in which the missing display content is normally displayed.
In a second aspect, an embodiment of the present invention provides a mobile terminal, where the mobile terminal includes: the mobile terminal comprises a first determining module, a second determining module and a display module, wherein the first determining module is used for determining the display content of a target area when the mobile terminal is in a first display state, and the first display state is a full-screen display state, and the target area is the area of the abnormal-shaped screen which is lost; the judging module is used for judging whether the display content comprises effective information or not; and if the display content of the mobile terminal is in the second display state, the mobile terminal is switched to the second display state, wherein the second display state is a state in which the missing display content is normally displayed.
In a third aspect, an embodiment of the present invention further provides a mobile terminal, including a processor, a memory, and a computer program stored in the memory and executable on the processor, where the computer program, when executed by the processor, implements the steps of the method for switching display.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method for switching display are implemented.
In the embodiment of the invention, when the mobile terminal is in a first display state of full-screen display, the display content missing in the target area is determined, and whether the display content comprises effective information is judged; if the display content is in the first display state, the mobile terminal is switched to the second display state in which the display content is normally displayed, and the second display state is in the state in which the missing display content is normally displayed, so that whether the missing display content of the target area of the screen contains effective information or not can be automatically switched to the first display state or the second display state, the problem of missing display content is avoided, and the use experience of a user is improved.
Drawings
FIG. 1 is a flowchart illustrating a method of display switching according to a first embodiment of the present invention;
FIG. 2 is a schematic diagram of a mobile terminal with a shaped screen according to an embodiment of the present invention;
FIG. 3 is a second schematic diagram of a mobile terminal with a special-shaped screen according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a missing portion of a shaped screen in accordance with an embodiment of the present invention;
FIG. 5 is a flowchart illustrating a method of switching display according to a second embodiment of the present invention;
FIG. 6 is a flowchart illustrating a method of switching display according to a third embodiment of the present invention;
fig. 7 is a block diagram of a mobile terminal according to a fourth embodiment of the present invention;
fig. 8 is a block diagram of a mobile terminal according to a fourth embodiment of the present invention;
fig. 9 is a schematic diagram of a hardware structure of a mobile terminal according to a fifth embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
Referring to fig. 1, a flowchart illustrating steps of a method for switching display according to a first embodiment of the present invention is shown.
The display switching method provided by the embodiment of the invention comprises the following steps:
the embodiment is applied to the mobile terminal comprising the special-shaped screen.
Step 101: and when the mobile terminal is in the first display state, determining the display content missing from the target area.
The first display state is a full-screen display state, and the target area is an area where the special-shaped screen is absent.
As shown in fig. 2 and fig. 3, which are schematic diagrams of a mobile terminal with a shaped screen, when the mobile terminal is in a first display state, a region where the shaped screen is absent is determined, and as shown in fig. 4, the region where the shaped screen is absent is determined.
Step 102: it is determined whether the display content includes valid information.
As shown in fig. 2, the display content missing for the target area includes valid information, and fig. 3 shows that the display content missing for the target area does not include valid information.
Step 103: and if so, switching the mobile terminal to a second display state.
Wherein the second display state is a state in which the missing display content is normally displayed.
And if the display content missing from the target area contains the valid information, switching from a first display state to a second display state, wherein the first display state is a state that the display content missing from the target area contains the valid information, and the second display state is a state that the display content missing from the target area does not contain the valid information.
In the embodiment of the invention, when the mobile terminal is in a first display state of full-screen display, the display content missing in the target area is determined, and whether the display content comprises effective information is judged; if the display content is in the first display state, the mobile terminal is switched to the second display state in which the display content is normally displayed, and the second display state is in the state in which the missing display content is normally displayed, so that whether the missing display content of the target area of the screen contains effective information or not can be automatically switched to the first display state or the second display state, the problem of missing display content is avoided, and the use experience of a user is improved.
Example two
Referring to fig. 5, a flowchart illustrating steps of a method for switching display according to a second embodiment of the present invention is shown.
The display switching method provided by the embodiment of the invention comprises the following steps:
step 201: and when the mobile terminal is in the first display state, determining the display content missing from the target area.
The first display state is a full-screen display state, and the target area is an area where the special-shaped screen is absent.
Step 202: and determining the gray-scale value of the red sub-pixel of each pixel point in the display content.
The missing display content of the target area comprises a plurality of pixels, each pixel comprises a red sub-pixel, and the gray-scale value of the red sub-pixel in each pixel is determined.
Step 203: and sorting the gray-scale values of the red sub-pixels from small to large to generate a first gray-scale array.
Step 204: and performing difference value calculation on the first gray-scale array to obtain a first target gray-scale value.
For example: the first gray level array is R [ R ]1,R2,R3,R4]Then R is1And R4Making a difference with R1And R4Is compared with a first preset value, and R is compared with the first preset value2And R3Making a difference with R2And R3The second difference value of (2) is compared with the first preset value, when the first difference value and the second difference value are both greater than the first preset value, the first target gray level value is 2, and when any one of the first difference value or the second difference value is less than or equal to the first preset value, the first target gray level value is 1.
Step 205: and if the first target gray-scale value is less than or equal to a first preset gray-scale value, determining the gray-scale value of the green sub-pixel of each pixel point in the display content.
It should be noted that, a person skilled in the art may set the first preset gray scale value according to actual situations, and the first preset gray scale value may be set to 10, 15, and 20.
And if the first target gray-scale value is larger than a first preset gray-scale value, determining that the display content missing from the target area contains effective information.
When the first target gray-scale value is less than or equal to the first preset gray-scale value, it is further determined whether the display content missing from the target area contains valid information.
The missing display content of the target area comprises a plurality of pixels, each pixel further comprises a green sub-pixel, and the gray-scale value of the green sub-pixel in each pixel is determined.
Step 206: and sorting the gray-scale values of the green sub-pixels from small to generate a second gray-scale array.
Step 207: and calculating the difference value of the second gray scale number group to obtain a second target gray scale value.
For example: the second gray level array is G1,G2,G3,G4]Then G will be1And G4Making a difference with G1And G4Comparing the first difference value with a second preset value to obtain G2And G3Making a difference with G2And G3The second difference value of (2) is compared with a second preset value, when the first difference value and the second difference value are both greater than the second preset value, the second target gray level value is 2, and when any one of the first difference value or the second difference value is less than or equal to the second preset value, the second target gray level value is 1.
Step 208: and if the second target gray-scale value is less than or equal to a second preset gray-scale value, determining the gray-scale value of the blue sub-pixel of each pixel point in the display content.
It should be noted that, a person skilled in the art may set the second preset gray scale value according to an actual situation, and the second preset gray scale value may be set to 3, 6, and 9.
And if the second target gray-scale value is larger than the second preset gray-scale value, determining that the display content contains effective information.
When the second target gray level value is less than or equal to the second preset gray level value, it is further determined whether the display content includes valid information.
The missing display content of the target area comprises a plurality of pixels, each pixel further comprises a blue sub-pixel, and the gray-scale value of the blue sub-pixel in each pixel is determined.
Step 209: and sequencing the gray-scale values of the blue sub-pixels from large to small to generate a third gray-scale array.
Step 210: and performing difference settlement on the third gray-scale array to obtain a third target gray-scale value.
The calculation method is the same as the calculation method of the first gray-scale array and the second gray-scale array, and the description is omitted.
Step 211: and if the third target gray-scale value is larger than the third preset gray-scale value, determining that the display content contains effective information.
Step 212: and switching the mobile terminal to a second display state.
Wherein the second display state is a state in which the missing display content is normally displayed.
And if the display content contains valid information, switching from the full-screen state to the state in which the missing display content is normally displayed.
In the embodiment of the invention, when the mobile terminal is in the first display state of full-screen display, the missing display content of the target area is determined, judging whether the display content contains effective information or not through the gray-scale value of the red sub-pixel and the green sub-pixel of each pixel point in the display content, and when the first target gray-scale value does not meet the condition, judging whether the display content contains effective information or not through a second target gray-scale value, determining whether the display content contains valid information through a third target gray-scale value, and if the display content contains valid information, the first display state is switched to the second display state, so that the display content which is missing in the target area of the screen can be automatically switched to the first display state or the second display state according to whether the display content contains effective information, the problem of missing display content is avoided, and the use experience of a user is improved.
EXAMPLE III
Referring to fig. 6, a flowchart illustrating steps of a method for switching display according to a third embodiment of the present invention is shown.
The display switching method provided by the embodiment of the invention realizes the switching of the screen aiming at the dynamic picture. The following is a detailed description:
the display switching method provided by the embodiment of the invention comprises the following steps:
step 301: and when the mobile terminal is in the first display state, determining the display content missing from the target area.
The first display state is a full-screen display state, and the target area is an area where the special-shaped screen is absent.
Step 302: a first preset number of image frames is acquired.
Acquiring a first preset number of image frames in a preset time period, where the preset time period may be set to 2s, 3s, 4s, and the like, and the preset time is not particularly limited in the embodiment of the present invention. The first preset number may be set to 10, 20, 30, etc., and the first preset number is not particularly limited in the embodiment of the present invention.
Step 303: determining the gray-scale values of the red sub-pixel, the green sub-pixel and the blue sub-pixel of the pixel point in the display content in each image frame.
Step 304: and judging whether each image frame contains effective information in the display content according to the pixel points of the target area and the gray-scale values of the red sub-pixel, the green sub-pixel and the blue sub-pixel of each pixel point.
And respectively obtaining the gray-scale values of the red sub-pixel, the green sub-pixel and the blue sub-pixel of each pixel point in the display content missing from the target area in each image frame. And calculating whether the display content of each image frame contains effective information according to the calculation method for judging whether the display content contains effective information in the second embodiment.
Step 305: if yes, determining the frame number of the display content containing the effective information.
Step 306: and judging whether the frame number is greater than or equal to a second preset number.
For example: acquiring 100 image frames, calculating that effective information is displayed in a target area of 90 image frames, comparing 90 image frames with a second preset number, when the number is greater than or equal to the second preset number, determining that the effective information is displayed in the target area in a preset time period, and when the number is less than the second preset number, determining that the effective information is not displayed in the target area in the preset time period.
It should be noted that, a person skilled in the art may set the second preset number according to an actual situation, where the second preset number may be set to 70, 80, 90, and the like, and the second preset number is not specifically limited in the embodiment of the present invention.
Step 307: and if so, determining that the display content contains valid information.
Step 308: and switching the mobile terminal to a second display state.
Wherein the second display state is a state in which the missing display content is normally displayed.
And if the display content contains the valid information, switching from a first display state to a second display state, wherein the first display state is a state that the display content contains the valid information, and the second display state is a state that the display content does not contain the valid information.
In the embodiment of the invention, when the mobile terminal is in the first display state of full-screen display, the missing display content of the target area is determined, the method comprises the steps of obtaining a first preset number of image frames, determining the gray-scale values of red sub-pixels, green sub-pixels and blue sub-pixels of pixel points in display contents in the image frames aiming at each image frame, judging whether the display contents contain effective information or not to switch the screen display state, if the number of the image frames containing the effective information is larger than or equal to a second preset number, the display content is determined to contain the effective information, the first display state is switched to the second display state, the display content which is lost in the target area of the screen can be automatically switched to the first display state or the second display state according to whether the display content contains the effective information or not, the problem of loss of the display content is avoided, and the use experience of a user is improved.
Example four
Referring to fig. 7, a block diagram of a mobile terminal according to a fourth embodiment of the present invention is shown.
The mobile terminal provided by the embodiment of the invention comprises: a first determining module 401, configured to determine, when the mobile terminal is in a first display state, display content missing in a target area, where the first display state is a full-screen display state, and the target area is an area missing in the special-shaped screen; a determining module 402, configured to determine whether the display content includes valid information; a switching module 403, configured to switch the mobile terminal to a second display state if the display content is included in the display content, where the second display state is a state where the missing display content is normally displayed.
The first determining module determines the missing display content of the target area, and when the judging module judges whether the display content comprises effective information or not, the switching module switches the mobile terminal to a second display state, wherein the first display state is a full-screen display state, and the second display state is a normal display state of the missing display content.
In the embodiment of the invention, when the mobile terminal is in a first display state of full-screen display, the display content missing in the target area is determined, and whether the display content comprises effective information is judged; if the display content is in the first display state, the mobile terminal is switched to the second display state in which the display content is normally displayed, and the second display state is in the state in which the missing display content is normally displayed, so that whether the missing display content of the target area of the screen contains effective information or not can be automatically switched to the first display state or the second display state, the problem of missing display content is avoided, and the use experience of a user is improved.
EXAMPLE five
Referring to fig. 8, a block diagram of a mobile terminal according to a fifth embodiment of the present invention is shown.
The mobile terminal provided by the embodiment of the invention comprises: a first determining module 501, configured to determine, when the mobile terminal is in a first display state, display content missing in a target area, where the first display state is a full-screen display state, and the target area is an area missing in the special-shaped screen; a judging module 502, configured to judge whether the display content includes valid information; a switching module 503, configured to switch the mobile terminal to a second display state if the display content is included in the display content, where the second display state is a state where the missing display content is normally displayed.
Preferably, the determining module 502 includes: the first determining submodule 5021 is used for determining the gray-scale value of the red sub-pixel of each pixel point in the display content; the generation submodule 5022 is used for sequencing the gray-scale values of the red sub-pixels from small to large to generate a first gray-scale array; the calculation submodule 5023 is used for calculating the difference value of the first gray-scale array to obtain a first target gray-scale value; the second determining submodule 5024 is configured to determine that the display content contains valid information if the first target grayscale value is greater than a first preset grayscale value.
Preferably, the mobile terminal further includes: a second determining module 504, configured to, after the calculating submodule 5023 performs difference calculation on the first gray-scale array to obtain a first target gray-scale value, determine a gray-scale value of a green subpixel of each pixel in the display content if the first target gray-scale value is less than or equal to the first preset gray-scale value; a first generating module 505, configured to generate a second gray scale array by sorting the gray scale values of the green sub-pixels from small to small; a first calculating module 506, configured to perform difference calculation on the second gray scale number group to obtain a second target gray scale value; a third determining module 507, configured to determine that the display content includes valid information if the second target grayscale value is greater than the second preset grayscale value.
Preferably, the mobile terminal further includes: a fourth determining module 508, configured to, after the first calculating module 506 performs difference calculation on the first gray-scale array to obtain a first target gray-scale value, determine a gray-scale value of a blue sub-pixel of each pixel point in the display content if the second target gray-scale value is less than or equal to the second preset gray-scale value; a second generating module 509, configured to generate a third gray-scale array by sorting the gray-scale values of the blue sub-pixels from large to small; a second calculating module 510, configured to perform difference settlement on the third gray-scale array to obtain a third target gray-scale value; a fifth determining module 511, configured to determine that the display content includes valid information if the third target grayscale value is greater than the third preset grayscale value.
Preferably, the determining module 502 includes: an acquisition submodule 5025, configured to acquire a first preset number of image frames; the third determining submodule 5026 is used for determining the gray-scale values of the red sub-pixel, the green sub-pixel and the blue sub-pixel of the pixel point in the display content in each image frame; the first determining submodule 5027 is used for determining whether each image frame contains effective information in the display content according to the pixel points of the target area and the gray-scale values of the red sub-pixels, the green sub-pixels and the blue sub-pixels of the pixel points; a fourth determining submodule 5028, configured to determine, if the determination result of the first determining submodule is yes, the number of frames in which the display content includes valid information; the second judging submodule 5029 is used for judging whether the frame number is greater than or equal to a second preset number; a fifth determining submodule 50210, configured to determine that the display content includes valid information if the determination result of the second determining submodule is yes.
The mobile terminal provided in the embodiment of the present invention can implement each process implemented by the mobile terminal in the method embodiments of fig. 1, fig. 4, and fig. 5, and for avoiding repetition, details are not described here again.
In the embodiment of the invention, when the mobile terminal is in the first display state of full-screen display, the missing display content of the target area is determined, judging whether the display content contains effective information or not through the gray-scale value of the red sub-pixel and the green sub-pixel of each pixel point in the display content, and when the first target gray-scale value does not meet the condition, judging whether the display content contains effective information or not through a second target gray-scale value, determining whether the display content contains valid information through a third target gray-scale value, and if the display content contains valid information, the first display state is switched to the second display state, so that the display content which is missing in the target area of the screen can be automatically switched to the first display state or the second display state according to whether the display content contains effective information, the problem of missing display content is avoided, and the use experience of a user is improved.
EXAMPLE six
Fig. 9 is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention.
The mobile terminal 600 includes, but is not limited to: a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 605, a display unit 606, a user input unit 607, an interface unit 608, a memory 609, a processor 610, and a power supply 611. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 9 is not intended to be limiting of mobile terminals, and that a mobile terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 610 is configured to determine display content missing in a target area when the mobile terminal is in a first display state, where the first display state is a full-screen display state, and the target area is the area missing in the special-shaped screen; judging whether the display content comprises effective information or not; and if so, switching the mobile terminal to a second display state, wherein the second display state is a state in which the missing display content is normally displayed.
In the embodiment of the invention, when the mobile terminal is in a first display state of full-screen display, the display content missing in the target area is determined, and whether the display content comprises effective information is judged; if the display content is in the first display state, the mobile terminal is switched to the second display state in which the display content is normally displayed, and the second display state is in the state in which the missing display content is normally displayed, so that whether the missing display content of the target area of the screen contains effective information or not can be automatically switched to the first display state or the second display state, the problem of missing display content is avoided, and the use experience of a user is improved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 601 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 610; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 601 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. Further, the radio frequency unit 601 may also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides the user with wireless broadband internet access through the network module 602, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 603 may convert audio data received by the radio frequency unit 601 or the network module 602 or stored in the memory 609 into an audio signal and output as sound. Also, the audio output unit 603 may also provide audio output related to a specific function performed by the mobile terminal 600 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 603 includes a speaker, a buzzer, a receiver, and the like.
The input unit 604 is used to receive audio or video signals. The input Unit 604 may include a Graphics Processing Unit (GPU) 6041 and a microphone 6042, and the Graphics processor 6041 processes image data of a still picture or video obtained by an image capturing apparatus (such as a camera) in a video capture mode or an image capture mode. The processed image frames may be displayed on the display unit 606. The image frames processed by the graphic processor 6041 may be stored in the memory 609 (or other storage medium) or transmitted via the radio frequency unit 601 or the network module 602. The microphone 6042 can receive sound, and can process such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 601 in case of the phone call mode.
The mobile terminal 600 also includes at least one sensor 605, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 6061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 6061 and/or the backlight when the mobile terminal 600 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 to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 605 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 606 is used to display information input by the user or information provided to the user. The Display unit 606 may include a Display panel 6061, and the Display panel 6061 may be configured by a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 607 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 607 includes a touch panel 6071 and other input devices 6072. Touch panel 6071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 6071 using a finger, stylus, or any suitable object or accessory). The touch panel 6071 may include two parts of 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 610, receives a command from the processor 610, and executes the command. In addition, the touch panel 6071 can be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The user input unit 607 may include other input devices 6072 in addition to the touch panel 6071. Specifically, the other input devices 6072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a track ball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 6071 can be overlaid on the display panel 6061, and when the touch panel 6071 detects a touch operation on or near the touch panel 6071, the touch operation is transmitted to the processor 610 to determine the type of the touch event, and then the processor 610 provides a corresponding visual output on the display panel 6061 according to the type of the touch event. Although the touch panel 6071 and the display panel 6061 are shown in fig. 9 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 6071 and the display panel 6061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 608 is an interface through which an external device is connected to the mobile terminal 600. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 608 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 600 or may be used to transmit data between the mobile terminal 600 and external devices.
The memory 609 may be used to store software programs as well as various data. The memory 609 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 required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 609 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 processor 610 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 609 and calling data stored in the memory 609, thereby integrally monitoring the mobile terminal. Processor 610 may include one or more processing units; preferably, the processor 610 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 610.
The mobile terminal 600 may further include a power supply 611 (e.g., a battery) for supplying power to the various components, and preferably, the power supply 611 is logically connected to the processor 610 via a power management system, so that functions of managing charging, discharging, and power consumption are performed via the power management system.
In addition, the mobile terminal 600 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides a mobile terminal, which includes a processor 610, a memory 609, and a computer program stored in the memory 609 and capable of running on the processor 610, where the computer program is executed by the processor 610 to implement each process of the above method for switching display, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above method for switching display, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. A method for switching display is applied to a mobile terminal comprising a special-shaped screen, and is characterized in that the method comprises the following steps:
when the mobile terminal is in a first display state, determining display content missing in a target area, wherein the first display state is a full-screen display state, and the target area is the area missing in the special-shaped screen;
judging whether the display content comprises effective information or not;
if yes, switching the mobile terminal to a second display state, wherein the second display state is a state in which the missing display content is normally displayed;
the step of judging whether the display content includes valid information includes:
determining the gray scale value of the red sub-pixel of each pixel point in the display content;
sorting the gray-scale values of the red sub-pixels from small to large to generate a first gray-scale array;
performing difference value calculation on the first gray scale array to obtain a first target gray scale value;
and if the first target gray-scale value is larger than a first preset gray-scale value, determining that the display content contains effective information.
2. The method of claim 1, wherein after the step of computing the difference value for the first gray level array to obtain the first target gray level value, the method further comprises:
if the first target gray-scale value is smaller than or equal to the first preset gray-scale value, determining the gray-scale value of the green sub-pixel of each pixel point in the display content;
sorting the gray scale values of the green sub-pixels from small to generate a second gray scale array;
calculating a difference value of the second gray scale number group to obtain a second target gray scale value;
and if the second target gray-scale value is larger than a second preset gray-scale value, determining that the display content contains effective information.
3. The method of claim 2, wherein after the step of computing the difference for the second gray scale group to obtain a second target gray scale value, the method further comprises:
if the second target gray-scale value is smaller than or equal to the second preset gray-scale value, determining the gray-scale value of the blue sub-pixel of each pixel point in the display content;
sequencing the gray-scale values of the blue sub-pixels from large to small to generate a third gray-scale array;
performing difference settlement on the third gray-scale array to obtain a third target gray-scale value;
and if the third target gray-scale value is larger than a third preset gray-scale value, determining that the display content contains effective information.
4. The method of claim 1, wherein the step of determining whether the display content includes valid information comprises:
acquiring a first preset number of image frames;
determining gray-scale values of red sub-pixels, green sub-pixels and blue sub-pixels of pixel points in display contents in each image frame;
judging whether each image frame contains effective information in the display content or not according to the pixel points of the target area and the gray-scale values of the red sub-pixel, the green sub-pixel and the blue sub-pixel of each pixel point;
if yes, determining the frame number of the display content containing effective information;
judging whether the frame number is greater than or equal to a second preset number;
and if so, determining that the display content contains valid information.
5. A mobile terminal, characterized in that the mobile terminal comprises:
the mobile terminal comprises a first determining module, a second determining module and a display module, wherein the first determining module is used for determining the display content of a target area when the mobile terminal is in a first display state, and the first display state is a full-screen display state, and the target area is an area of a special-shaped screen which is lost;
the judging module is used for judging whether the display content comprises effective information or not;
the switching module is used for switching the mobile terminal to a second display state if the mobile terminal is in the second display state, wherein the second display state is a state in which the missing display content is normally displayed;
the judging module comprises:
the first determining submodule is used for determining the gray-scale value of the red sub-pixel of each pixel point in the display content;
the generation submodule is used for sequencing the gray-scale value of each red sub-pixel from small to large to generate a first gray-scale array;
the calculation submodule is used for calculating the difference value of the first gray-scale array to obtain a first target gray-scale value;
and the second determining submodule is used for determining that the display content contains effective information if the first target gray-scale value is larger than a first preset gray-scale value.
6. The mobile terminal of claim 5, wherein the mobile terminal further comprises:
the second determining module is used for performing difference value calculation on the first gray-scale array in the calculating submodule to obtain a first target gray-scale value, and determining the gray-scale value of the green sub-pixel of each pixel point in the display content if the first target gray-scale value is smaller than or equal to the first preset gray-scale value;
the first generation module is used for sequencing the gray-scale values of the green sub-pixels from small to generate a second gray-scale array;
the first calculation module is used for calculating the difference value of the second gray scale group to obtain a second target gray scale value;
and the third determining module is used for determining that the display content contains effective information if the second target gray-scale value is larger than a second preset gray-scale value.
7. The mobile terminal of claim 6, wherein the mobile terminal further comprises:
a fourth determining module, configured to, after the first calculating module performs difference calculation on the second gray scale group to obtain a second target gray scale value, determine a gray scale value of a blue sub-pixel of each pixel point in the display content if the second target gray scale value is less than or equal to the second preset gray scale value;
the second generation module is used for sequencing the gray-scale values of the blue sub-pixels from large to small to generate a third gray-scale array;
the second calculation module is used for carrying out difference settlement on the third gray-scale array to obtain a third target gray-scale value;
and the fifth determining module is used for determining that the display content contains effective information if the third target gray-scale value is larger than a third preset gray-scale value.
8. The mobile terminal of claim 5, wherein the determining module comprises:
the acquisition submodule is used for acquiring a first preset number of image frames;
the third determining submodule is used for determining the gray-scale values of the red sub-pixel, the green sub-pixel and the blue sub-pixel of the pixel point in the display content in each image frame;
the first judgment sub-module is used for judging whether each image frame contains effective information in the display content or not according to the pixel points of the target area and the gray-scale values of the red sub-pixels, the green sub-pixels and the blue sub-pixels of the pixel points;
a fourth determining submodule, configured to determine, if the determination result of the first determining submodule is yes, a frame number of the display content containing valid information;
the second judgment submodule is used for judging whether the frame number is greater than or equal to a second preset number;
and a fifth determining sub-module, configured to determine that the display content includes valid information if the determination result of the second determining sub-module is yes.
9. A mobile terminal, characterized in that it comprises a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the method of display switching according to any one of claims 1 to 4.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of display switching according to any one of claims 1 to 4.
CN201810835167.8A 2018-07-26 2018-07-26 Display switching method and mobile terminal Active CN109189517B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810835167.8A CN109189517B (en) 2018-07-26 2018-07-26 Display switching method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810835167.8A CN109189517B (en) 2018-07-26 2018-07-26 Display switching method and mobile terminal

Publications (2)

Publication Number Publication Date
CN109189517A CN109189517A (en) 2019-01-11
CN109189517B true CN109189517B (en) 2021-08-27

Family

ID=64937651

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810835167.8A Active CN109189517B (en) 2018-07-26 2018-07-26 Display switching method and mobile terminal

Country Status (1)

Country Link
CN (1) CN109189517B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111459227A (en) * 2020-03-31 2020-07-28 联想(北京)有限公司 Electronic device and display control method thereof
CN112184685B (en) * 2020-10-09 2022-11-18 合肥芯颖科技有限公司 Image data determination method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107562316A (en) * 2017-08-29 2018-01-09 广东欧珀移动通信有限公司 Method for showing interface, device and terminal
CN107943404A (en) * 2017-11-14 2018-04-20 优酷网络技术(北京)有限公司 Method for showing interface and device
CN107943551A (en) * 2017-11-14 2018-04-20 维沃移动通信有限公司 A kind of screen display method and mobile terminal
CN108153503A (en) * 2017-12-20 2018-06-12 广东欧珀移动通信有限公司 Display control method and related product
CN108182043A (en) * 2018-01-19 2018-06-19 维沃移动通信有限公司 A kind of method for information display and mobile terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104850373A (en) * 2014-02-18 2015-08-19 中兴通讯股份有限公司 Method and device for processing split screen
JP6386803B2 (en) * 2014-06-13 2018-09-05 キヤノン株式会社 Apparatus, method, and program

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107562316A (en) * 2017-08-29 2018-01-09 广东欧珀移动通信有限公司 Method for showing interface, device and terminal
CN107943404A (en) * 2017-11-14 2018-04-20 优酷网络技术(北京)有限公司 Method for showing interface and device
CN107943551A (en) * 2017-11-14 2018-04-20 维沃移动通信有限公司 A kind of screen display method and mobile terminal
CN108153503A (en) * 2017-12-20 2018-06-12 广东欧珀移动通信有限公司 Display control method and related product
CN108182043A (en) * 2018-01-19 2018-06-19 维沃移动通信有限公司 A kind of method for information display and mobile terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于灰阶图像的数据嵌入方法的研究;王兴田;《中国优秀博士学位论文全文数据库信息科技辑》;20160315;第I138-141页 *

Also Published As

Publication number Publication date
CN109189517A (en) 2019-01-11

Similar Documents

Publication Publication Date Title
CN107908383B (en) Screen color adjusting method and device and mobile terminal
CN108182043B (en) Information display method and mobile terminal
CN108182019B (en) Suspension control display processing method and mobile terminal
CN107977144B (en) Screen capture processing method and mobile terminal
CN108073343B (en) display interface adjusting method and mobile terminal
CN107977652B (en) Method for extracting screen display content and mobile terminal
CN109240577B (en) Screen capturing method and terminal
CN109523253B (en) Payment method and device
CN109710349B (en) Screen capturing method and mobile terminal
CN108900695B (en) Display processing method, terminal equipment and computer readable storage medium
CN109257505B (en) Screen control method and mobile terminal
CN107734172B (en) Information display method and mobile terminal
CN108600089B (en) Expression image display method and terminal equipment
CN111401463B (en) Method for outputting detection result, electronic equipment and medium
CN107153500B (en) Method and equipment for realizing image display
CN108196781B (en) Interface display method and mobile terminal
CN110022551B (en) Information interaction method and terminal equipment
CN109189517B (en) Display switching method and mobile terminal
CN108391011B (en) Face recognition method and mobile terminal
CN107908342B (en) Method for displaying message and mobile terminal
CN108259808B (en) Video frame compression method and mobile terminal
CN108093119B (en) Strange incoming call number marking method and mobile terminal
CN110740265B (en) Image processing method and terminal equipment
CN109327605B (en) Display control method and device and mobile terminal
CN109005377B (en) Video processing method and terminal equipment

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