CN107948392A - Terminal and display fault handling method - Google Patents
Terminal and display fault handling method Download PDFInfo
- Publication number
- CN107948392A CN107948392A CN201610892571.XA CN201610892571A CN107948392A CN 107948392 A CN107948392 A CN 107948392A CN 201610892571 A CN201610892571 A CN 201610892571A CN 107948392 A CN107948392 A CN 107948392A
- Authority
- CN
- China
- Prior art keywords
- color
- fault
- crack
- terminal
- screen
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 32
- 230000008439 repair process Effects 0.000 claims description 57
- 239000003086 colorant Substances 0.000 claims description 28
- 230000002093 peripheral effect Effects 0.000 claims 1
- 230000000694 effects Effects 0.000 abstract description 7
- 230000008447 perception Effects 0.000 abstract description 3
- 208000037656 Respiratory Sounds Diseases 0.000 abstract 2
- 230000003287 optical effect Effects 0.000 description 21
- 238000012545 processing Methods 0.000 description 17
- 238000001514 detection method Methods 0.000 description 16
- 230000006698 induction Effects 0.000 description 13
- 238000005286 illumination Methods 0.000 description 9
- 238000003672 processing method Methods 0.000 description 9
- 238000010586 diagram Methods 0.000 description 6
- 230000008569 process Effects 0.000 description 6
- 238000004891 communication Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000003796 beauty Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 239000011521 glass Substances 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
- 230000016776 visual perception Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
Landscapes
- Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Telephone Function (AREA)
Abstract
The present invention provides a kind of terminal and display fault handling method, wherein, this method includes:Terminal deposits the color of elemental area accounting maximum in the background color currently shown in the surrounding's preset range for obtaining the designated position in the case of a fault in the designated position of display screen, using the color of accounting maximum as reparation color;By the specified location of light emitting corresponding with the reparation color to the display screen.Using above-mentioned technical proposal, solve the problems, such as that the display effect when failure is not good enough there are crackle for terminal screen in correlation technique, alleviates crackle or concave influence, improves user's perception.
Description
Technical Field
The invention relates to the field of communication, in particular to a terminal and a display fault processing method.
Background
With the continuous development of communication technology, more and more mobile phone users are provided, and users often drop mobile phones to the ground due to carelessness in the process of using the mobile phones, and the screens may crack in a slight case and may be broken to cause the mobile phones not to be used in a severe case. When the screen has small cracks, the user generally does not need to replace the screen because the normal use of the user is not influenced and the cost for repairing the screen is high. But the cracks can affect the use beauty and the user impression when in use.
Aiming at the problem that in the related art, when the terminal screen has faults such as cracks, the display effect is poor, no effective solution is provided at present.
Disclosure of Invention
The embodiment of the invention provides a terminal and a display fault processing method, which are used for at least solving the problem of poor display effect when faults such as cracks exist in a terminal screen in the related art.
According to an embodiment of the present invention, there is provided a terminal including: a display screen and a processor; the processor is used for acquiring a color with the largest pixel area ratio in currently displayed background colors within a preset range around a specified position under the condition that the specified position of the display screen has a fault, and taking the color with the largest ratio as a repair color; and emits light corresponding to the repair color at a designated position of the display screen.
Optionally, the processor is further configured to detect a distance between a current upper surface of the designated location and a surface of the display screen, and determine that a fault exists in the designated location if the distance is not 0.
Optionally, the processor is further configured to, after determining that there is a fault in the specified location, obtain fault information of the fault and store the fault information, where the fault information includes at least one of: fault length, fault width, fault depth, fault location.
Optionally, the processor is further configured to acquire the failure information, and emit light corresponding to the repair color to a specified position of the display screen according to the failure information.
Optionally, the predetermined surrounding range is an area formed by taking the designated position as a center and taking a predetermined distance as a radius.
Optionally, the fault comprises one of: cracks in the screen, depressions in the screen.
Optionally, the processor is further configured to determine the repair color by one of: in the case that the fault is a spot with a length smaller than a preset value, the processor determines that the color with the largest pixel area ratio in the currently displayed background colors in the preset range around the spot is a repair color; in the case where the fault is a crack having a length greater than or equal to a predetermined value, the processor determines a color having a largest pixel area ratio among currently displayed background colors on both sides of the crack as a repair color.
According to another embodiment of the present invention, there is also provided a display failure processing method, including: the method comprises the steps that under the condition that a fault exists at a specified position of a display screen, a color with the largest pixel area ratio in currently displayed background colors within a preset range around the specified position is obtained by a terminal, and the color with the largest ratio is used as a repair color; light corresponding to the repair color is emitted at a specified location of the display screen.
Optionally, the terminal detects whether there is a fault in the designated location by: and the terminal detects the distance between the current upper surface of the specified position and the surface of the display screen, and determines that the specified position has a fault under the condition that the distance is not 0.
Optionally, after determining that there is a fault at the specified location, the method further comprises: acquiring and storing fault information of the fault, wherein the fault information comprises at least one of the following: fault length, fault width, fault depth, fault location.
Optionally, the fault comprises one of: cracks in the screen, depressions in the screen.
Optionally, acquiring a color with the largest pixel area ratio in the currently displayed background color within a predetermined range around the specified position, and taking the color with the largest ratio as a repair color, including one of: in the case that the fault is a spot with a length smaller than a preset value, the processor determines that the color with the largest pixel area ratio in the currently displayed background colors in the preset range around the spot is a repair color; in the case where the fault is a crack having a length greater than or equal to a predetermined value, the processor determines a color having a largest pixel area ratio among currently displayed background colors on both sides of the crack as a repair color.
According to still another embodiment of the present invention, there is also provided a storage medium. The storage medium is configured to store program code for performing the steps of:
the method comprises the steps that under the condition that a fault exists at a specified position of a display screen, a color with the largest pixel area ratio in currently displayed background colors within a preset range around the specified position is obtained by a terminal, and the color with the largest ratio is used as a repair color;
light corresponding to the repair color is emitted at a specified location of the display screen.
According to the technical scheme, under the condition that a display screen of the terminal has a fault, such as a crack or a recess, the terminal acquires the background color displayed nearby the crack in time, the color with the largest background color occupation area is selected as the repair color, and the light corresponding to the repair color is emitted to the position where the fault occurs, namely the crack or the recess, so that the fault presents the color same as the background color, the problem that the display effect is poor when the terminal screen has the faults such as the crack in the related art is solved, the influence of the crack or the recess is relieved, and the user impression is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a block diagram of a terminal according to an embodiment of the present invention;
FIG. 2 is a schematic flow diagram of a crack induction processing method according to a preferred embodiment of the invention;
FIG. 3 is a first schematic view of a crack according to a preferred embodiment of the present invention;
FIG. 4 is a second schematic view of a crack according to a preferred embodiment of the invention;
FIG. 5 is a schematic view of automatic crack repair according to a preferred embodiment of the present invention;
FIG. 6 is a flow chart of a crack sensing processing method for a mobile phone screen according to a preferred embodiment of the invention;
fig. 7 is a flowchart of a display failure handling method according to an embodiment of the present invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
Example 1
According to an embodiment of the present invention, there is provided a terminal, and fig. 1 is a block diagram of a terminal according to an embodiment of the present invention, as shown in fig. 1, the terminal 10 includes: a display screen 102, a processor 104, an optical processor 106; wherein,
the processor 104 is configured to, when there is a fault at a specified position of the display screen, obtain a color with a largest pixel area ratio among currently displayed background colors within a predetermined range around the specified position, and use the color with the largest pixel area ratio as a repair color; it should be noted that the failure in this document refers to a physical defect of the screen during the display process, such as a crack, a dent, a scratch, etc. on the screen.
The optical processor 106 is configured to emit light corresponding to the repair color at a specified location on the display screen. It should be noted that the processor may include an optical processor, and in this embodiment, the optical processor may perform the task of emitting light. It should be added that the specified position of the display screen described in this document may refer to a position of the uppermost layer of the terminal corresponding to the display screen, that is, a touch screen may be further disposed above the display screen of the terminal in the related art, and a crack is directly formed on the touch screen.
According to the technical scheme, under the condition that a display screen of the terminal has a fault, such as a crack or a recess, the terminal acquires the background color displayed nearby the crack in time, the color with the largest background color occupation area is selected as the repair color, and the light corresponding to the repair color is emitted to the position where the fault occurs, namely the crack or the recess, so that the fault presents the color same as the background color, the problem that the display effect is poor when the terminal screen has the faults such as the crack in the related art is solved, the influence of the crack or the recess is relieved, and the user impression is improved.
Optionally, the processor 104 is further configured to detect a distance between the current top surface of the designated location and the surface of the display screen, and determine that there is a fault in the designated location if the distance is not 0. The surface of the display screen is the plane of the uppermost layer of the display screen when the terminal leaves the factory, but when cracks or depressions and scratches appear on the screen, the upper surface of the position has a depth distance with the surface of the display screen when the terminal leaves the factory, and the terminal can detect the designated position with a fault according to the depth distance.
Optionally, the processor 104 is further configured to, after determining that there is a fault at the specified location, obtain fault information of the fault and store the fault information, where the fault information includes at least one of: fault length, fault width, fault depth, fault location. When the fault is that the screen has cracks, the fault information corresponds to the crack length, the crack width, the crack depth and the crack position; when the fault is that the screen is sunken, the fault information comprises the depth of the sunken part, the width of the sunken part, the length of the sunken part and the position of the sunken part. It should be added that the fault location refers to a location of the fault on the terminal screen, and may be a coordinate system established on the terminal screen, and a coordinate location on the terminal screen is convenient for the optical processor to find the fault.
Optionally, the optical processor 106 is further configured to obtain the failure information, and emit light corresponding to the repair color to a specified position of the display screen according to the failure information.
Optionally, the predetermined surrounding range is an area formed by taking the designated position as a center and taking a predetermined distance as a radius. It should be noted that the predetermined range around the color image is intended to emphasize one circle around the designated position, that is, one circle around the designated position, and the color with the largest pixel area occupied by the color in the one circle is selected as the repair color.
Optionally, the processor 104 is further configured to determine the repair color by one of:
in the case where the failure is a blob whose length is smaller than a predetermined value, the processor 104 determines that a color with the largest pixel area ratio among currently displayed background colors within a predetermined range around the blob is a repair color;
in the case where the fault is a crack having a length greater than or equal to a predetermined value, the processor 104 determines a color with the largest pixel area ratio among the currently displayed background colors on both sides of the crack as a repair color.
The following detailed description will proceed with reference being made to the preferred embodiments of the invention
The invention discloses a mobile phone screen crack induction processing system device in the preferred embodiment, which mainly comprises a crack detection device, a crack surrounding background color detection module, a color adjustment and optical processing module and a crack automatic repair module. Before crack repair is carried out, a crack repair switch is required to be opened in the mobile phone setting.
The crack detection device is mainly used for detecting and identifying cracks on the current mobile phone screen, and after the crack repair switch is turned on, automatic detection scanning is firstly carried out on the mobile phone screen, so that the smoothness of the mobile phone screen is mainly detected, and whether cracks, depressions and the like exist. Presetting the depth value of the horizontal surface of the mobile phone as a reference value 0, calculating the depth value of each pixel point on the screen from the horizontal surface during detection, and detecting the depth value in the detection sequence from top to bottom through the mobile phone screen when the depth value is calculated. And when the depth value is larger than 0, judging that the position has crack information. When the mobile phone has cracks, the crack information is stored, wherein the crack information comprises the length of the cracks, the width of the cracks and the depth of the cracks. And if a plurality of cracks exist in the current mobile phone screen, storing the plurality of cracks in sequence. Such as: crack 1, crack 2, crack 3, etc. The detected cracks are all stored in a crack database.
The device for detecting the background color around the crack acquires the color information around the crack according to the position of the acquired crack information on the mobile phone screen, firstly, reads the length and width information of the crack, carries out color detection by dividing the crack information into two types, and detects the color information of the mobile phone screen from 0 degree to 360 degrees around the crack if the crack is a small spot. If the length or the width of the crack is larger than 1mm, the color information of the mobile phone screen is stored according to the upper part, the lower part or the left part and the right part of the screen.
The color adjusting and optical processing module is used for optically processing the cracks according to the colors around the cracks detected by the color detection device, judging the colors around the cracks to be larger if the cracks are small spots, and storing RGB values of the colors; if the crack length or width is long, the color of one side (up and down or left and right) of the crack is determined, and the RGB value is stored. The color of the crack was adjusted to the same color as the color of the side of the crack. The optical adjustment processor emits the light of the color to the crack on the screen of the mobile phone according to the size of the crack stored in the crack database, so that the crack is consistent with the illumination of the current background.
The automatic crack repairing module is mainly used for automatically detecting surrounding colors of cracks when a mobile phone switches screens and switches to a new screen, so that the cracks are optically adjusted according to the colors, and the cracks show light of the colors around the cracks in each mobile phone screen.
In the preferred embodiment of the present invention, a mobile phone screen crack induction processing system is described, when a crack occurs in a mobile phone when a user uses the mobile phone, the crack can be subsequently induced by turning on a crack repair processing switch in the mobile phone setting, and the subsequent use specifically includes the following steps:
the first step is as follows: and after a crack repairing switch is started, entering a certain screen interface of the mobile phone, automatically detecting screen crack information, and storing the screen crack information in a database.
The second step is that: and detecting color information around the position of the crack according to the size of the crack, and storing the color information according to the RGB value.
The third step: and the optical adjustment processor emits the light of the color to the crack at the screen of the mobile phone according to the calculated color with larger color, so that the color of the crack after optical adjustment is the same as that of the background where the crack is located currently. If the mobile phone screen has a plurality of cracks, the adjustment is carried out in sequence.
The fourth step: after the illumination of the current screen crack is successfully adjusted, when the subsequent mobile phone screen is switched, the color information around the crack can be automatically detected, the color information is stored, and the color information is transmitted to the crack on the mobile phone screen through the illumination processor. And cracks are displayed as the color of the current background when the mobile phone screen is switched repeatedly.
The invention provides a mobile phone screen crack induction processing system and a mobile phone screen crack induction processing device, which are mainly used for carrying out induction processing on mobile phone cracks and the like. Fig. 2 is a schematic flow diagram of a crack induction processing method according to a preferred embodiment of the present invention, as shown in fig. 2, the method comprising the steps of:
step S201: detecting and identifying cracks on a mobile phone screen;
step S202: detecting the color around the crack;
step S203: optical adjustment and crack repair;
step S204: and (5) automatically repairing cracks.
The steps of FIG. 2 are described below in several examples.
Embodiment of mobile phone screen crack detection and identification module method recorded in step S201
The mobile phone setting menu comprises a screen crack repairing switch, the switch needs to be started before the implementation of the method, and after the switch is started, the background processor transmits a detection instruction to the mobile phone screen to detect the smoothness and integrity of the mobile phone screen. The method comprises the steps of presetting a default reference value of the surface of a mobile phone screen in a background processor, setting the default reference value of a horizontal plane to be 0, then sending a detection instruction to calculate the depth value of each pixel point on the screen from the horizontal plane, and when the depth value is larger than 0, indicating that the position and the horizontal plane are not on the same plane, namely, cracks or depressions exist. When a pixel point is detected to have cracks or depressions, detection instructions are transmitted to the pixel points around the pixel point to calculate the depth value of the pixel point, and therefore the final length, width and depth information of the cracks is obtained. After the surface of the mobile phone screen is detected, crack information of the obtained cracks, namely crack length, crack width and crack depth are stored in a crack database, crack [ i ] = { L [ i ], W [ i ], D [ i ] } is stored in the following mode, and if a plurality of cracks exist, the crack information is sequentially stored.
Embodiment of the crack periphery color detection module method described in step S202
After the mobile phone screen crack information is obtained, the color around the position of the crack needs to be detected, so that the color information around the crack is obtained. The detection is performed in several cases, and fig. 3 is a schematic diagram of a crack according to a preferred embodiment of the present invention, as shown in fig. 3, the crack is relatively small and has a similar size and spot size (it should be noted that the crack in fig. 3 is a small point).
And under the condition that the crack is small, acquiring Color information around the crack, storing the RGB values into a Color database, numbering according to the crack serial number, wherein Color [1] [ j ] ═ { R [ j ], G [ j ], B [ j ] } represents the RGB value of the jth Color of the first crack. At the moment, the Area size of a pixel point Area [1] [ j ] distributed on the mobile phone screen of each color is calculated, and the color RGB values are sequenced according to the pixel Area size sequence to Array { Area [1] [ j ] }.
Fig. 4 is a schematic diagram of a crack according to a preferred embodiment of the present invention, and as shown in fig. 4, the crack is relatively large and is in the shape of a line, and at this time, the crack is processed according to the angle between the crack and the mobile phone screen. And (3) distinguishing the cracks from the mobile phone in the horizontal direction at 0-90 degrees, 270-360 degrees according to the up-down direction, and distinguishing the cracks from the mobile phone in the horizontal direction at 90-270 degrees according to the left-right direction, and respectively detecting the Color [ i ] [ j ] of the Color distribution of the cracks up and down (left and right), namely the jth Color value around the ith crack. The Area [ i ] [ j ] is calculated from both sides, respectively.
If the Area [ i ] [ j ] on one side of the crack is a value, storing the Color [ i ] [ j ] corresponding to the Area [ i ] [ j ] in the database. If the Area [ i ] [ j ] calculated on one side of the crack is a plurality of values, a plurality of colors [ i ] [ j ] corresponding to the Area [ i ] [ j ] are all stored.
Embodiment of optical adjustment and crack repair described in step S203
The Color database stores a Color [ i ] [ j ] of a pixel Area around the crack less than Max { Area [ i ] [ j ] }, and assigns the Color to a Color light [ i ] in the illumination processor.
Namely light [ i ] ═ Color [ Max { Area [ i ] [ j ] }. The optical processor transmits light [ i ] to the cell phone screen according to the location of the crack [ i ]. The optical induction to the cracks is the same as the color with larger four-around occupation, and if a plurality of cracks exist on the screen of the mobile phone, the optical processor processes the cracks on the screen in sequence.
Embodiment of automatic crack repair in step S204
After the current screen performs optical processing on the cracks, when the mobile phone screen is switched, the color detection module around the cracks and the optical adjustment and crack repair module can be automatically called, firstly, the color with the largest pixel area occupation ratio around the cracks is detected according to the positions of the cracks, the color is stored in the color database, and secondly, the optical processor emits light with the color to the cracks of the mobile phone screen according to the crack information stored in the crack database. The light of the current background color is displayed at the crack, and when the subsequent mobile phone screen is repeatedly switched, the cracks on the screen can be automatically repaired. Fig. 5 is a schematic view of automatic crack repair according to a preferred embodiment of the present invention, and as shown in fig. 5, the automatic crack repair step includes the aforementioned steps of detecting color around cracks and optically adjusting and repairing cracks.
According to the mobile phone screen crack induction processing system and device provided by the preferred embodiment of the invention, the cracks on the mobile phone screen are detected, and the illumination processor performs illumination processing on the cracks according to the colors around the cracks, so that the user perception is improved.
Fig. 6 is a schematic flow chart of a crack induction processing method for a mobile phone screen according to a preferred embodiment of the present invention, and as shown in fig. 6, a detailed flow chart of a method for repairing a crack on a mobile phone screen in the preferred embodiment is shown, it is to be added that after a crack is repaired once, a background color of the mobile phone screen changes, and at this time, a new round of flow for collecting color information around the crack is triggered by sliding the mobile phone, so as to execute a subsequent repairing step.
Compared with the related technology, the mobile phone crack repairing mainly replaces the mobile phone screen glass or sticks a mobile phone film with a special function, thereby achieving the effect of repairing cracks. The preferred embodiment of the invention mainly aims at the cracks of the mobile phone screen to carry out induction processing, and when the cracks exist on the mobile phone screen, a user can carry out illumination repair on the cracks according to the colors around the cracks. And the intuitive feeling of the user on the screen cracks is improved.
By adopting the mobile phone screen crack induction processing system and the mobile phone screen crack induction processing device provided by the preferred embodiment of the invention, when a crack appears in the process of using the mobile phone by a user, the mobile phone can automatically detect the crack and optically process the crack according to the color around the crack. The color of the crack and the color of the position where the crack is located are kept consistent, when the mobile phone screen is switched, the crack can automatically perform surrounding color detection and perform illumination processing on the crack, so that the crack is not easy to be found by a user, the normal use of the user is not influenced, and the perception of the user is improved. In addition, the problem that the local display of the screen of the mobile phone is unclear under the condition of various light irradiation can appear in the process of using the mobile phone by the current user, and the illumination processing can be carried out on the position where the local display is unclear by acquiring the color of the better light on the screen when the problem occurs, so that the visual perception of the user is improved.
Example 2
Fig. 7 is a flowchart of a display failure processing method according to an embodiment of the present invention, as shown in fig. 7, including the following steps:
step S702, the terminal acquires the color with the largest pixel area ratio in the currently displayed background color within the preset range around the appointed position under the condition that the appointed position of the display screen has a fault, and takes the color with the largest ratio as a repair color;
step S704, light corresponding to the repair color is emitted to a designated position of the display screen.
According to the technical scheme, under the condition that a display screen of the terminal has a fault, such as a crack or a recess, the terminal acquires the background color displayed nearby the crack in time, the color with the largest background color occupation area is selected as the repair color, and the light corresponding to the repair color is emitted to the position where the fault occurs, namely the crack or the recess, so that the fault presents the color same as the background color, the problem that the display effect is poor when the terminal screen has the faults such as the crack in the related art is solved, the influence of the crack or the recess is relieved, and the user impression is improved.
Optionally, the terminal detects whether there is a failure in the designated location by:
the terminal detects the distance between the current upper surface of the designated position and the surface of the display screen, and determines that a fault exists in the designated position when the distance is not 0.
Optionally, after determining that there is a fault at the specified location, the method further comprises:
acquiring and storing fault information of the fault, wherein the fault information comprises at least one of the following: fault length, fault width, fault depth, fault location.
Optionally, the fault comprises one of: cracks in the screen, depressions in the screen.
Optionally, acquiring a color with the largest pixel area ratio in the currently displayed background color within a predetermined range around the specified position, and taking the color with the largest ratio as a repair color, including one of:
in the case that the fault is a spot of which the length is smaller than a preset value, the processor determines that the color with the largest pixel area ratio in the currently displayed background colors in a preset range around the spot is a repair color;
in the case where the failure is a crack having a length greater than or equal to a predetermined value, the processor determines a color having a largest pixel area ratio among currently displayed background colors on both sides of the crack as a repair color.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. 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 (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
Example 3
The embodiment of the invention also provides a storage medium. Alternatively, in the present embodiment, the storage medium may be configured to store program codes for performing the following steps:
s1, when the specified position of the display screen has a fault, the terminal acquires the color with the largest pixel area ratio in the currently displayed background color within the preset range around the specified position, and takes the color with the largest ratio as a repair color;
s2, emitting light corresponding to the repair color to a designated position of the display screen.
Optionally, in this embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Optionally, in this embodiment, the processor executes the method steps in the above embodiments according to program codes stored in the storage medium.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (12)
1. A terminal, comprising: a display screen and a processor; wherein,
the processor is used for acquiring a color with the largest pixel area ratio in currently displayed background colors within a preset range around the specified position under the condition that the specified position of the display screen has a fault, and taking the color with the largest ratio as a repair color;
and emits light corresponding to the repair color at a designated position of the display screen.
2. The terminal of claim 1, wherein the processor is further configured to detect a distance between a current top surface of the designated location of the display screen and a surface of the display screen, and determine that there is a fault in the designated location if the distance is not 0.
3. The terminal of claim 2, wherein the processor is further configured to, after determining that a fault exists at the specified location, obtain and store fault information of the fault, wherein the fault information includes at least one of: fault length, fault width, fault depth, fault location.
4. The terminal of claim 3, wherein the processor is further configured to obtain the failure information, and to emit light corresponding to the repair color to a specified position of the display screen according to the failure information.
5. The terminal according to claim 1, wherein the peripheral predetermined range is an area formed with a predetermined distance as a radius with the designated position as a center.
6. The terminal of claim 1, wherein the fault comprises one of: cracks in the screen, depressions in the screen.
7. The terminal of any of claims 1 to 6, wherein the processor is further configured to determine the repair color by one of:
in the case that the fault is a spot with a length smaller than a preset value, the processor determines that the color with the largest pixel area ratio in the currently displayed background colors in the preset range around the spot is a repair color;
in the case where the fault is a crack having a length greater than or equal to a predetermined value, the processor determines a color having a largest pixel area ratio among currently displayed background colors on both sides of the crack as a repair color.
8. A display failure handling method, comprising:
the method comprises the steps that under the condition that a fault exists at a specified position of a display screen, a color with the largest pixel area ratio in currently displayed background colors within a preset range around the specified position is obtained by a terminal, and the color with the largest ratio is used as a repair color;
light corresponding to the repair color is emitted at a specified location of the display screen.
9. The method according to claim 8, wherein the terminal detects whether there is a failure in the designated location by:
and the terminal detects the distance between the current upper surface of the specified position and the surface of the display screen, and determines that the specified position has a fault under the condition that the distance is not 0.
10. The method of claim 9, wherein after determining that the designated location has failed, the method further comprises:
acquiring and storing fault information of the fault, wherein the fault information comprises at least one of the following: fault length, fault width, fault depth, fault location.
11. The method of claim 8, wherein the fault comprises one of: cracks in the screen, depressions in the screen.
12. The method according to any one of claims 8 to 11, wherein the color with the largest pixel area ratio among currently displayed background colors within a predetermined range around the specified position is acquired, and the color with the largest pixel area ratio is taken as a repair color, and the method includes one of the following steps:
in the case that the fault is a spot with a length smaller than a preset value, the processor determines that the color with the largest pixel area ratio in the currently displayed background colors in the preset range around the spot is a repair color;
in the case where the fault is a crack having a length greater than or equal to a predetermined value, the processor determines a color having a largest pixel area ratio among currently displayed background colors on both sides of the crack as a repair color.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610892571.XA CN107948392B (en) | 2016-10-12 | 2016-10-12 | Terminal and display fault processing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610892571.XA CN107948392B (en) | 2016-10-12 | 2016-10-12 | Terminal and display fault processing method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107948392A true CN107948392A (en) | 2018-04-20 |
CN107948392B CN107948392B (en) | 2021-02-19 |
Family
ID=61928914
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610892571.XA Active CN107948392B (en) | 2016-10-12 | 2016-10-12 | Terminal and display fault processing method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107948392B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109254815A (en) * | 2018-08-21 | 2019-01-22 | 奇酷互联网络科技(深圳)有限公司 | Display methods, mobile terminal and the storage medium of display interface |
CN109389952A (en) * | 2017-08-04 | 2019-02-26 | 中兴通讯股份有限公司 | A kind of method, device and mobile terminal of screen crack forming mechanism |
CN110099172A (en) * | 2019-04-28 | 2019-08-06 | 维沃移动通信有限公司 | A kind of screen wallpaper recommended method and terminal |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1581279A (en) * | 2003-08-12 | 2005-02-16 | 仁宝电脑工业股份有限公司 | Apparatus and method for correcting bad point for liquid crystal display device |
CN103531140A (en) * | 2013-10-18 | 2014-01-22 | Tcl通讯(宁波)有限公司 | Mobile terminal and method and system for repairing LCD (liquid crystal display) defective pixels |
CN105023522A (en) * | 2015-06-01 | 2015-11-04 | 友达光电股份有限公司 | Display panel and repairing method thereof |
CN105611196A (en) * | 2015-12-18 | 2016-05-25 | 广东欧珀移动通信有限公司 | Image defective pixel compensation method and device and terminal device |
CN105630643A (en) * | 2015-08-26 | 2016-06-01 | 宇龙计算机通信科技(深圳)有限公司 | Screen display method, screen display apparatus and terminal |
-
2016
- 2016-10-12 CN CN201610892571.XA patent/CN107948392B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1581279A (en) * | 2003-08-12 | 2005-02-16 | 仁宝电脑工业股份有限公司 | Apparatus and method for correcting bad point for liquid crystal display device |
CN103531140A (en) * | 2013-10-18 | 2014-01-22 | Tcl通讯(宁波)有限公司 | Mobile terminal and method and system for repairing LCD (liquid crystal display) defective pixels |
CN105023522A (en) * | 2015-06-01 | 2015-11-04 | 友达光电股份有限公司 | Display panel and repairing method thereof |
CN105630643A (en) * | 2015-08-26 | 2016-06-01 | 宇龙计算机通信科技(深圳)有限公司 | Screen display method, screen display apparatus and terminal |
CN105611196A (en) * | 2015-12-18 | 2016-05-25 | 广东欧珀移动通信有限公司 | Image defective pixel compensation method and device and terminal device |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109389952A (en) * | 2017-08-04 | 2019-02-26 | 中兴通讯股份有限公司 | A kind of method, device and mobile terminal of screen crack forming mechanism |
CN109254815A (en) * | 2018-08-21 | 2019-01-22 | 奇酷互联网络科技(深圳)有限公司 | Display methods, mobile terminal and the storage medium of display interface |
CN110099172A (en) * | 2019-04-28 | 2019-08-06 | 维沃移动通信有限公司 | A kind of screen wallpaper recommended method and terminal |
CN110099172B (en) * | 2019-04-28 | 2021-12-28 | 维沃移动通信有限公司 | Screen wallpaper recommendation method and terminal |
Also Published As
Publication number | Publication date |
---|---|
CN107948392B (en) | 2021-02-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109142366B (en) | Spherical shell defect detection method and device and computer readable storage medium | |
CN105335963B (en) | A kind of edge defect detection algorithm and device | |
US10122888B2 (en) | Information processing system, terminal device and method of controlling display of secure data using augmented reality | |
CN105453153B (en) | Traffic lights detects | |
US20210264210A1 (en) | Learning data collection device, learning data collection system, and learning data collection method | |
CN103189899B (en) | Object display apparatus and object displaying method | |
CN107948392B (en) | Terminal and display fault processing method | |
CN107067536B (en) | A kind of image boundary determines method, apparatus, equipment and storage medium | |
CN109800654B (en) | Vehicle-mounted camera detection processing method and device and vehicle | |
US20140050387A1 (en) | System and Method for Machine Vision Inspection | |
EP3843036A1 (en) | Sample labeling method and device, and damage category identification method and device | |
CN110199317A (en) | Automatic detection, counting and measurement using handheld device to plank | |
CN112634173A (en) | Curved surface screen image correction method and system | |
US9679386B2 (en) | Image processing device capable of segmenting an image into plural areas | |
CN103852034B (en) | A kind of method for measuring perendicular | |
CN110287892A (en) | Vacancy recognition methods and device | |
CN116503388A (en) | Defect detection method, device and storage medium | |
CN109976615A (en) | Fingerprint image processing method and relevant apparatus | |
CN103034833A (en) | Bar code positioning method and bar code detection device | |
US20130259384A1 (en) | Apparatus and method for recognizing hand shape using finger pattern | |
CN101681510A (en) | Registering device, checking device, program, and data structure | |
CN109146834A (en) | Car damage identification method and device, computer readable storage medium, terminal | |
CN109840453B (en) | Face matching method and device | |
CN107729839B (en) | Method and device for identifying on-off state of pull-plug switch of protection pressing plate | |
CN112513871A (en) | Calibration method and device for optical fingerprint identification and electronic 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 |