Summary of the invention
Embodiments provide a kind of dead pixel detection method, electronic equipment and device, existing in order to solve
For problem that the accuracy of the dead pixel detection method of display screen is relatively low in technology.
Its concrete technical scheme is as follows:
A kind of dead pixel detection method, is applied to an electronic equipment, and described method includes:
Obtain the pixel value of the first pixel to be detected, and corresponding extremely with described first pixel to be detected
First pixel value of few two pixels and the second pixel value;
Determine the difference value between described pixel value and described first pixel value and described second pixel value;
Based on described difference value and the relation of the first preset threshold range, determine described first pixel to be detected
Whether it is bad point.
Optionally, respectively obtain the first pixel to be detected pixel value, and with described first picture to be detected
First pixel value of at least two pixel that vegetarian refreshments is corresponding and the second pixel value, including:
Determine first pixel matrix of pixel centered by described first pixel to be detected;
In described first pixel matrix, determine the first reference that described first pixel to be detected is corresponding
Pixel and the second reference image vegetarian refreshments, and obtain first pixel value and of described first reference image vegetarian refreshments
Second pixel value of two reference image vegetarian refreshments.
Optionally, the difference between described pixel value and described first pixel value and described second pixel value is determined
Score value, including:
Obtain the first absolute value of the difference of described pixel value and the first pixel value and described pixel value with described
Second absolute value of the difference of the second pixel value;
Using described first absolute value and described second absolute value sum as described difference value.
Optionally, when determining that described first pixel to be detected is non-bad point, described method also includes:
Obtain the pixel value of eight pixels corresponding to described first pixel to be detected respectively;
Obtain described pixel value respectively with the absolute value of the difference of each pixel value in the pixel value of eight pixels
Sum;
Judge described absolute value and whether be in the second preset threshold range;
If described absolute value and when being not in described second preset threshold range, it is determined that described first treats
Test point is bad point.
Optionally, obtain the pixel value of eight pixels corresponding to described first pixel to be detected respectively, bag
Include:
Determine the second pixel matrix using described first pixel to be detected as central pixel point;
Described second pixel matrix selects with described first pixel to be detected have same color lead to
Eight pixels in road;
Determine the pixel value of each pixel in eight pixels respectively.
A kind of electronic equipment, including:
Detector, for obtain first detection pixel pixel value, and with the first pixel pair to be detected
First pixel value of at least two pixel answered and the second pixel value;
Processor, is connected with described detector, be used for determining described pixel value and described first pixel value and
Difference value between described second pixel value, based on described difference value and the relation of the first preset threshold range,
Determine whether described first pixel to be detected is bad point.
Optionally, described detector, specifically for determining pixel centered by described first pixel to be detected
First pixel matrix of point, in described first pixel matrix, determines described first pixel to be detected
Select the first reference image vegetarian refreshments and the second reference image vegetarian refreshments of correspondence, and obtain described first reference image vegetarian refreshments
First pixel value and the second pixel value of the second reference image vegetarian refreshments.
Optionally, described processor, specifically for obtaining the of the difference of described pixel value and the first pixel value
Second absolute value of the difference of one absolute value and described pixel value and described second pixel value, by described first
Absolute value and described second absolute value sum are as described difference value.
Optionally, described detector, it is additionally operable to obtain eight that described first pixel to be detected is corresponding respectively
The pixel value of pixel;
Described processor, be additionally operable to obtain described pixel value respectively with each picture in the pixel value of eight pixels
Sum of absolute value of the difference of element value, it is determined that described absolute value with whether be in the second preset threshold range,
If described absolute value and when being not in described second preset threshold range, it is determined that described first to be detected
Point is bad point.
Optionally, described detector, specifically for determining using described first pixel to be detected as center
Second pixel matrix of pixel;
Described processor, first to be detected with described specifically for selecting in described second pixel matrix
Pixel has eight pixels of same color passage, determines each pixel in eight pixels respectively
Pixel value.
A kind of bad point detection device, including:
Acquisition module is for obtaining the pixel value of the first pixel to be detected and first to be detected with described
First pixel value of at least two pixel that pixel is corresponding and the second pixel value;
Determine module, be used for determining described pixel value and described first pixel value and described second pixel value it
Between difference value;
Processing module, for based on described difference value and the relation of the first preset threshold range, determines described the
Whether one pixel to be detected is bad point.
A kind of method embodiments providing bad point detection, the method includes: obtain first to be detected
The pixel value of pixel, and the first pixel of at least two pixel corresponding with the first pixel to be detected
Value and the second pixel value, determine the pixel value of the first pixel to be detected and the first pixel value and the second picture
Difference value between element value, based on this difference value and the relation of the first preset threshold range, determines that first is to be checked
Survey whether pixel is bad point.Briefly, in embodiments of the present invention, by the first pixel to be detected
The relation of pixel value of pixel value and other two pixels whether determine this first pixel to be detected
Consistent with other two pixels, thus accurately calculate adjacent picture by relatively simple algorithm
Pixel value between vegetarian refreshments is the most consistent, and then finally determines whether the first pixel to be detected is bad point.
Detailed description of the invention
Least for solving the problem relatively low currently for the accuracy rate of the bad point detection of display screen, the present invention is real
Executing example and provide a kind of method of bad point detection, device and electronic equipment, the method includes: obtain first
The pixel value of pixel to be detected, and the of at least two pixel corresponding with the first pixel to be detected
One pixel value and the second pixel value, determine the pixel value of the first pixel to be detected and the first pixel value and
Difference value between second pixel value, based on this difference value and the relation of the first preset threshold range, determines
Whether one pixel to be detected is bad point.Briefly, in embodiments of the present invention, to be detected by first
The relation of the pixel value of the pixel value of pixel and other two pixels determines this first pixel to be detected
Point is the most consistent with other two pixels, thus is accurately calculated by relatively simple algorithm
Whether the pixel value between neighbor pixel is consistent, and then finally determines that whether the first pixel to be detected is
Bad point.
For above-mentioned technical scheme, it is described in detail below by accompanying drawing and specific embodiment, should
Working as the concrete technical characteristic in understanding, the embodiment of the present invention and embodiment is to technical solution of the present invention
Describe in detail rather than limit, the tool in the case of not conflicting, in the embodiment of the present invention and embodiment
Body technique feature can be mutually combined.
Being illustrated in figure 1 the flow chart of a kind of dead pixel detection method in the embodiment of the present invention, the method includes:
S101, obtains the pixel value of the first pixel to be detected, and corresponding with the first pixel to be detected
First pixel value of at least two pixel and the second pixel value;
Specifically, dead pixel detection method in embodiments of the present invention may apply in an electronic equipment,
This electronic equipment includes a display screen, and this display screen contains multiple pixel, and each pixel is to having
One pixel value, therefore when this display screen is carried out bad point detection, be first accomplished by determining one to be checked
Surveying pixel, this pixel to be detected can be first pixel in the upper left corner of this display screen of system default
O'clock as the first pixel to be detected, the pixel on a position that namely user of this display screen is specified
Point, does not the most limit mode and the method determining the first pixel to be detected, in reality
Application scenarios in can automatically choose according to the demand of user and manually choose.
After determining the first pixel to be detected, this electronic equipment will be by processor or other devices
Obtain the pixel value of the first pixel to be detected, obtain the first pixel to be detected the most not limiting
The mode of pixel value, those skilled in the art determine the first pixel to be detected by known any mode
The mode of the pixel value of point is all in the range of the embodiment of the present invention is comprised.
Determine the first pixel to be detected or determine the first pixel to be detected pixel value it
After, this electronic equipment will determine at least two pixel corresponding with the first pixel to be detected, the two
Pixel specifically determines that mode is as follows:
In embodiments of the present invention, this electronic equipment, by position based on the first pixel to be detected, is determined
First pixel matrix of pixel centered by the first pixel to be detected, in the first pixel matrix,
Determine the first reference image vegetarian refreshments and the second reference image vegetarian refreshments that the first pixel to be detected is corresponding, and obtain
First pixel value of the first reference image vegetarian refreshments and the second pixel value of the second reference image vegetarian refreshments.
Such as, the first pixel matrix of 3 × 3 as shown in Figure 2, at the first pixel shown in Fig. 2
In matrix, pixel B is the first pixel to be detected, it may be assumed that the first pixel to be detected is the first pixel
Central pixel point in matrix.Then centered by pixel B, determine in the first pixel to be detected with
Two adjacent for pixel B pixels, two pixels determined can be two shown in Fig. 3 a pixels
Point, can be two shown in Fig. 3 b pixels, it is also possible to be two shown in Fig. 3 c pixels, also may be used
To be two shown in Fig. 3 d pixels, certainly can also is that other compound mode, in the embodiment of the present invention
In just no longer carry out illustration one by one.
After determining two pixels adjacent with the first pixel to be detected, this electronic equipment will obtain
To the pixel value of two pixels adjacent with the first pixel to be detected, the pixel value of the two pixel
Determine that mode can be consistent with the mode of the pixel value determining the first pixel to be detected, many with regard to not carrying out at this
More than repeat.
The description above is illustrate with the picture element matrix of 3 × 3, this first pixel matrix certainly
Can also is that the pixel matrix of 5 × 5, be just the pixel of 5 × 5 than pixel matrix as shown in Figure 4
Matrix, in this pixel matrix of 5 × 5, the first pixel to be detected is the pixel matrix of 5 × 5
Central pixel point, then this electronic equipment is by determining the pixel adjacent with this central pixel point, now determines
The pixel gone out is 4 pixels, such as determines four shown in Fig. 5 a pixel, or Fig. 5 b
Four shown pixels, or four shown in Fig. 5 c pixel.Briefly, in any pixel
In dot matrix, it may be determined that go out a line with the first pixel to be detected as midpoint, the pixel on this line
Point is all as the neighbor pixel of the first pixel to be detected.
Certainly, in addition to above-mentioned pixel matrix, it is also possible to determine other pixel matrix, such as
Say the pixel matrix of 7 × 7 as the first pixel matrix, or 9 × 9 pixel matrix as
One pixel matrix etc., the most do not limit the type of pixel matrix, should actual
During with, pixel matrix can be adjusted according to the demand of user.And in these pixel matrix
Heart point is all the first pixel to be detected.
S102, determines the difference value between pixel value and the first pixel value and the second pixel value;
After determining the pixel value of at least two pixel that the first pixel to be detected is corresponding, this electronics sets
Standby by pixel value based on the first pixel to be detected and the first pixel value and the second pixel value, determine picture
Difference value between element value and the first pixel value and the second pixel value.
Specifically, the first pixel to be detected and the first pixel value can be obtained in embodiments of the present invention
First absolute value of difference and the second absolute value of the difference of this pixel value and the second pixel value, concrete public affairs
Formula is as follows:
Dh=| B-A |+| B-C |
Wherein, Dh characterizes this difference value, and B characterizes the pixel value of the first pixel to be detected, and A characterizes the
One pixel value, C characterizes the second pixel value.
Above-mentioned formula applies to the pixel matrix of 3 × 3, and can also make for other pixel matrix
Calculate with above-mentioned formula, such as in the pixel matrix of 5 × 5, if contain A, B, C,
Five pixels of D, E, first by between tri-pixels of A, B, the C in calculating 5 × 5 pixel matrix
Difference value, calculate the difference value between tri-pixels of C, D, E the most again.Same reason, for
The formula that the pixel matrix of 7 × 7 and the pixel matrix of 9 × 9 can use calculates.At this
Illustrating the most one by one.
S103, based on difference value and the relation of the first preset threshold range, determines that the first pixel to be detected is
No for bad point.
Obtained by the computing formula in S102 the pixel value of the first pixel to be detected and the first pixel value with
And second after difference value between pixel value, the difference value obtained is preset by this electronic equipment with the first of setting
Threshold range compares judgement, and what decision process here determined is exactly the pixel of the first pixel to be detected
It is worth and the difference between the pixel value of two adjacent pixels, if this difference has been over the model set
Enclosing, namely difference value is more than the first preset threshold range, then the pixel value of the first pixel to be detected is described
Relatively big with the value differences of adjacent two pixels, now the first pixel to be detected is it is determined that be bad
Point.
If the difference between the pixel value of the first pixel to be detected and the pixel value of adjacent two pixels
In the range of setting, namely difference value is less than the first preset threshold range, then explanation the first picture to be detected
The pixel value of vegetarian refreshments is less with the value differences of adjacent two pixels, and now the first pixel to be detected is just
Can be determined that as better.
Specifically illustrating with 3 × 3 matrixes shown in Fig. 3 a, wherein, pixel B is first to be detected
Pixel, pixel A and pixel C are adjacent two pixels, when the pixel calculating pixel B
When being worth the difference value between the pixel value of the pixel value of pixel A and pixel C, if this difference value
More than the first preset threshold range, then the pixel value of pixel B and pixel A and the pixel of pixel C
Value differs greatly, then pixels illustrated point B is bad point;If this difference value is less than the first preset threshold range,
Then the pixel value of pixel B is less with the value differences of pixel A and pixel C, then pixels illustrated
Point B is better.
Although the applicable cases merely illustrated in the above embodiments in 3 × 3 pixel matrix, but on
The mode stated can be applied in 5 × 5 pixel matrix completely, such as, with for example, 5 × 5
In pixel matrix, if containing five pixels of A, B, C, D, E, pixel B is first to treat
Detection pixel, this electronic equipment by first determine the pixel value of pixel B and the pixel value of pixel A with
And and the pixel value of pixel C between difference value, then determine that whether pixel B is bad point, the most again
Further judge the difference value of the pixel value of tri-pixels of B, C, D, if this difference value is more than first
Preset threshold range, then C point is bad point, if this difference value is less than the first preset threshold range, then C
Point, for better, in like manner, can further determine the difference value of the pixel value of tri-pixels of C, D, E,
So may determine that whether D point is bad point.If C, D pixel is all better, and pixel B
And when the difference value between pixel A and pixel C is less than the first preset threshold range, then pixels illustrated
Point B is better.
In embodiments of the present invention, after determining the pixel to be detected needing detection, this electronic equipment
The pixel adjacent by determining pixel to be detected, then obtains the pixel value of pixel to be detected with adjacent
The difference value of the pixel value of pixel, then according to difference value judge pixel to be detected whether as bad point,
It is achieved thereby that be the limit intersexuality of bad point detection, and by the pixel value of relatively pixel to be detected with adjacent
Difference between the pixel value of pixel, can judge that pixel to be detected is whether as bad point more accurately.
Further, the first pixel to be detected being directed on display screen in the above-described embodiment is non-bad
After Dian, in order to further verify whether the first pixel to be detected is bad point, therefore this electronic equipment also will
In the case of twin-channel, further determine whether the non-bad point under single channel detection is bad point, such as Fig. 6
Show bilateral in the case of carry out the method flow diagram of bad point detection:
S601, obtains the pixel value of eight pixels corresponding to the first pixel to be detected respectively;
Specifically, in embodiments of the present invention, in the case of twin-channel, and determining that first treats
In the case of detection pixel, this electronic equipment will be determined by pixel centered by the first pixel to be detected
One the second pixel matrix, this second pixel matrix ordinary circumstance is the pixel matrix of 9 × 9, at this
In 9 × 9 pixel matrix, central point is the first pixel to be detected, such as, the pixel shown in Fig. 7
Matrix is the pixel matrix of 9 × 9, and wherein, pixel P is the first pixel to be detected, treats by first
Detection pixel can determine that have eight pixels of same color passage with the first pixel to be detected,
The P that this eight pixels are in the pixel matrix of 9 × 9-1 ,-1、P-1,0、P-1,1、P0 ,-1、P-1,1、P1, -1、P1,0、P1,1Pixel is to have eight pixels of same color passage with P pixel.
After determining eight pixels corresponding with the first pixel to be detected, this electronic equipment will obtain
The pixel value of these eight pixels.
S602, obtain pixel value respectively with the difference of each pixel value absolute in the pixel value of eight pixels
The sum of value;
Get at electronic equipment and be in eight pixels of same color passage with first pixel to be detected
After pixel value, this electronic equipment will obtain pixel value and one of them pixel of the first pixel to be detected
Pixel value between the absolute value of difference, obtain the most successively the pixel value of the first pixel to be detected and its
The absolute value of the difference between the pixel value of his each pixel, is calculated the sum of each absolute value the most again.
Specifically, the sum of this absolute value is just calculated by formula below:
di,j=∑ | Pi,j-P |, i, j=-1,0,1, &i ≠ 0, j ≠ 0
Wherein, di,jCharacterize the sum of absolute value, Pi,jCharacterize and the pixel value of the first pixel to be detected, P
Characterize the pixel value of the first pixel to be detected.
S603, it is determined that absolute value and whether be in the second preset threshold range;
S604, if absolute value and when being not in the second preset threshold range, it is determined that the first measuring point to be checked
For bad point.
It is to say, this absolute value and illustrate the pixel value of the first pixel to be detected and other eight pictures
Difference between the pixel value of vegetarian refreshments, and difference in this second preset threshold range time, then illustrate this
One pixel to be detected is better, if this difference is not in the second preset threshold range, then illustrates first
Pixel to be detected has occurred that change, is now assured that the first pixel to be detected is bad point.
Come really by the difference of the pixel value of eight above-mentioned pixels and the pixel value of the first pixel to be detected
Whether fixed first pixel to be detected is bad point, can be determined more accurately the first pixel to be detected whether with
The pixel value of the pixel of same Color Channel there are differences, thus it is to be detected to be determined more accurately out first
Whether pixel is bad point.
Needing exist for explanation, the first pixel to be detected in step S601-S604 can be
The first pixel to be detected described in S101-S103, it is also possible to be other pixels on display screen, here
Be not limit the two pixel must be same pixel.
Further, illustration in the above-described embodiments is provided to be described in detail technical scheme,
It is not parameter or the executive mode limiting actual product, can be based on above-mentioned in actual products application
Parameter or executive mode in embodiment are adjusted.
It addition, also, it should be noted in embodiments of the present invention, this electronic equipment can also be directly double
In the case of passage, the first pixel to be detected is detected, say, that this electronic equipment can be by bilateral
The detection process in road is as independent detection process, time so so that single channel detects fault, it is ensured that bad
Point detection real-time and accuracy.
In embodiments of the present invention, additionally provide a kind of electronic equipment, be illustrated in figure 8 the embodiment of the present invention
The structural representation of middle a kind of electronic equipment, this electronic equipment includes:
Detector 801, for obtain first detection pixel pixel value, and with the first pixel to be detected
First pixel value of corresponding at least two pixel and the second pixel value;
Processor 802, is connected with described detector 801, is used for determining described pixel value and described first pixel
Difference value between value and described second pixel value, based on described difference value and the first preset threshold range
Relation, determines whether described first pixel to be detected is bad point.
Further, the detector 801 in this electronic equipment, specifically for determining with described first pixel to be detected
First pixel matrix of pixel centered by Dian, in described first pixel matrix, determines described
The first reference image vegetarian refreshments that one pixel to be detected is corresponding and the second reference image vegetarian refreshments, and obtain described first
First pixel value of reference image vegetarian refreshments and the second pixel value of the second reference image vegetarian refreshments.
Further, the processor 802 in this electronic equipment, specifically for obtaining described pixel value and the first pixel
First absolute value and the described pixel value of the difference of value are absolute with the second of the difference of described second pixel value
Value, will described first absolute value and described second absolute value sum as described difference value.
Further, the detector 801 in this electronic equipment, it is additionally operable to obtain described first pixel to be detected respectively
The pixel value of eight pixels that point is corresponding;
Processor 802 in this electronic equipment, be additionally operable to obtain described pixel value respectively with the picture of eight pixels
Sum of absolute value of the difference of each pixel value in element value, it is determined that described absolute value with whether to be in second pre-
If in threshold range, if described absolute value and when being not in described second preset threshold range, it is determined that
Described first measuring point to be checked is bad point.
Further, the detector 801 in this electronic equipment, specifically for determining with described first picture to be detected
Vegetarian refreshments is as the second pixel matrix of central pixel point;
Processor 802 in this electronic equipment, specifically for selecting and institute in described second pixel matrix
State the first pixel to be detected and there are eight pixels of same color passage, determine respectively in eight pixels
The pixel value of each pixel.
It addition, in embodiments of the present invention, additionally providing a kind of bad point detection device, this device includes:
Acquisition module is for obtaining the pixel value of the first pixel to be detected and first to be detected with described
First pixel value of at least two pixel that pixel is corresponding and the second pixel value;
Determine module, be used for determining described pixel value and described first pixel value and described second pixel value it
Between difference value;
Processing module, for based on described difference value and the relation of the first preset threshold range, determines described the
Whether one pixel to be detected is bad point.
Although having been described for the preferred embodiment of the application, but one of ordinary skilled in the art once learning
Basic creative concept, then can make other change and amendment to these embodiments.So, appended power
Profit requires to be intended to be construed to include preferred embodiment and fall into all changes and the amendment of the application scope.
Obviously, those skilled in the art can carry out various change and modification without deviating from this Shen to the application
Spirit and scope please.So, if the application these amendment and modification belong to the application claim and
Within the scope of its equivalent technologies, then the application is also intended to comprise these change and modification.