CN111862018B - Pixel detection method and detection device of display screen - Google Patents

Pixel detection method and detection device of display screen Download PDF

Info

Publication number
CN111862018B
CN111862018B CN202010661227.6A CN202010661227A CN111862018B CN 111862018 B CN111862018 B CN 111862018B CN 202010661227 A CN202010661227 A CN 202010661227A CN 111862018 B CN111862018 B CN 111862018B
Authority
CN
China
Prior art keywords
area
pixels
contour
value
detection
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
CN202010661227.6A
Other languages
Chinese (zh)
Other versions
CN111862018A (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.)
Goertek Techology Co Ltd
Original Assignee
Goertek Techology 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 Goertek Techology Co Ltd filed Critical Goertek Techology Co Ltd
Priority to CN202010661227.6A priority Critical patent/CN111862018B/en
Publication of CN111862018A publication Critical patent/CN111862018A/en
Application granted granted Critical
Publication of CN111862018B publication Critical patent/CN111862018B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • G06T7/0004Industrial image inspection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/13Edge detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • G06T7/62Analysis of geometric attributes of area, perimeter, diameter or volume
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10004Still image; Photographic image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30108Industrial image inspection
    • G06T2207/30121CRT, LCD or plasma display

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Geometry (AREA)
  • Quality & Reliability (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

The invention discloses a pixel detection method and a detection device of a display screen, wherein the detection method comprises the following steps: acquiring a display image of a display screen, and selecting a partial area of the display image as a detection area; acquiring the light-emitting area of the detection area and the light-emitting area of the whole area of the display image; obtaining a proportionality coefficient according to the luminous area of the detection area and the luminous area of the whole area; and acquiring the pixel number of the detection area, and calculating the pixel number of the display image according to the pixel number of the detection area and the proportionality coefficient. The technical scheme of the invention can reflect the actual resolution of the display image obtained when the user observes the display screen.

Description

Pixel detection method and detection device of display screen
Technical Field
The present invention relates to the field of pixel detection technologies, and in particular, to a method and an apparatus for detecting a pixel of a display screen.
Background
The user is viewing an image that is typically obtained through a display screen, with different display screens having different resolutions. The resolution of the display screen is currently claimed in the market, but the resolution of the display screen itself is not an effective resolution that can be seen by the human eye. And for the human eyes to obtain the actual resolution of the display image through the display screen, an effective detection means is lacking.
The foregoing is provided merely for the purpose of facilitating understanding of the technical solutions of the present application and is not intended to represent an admission that the foregoing is prior art.
Disclosure of Invention
Based on this, a pixel detection method and a detection device of a display screen are provided aiming at the problem that the human eyes lack an effective detection means for observing the display screen, and the aim is to reflect the actual resolution of a display image when a user observes the display screen.
In order to achieve the above object, the present invention provides a method for detecting pixels of a display screen, the method comprising:
Acquiring a display image of a display screen, and selecting a partial area of the display image as a detection area;
acquiring the light-emitting area of the detection area and the light-emitting area of the whole area of the display image;
Obtaining a proportionality coefficient according to the luminous area of the detection area and the luminous area of the whole area;
And acquiring the pixel number of the detection area, and calculating the pixel number of the display image according to the pixel number of the detection area and the proportionality coefficient.
Optionally, the display image includes a plurality of;
The step of acquiring the display image of the display screen comprises the following steps:
The method comprises the steps of obtaining the number of integral pixels of a display screen, dividing the display screen into M areas according to the number of integral pixels, wherein M is a positive integer, each area in the M areas is provided with N groups of lighting positions corresponding to the position, N is a positive integer, and each group of lighting positions comprises a plurality of pixels;
And sequentially lighting a group of lighting positions with the same relative positions in each of the M areas, and lighting N times in total to obtain N display images, wherein the ith (i is more than or equal to 1 and less than or equal to N, i is a positive integer) group of lighting positions in each area are lighted each time, and each display image correspondingly comprises a group of lighting positions in each of the M areas.
Optionally, the step of acquiring a display image of the display screen further includes:
Selecting an ith group of lighting positions of the M areas;
Reducing the pixel number of the ith group of lighting positions according to a preset conversion proportion;
And obtaining N display images which are lightened N times and reduce the pixel number in the M areas.
Optionally, the step of calculating the pixel number of the display image according to the pixel number of the detection area and the scaling factor includes:
calculating the pixel number of N display images according to the pixel number of the detection area and the proportionality coefficient;
And accumulating and summing the pixel numbers of the N display images.
Optionally, the step of acquiring the pixel number of the detection area includes:
Performing pixel contour fitting on the detection area to obtain a plurality of fitting contours;
determining the contour area occupied by each fitting contour according to the boundary of each fitting contour in the plurality of fitting contours, and counting the contour quantity of the same contour area;
determining the number of pixels of each fitting contour according to the corresponding relation between the contour area and the number of pixels;
And calculating the pixel number of the detection area according to the pixel number and the contour number of the same contour area.
Optionally, the step of determining the number of pixels of each fitted contour according to the correspondence between the contour area and the number of pixels includes:
Comparing the contour area with a pre-stored standard area, and determining the number of pixels occupied by each fitting contour, wherein the standard area corresponds to the standard number of pixels.
Optionally, the standard area includes a first value, a second value, and a third value, where the first value, the second value, and the third value decrease in sequence; setting the number of pixels with the contour area larger than or equal to the first value as N1, setting the number of pixels with the contour area larger than or equal to the second value and smaller than the first value as N2, setting the number of pixels with the contour area larger than or equal to the third value and smaller than the second value as N3, setting the number of pixels with the contour area smaller than the third value as N4, setting N1 > N2 > N3 > N4, then
B=N1×a+N2×b+N3×c+N4×d
Wherein B represents the number of pixels in the detection area, a represents the number of contours having a contour area equal to or larger than the first value, B represents the number of contours having a contour area equal to or larger than the second value and smaller than the first value, c represents the number of contours having a contour area equal to or larger than the third value and smaller than the second value, and d represents the number of contours having a contour area smaller than the third value.
Optionally, the step of acquiring the light emitting area of the detection area and the light emitting area of the whole area of the display image includes:
performing binarization processing on the detection area according to a preset first threshold value to obtain the boundary of the detection area;
Calculating the light-emitting area of the detection area according to the boundary of the detection area;
Binarizing the whole area of the display image according to a preset second threshold value to obtain the boundary of the whole area;
And calculating the light-emitting area of the whole area according to the boundary of the whole area.
Optionally, after the step of calculating the pixel number of the display image according to the pixel number of the detection area and the scaling factor, the method includes:
and comparing the pixel number of the detection area with the prestored actual pixel number of the display screen to obtain an effective pixel ratio.
Optionally, the detection area is located in the middle of the display image.
In addition, in order to achieve the above object, the present invention also provides a pixel detection apparatus of a display screen, the detection apparatus comprising:
the acquisition module is used for acquiring a display image of the display screen;
the selecting module is used for selecting a partial area of the display image as a detection area;
the calculation module is used for acquiring the light-emitting area of the detection area and the light-emitting area of the whole area of the display image;
The calculation module is further used for obtaining a proportionality coefficient according to the luminous area of the detection area and the luminous area of the whole area;
The calculation module is further configured to obtain the number of pixels of the detection area, and calculate the number of pixels of the display image according to the number of pixels of the detection area and the scaling factor.
In the technical scheme provided by the invention, the display image is displayed through the display screen, a part of areas selected from the display image are detection areas, and the light-emitting areas of the detection areas and the light-emitting areas of the whole area of the display image are respectively obtained. Comparing the luminous area of the detection area with the luminous area of the whole area to obtain the ratio of the luminous area to the luminous area of the detection area, namely the proportionality coefficient. And further obtaining the pixel number of the display image according to the proportional relation by obtaining the pixel number of the detection area. The number of pixels of the display image can be understood as the number of pixels that can be observed by the human eye, and then the actual resolution that can be observed by the human eye is obtained. According to the technical scheme, the adoption of the resolution of the screen is avoided, the effective resolution presented by the display screen is detected from the perspective of a user, and the detection method is more effective.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to the structures shown in these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a first embodiment of a pixel detection method of a display screen according to the present invention;
FIG. 2 is a flowchart of a second embodiment of a pixel detection method of a display screen according to the present invention;
FIG. 3 is a flowchart illustrating a third embodiment of a pixel detection method of a display screen according to the present invention;
FIG. 4 is a flowchart of a fourth embodiment of a pixel detection method of a display screen according to the present invention;
FIG. 5 is a flowchart of a pixel detection method of a display screen according to a fifth embodiment of the present invention;
FIG. 6 is a schematic view of an image of a detection region after contour fitting according to the present invention;
FIG. 7 is a flowchart of a pixel detection method of a display screen according to a sixth embodiment of the present invention;
FIG. 8 is a flowchart of a pixel detection method of a display screen according to a seventh embodiment of the present invention;
FIG. 9 is a schematic image of the detection area after binarization processing in the present invention;
FIG. 10 is a flowchart illustrating an eighth embodiment of a pixel detection method of a display screen according to the present invention;
FIG. 11 is a schematic illustration of a selected detection region in a display image in accordance with the present invention;
fig. 12 is a schematic structural diagram of a pixel detection device of a display screen according to the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The display screen itself has a resolution that is constant and is an inherent attribute of the display screen. For example, a display screen with a resolution of 1K currently on the market means that the resolution reaches 1920×1080, that is, the display screen has 1080 rows of pixels in the horizontal direction and 1920 columns of pixels in the vertical direction. And the total pixel point is 2073600. But the experience effect of viewing may be different when the user views these display screens. Even though the resolution of the display screen calibration is 1K, the user may not achieve the effect of 1K display resolution when actually viewing. For this reason, the present invention proposes a pixel detection method of a display screen, and referring to fig. 1, a first embodiment of the present invention is shown. The detection method can be used in AR (Augmented Reality) display and also in VR (Virtual Reality) display. The detection method comprises the following steps:
step S10, a display image of a display screen is obtained, and a partial area of the display image is selected as a detection area.
Specifically, the control display screen displays according to a set display image, and the captured display image generally occupies a large area, and in order to improve detection efficiency, a partial area is selected on the display image, and this partial area is used as a detection area. So that the number of pixels of the detection area and the light emitting area of the detection area are obtained. The ratio of the light-emitting area of the detection area to the light-emitting area of the whole area is obtained. It can be known that the pixels in the display screen are uniformly arranged on the surface of the display screen. The larger the occupied area of the detection region, the larger the light emitting area of the detection region, and the larger the number of pixels corresponding to the detection region. The number of pixels of the entire area of the display image can then be deduced from the number of pixels of the detection area. In this case, the display image of the display screen is captured by the camera, and the number of pixels of the obtained display image can be understood as the number of pixels that the camera can distinguish. The camera is used for replacing eyes to evaluate and judge the display screen, so that the display effect of the user for observing the display screen can be reflected more intuitively.
Step S20, acquiring the light emitting area of the detection area and the light emitting area of the whole area of the display image; specifically, the display screen is lit up before the display image of the display screen is acquired, and the acquired display image includes luminance information. The pixel brightness information is usually represented by gray scale values, for example, the black point position represents 0, the white point position represents 255, and the numbers between 0 and 255 represent the gray scale values of the pixels between the black point and the white point. In the case where the detection area and the entire area are acquired, the boundary of the detection area and the boundary of the entire area may not be clear enough under the influence of the brightness. Therefore, the pixel points in the detection area are converted into 0 value or 255 value by the binarization processing mode, and the boundary of the detection area can be more clearly determined under the condition that the middle gray scale value is not influenced. And then the light emitting area of the detection area is obtained. Similarly, the whole area of the display image is subjected to binarization processing, so that the clear boundary of the whole area can be obtained, and the light emitting area of the whole area can be calculated.
Step S30, a proportionality coefficient is obtained according to the luminous area of the detection area and the luminous area of the whole area; comparing the light emitting area of the detection area with the light emitting area of the whole area, defining the light emitting area of the detection area as C1, the light emitting area of the whole area as C2, and the proportionality coefficient as K, wherein K=C1/C2. In the case where the camera shooting position and size are fixed, the detection area position and area are also fixed, and the light emitting area C1 of the detection area and the light emitting area C2 of the entire area are also fixed. It can be understood that the scale factor K value is a fixed value in an image obtained by one shot. The number of pixels of the display image can be calculated by the scaling factor K.
Step S40, the pixel number of the detection area is obtained, and the pixel number of the display image is calculated according to the pixel number of the detection area and the proportionality coefficient.
Specifically, the number of pixels of the detection area comes from the display image, that is, the number of pixels that the camera can recognize for resolution. In the case where the scaling factor K has been fixed, the ratio of the number of pixels of the detection area to the number of pixels of the entire area of the display image is also equal to the scaling factor K. Therefore, the pixel number of the whole display image can be calculated according to the pixel number equal proportion of the detection area.
In the technical scheme provided by the embodiment, the display image is displayed through the display screen, a part of areas selected in the display image are detection areas, and the light emitting areas of the detection areas and the light emitting areas of the whole area of the display image are respectively obtained. Comparing the luminous area of the detection area with the luminous area of the whole area to obtain the ratio of the luminous area to the luminous area of the detection area, namely the proportionality coefficient. And further obtaining the pixel number of the display image according to the proportional relation by obtaining the pixel number of the detection area. The number of pixels of the display image can be understood as the number of pixels that can be observed by the human eye, and then the actual resolution that can be observed by the human eye is obtained. According to the technical scheme, the adoption of the resolution of the screen is avoided, the effective resolution presented by the display screen is detected from the perspective of a user, and the detection method is more effective.
Referring to fig. 2, a second embodiment of the present invention is proposed on the basis of the first embodiment. The display image includes a plurality of;
a step of acquiring a display image of a display screen, comprising:
step S11, obtaining the whole pixel number of the display screen, dividing the display screen into M areas according to the whole pixel number, wherein M is a positive integer, each area in the M areas is provided with N groups of lighting positions corresponding to the position, N is a positive integer, and each group of lighting positions comprises a plurality of pixels;
And S12, sequentially lighting a group of lighting positions with the same relative positions in each of the M areas, and lighting N times in total to obtain N display images, wherein the i (i is more than or equal to 1 and less than or equal to N, and i is a positive integer) group of lighting positions in each area are lightened each time, and each display image correspondingly comprises a group of lighting positions in each of the M areas.
If the entire display screen is lighted at the same time, it is difficult for adjacent pixels to effectively distinguish the position boundaries of each other due to the influence of the brightness of light, so that the display screen can be lighted in batches. Until all the pixels of the whole display screen are lighted up. For example, the value of M is 9, the number of the whole pixels of the display screen is obtained, the display screen is equally divided into 9 areas according to the number of the whole pixels, and then the position of a selected part of the 9 areas is taken as the lighting position, wherein the lighting position can be divided into i groups (i is more than or equal to 1 and less than or equal to N, and i is a positive integer). For example, when i is equal to 1, the selected 1 st group position is the upper left corner of each region, and a display image can be obtained by simultaneously lighting the upper left corners of 9 regions. The lighting positions between each of the regions are spaced, whereby the brightness of the pixel points can be prevented from interfering with each other. The lighting positions are lighted in i groups. When i is equal to 2, for example, the middle upper position of each region is lit for the second time, and when i=3, the upper right corner of each region is lit for the third time, whereby each region can be lit up 9 times, that is, n=9. It is known that 9 display images can be obtained. It is of course also possible to subdivide the screen into more lighting times, for example into 18 lighting times, whereby 18 display images are obtained. It is also possible to reduce the number of lighting times to be smaller, for example, to be divided into 3 lighting times, thereby obtaining 3 display images. In addition, the interval distance of each lighting of each area can be set by itself, so that the adjustment is convenient according to the size of the display screen. And after the whole display screen is lighted, obtaining a display image comprising whole pixel points.
Referring to fig. 3, a third embodiment of the present invention is proposed on the basis of the second embodiment. The step of acquiring the display image of the display screen further includes:
step S13, selecting an ith group of lighting positions of M areas;
Step S14, reducing the pixel number of the ith group of lighting positions according to a preset conversion ratio;
step S15, obtaining N display images with the number of pixels reduced in the M areas lightened for N times.
In the related art, a higher resolution camera is generally used to photograph a display screen, so that the resolution of the camera is the same as that of the display screen, and a resolution larger than that of the display screen is obtained. However, for some display screens with higher resolution, such as a 4K display screen with a resolution of 3840×2160, it is desirable that the resolution of the camera also satisfies the 4K requirement, and the higher the resolution of the camera, the higher the corresponding cost. The technical scheme of the embodiment can reduce the requirement of shooting cameras, for example, a 4K display screen adopts a camera with 1K resolution. Specifically, the ith group of lighting positions are selected in the M areas, a corresponding display image is obtained after lighting, when the camera shoots a display screen, a conversion ratio is set, for example, in the 9 areas, the number of pixels at the lighting positions when i=1 is 6×6, and the pixels at the positions of 6×6 are converted into the pixels at the positions of 2×2, so that the camera can accurately identify the corresponding pixels, and then the technical scheme of the embodiment can also reduce the cost for detecting the resolution performance of the display screen. Since the number of times of lighting is divided into N times, it is necessary to acquire N display images of reduced pixel numbers, and the pixel numbers of these display images are added together.
Referring to fig. 4, a fourth embodiment of the present invention is proposed on the basis of the third embodiment.
A step of calculating the pixel number of the display image based on the pixel number of the detection area and the scaling factor, comprising:
Step S41, calculating the pixel number of N display images according to the pixel number of the detection area and the proportion coefficient;
Step S42, the pixel numbers of the N display images are accumulated and summed. That is, several display images are obtained, the detection steps are repeated several times, the number of pixels of the display images is accumulated, and the number of pixels of the whole display image is the same, and the size and the position of the shot display image are unchanged because the camera is fixed, and the position of each lighting is different. Specifically, a detection area needs to be selected for each display image, and a light emitting area of the corresponding detection area and an overall light emitting area of the corresponding display image are obtained, and a scaling factor is obtained for each display image. The same is obtained according to the scaling factor and the pixel number of the detection area.
For example, N is equal to 9, the display image includes 9 images, and the scaling factor K includes K1, K2, K3, K4, K5, K6, K7, K8, and K9. The number of pixels of the detection region includes B1, B2, B3, B4, B5, B6, B7, B8 and B9
A1=B1/K1,A2=B2/K2,A3=B3/K3,A4=B4/K4,A5=B5/K5,A6=B6/K6,A7=B7/K7,A8=B8/K8,A9=B9/K9;A1、A2、A3、A4、A5、A6、A7、A8 And A9 respectively represent the total pixel numbers of different display images, and the pixel numbers of the display images are added, namely
A= a1+a2+a3+a4+a5+a6+a7+a8+a9.A represents the total pixel number of the display image, and the display screen resolution is judged to be more objective through the total pixel number of the display image.
Referring to fig. 5, a fifth embodiment of the present invention is proposed on the basis of the first embodiment. The step of acquiring the pixel number of the detection area includes:
Step S110, pixel contour fitting is carried out on a detection area, and a plurality of fitting contours are obtained;
In particular, referring to FIG. 6, several fit contours 111 are visible in the detection region 110. The light emitting surfaces at each position in the acquired display image are different in size, and the number of pixels occupied by some light emitting surfaces is large and the number of pixels occupied by some light emitting surfaces is small. And (3) carrying out pixel contour fitting on the detection area so as to conveniently determine the boundary of each light emitting surface. A fitting contour can thus be obtained, wherein the light emitting surface of the detection area comprises a number, i.e. the detection area comprises a number of fitting contours. The fitting outline can be obtained by adopting a binarization processing mode to distinguish white points at luminous positions and black points at non-luminous positions, and the boundary surrounding the white points is further determined according to the intersection positions of the white points and the black points.
Step S120, determining the contour area occupied by each fitting contour according to the boundary of each fitting contour in a plurality of fitting contours, and counting the contour quantity of the same contour area;
typically, the fitted contours are circles or ellipses, and the contour area can be calculated after the boundaries of the fitted contours are obtained. In addition, the fitted contour boundary may be irregular, and the contour area can be determined according to calculation software. In addition, the number of the luminous positions of the detection area is a plurality, the fitting contours are a plurality, and the number of the contours can be obtained by counting the luminous positions of the detection area.
Step S130, determining the pixel number of each fitting contour according to the corresponding relation between the contour area and the pixel number; from the above, the area of the fitting contour is different, the number of occupied pixels is also different, the number of occupied pixels with large contour area is large, and the number of occupied pixels with small contour area is small. For example, the number of occupied pixels with a large area of outline may be 4, the number of occupied pixels with a small area of outline may be 3 or 1, or the like.
Step S140, calculating the number of pixels of the detection area according to the number of pixels and the number of contours of the same contour area. Specifically, the number of contours with larger contour areas and the number of contours with smaller contour areas are counted, and the number of pixels is accumulated to obtain the number of pixels of the corresponding detection area according to the number of occupied pixels with larger contour areas and the number of occupied pixels with smaller contour areas.
Referring to fig. 7, a sixth embodiment of the present invention is proposed on the basis of the fifth embodiment. The step of determining the number of pixels of each fitting contour according to the corresponding relation between the contour area and the number of pixels comprises the following steps:
Step S131, comparing the contour area with a pre-stored standard area, and determining the number of pixels occupied by each fitting contour, wherein the standard area corresponds to the standard number of pixels. Specifically, a standard area is preset, for example, the number of pixels of the outline area of this standard area is 4 pixel points. Comparing the obtained outline area with a standard area, wherein the number of pixels conforming to the standard area is also counted to be 4, the number of pixels larger than the standard area is 5, and the number of pixels smaller than the standard area is 3. Of course, the standard area may be a defined value or a range of values.
In the above embodiment, the standard area includes the first value, the second value, and the third value, which decrease in order; the number of pixels with the contour area larger than or equal to the first value is set as N1, the number of pixels with the contour area larger than or equal to the second value and smaller than the first value is set as N2, the number of pixels with the contour area larger than or equal to the third value and smaller than the second value is set as N3, the number of pixels with the contour area smaller than the third value is set as N4, N1 > N2 > N3 > N4, then
B=N1×a+N2×b+N3×c+N4×d
Wherein B represents the number of pixels in the detection area, a represents the number of contours having a contour area equal to or larger than the first value, B represents the number of contours having a contour area equal to or larger than the second value and smaller than the first value, c represents the number of contours having a contour area equal to or larger than the third value and smaller than the second value, and d represents the number of contours having a contour area smaller than the third value.
According to the above embodiment, the contour area is calculated in units of pixels, for example. The first numerical value S1 is 25, the second numerical value S2 is 18, the third numerical value S3 is 10, the defined contour area is S, and if S is greater than or equal to 25, N1 is 4; if S is greater than or equal to 18 and less than 25, N2 is 3; if S is more than or equal to 10 and less than 18, N3 is 2; if S is smaller than 10, N4 is 1, and b=4×a+3×b+2×c+1×d. The pixel number of the detection area can be effectively calculated through the formula. Of course, the standard area includes numerical values, and the specific number of numerical values may be set as desired. It is further known that the more values the standard area comprises, the more accurate the number of pixels determining the detection area.
Furthermore, it should be noted that when the position of the detection area is selected, it is possible that one pixel is separated by two segments from the middle, so that the size a, b, c, d may be a fraction, and thus the number of pixels of the detection area may also be a fraction, and the number of pixels of the detection area may be processed in a rounded manner. The rounding may be performed again when the number of pixels of the entire area of the display image is calculated.
Referring to fig. 8, a seventh embodiment of the present invention is proposed in the above-described embodiment. The step of acquiring the light emitting area of the detection region and the light emitting area of the entire region of the display image includes:
Step S210, binarizing the detection area according to a preset first threshold value to obtain the boundary of the detection area;
step S220, calculating the luminous area of the detection area according to the boundary of the detection area;
step S230, binarizing the whole area of the display image according to a preset second threshold value to obtain the boundary of the whole area;
step S240, calculating the light emitting area of the whole area according to the boundary of the whole area.
Specifically, referring to fig. 9, an image of the detection region 110 after binarization processing can be seen. The binarization processing is to divide the value reflecting the black and white of the pixel point, for example, the first threshold is 150, the value lower than the first threshold 150 is set as a black point, and the value higher than or equal to the first threshold 150 is set as a white point, so that only the black and white exists in the detection area, and then a clear boundary of the detection area can be obtained, and the light emitting area of the detection area can be conveniently obtained. Similarly, the second threshold is 150, the setting lower than the second threshold 150 is black, the setting higher than or equal to the second threshold 150 is white, so that only black and white are displayed in the whole area of the displayed image, and then a clear boundary of the whole area can be obtained, and the luminous area of the whole area is conveniently obtained. The first threshold and the second threshold may be different in size or the same in size. The magnitudes of the same first and second thresholds may be set and altered.
Referring to fig. 10, an eighth embodiment of the present invention is proposed in the above embodiment. After the step of calculating the number of pixels of the display image based on the number of pixels of the detection area and the scaling factor, it includes:
And step S60, comparing the pixel number of the detection area with the pre-stored actual pixel number of the display screen to obtain an effective pixel ratio. Defining the effective pixel ratio as R, and the actual pixel number of the display screen as D, r=a/D. In the related art, it is common to judge the resolution of a display screen by considering the display screen itself without evaluating the display screen from the viewpoint of an observer. The embodiment detects the resolution of the display screen by setting the value of the effective pixel ratio, and evaluates the performance of the display screen from the angle of a consumer, thereby more intuitively reflecting the resolution performance of the display screen.
Referring to fig. 11, in the above embodiment, the detection area 110 is located in the middle of the display image 10. In the process of acquiring a display image, a camera is mainly used for shooting a display screen, and after display light rays of the display screen pass through a lens of the camera, aberration and distortion are easily generated, wherein the aberration and the distortion are mainly caused by different imaging results of the display light rays passing through an optical axis position and a non-optical axis position. Therefore, in this embodiment, the detection area is selected in the middle of the display image obtained by shooting, so that the selection of the peripheral position of the display image can be avoided, and then adverse effects of aberration or distortion on the measurement result can be avoided. There are various ways to detect the local area, for example, a radius value is set around the center of the displayed image to form a circular detection area. Or directly inputting a plurality of coordinates, and connecting the coordinates in sequence to form a region which is a detection region. Of course, in addition to this, the detection area can be selected by direct clicking demarcation. The detection area may be circular or square in shape.
Referring to fig. 12, a pixel detection apparatus of a display screen, the detection apparatus includes: the device comprises an acquisition module 10, a selection module 20 and a calculation module 30.
An acquisition module 10 for acquiring a display image of a display screen; and the selecting module 20 is configured to select a partial area of the display image as a detection area. Specifically, the control display screen displays according to a set display image, and the captured display image generally occupies a large area, and in order to improve detection efficiency, a partial area is selected on the display image, and this partial area is used as a detection area. So that the number of pixels of the detection area and the light emitting area of the detection area are obtained. The ratio of the light-emitting area of the detection area to the light-emitting area of the whole area is obtained. It can be known that the pixels in the display screen are uniformly arranged on the surface of the display screen. The larger the occupied area of the detection region, the larger the light emitting area of the detection region, and the larger the number of pixels corresponding to the detection region. The number of pixels of the entire area of the display image can then be deduced from the number of pixels of the detection area. In this case, the display image of the display screen is captured by the camera, and the number of pixels of the obtained display image can be understood as the number of pixels that the camera can distinguish. The camera is used for replacing eyes to evaluate and judge the display screen, so that the display effect of the user for observing the display screen can be reflected more intuitively.
A calculating module 30, configured to obtain a light emitting area of the detection area and a light emitting area of the whole area of the display image; ; specifically, the display screen is lit up before the display image of the display screen is acquired, and the acquired display image includes luminance information. The pixel brightness information is usually represented by gray scale values, for example, the black point position represents 0, the white point position represents 255, and the numbers between 0 and 255 represent the gray scale values of the pixels between the black point and the white point. In the case where the detection area and the entire area are acquired, the boundary of the detection area and the boundary of the entire area may not be clear enough under the influence of the brightness. Therefore, the pixel points in the detection area are converted into 0 value or 255 value by the binarization processing mode, and the boundary of the detection area can be more clearly determined under the condition that the middle gray scale value is not influenced. And then the light emitting area of the detection area is obtained. Similarly, the whole area of the display image is subjected to binarization processing, so that the clear boundary of the whole area can be obtained, and the light emitting area of the whole area can be calculated.
The calculating module 30 is further configured to obtain a scaling factor according to the light emitting area of the detection area and the light emitting area of the whole area; comparing the light emitting area of the detection area with the light emitting area of the whole area, defining the light emitting area of the detection area as C1, the light emitting area of the whole area as C2, and the proportionality coefficient as K, wherein K=C1/C2. In the case where the camera shooting position and size are fixed, the detection area position and area are also fixed, and the light emitting area C1 of the detection area and the light emitting area C2 of the entire area are also fixed. It can be understood that the scale factor K value is a fixed value in an image obtained by one shot. The number of pixels of the display image can be calculated by the scaling factor K.
The calculating module 30 is further configured to obtain the number of pixels of the detection area, and calculate the number of pixels of the display image according to the number of pixels of the detection area and the scaling factor. Specifically, the number of pixels of the detection area comes from the display image, that is, the number of pixels that the camera can recognize for resolution. In the case where the scaling factor K has been fixed, the ratio of the number of pixels of the detection area to the number of pixels of the entire area of the display image is also equal to the scaling factor K. Therefore, the pixel number of the whole display image can be calculated according to the pixel number equal proportion of the detection area.
In the technical scheme provided by the embodiment, the display image is displayed through the display screen, a part of areas selected in the display image are detection areas, and the light emitting areas of the detection areas and the light emitting areas of the whole area of the display image are respectively obtained. Comparing the luminous area of the detection area with the luminous area of the whole area to obtain the ratio of the luminous area to the luminous area of the detection area, namely the proportionality coefficient. And further obtaining the pixel number of the display image according to the proportional relation by obtaining the pixel number of the detection area. The number of pixels of the display image can be understood as the number of pixels that can be observed by the human eye, and then the actual resolution that can be observed by the human eye is obtained. According to the technical scheme, the adoption of the resolution of the screen is avoided, the effective resolution presented by the display screen is detected from the perspective of a user, and the detection method is more effective.
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 system 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 system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above, comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description of the preferred embodiments of the present invention should not be construed as limiting the scope of the invention, but rather should be understood to cover all modifications, equivalents, and alternatives falling within the spirit and scope of the invention as defined by the following description and drawings or any application directly or indirectly to other relevant art(s).

Claims (8)

1. A method for detecting pixels of a display screen, the method comprising:
Acquiring a display image of a display screen, and selecting a partial area of the display image as a detection area;
acquiring the light-emitting area of the detection area and the light-emitting area of the whole area of the display image;
Obtaining a proportionality coefficient according to the luminous area of the detection area and the luminous area of the whole area;
Acquiring the pixel number of the detection area, and calculating the pixel number of the display image according to the pixel number of the detection area and the proportionality coefficient;
The step of obtaining the pixel number of the detection area includes:
Performing pixel contour fitting on the detection area to obtain a plurality of fitting contours;
determining the contour area occupied by each fitting contour according to the boundary of each fitting contour in the plurality of fitting contours, and counting the contour quantity of the same contour area;
determining the number of pixels of each fitting contour according to the corresponding relation between the contour area and the number of pixels;
Calculating the pixel number of the detection area according to the pixel number and the contour number of the same contour area;
The step of determining the number of pixels of each fitting contour according to the corresponding relation between the contour area and the number of pixels comprises the following steps:
Comparing the contour area with a pre-stored standard area, and determining the number of pixels occupied by each fitting contour, wherein the standard area corresponds to the standard number of pixels;
The standard area comprises a first numerical value, a second numerical value and a third numerical value, and the first numerical value, the second numerical value and the third numerical value are sequentially reduced; setting the number of pixels with the contour area larger than or equal to the first value as N1, setting the number of pixels with the contour area larger than or equal to the second value and smaller than the first value as N2, setting the number of pixels with the contour area larger than or equal to the third value and smaller than the second value as N3, setting the number of pixels with the contour area smaller than the third value as N4, setting N1 > N2 > N3 > N4, then
B=N1×a+N2×b+N3×c+N4×d
Wherein B represents the number of pixels in the detection area, a represents the number of contours having a contour area equal to or larger than the first value, B represents the number of contours having a contour area equal to or larger than the second value and smaller than the first value, c represents the number of contours having a contour area equal to or larger than the third value and smaller than the second value, and d represents the number of contours having a contour area smaller than the third value.
2. The pixel detection method of a display screen according to claim 1, wherein the display image includes a plurality of;
The step of acquiring the display image of the display screen comprises the following steps:
The method comprises the steps of obtaining the number of integral pixels of a display screen, dividing the display screen into M areas according to the number of integral pixels, wherein M is a positive integer, each area in the M areas is provided with N groups of lighting positions corresponding to the position, N is a positive integer, and each group of lighting positions comprises a plurality of pixels;
And sequentially lighting a group of lighting positions with the same relative positions in each of the M areas, and lighting for N times to obtain N display images, wherein i is more than or equal to 1 and less than or equal to N, i is a positive integer, and each display image correspondingly comprises a group of lighting positions in each of the M areas.
3. The method for detecting pixels of a display screen according to claim 2, wherein the step of acquiring the display image of the display screen further comprises:
Selecting an ith group of lighting positions of the M areas;
Reducing the pixel number of the ith group of lighting positions according to a preset conversion proportion;
And obtaining N display images which are lightened N times and reduce the pixel number in the M areas.
4. A pixel detection method of a display screen according to claim 3, wherein the step of calculating the number of pixels of the display image from the number of pixels of the detection area and the scaling factor comprises:
calculating the pixel number of N display images according to the pixel number of the detection area and the proportionality coefficient;
And accumulating and summing the pixel numbers of the N display images.
5. The method for detecting pixels of a display screen according to any one of claims 1 to 4, wherein the step of acquiring the light emitting area of the detection area and the light emitting area of the entire area of the display image includes:
performing binarization processing on the detection area according to a preset first threshold value to obtain the boundary of the detection area;
Calculating the light-emitting area of the detection area according to the boundary of the detection area;
Binarizing the whole area of the display image according to a preset second threshold value to obtain the boundary of the whole area;
And calculating the light-emitting area of the whole area according to the boundary of the whole area.
6. The pixel detection method of a display screen according to any one of claims 1 to 4, wherein after the step of calculating the pixel number of the display image from the pixel number of the detection area and the scaling factor, comprising:
and comparing the pixel number of the detection area with the prestored actual pixel number of the display screen to obtain an effective pixel ratio.
7. The method for detecting pixels of a display screen according to any one of claims 1 to 4, wherein the detection area is located in a middle portion of the display image.
8. A pixel detection apparatus for a display screen, the detection apparatus comprising:
the acquisition module is used for acquiring a display image of the display screen;
the selecting module is used for selecting a partial area of the display image as a detection area;
the calculation module is used for acquiring the light-emitting area of the detection area and the light-emitting area of the whole area of the display image;
The calculation module is further used for obtaining a proportionality coefficient according to the luminous area of the detection area and the luminous area of the whole area;
The calculation module is further configured to obtain the number of pixels of the detection area, and calculate the number of pixels of the display image according to the number of pixels of the detection area and the scaling factor;
the calculation module is also used for carrying out pixel contour fitting on the detection area to obtain a plurality of fitting contours;
determining the contour area occupied by each fitting contour according to the boundary of each fitting contour in the plurality of fitting contours, and counting the contour quantity of the same contour area;
determining the number of pixels of each fitting contour according to the corresponding relation between the contour area and the number of pixels;
Calculating the pixel number of the detection area according to the pixel number and the contour number of the same contour area;
the calculation module is also used for comparing the contour area with a pre-stored standard area to determine the number of pixels occupied by each fitting contour, wherein the standard area corresponds to the standard number of pixels;
The standard area comprises a first numerical value, a second numerical value and a third numerical value, and the first numerical value, the second numerical value and the third numerical value are sequentially reduced; setting the number of pixels with the contour area larger than or equal to the first value as N1, setting the number of pixels with the contour area larger than or equal to the second value and smaller than the first value as N2, setting the number of pixels with the contour area larger than or equal to the third value and smaller than the second value as N3, setting the number of pixels with the contour area smaller than the third value as N4, setting N1 > N2 > N3 > N4, then
B=N1×a+N2×b+N3×c+N4×d
Wherein B represents the number of pixels in the detection area, a represents the number of contours having a contour area equal to or larger than the first value, B represents the number of contours having a contour area equal to or larger than the second value and smaller than the first value, c represents the number of contours having a contour area equal to or larger than the third value and smaller than the second value, and d represents the number of contours having a contour area smaller than the third value.
CN202010661227.6A 2020-07-09 2020-07-09 Pixel detection method and detection device of display screen Active CN111862018B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010661227.6A CN111862018B (en) 2020-07-09 2020-07-09 Pixel detection method and detection device of display screen

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010661227.6A CN111862018B (en) 2020-07-09 2020-07-09 Pixel detection method and detection device of display screen

Publications (2)

Publication Number Publication Date
CN111862018A CN111862018A (en) 2020-10-30
CN111862018B true CN111862018B (en) 2024-06-04

Family

ID=73152785

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010661227.6A Active CN111862018B (en) 2020-07-09 2020-07-09 Pixel detection method and detection device of display screen

Country Status (1)

Country Link
CN (1) CN111862018B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113252309A (en) * 2021-04-19 2021-08-13 苏州市计量测试院 Testing method and testing device for near-to-eye display equipment and storage medium
CN113570517A (en) * 2021-07-20 2021-10-29 杨建弘 Method for correcting two-dimensional graph of part, part measuring method and system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107481652A (en) * 2017-08-11 2017-12-15 珠海格力节能环保制冷技术研究中心有限公司 Ignition detection circuit, resolution ratio acquisition methods, display panel drive method and device
CN107749268A (en) * 2017-10-27 2018-03-02 歌尔科技有限公司 Screen detection method and equipment
CN108596908A (en) * 2018-05-10 2018-09-28 深圳清华大学研究院 LED display detection method, device and terminal
CN109872309A (en) * 2019-01-31 2019-06-11 京东方科技集团股份有限公司 Detection system, method, apparatus and computer readable storage medium
JP2019149777A (en) * 2018-02-28 2019-09-05 日本放送協会 Image processing apparatus and image processing program
CN110930403A (en) * 2019-12-17 2020-03-27 易诚高科(大连)科技有限公司 Screen pixel acquisition method for OLED screen
CN111340752A (en) * 2019-12-04 2020-06-26 京东方科技集团股份有限公司 Screen detection method and device, electronic equipment and computer readable storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002257679A (en) * 2001-02-23 2002-09-11 Internatl Business Mach Corp <Ibm> Method of obtaining luminance information, image quality evaluating method, device of obtaining luminance information of display apparatus and image quality evaluating method of the display apparatus

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107481652A (en) * 2017-08-11 2017-12-15 珠海格力节能环保制冷技术研究中心有限公司 Ignition detection circuit, resolution ratio acquisition methods, display panel drive method and device
CN107749268A (en) * 2017-10-27 2018-03-02 歌尔科技有限公司 Screen detection method and equipment
JP2019149777A (en) * 2018-02-28 2019-09-05 日本放送協会 Image processing apparatus and image processing program
CN108596908A (en) * 2018-05-10 2018-09-28 深圳清华大学研究院 LED display detection method, device and terminal
CN109872309A (en) * 2019-01-31 2019-06-11 京东方科技集团股份有限公司 Detection system, method, apparatus and computer readable storage medium
CN111340752A (en) * 2019-12-04 2020-06-26 京东方科技集团股份有限公司 Screen detection method and device, electronic equipment and computer readable storage medium
CN110930403A (en) * 2019-12-17 2020-03-27 易诚高科(大连)科技有限公司 Screen pixel acquisition method for OLED screen

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
New fast area calculation of numerous adjacent connection regions based on pixel;Guo Shang; Su Hong-gen;Computer Engineering and Design;第29卷(第7期);1760-1763 *
面向OLED屏像素缺陷检测的新方法;汪志亮;高健;赵伟明;;计算机工程与应用(第26期);全文 *

Also Published As

Publication number Publication date
CN111862018A (en) 2020-10-30

Similar Documents

Publication Publication Date Title
CN109752394B (en) High-precision detection method and system for defects of display screen
CN111754906B (en) Method for detecting brightness uniformity of curved surface display screen
CN109919933B (en) VR device, picture detection method and device thereof, and computer-readable storage medium
CN106412573B (en) A kind of method and apparatus of detector lens stain
CN111862018B (en) Pixel detection method and detection device of display screen
CN108801601B (en) Method and equipment for testing stray light noise of Fresnel lens and storage medium
US8538132B2 (en) Component concentricity
CN109257582A (en) A kind of bearing calibration of projection device and device
CN105812790B (en) Method for evaluating verticality between photosensitive surface and optical axis of image sensor and optical test card
CN116559183B (en) Method and system for improving defect judging efficiency
CN111896233B (en) Contrast testing method, contrast testing device and storage medium
CN113380177B (en) Adjusting method and device of image acquisition device and compensation method of display panel
CN112985778B (en) Test chart positioning method, terminal and storage medium
CN113038105B (en) Projector adjusting method and adjusting apparatus
CN114066857A (en) Infrared image quality evaluation method and device, electronic equipment and readable storage medium
KR20160145545A (en) Method of enhanced alignment of two means of projection
CN111609926B (en) Stray light intensity detection method and device, detection terminal and readable storage medium
CN116337412A (en) Screen detection method, device and storage medium
CN114913109A (en) Image anomaly detection method and device, test chart and terminal equipment
CN110595738A (en) Laser detection method, device and equipment and depth camera
CN114205580A (en) Method and device for evaluating anti-shake effect of camera module
CN111599294B (en) Method and device for evaluating granular sensation of display screen
CN115760653B (en) Image correction method, device, equipment and readable storage medium
CN113810673B (en) Projector uniformity testing method and device and computer readable storage medium
JP3888528B2 (en) Liquid level recognition processing apparatus and liquid level monitoring system

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