[go: up one dir, main page]

CN109060830B - Method and device for detecting impurities of display screen - Google Patents

Method and device for detecting impurities of display screen Download PDF

Info

Publication number
CN109060830B
CN109060830B CN201810645792.6A CN201810645792A CN109060830B CN 109060830 B CN109060830 B CN 109060830B CN 201810645792 A CN201810645792 A CN 201810645792A CN 109060830 B CN109060830 B CN 109060830B
Authority
CN
China
Prior art keywords
information
target
target image
display screen
noise
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
CN201810645792.6A
Other languages
Chinese (zh)
Other versions
CN109060830A (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.)
Gree Electric Appliances Inc of Zhuhai
Zhuhai Gree Intelligent Equipment Co Ltd
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Zhuhai Gree Intelligent Equipment 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 Gree Electric Appliances Inc of Zhuhai, Zhuhai Gree Intelligent Equipment Co Ltd filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN201810645792.6A priority Critical patent/CN109060830B/en
Publication of CN109060830A publication Critical patent/CN109060830A/en
Application granted granted Critical
Publication of CN109060830B publication Critical patent/CN109060830B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/84Systems specially adapted for particular applications
    • G01N21/88Investigating the presence of flaws or contamination
    • G01N21/94Investigating contamination, e.g. dust
    • GPHYSICS
    • G02OPTICS
    • G02FOPTICAL DEVICES OR ARRANGEMENTS FOR THE CONTROL OF LIGHT BY MODIFICATION OF THE OPTICAL PROPERTIES OF THE MEDIA OF THE ELEMENTS INVOLVED THEREIN; NON-LINEAR OPTICS; FREQUENCY-CHANGING OF LIGHT; OPTICAL LOGIC ELEMENTS; OPTICAL ANALOGUE/DIGITAL CONVERTERS
    • G02F1/00Devices or arrangements for the control of the intensity, colour, phase, polarisation or direction of light arriving from an independent light source, e.g. switching, gating or modulating; Non-linear optics
    • G02F1/01Devices or arrangements for the control of the intensity, colour, phase, polarisation or direction of light arriving from an independent light source, e.g. switching, gating or modulating; Non-linear optics for the control of the intensity, phase, polarisation or colour 
    • G02F1/13Devices or arrangements for the control of the intensity, colour, phase, polarisation or direction of light arriving from an independent light source, e.g. switching, gating or modulating; Non-linear optics for the control of the intensity, phase, polarisation or colour  based on liquid crystals, e.g. single liquid crystal display cells
    • G02F1/1306Details
    • G02F1/1309Repairing; Testing

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Chemical & Material Sciences (AREA)
  • Nonlinear Science (AREA)
  • Health & Medical Sciences (AREA)
  • Optics & Photonics (AREA)
  • Crystallography & Structural Chemistry (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Analytical Chemistry (AREA)
  • Biochemistry (AREA)
  • General Health & Medical Sciences (AREA)
  • Immunology (AREA)
  • Pathology (AREA)
  • Image Processing (AREA)

Abstract

The application discloses a method and a device for detecting impurities of a display screen. The method comprises the following steps: acquiring a minimum external rectangle of a target display screen to obtain a first target image; acquiring noise information of a first target image, wherein the noise information at least comprises the size of noise and the position of the noise in the first target image, the type of the noise information at least comprises impurity information and background information, the impurity information at least comprises dust information, and the background information is an area outside a target display screen in a minimum circumscribed rectangle; removing noise information in areas where four corners of the first image are located from noise information of the first target image to obtain first target information; impurity information of the target display screen is determined based on the first target information. Through the application, the problem that in the related art, impurities on a fillet display screen are detected by adopting a maximum inscribed rectangle method, and the missing risk is easily caused is solved.

Description

Method and device for detecting impurities of display screen
Technical Field
The application relates to the technical field of image detection, in particular to a method and a device for detecting impurities of a display screen.
Background
In order to allow a user to visually learn about the operating state of the electronic device or to conveniently control the electronic device, different display screens are usually arranged on different devices, and impurities may be left on the display screens during the manufacturing and installation process of the devices, so that the quality of the display screens is affected. In prior art, whether there is obvious impurity on the display screen of product is detected to the mode that mainly detects through the staff visualizes, because people's eye is difficult for perceiving some slight impurity, the testing result is accurate inadequately, and under the condition of long-time work moreover, people's eye can produce visual fatigue to increase the risk of lou examining, in addition, artifical detection greatly increased the cost.
In order to solve the problems of low accuracy and high cost of visual inspection, a display screen detection method is available on the market, an image detection method is adopted for detection, a display screen image is obtained firstly, in order to avoid back interference of an area outside the display screen on an acquired picture, the largest inscribed rectangle of the display screen is generally obtained, and impurity detection is carried out in the range.
Aiming at the problem that the impurity on the fillet display screen is easily detected by adopting a maximum inscribed rectangle method in the related art, the missing detection risk is easily generated, and an effective solution is not provided at present.
Disclosure of Invention
The application provides a method and a device for detecting impurities of a display screen, which are used for solving the problem that the impurities on a fillet display screen are detected by adopting a maximum inscribed rectangle method in the related art, so that the missing detection risk is easily generated.
According to one aspect of the present application, there is provided a method of detecting impurities of a display screen. The method comprises the following steps: acquiring a minimum external rectangle of a target display screen to obtain a first target image; acquiring noise information of a first target image, wherein the noise information at least comprises the size of noise and the position of the noise in the first target image, the type of the noise information at least comprises impurity information and background information, the impurity information at least comprises dust information, and the background information is an area outside a target display screen in a minimum circumscribed rectangle; removing noise information in areas where four corners of the first target image are located from the noise information of the first target image to obtain first target information; determining impurity information of a target display screen based on first target information
Further, determining the impurity information of the target display screen based on the first target information includes: acquiring a maximum inscribed rectangle of a target display screen to obtain a second target image; acquiring noise information of a second target image; and determining impurity information of the target display screen based on the noise information of the second target image and the first target information.
Further, acquiring noise information of the first target image includes: filtering noise information in the first target image to obtain a third target image; and carrying out image subtraction between the first target image and the third target image to obtain the noise information of the first target image.
Further, filtering noise information in the first target image to obtain a third target image includes: acquiring a target median filter; and filtering noise in the first target image by adopting a target median filter to obtain a third target image.
Further, performing image subtraction between the first target image and the third target image to obtain noise information of the first target image includes: performing image subtraction between the first target image and the third target image to obtain a fourth target image; and processing the fourth target image by adopting a connected domain analysis method to obtain the noise information of the first target image.
Further, acquiring noise information of the second target image includes: filtering noise information in the second target image to obtain a fifth target image; and performing image subtraction between the fifth target image and the second target image to obtain the noise information of the second target image.
Further, before obtaining the minimum circumscribed rectangle of the target display screen to obtain the first target image, the method further includes: acquiring a picture containing a target display screen; and detecting the edge of the target display screen in the picture to obtain the area where the target display screen is located.
According to another aspect of the present application, there is provided a device for detecting foreign substances of a display screen. The device includes: the first acquisition unit is used for acquiring the minimum circumscribed rectangle of the target display screen to obtain a first target image; the second acquisition unit is used for acquiring noise information of the first target image, wherein the noise information at least comprises the size of noise and the position of the noise in the first target image, the type of the noise information at least comprises impurity information and background information, the impurity information at least comprises dust information, and the background information is an area outside a target display screen in a minimum circumscribed rectangle; the removing unit is used for removing noise information in areas where four corners of the first target image are located in the noise information of the first target image to obtain first target information; and a determination unit for determining impurity information of the target display screen based on the first target information.
Further, the determination unit includes: the first acquisition module is used for acquiring the maximum inscribed rectangle of the target display screen to obtain a second target image; the second acquisition module is used for acquiring the noise information of the second target image; and the determining module is used for determining impurity information of the target display screen based on the noise information of the second target image and the first target information.
In order to achieve the above object, according to another aspect of the present application, there is provided a storage medium including a stored program, wherein the program performs any one of the above-described methods of detecting impurities of a display panel.
In order to achieve the above object, according to another aspect of the present application, there is provided a processor for executing a program, wherein the program executes a method for detecting a foreign object of any one of the above display screens.
Through the application, the following steps are adopted: acquiring a minimum external rectangle of a target display screen to obtain a first target image; acquiring noise information of a first target image, wherein the noise information at least comprises the size of noise and the position of the noise in the first target image, the type of the noise information at least comprises impurity information and background information, the impurity information at least comprises dust information, and the background information is an area outside a target display screen in a minimum circumscribed rectangle; removing noise information in areas where four corners of the first image are located from noise information of the first target image to obtain first target information; impurity information of the target display screen is determined based on the first target information, and the problem that in the related technology, impurities on the fillet display screen are detected by adopting a maximum inscribed rectangle method, and the missing risk is easily caused is solved. Noise information in the minimum external rectangular image containing the target display screen is obtained, and the noise information in the region where the four corners are located is removed, so that the effect of improving the efficiency and the precision of detecting the impurity information in the fillet display screen is achieved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, illustrate embodiments of the application and, together with the description, serve to explain the application and are not intended to limit the application. In the drawings:
FIG. 1 is a flow chart of a method for detecting impurities of a display screen according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a picture including a target display screen provided in accordance with an embodiment of the present application;
FIG. 3 is a schematic diagram of a first target image provided in accordance with an embodiment of the present application;
FIG. 4 is a schematic diagram of a third target image provided in accordance with an embodiment of the present application;
FIG. 5 is a schematic diagram of a fourth target image provided in accordance with an embodiment of the present application;
FIG. 6 is a schematic diagram of an image in which noise information of a first target image is located, provided according to an embodiment of the present application;
FIG. 7 is a schematic diagram of a second target image provided in accordance with an embodiment of the present application;
FIG. 8 is a schematic diagram of a fifth target image provided in accordance with an embodiment of the present application;
FIG. 9 is a schematic diagram of an image obtained by image subtraction between a fifth target image and a second target image according to an embodiment of the present application;
FIG. 10 is a schematic diagram of an image in which noise information of a second target image is provided according to an embodiment of the application;
fig. 11 is a diagram illustrating a detection result of impurity information of a target display screen according to an embodiment of the present application; and
fig. 12 is a schematic diagram of a device for detecting impurities of a display screen according to an embodiment of the present application.
Detailed Description
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be used. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
For convenience of description, some terms or expressions referred to in the embodiments of the present application are explained below:
image subtraction: subtracting corresponding pixels between the two images to obtain difference information between the two images;
connected domain assay: and the Blob analysis method is used for binarizing the image, segmenting the image to obtain a foreground and a background, and then detecting a connected domain, so that a small area with a sudden gray level change is highlighted.
According to an embodiment of the application, a method for detecting impurities of a display screen is provided.
Fig. 1 is a flowchart of a method for detecting impurities of a display panel according to an embodiment of the present application. As shown in fig. 1, the method comprises the steps of:
step S102, obtaining the minimum circumscribed rectangle of the target display screen to obtain a first target image.
It should be noted that the display screens of electronic devices are various in types, the shapes of the display screens of different types of electronic devices are different, the largest number of rectangular display screens with arc corners exist in the market, and in this embodiment, impurity detection is performed on the rectangular display screens with arc corners.
For example, the target display screen is a rectangular display screen with arc corners, in order to ensure that impurities remaining in the whole target display screen are detected, a computer algorithm is adopted to detect a picture containing the target display screen, a minimum external rectangle of the target display screen is divided, a first target image is obtained, the first target image is a rectangular image, the first target image mainly contains the target display screen, and areas at four corners of the first target display screen contain backgrounds except the display screen.
Optionally, in the method for detecting impurities in a display screen provided in the embodiment of the present application, before obtaining a minimum circumscribed rectangle of a target display screen to obtain a first target image, the method further includes: acquiring a picture containing a target display screen; and detecting the edge of the target display screen in the picture to obtain the area where the target display screen is located.
For example, when a target display screen on an electronic product needs to be detected, the backlight of the target display screen is turned on, the target display screen is shot to obtain a picture containing the target display screen, as shown in fig. 2, the middle of the picture is the target display screen, the periphery of the target display screen is a background, for the picture containing the target display screen, an adaptive threshold segmentation algorithm is adopted for segmentation, the brightness change of the background and the brightness change of the target display screen are distinguished, the area where the target display screen is located is accurately obtained, then the minimum circumscribed rectangle of the target display screen is obtained, as shown in fig. 3, and a first target image is obtained.
Step S104, acquiring noise information of the first target image, wherein the noise information at least comprises the size of noise and the position of the noise in the first target image, the type of the noise information at least comprises impurity information and background information, the impurity information at least comprises dust information, and the background information is an area outside a target display screen in the minimum circumscribed rectangle.
It should be noted that, since the picture including the target display screen is obtained by opening the target display screen for shooting, when impurities such as dust, glue, and the like exist in the target display screen, the gray value of the pixel in the region where the impurities are located is usually greatly different from the gray value of the pixel in other regions of the target display screen, the impurity information is represented on the first image as image noise, and the noise information of the first target image is obtained, that is, the impurities on the target display screen can be indirectly obtained. In addition, since the target display screen is rectangular with rounded corners, the areas at the four corners of the first target image are the background of the target display screen, and the image noise is also represented on the first target image. When detecting a foreign substance on the target display screen, it is necessary to detect not only the presence or absence of the foreign substance but also the position and size of the foreign substance, and thus, the size of the noise and the position of the noise in the first target image are acquired.
In order to accurately obtain the noise information of the first target image, optionally, in the method for detecting impurities in a display screen provided in the embodiment of the present application, the obtaining the noise information of the first target image includes: filtering noise information in the first target image to obtain a third target image; and carrying out image subtraction between the first target image and the third target image to obtain the noise information of the first target image.
It should be noted that, the noise information in the first target image is filtered to obtain a third target image, and image subtraction is performed between the first target image and the third target image, so that not only can the noise information of the first target image be simply and quickly obtained, but also background information inside the display screen is subtracted, so as to highlight the noise information.
Optionally, in the method for detecting impurities in a display screen provided in the embodiment of the present application, filtering noise information in the first target image to obtain a third target image includes: acquiring a target median filter; and filtering noise in the first target image by adopting a target median filter to obtain a third target image.
For example, a median filter is used to estimate the gray value of the local background in the first target image, specifically, the size of the median filter is selected according to the minimum size of the impurity information such as dust in the image, so as to ensure that all local structures in the first target image can be removed after smoothing, and the selected median filter is used to perform smoothing filtering on the first target image to obtain a third target image, as shown in fig. 4, so that the noise information such as dust can be better suppressed.
Optionally, in the method for detecting impurities in a display screen provided in the embodiment of the present application, performing image subtraction between the first target image and the third target image to obtain noise information of the first target image includes: performing image subtraction between the first target image and the third target image to obtain a fourth target image; and processing the fourth target image by adopting a connected domain analysis method to obtain the noise information of the first target image.
It should be noted that, by subtracting the first target image from the third target image after the smoothing process, the impurity information darker than the background is divided, and a highlighted boundary region is generated, so as to obtain a fourth target image, as shown in fig. 5. And processing the fourth target image by using a connected domain analysis method, and displaying impurity information such as dust, glue and the like with preset sizes, for example, noise information with a gray level of less than 20 and an area of more than 0.2mm can be displayed to obtain noise information of the first target image, as shown in fig. 6.
Step S106, removing noise information in the areas where the four corners of the first image are located in the noise information of the first target image to obtain first target information.
It should be noted that noise information in the regions where the four corners of the first image are located is mainly background information, and if the noise information at the four corners of the first target image is also regarded as an impurity, false detection may occur, and in order to avoid interference with background information in regions other than the target display screen, the noise information in the regions where the four corners of the first target image are located is removed from the noise information of the first target image, so that the first target information is obtained, and it is possible to ensure that the background information does not exist in the first target information.
In step S108, the impurity information of the target display screen is determined based on the first target information.
It should be noted that the first target information includes a position of noise in the first image and a size of the noise, and since the first target information does not include noise information of four corner regions of the first image, interference of a background is eliminated, the impurity information of the target display screen can be represented by the first target information, the position of the noise in the first image represents the position of the impurity in the display screen, and the size of the noise represents the size of the impurity.
According to the method for detecting the impurities of the display screen, the first target image is obtained by obtaining the minimum external rectangle of the target display screen; acquiring noise information of a first target image, wherein the noise information at least comprises the size of noise and the position of the noise in the first target image, the type of the noise information at least comprises impurity information and background information, the impurity information at least comprises dust information, and the background information is an area outside a target display screen in a minimum circumscribed rectangle; removing noise information in areas where four corners of the first image are located from noise information of the first target image to obtain first target information; impurity information of the target display screen is determined based on the first target information, and the problem that in the related technology, impurities on the fillet display screen are detected by adopting a maximum inscribed rectangle method, and the missing risk is easily caused is solved. Noise information in the minimum external rectangular image containing the target display screen is obtained, and the noise information in the region where the four corners are located is removed, so that the effect of improving the efficiency and the precision of detecting the impurity information in the fillet display screen is achieved.
In order to make the detection result of the impurity more accurate, optionally, in the method for detecting the impurity of the display screen according to the embodiment of the present application, determining the impurity information of the target display screen based on the first target information includes: acquiring a maximum inscribed rectangle of a target display screen to obtain a second target image; acquiring noise information of a second target image; and determining impurity information of the target display screen based on the noise information of the second target image and the first target information.
It should be noted that if accurate boundary detection is performed on four rounded corners of the target display screen, the background information and the impurity information of the regions at four corners of the first picture are distinguished at the same time, huge workload can be generated, and the detection speed is low, so that the noise information of the regions at four corners is directly removed in the embodiment, the interference of the background information is removed, the impurity information at the edges is retained, simplicity and high efficiency are achieved, and the detection precision is high. However, there is a small amount of impurity information in the noise information in the four corners of the first picture in addition to the background information, and it is inevitable to remove part of the impurity information while removing the noise information in the four corners of the first picture, resulting in some degree of missing detection.
In order to further improve the detection accuracy and reduce the risk of missing detection, in this embodiment, the maximum inscribed rectangle of the target display screen is obtained to obtain the second target image, as shown in fig. 7, the second target image includes most of the region of the target display screen, and then the noise information of the second target image is obtained, and because there is no interference of background information, the noise information of the second target image can represent the impurity information of the target display screen. Because the impurity information of each edge region of the target display screen is contained in the first target information, but the impurity information of the regions at four corners can be excluded, the noise information of the second target image does not contain the impurity information of each edge region, but the impurity information of the regions at four corners is contained, and because the radian of the round corners of most round-corner rectangular display screens in the market is small, the impurity information of the target display screen can be more accurately determined by integrating the noise information of the second target image and the first target information.
Optionally, in the method for detecting impurities in a display screen provided in the embodiment of the present application, acquiring noise information of a second target image includes: filtering noise information in the second target image to obtain a fifth target image; and performing image subtraction between the fifth target image and the second target image to obtain the noise information of the second target image.
For example, a median filter may be used to filter noise information in the second target image to obtain a fifth target image, as shown in fig. 8, and after performing image subtraction, an image shown in fig. 9 is obtained, and then the connected component analysis method is used to process fig. 9 to obtain noise information of the second target image, as shown in fig. 10.
Finally, based on the determination of the impurity information of the target display screen as shown in fig. 10 and 6, the impurity information of the target display screen is accurately determined as shown in fig. 11.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowcharts, in some cases, the steps illustrated or described may be performed in an order different than presented herein.
The embodiment of the present application further provides a device for detecting impurities of a display screen, and it should be noted that the device for detecting impurities of a display screen according to the embodiment of the present application can be used to execute the method for detecting impurities of a display screen according to the embodiment of the present application. The following describes a device for detecting impurities in a display screen provided in an embodiment of the present application.
Fig. 12 is a schematic view of a device for detecting foreign substances of a display panel according to an embodiment of the present application. As shown in fig. 12, the apparatus includes: a first acquisition unit 10, a second acquisition unit 20, a removal unit 30 and a determination unit 40.
Specifically, the first obtaining unit 10 is configured to obtain a minimum circumscribed rectangle of the target display screen to obtain a first target image;
the second acquiring unit 20 is configured to acquire noise information of the first target image, where the noise information at least includes a size of the noise and a position of the noise in the first target image, a type of the noise information at least includes impurity information and background information, the impurity information at least includes dust information, and the background information is an area outside a target display screen in a minimum bounding rectangle;
a removing unit 30, configured to remove noise information in areas where four corners of the first image are located from noise information of the first target image, to obtain first target information;
a determination unit 40 for determining impurity information of the target display screen based on the first target information.
Optionally, in the device for detecting impurities in a display screen provided in the embodiment of the present application, the determining unit 40 includes: the first acquisition module is used for acquiring the maximum inscribed rectangle of the target display screen to obtain a second target image; the second acquisition module is used for acquiring the noise information of the second target image; and the determining module is used for determining impurity information of the target display screen based on the noise information of the second target image and the first target information.
Optionally, in the device for detecting impurities in a display screen provided in the embodiment of the present application, the second obtaining unit 20 includes: the filtering module is used for filtering noise information in the first target image to obtain a third target image; and the calculation module is used for carrying out image subtraction between the first target image and the third target image to obtain the noise information of the first target image.
Optionally, in the device for detecting impurities in a display screen provided in the embodiment of the present application, the first filtering module includes: the acquisition submodule is used for acquiring a target median filter; and the filtering submodule is used for filtering the noise in the first target image by adopting a target median filter to obtain a third target image.
Optionally, in the device for detecting impurities in a display screen provided in the embodiment of the present application, the first calculating module includes: the calculation submodule is used for carrying out image subtraction between the first target image and the third target image to obtain a fourth target image; and the processing submodule is used for processing the fourth target image by adopting a connected domain analysis method to obtain the noise information of the first target image.
Optionally, in the device for detecting impurities in a display screen provided in the embodiment of the present application, the second obtaining module includes: the filtering submodule is used for filtering the noise information in the second target image to obtain a fifth target image; and the calculating submodule is used for carrying out image subtraction between the fifth target image and the second target image to obtain the noise information of the second target image.
Optionally, in the device for detecting impurities in a display screen provided in the embodiment of the present application, the device further includes: the third acquisition unit is used for acquiring a picture containing the target display screen before acquiring the minimum circumscribed rectangle of the target display screen and obtaining the first target image; and the detection unit is used for detecting the edge of the target display screen in the picture to obtain the area where the target display screen is located.
According to the device for detecting the impurities of the display screen, the first acquisition unit 10 is used for acquiring the minimum circumscribed rectangle of the target display screen to obtain a first target image; the second acquiring unit 20 acquires noise information of the first target image, wherein the noise information at least comprises the size of noise and the position of the noise in the first target image, the type of the noise information at least comprises impurity information and background information, the impurity information at least comprises dust information, and the background information is an area outside a target display screen in a minimum circumscribed rectangle; the removing unit 30 removes noise information in areas where four corners of the first image are located from the noise information of the first target image to obtain first target information; the determining unit 40 determines the impurity information of the target display screen based on the first target information, and solves the problem that in the related art, the impurity on the fillet display screen is detected by adopting a maximum inscribed rectangle method, so that the missing detection risk is easily generated.
The device for detecting the impurities of the display screen comprises a processor and a memory, wherein the first acquiring unit 10, the second acquiring unit 20, the removing unit 30, the determining unit 40 and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to be one or more than one, and the problem that in the related technology, impurities on the fillet display screen are detected by adopting a maximum inscribed rectangle method, so that the missing detection risk is easily caused is solved by adjusting the kernel parameters.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
An embodiment of the present invention provides a storage medium having a program stored thereon, the program implementing a method of detecting impurities of a display screen when executed by a processor.
The embodiment of the invention provides a processor, which is used for running a program, wherein the method for detecting impurities of a display screen is executed when the program runs.
The embodiment of the invention provides equipment, which comprises a processor, a memory and a program which is stored on the memory and can run on the processor, wherein the processor executes the program and realizes the following steps: acquiring a minimum external rectangle of a target display screen to obtain a first target image; acquiring noise information of a first target image, wherein the noise information at least comprises the size of noise and the position of the noise in the first target image, the type of the noise information at least comprises impurity information and background information, the impurity information at least comprises dust information, and the background information is an area outside a target display screen in a minimum circumscribed rectangle; removing noise information in areas where four corners of the first image are located from noise information of the first target image to obtain first target information; determining impurity information of a target display screen based on first target information
Further, determining the impurity information of the target display screen based on the first target information includes: acquiring a maximum inscribed rectangle of a target display screen to obtain a second target image; acquiring noise information of a second target image; and determining impurity information of the target display screen based on the noise information of the second target image and the first target information.
Further, acquiring noise information of the first target image includes: filtering noise information in the first target image to obtain a third target image; and carrying out image subtraction between the first target image and the third target image to obtain the noise information of the first target image.
Further, filtering noise information in the first target image to obtain a third target image includes: acquiring a target median filter; and filtering noise in the first target image by adopting a target median filter to obtain a third target image.
Further, performing image subtraction between the first target image and the third target image to obtain noise information of the first target image includes: performing image subtraction between the first target image and the third target image to obtain a fourth target image; and processing the fourth target image by adopting a connected domain analysis method to obtain the noise information of the first target image.
Further, acquiring noise information of the second target image includes: filtering noise information in the second target image to obtain a fifth target image; and performing image subtraction between the fifth target image and the second target image to obtain the noise information of the second target image.
Further, before obtaining the minimum circumscribed rectangle of the target display screen to obtain the first target image, the method further includes: acquiring a picture containing a target display screen; and detecting the edge of the target display screen in the picture to obtain the area where the target display screen is located. The device herein may be a server, a PC, a PAD, a mobile phone, etc.
The present application further provides a computer program product adapted to perform a program for initializing the following method steps when executed on a data processing device: acquiring a minimum external rectangle of a target display screen to obtain a first target image; acquiring noise information of a first target image, wherein the noise information at least comprises the size of noise and the position of the noise in the first target image, the type of the noise information at least comprises impurity information and background information, the impurity information at least comprises dust information, and the background information is an area outside a target display screen in a minimum circumscribed rectangle; removing noise information in areas where four corners of the first image are located from noise information of the first target image to obtain first target information; determining impurity information of a target display screen based on first target information
Further, determining the impurity information of the target display screen based on the first target information includes: acquiring a maximum inscribed rectangle of a target display screen to obtain a second target image; acquiring noise information of a second target image; and determining impurity information of the target display screen based on the noise information of the second target image and the first target information.
Further, acquiring noise information of the first target image includes: filtering noise information in the first target image to obtain a third target image; and carrying out image subtraction between the first target image and the third target image to obtain the noise information of the first target image.
Further, filtering noise information in the first target image to obtain a third target image includes: acquiring a target median filter; and filtering noise in the first target image by adopting a target median filter to obtain a third target image.
Further, performing image subtraction between the first target image and the third target image to obtain noise information of the first target image includes: performing image subtraction between the first target image and the third target image to obtain a fourth target image; and processing the fourth target image by adopting a connected domain analysis method to obtain the noise information of the first target image.
Further, acquiring noise information of the second target image includes: filtering noise information in the second target image to obtain a fifth target image; and performing image subtraction between the fifth target image and the second target image to obtain the noise information of the second target image.
Further, before obtaining the minimum circumscribed rectangle of the target display screen to obtain the first target image, the method further includes: acquiring a picture containing a target display screen; and detecting the edge of the target display screen in the picture to obtain the area where the target display screen is located.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (9)

1. A method for detecting impurities of a display screen is characterized by comprising the following steps:
acquiring a minimum external rectangle of a target display screen to obtain a first target image;
acquiring noise information of the first target image, wherein the noise information at least comprises the size of noise and the position of the noise in the first target image, the type of the noise information at least comprises impurity information and background information, the impurity information at least comprises dust information, and the background information is an area outside the target display screen in the minimum circumscribed rectangle;
removing noise information in areas where four corners of the first target image are located from the noise information of the first target image to obtain first target information;
determining impurity information of the target display screen based on the first target information, the determining impurity information of the target display screen based on the first target information comprising: acquiring a maximum inscribed rectangle of the target display screen to obtain a second target image; acquiring noise information of the second target image; determining impurity information of the target display screen based on the noise information of the second target image and the first target information, so that the impurity information of the target display screen comprises the first target information and second target information, wherein the second target information is impurity information in areas where four corners of the second target image are located.
2. The method of claim 1, wherein obtaining noise information for the first target image comprises:
filtering noise information in the first target image to obtain a third target image;
and carrying out image subtraction between the first target image and the third target image to obtain the noise information of the first target image.
3. The method of claim 2, wherein filtering noise information in the first target image to obtain a third target image comprises:
acquiring a target median filter;
and filtering noise in the first target image by adopting the target median filter to obtain a third target image.
4. The method of claim 2, wherein performing image subtraction between the first target image and the third target image to obtain noise information of the first target image comprises:
performing image subtraction between the first target image and the third target image to obtain a fourth target image;
and processing the fourth target image by adopting a connected domain analysis method to obtain the noise information of the first target image.
5. The method of claim 1, wherein obtaining noise information for the second target image comprises:
filtering noise information in the second target image to obtain a fifth target image;
and carrying out image subtraction between the fifth target image and the second target image to obtain the noise information of the second target image.
6. The method of claim 1, wherein prior to obtaining the minimum bounding rectangle for the target display screen to obtain the first target image, the method further comprises:
acquiring a picture containing the target display screen;
and detecting the edge of the target display screen in the picture to obtain the area where the target display screen is located.
7. A detection device of impurities of a display screen is characterized by comprising:
the first acquisition unit is used for acquiring the minimum circumscribed rectangle of the target display screen to obtain a first target image;
a second obtaining unit, configured to obtain noise information of the first target image, where the noise information at least includes a size of noise and a position of the noise in the first target image, a type of the noise information at least includes impurity information and background information, the impurity information at least includes dust information, and the background information is an area outside the target display screen in the minimum bounding rectangle;
the removing unit is used for removing noise information in areas where four corners of the first target image are located in the noise information of the first target image to obtain first target information;
the determining unit is used for determining impurity information of the target display screen based on the first target information, and comprises a first obtaining module, a second obtaining module and a determining module, wherein the first obtaining module is used for obtaining a maximum inscribed rectangle of the target display screen to obtain a second target image; the second obtaining module is configured to obtain noise information of the second target image; the determining module is configured to determine impurity information of the target display screen based on the noise information of the second target image and the first target information, so that the impurity information of the target display screen includes the first target information and second target information, where the second target information is impurity information in a region where four corners of the second target image are located.
8. A storage medium characterized by comprising a stored program, wherein the program executes the method for detecting impurities of a display panel according to any one of claims 1 to 6.
9. A processor, characterized in that the processor is configured to run a program, wherein the program is configured to execute the method for detecting the contamination of the display screen according to any one of claims 1 to 6 when running.
CN201810645792.6A 2018-06-21 2018-06-21 Method and device for detecting impurities of display screen Active CN109060830B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810645792.6A CN109060830B (en) 2018-06-21 2018-06-21 Method and device for detecting impurities of display screen

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810645792.6A CN109060830B (en) 2018-06-21 2018-06-21 Method and device for detecting impurities of display screen

Publications (2)

Publication Number Publication Date
CN109060830A CN109060830A (en) 2018-12-21
CN109060830B true CN109060830B (en) 2021-03-26

Family

ID=64821394

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810645792.6A Active CN109060830B (en) 2018-06-21 2018-06-21 Method and device for detecting impurities of display screen

Country Status (1)

Country Link
CN (1) CN109060830B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111025701B (en) * 2019-12-30 2022-06-07 凌云光技术股份有限公司 Curved surface liquid crystal screen detection method
CN111415611A (en) * 2020-04-29 2020-07-14 京东方科技集团股份有限公司 Brightness compensation method, brightness compensation device and display device
CN111947895A (en) * 2020-08-03 2020-11-17 深圳回收宝科技有限公司 Method for detecting white spot abnormality of display device and related device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101819164A (en) * 2010-05-14 2010-09-01 山东大学 Device and method for detecting impurities after filling of beverage
CN106803244A (en) * 2016-11-24 2017-06-06 深圳市华汉伟业科技有限公司 Defect identification method and system
CN107067431A (en) * 2017-01-16 2017-08-18 河海大学常州校区 A kind of object volume computational methods based on Kinect
CN107071376A (en) * 2017-03-29 2017-08-18 海信集团有限公司 One kind projection tiled display bearing calibration and device
CN107563990A (en) * 2017-07-15 2018-01-09 河北工业大学 A kind of photovoltaic cell chipping and the detection algorithm of blunt type and v-notch

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101819164A (en) * 2010-05-14 2010-09-01 山东大学 Device and method for detecting impurities after filling of beverage
CN106803244A (en) * 2016-11-24 2017-06-06 深圳市华汉伟业科技有限公司 Defect identification method and system
CN107067431A (en) * 2017-01-16 2017-08-18 河海大学常州校区 A kind of object volume computational methods based on Kinect
CN107071376A (en) * 2017-03-29 2017-08-18 海信集团有限公司 One kind projection tiled display bearing calibration and device
CN107563990A (en) * 2017-07-15 2018-01-09 河北工业大学 A kind of photovoltaic cell chipping and the detection algorithm of blunt type and v-notch

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于机器视觉的手机面板缺陷检测方法研究;易松松;《中国优秀硕士学位论文全文数据库 信息科技辑》;20160315;第28-29、32页,图4-5 *
对每个边缘求最小外接矩形,通过最小矩形提取每个边缘;阳光下的Smiles;《https://blog.csdn.net/liyuqian199695/article/details/51152822/》;20160414;全文 *

Also Published As

Publication number Publication date
CN109060830A (en) 2018-12-21

Similar Documents

Publication Publication Date Title
JP4657869B2 (en) Defect detection apparatus, image sensor device, image sensor module, image processing apparatus, digital image quality tester, defect detection method, defect detection program, and computer-readable recording medium
CN111046862B (en) Character segmentation method, device and computer readable storage medium
US11379988B2 (en) Method and apparatus for extracting edge of object in depth image and computer readable storage medium
CN111027546B (en) Character segmentation method, device and computer readable storage medium
CN111612781A (en) A screen defect detection method, device and head-mounted display device
CN109060830B (en) Method and device for detecting impurities of display screen
US20140355877A1 (en) Method and apparatus for processing a gray image
KR20220139292A (en) Character segmentation method, apparatus and computer readable storage medium
US20220383463A1 (en) Method and device for image fusion, computing processing device, and storage medium
CN110333240B (en) Method and device for detecting appearance of capacitor, storage medium and processor
JP2008225838A (en) Facial feature point detection apparatus, facial feature point detection method, and program
CN108983456B (en) Method and device for detecting light leakage of display screen
CN112734774A (en) High-precision fundus blood vessel extraction method, device, medium, equipment and system
WO2017128646A1 (en) Image processing method and device
EP3293672A1 (en) Particle boundary identification
WO2021009524A1 (en) Method, computer program product and computer readable medium for generating a mask for a camera stream
CN108107611B (en) Self-adaptive defect detection method and device and electronic equipment
CN111179182B (en) Image processing method and device, storage medium and processor
CN108830785B (en) Background blurring method and apparatus, electronic apparatus, computer device, and storage medium
CN111524102B (en) Screen dirt detection method and device of liquid crystal display
US9613427B2 (en) Information processing method and electronic device
CN112329572B (en) Rapid static living body detection method and device based on frame and flash point
CN109145753B (en) Watch hand identification method and device
WO2017080236A1 (en) Image processing method and device
CN113112432A (en) Method for automatically identifying image strips

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