Screen detection method, device and electronic device
By acquiring images in the screen-off and bright states and blocking them, the error detection problem in screen detection is solved, and the accuracy of detection is improved.
Patent Information
- Application Number
- CN202310579683.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-22
- Publication Date
- 2025-07-18
- Estimated Expiration
- 2043-05-22
AI Technical Summary
The existing screen detection methods have error detection, resulting in incorrect judgment on the shipment of the display panel.
By acquiring the first image of the image sensor in the off-screen state, determining the position of the damaged photosensitive pixel, and masking the second image in the bright screen state, generating a screen detection image, and eliminating the influence of the damaged photosensitive pixel.
Improve the accuracy of screen pixel detection and avoid false detection caused by damage to photosensitive pixels.
Smart Images

Figure CN116596892B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of screen testing, and more specifically, to a screen detection method, device, and electronic device. Background Art
[0002] Before shipping, the display panel is inspected for damaged screen pixels. Currently, an image sensor is used to take a picture of the screen to be detected to obtain a screen image, and the screen image is processed to determine whether there are damaged screen pixels in the display panel. However, the current screen detection method has false detection situations, which will affect the judgment of whether to ship the display panel. Summary of the Invention
[0003] To overcome the technical problems mentioned in the above technical background, embodiments of this application provide a screen detection method, device, and electronic device.
[0004] In the first aspect of this application, a screen detection method is provided. The method includes:
[0005] Controlling an image sensor to obtain a first image of the screen to be detected in the screen-off state, where multiple image pixels in the first image represent one screen pixel of the screen to be detected, and the image pixels in the first image correspond one-to-one with the photosensitive pixels in the image sensor;
[0006] Based on the first image, determining the positions of the damaged photosensitive pixels in the image sensor;
[0007] Controlling the image sensor to obtain a second image of the screen to be detected in the screen-on state;
[0008] Based on the positions of the damaged photosensitive pixels, masking the corresponding image pixels in the second image to obtain a screen detection image;
[0009] Based on the screen detection image, determining whether there are defective screen pixels in the screen to be detected.
[0010] In a possible embodiment of this application, the step of determining the positions of the damaged photosensitive pixels in the image sensor based on the first image includes:
[0011] Performing binarization processing on the first image to obtain a binarized image;
[0012] Based on the gray scale values of the image pixels in the binarized image, determining the target image pixels corresponding to the damaged photosensitive pixels in the binarized image;
[0013] Generate an image masking mask according to the position of the target image pixel in the binary image, where the value at the position corresponding to the damaged photosensitive pixel in the image masking mask is 0, and the value at the position corresponding to the normal photosensitive pixel in the image masking mask is 1.
[0014] In a possible embodiment of the present application, the step of masking the corresponding image pixels in the second image based on the damaged photosensitive pixels to obtain a screen detection image includes:
[0015] Multiply the second image by the image masking mask to remove the gray scale value of the image pixel corresponding to the damaged photosensitive pixel in the second image, and obtain the screen detection image.
[0016] In a possible embodiment of the present application, the step of determining whether there are defective screen pixels in the screen to be detected based on the screen detection image includes:
[0017] Calculate the average gray scale value of the screen pixel based on the gray scale values of the multiple image pixels representing a screen pixel in the screen detection image;
[0018] Determine whether there are defective screen pixels in the screen to be detected based on the difference between the average gray scale values of different screen pixels.
[0019] In a second aspect of the present application, there is provided a screen detection device, the device includes:
[0020] A first acquisition module, configured to control an image sensor to acquire a first image of the screen to be detected in the off-screen state, where multiple image pixels in the first image represent a screen pixel of the screen to be detected, and the image pixels in the first image correspond one-to-one to the photosensitive pixels in the image sensor;
[0021] A position determination module, configured to determine the position of the damaged photosensitive pixel in the image sensor based on the first image;
[0022] A second acquisition module, configured to control an image sensor to acquire a second image of the screen to be detected in the on-screen state;
[0023] A masking processing module, configured to mask the corresponding image pixels in the second image based on the position of the damaged photosensitive pixel to obtain a screen detection image;
[0024] A pixel determination module, configured to determine whether there are defective screen pixels in the screen to be detected based on the screen detection image.
[0025] In a possible embodiment of the present application, the position determination module is specifically configured to:
[0026] Perform binarization processing on the first image to obtain a binarized image;
[0027] Based on the gray-scale values of the image pixels in the binarized image, determine the target image pixels in the binarized image corresponding to the damaged photosensitive pixels;
[0028] Generate an image masking mask according to the positions of the target image pixels in the binarized image, wherein the value at the position corresponding to the damaged photosensitive pixel in the image masking mask is 0, and the value at the position corresponding to the normal photosensitive pixel in the image masking mask is 1.
[0029] In a possible embodiment of the present application, the masking processing module is specifically configured to:
[0030] Multiply the second image by the image masking mask, and remove the gray-scale values of the image pixels in the second image corresponding to the damaged photosensitive pixels to obtain the screen detection image.
[0031] In a possible embodiment of the present application, the pixel determination module is specifically configured to:
[0032] Based on the gray-scale values of the multiple image pixels representing a screen pixel in the screen detection image, calculate the average gray-scale value of the screen pixel;
[0033] Based on the differences between the average gray-scale values of different screen pixels, determine whether there are defective screen pixels in the screen to be detected.
[0034] In a third aspect, an embodiment of the present application further provides an electronic device, which includes a processor and a computer-readable storage medium. The processor and the computer-readable storage medium are connected through a bus system. The computer-readable storage medium is used to store programs, instructions or codes, and the processor is used to execute the programs, instructions or codes in the computer-readable storage medium to implement the screen detection method in any one of the possible embodiments in the first aspect.
[0035] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, in which instructions are stored. When the instructions are executed, an electronic device is caused to execute the screen detection method in any one of the possible embodiments in the first aspect.
[0036] Based on any of the above aspects, the screen detection method, device, and electronic device provided in the embodiments of the present application first obtain a first image of the screen to be detected in the screen-off state; then, determine the positions of damaged photosensitive pixels in the image sensor based on the first image; then, control the image sensor to obtain a second image of the screen to be detected in the screen-on state; then, perform masking processing on the corresponding image pixels in the second image based on the positions of the damaged photosensitive pixels to obtain a screen detection image; finally, determine whether there are defective screen pixels in the screen to be detected based on the screen detection image. In the above process, the positions of damaged photosensitive pixels in the image sensor are determined through the first image obtained in the screen-off state, and the corresponding image pixels in the second image obtained in the screen-on state are masked to obtain a screen detection image, so as to avoid errors in screen pixel detection caused by damaged photosensitive pixels and improve the accuracy of screen pixel detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] To more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required in the embodiments. It should be understood that the following drawings only show some embodiments of the present application, and therefore should not be regarded as limiting the scope. For those of ordinary skill in the art, other related drawings can be obtained based on these drawings without creative efforts.
[0038] Figure 1 Schematic diagram comparing the optical characteristic quantities of real bright spots in the prior art and damaged photosensitive pixels in the image sensor;
[0039] Figure 2 Schematic diagram of the interaction of the screen detection system provided in this embodiment;
[0040] Figure 3 Schematic diagram of the step flow of the screen detection method provided in this embodiment;
[0041] Figure 4 Schematic diagram of the relationship between photosensitive pixels in the image sensor, image pixels in the first image, and screen pixels provided in this embodiment;
[0042] Figure 5 Illustrates Figure 3 Schematic diagram of the process when step S12 in
[0043] Figure 6 Illustrates Figure 3 Schematic diagram of the process when step S14 in
[0044] Figure 7 Illustrates Figure 3 Schematic diagram of the process when step S15 in
[0045] Figure 8 The functional module diagram of the screen detection device provided in this embodiment is illustrated;
[0046] Figure 9 The schematic block diagram of the structure of the electronic device provided in this embodiment is illustrated. Detailed implementation manners
[0047] To make the objectives, technical solutions, and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. It should be understood that the accompanying drawings in the present application are only for the purposes of illustration and description, and are not used to limit the protection scope of the present application. In addition, it should be understood that the schematic drawings are not drawn to actual scale. The flowcharts used in the present application illustrate the operations implemented according to some embodiments of the embodiments of the present application. It should be understood that the operations in the flowchart may not be implemented in sequence, and steps without logical context relationships may be reversed or implemented simultaneously. In addition, those skilled in the art may add one or more other operations to the flowchart or remove one or more operations from the flowchart under the guidance of the content of the present application.
[0048] In addition, the described embodiments are only some embodiments of the present application, rather than all embodiments. The components of the embodiments of the present application usually described and illustrated in the accompanying drawings here may be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application to be protected, but only represents the selected embodiments of the present application. All other embodiments obtained by those skilled in the art based on the embodiments of the present application without creative efforts fall within the protection scope of the present application.
[0049] The inventors found that a main reason leading to false detection in screen detection is that the image sensor used for detecting the screen may be damaged due to reasons such as temperature, humidity, and static electricity during use. Among them, the image sensor includes a large number of photosensitive pixels. In the image captured by the image sensor, one image pixel corresponds to one photosensitive pixel. The image pixels corresponding to the damaged photosensitive pixels in the image and the image pixels corresponding to the bright spots detected by the normal photosensitive pixels have similar characteristic quantities. In the prior art, it is very difficult to distinguish between normal photosensitive pixels and damaged photosensitive pixels by comparing the optical characteristic quantities between the two. As Figure 1 shown, the difference between the respective corresponding optical characteristic quantities of the two is very small, and some characteristic quantities are even the same.
[0050] As can be seen from the above, the image pixels corresponding to the damaged photosensitive pixels in the image have similar characteristics to the image pixels corresponding to the bright spots detected by the normal photosensitive pixels in the image. During detection, it is easy to misdetect the image pixels corresponding to the damaged photosensitive pixels in the image as the image pixels corresponding to the bright spots detected by the normal photosensitive pixels, resulting in false detection during the screen body detection.
[0051] To solve the above problems, the inventor innovatively designs the following technical solutions. The specific implementation solutions of this application will be described in detail below with reference to the accompanying drawings. It should be noted that the defects existing in the above prior art solutions are all the results obtained by the inventor through practice and careful research. Therefore, the discovery process of the above technical problems and the solutions proposed by this embodiment below for the above problems should be the contributions made by the inventor to this application during the invention creation process, and should not be understood as the technical content known to those skilled in the art.
[0052] Before introducing the specific solution provided in this embodiment, the application scenario of the screen body detection system 10 applicable to this specific solution will be introduced first. In this embodiment, the screen body detection system 10 includes an electronic device 100 and an image sensor 200 that are communicatively connected. The electronic device 100 can control the image sensor 200 to take a photo of the screen body to be detected to obtain the screen body image of the screen body to be detected. Among them, the image sensor 200 includes a Charge Coupled Device (CCD) camera and a CMOS camera. The electronic device 100 has image processing capabilities and can detect whether there are defective screen pixels in the screen body to be detected by processing the screen body image.
[0053] The following combines Figure 2 the application scenario shown to exemplarily illustrate the screen body detection method provided in the embodiment of this application. Please refer to Figure 3 , the screen body detection method provided in the embodiment of this application can be executed by the aforementioned electronic device 100. In other embodiments, the order of some steps in the screen body detection method of the embodiment of this application can be interchanged according to actual needs, or some of the steps can also be omitted or deleted. The detailed steps of the screen body detection method executed by the electronic device 100 are introduced as follows.
[0054] Step S11, control the image sensor 200 to obtain a first image of the screen body to be detected in the screen-off state.
[0055] The image pixels in the first image correspond one-to-one with the photosensitive pixels in the image sensor 200. Exemplarily, such as Figure 4As shown, the image pixels in the first image and the photosensitive pixels in the image sensor 200 have the same distribution, for example, the same array distribution. Multiple image pixels in the first image can represent a screen pixel in the screen to be detected. For example, Figure 4 in Figure 4 , a screen pixel can be represented by the image pixels with a 3*3 array distribution shown by the dashed box in the first image. In other words, a screen pixel can be detected by the photosensitive pixels with a 3*3 array distribution in the image sensor 200.
[0056] In this embodiment, the screen-off state can refer to the state where the screen to be detected does not display, or the state where the screen to be detected displays a black screen. In the screen-off state, the screen to be detected appears black. When using the image sensor to take a picture, a first image with a black background can be obtained. If there is a damaged photosensitive device in the image sensor, since the image pixels corresponding to the damaged photosensitive pixels in the image are similar to the image pixels corresponding to the bright spots detected by the normal photosensitive pixels, the image pixels corresponding to the damaged photosensitive device in the first image will be a bright spot.
[0057] Step S12: Based on the first image, determine the positions of the damaged photosensitive pixels in the image sensor.
[0058] In this embodiment, by detecting whether there are image pixels with a gray value greater than the preset gray value in the first image, the positions of the damaged photosensitive pixels in the image sensor are determined.
[0059] Step S13: Control the image sensor to obtain a second image of the screen to be detected in the screen-on state.
[0060] In this embodiment, the screen-on state refers to the state where the screen to be detected displays a fixed picture. The displayed fixed picture can be a uniform-color picture, such as a green picture, a red picture, a blue picture, etc. In the screen-on state, the screen pixels in the screen to be detected display the same gray-scale brightness.
[0061] Step S14: Based on the positions of the damaged photosensitive pixels, perform masking processing on the corresponding image pixels in the second image to obtain a screen detection image.
[0062] In this embodiment, masking the image pixels corresponding to the positions of the damaged photosensitive pixels in the second image can exclude the influence of the damaged photosensitive pixels on the captured image.
[0063] Step S15: Based on the screen detection image, determine whether there are defective screen pixels in the screen to be detected.
[0064] The above solution provided by this embodiment determines the positions of the damaged photosensitive pixels in the image sensor based on the first image obtained in the screen-off state, and shields the image pixels corresponding to the damaged photosensitive pixels in the second image obtained in the screen-on state to obtain a screen body detection image. In this way, it is possible to avoid errors in the detection of the screen body pixels caused by the damaged photosensitive pixels and improve the accuracy of the detection of the screen body pixels.
[0065] Further, please refer to Figure 5 , step S12 can be implemented in the following manner.
[0066] First, perform binarization processing on the first image to obtain a binarized image.
[0067] The first image corresponds to the image in the screen-off state. The image pixels corresponding to the normal photosensitive pixels should have a gray level value of 0, and the image pixels corresponding to the damaged photosensitive pixels should have a gray level value not equal to 0 (for example, 255).
[0068] Next, based on the gray level values of the image pixels in the binarized image, determine the target image pixels corresponding to the damaged photosensitive pixels in the binarized image.
[0069] By performing binarization processing on the first image, the image pixels corresponding to the normal photosensitive pixels and the damaged photosensitive pixels in the image can be distinguished. Among them, the gray level value of the image pixels corresponding to the normal photosensitive pixels is 0, and the gray level value of the image pixels corresponding to the damaged photosensitive pixels is 1.
[0070] Then, generate an image shielding mask according to the positions of the target image pixels in the binarized image.
[0071] Among them, the value at the position corresponding to the damaged photosensitive pixel in the image shielding mask is 0, and the value at the position corresponding to the normal photosensitive pixel in the image shielding mask is 1.
[0072] Further, please refer to Figure 6 , step S14 can be implemented in the following manner.
[0073] Multiply the second image by the image shielding mask to remove the gray level value of the image pixels corresponding to the damaged photosensitive pixels in the second image, and obtain a screen body detection image.
[0074] The first image and the second image are captured by the same image sensor. The first image and the second image have the same size. The image shielding mask is obtained by processing the first image. Therefore, the image shielding mask also has the same size as the second image. By multiplying the second image by the image shielding mask, the gray level value of the image pixels corresponding to the normal photosensitive pixels can be retained, and the gray level value of the image pixels corresponding to the damaged photosensitive pixels can be removed. The screen body detection image obtained in this way will not be affected by the damaged photosensitive pixels.
[0075] Further, step S15 can be implemented in the following manner.
[0076] First, based on the grayscale values of multiple image pixels representing a screen pixel in the screen detection image, calculate the average grayscale value of the screen pixel.
[0077] As Figure 7 shown, the screen pixel in the first row and the first column can be calculated from the grayscale values of 8 image pixels, and the obtained average grayscale value can be 23; the screen pixels in the first row and the second column, the first row and the third column, the second row and the first column, the second row and the second column, the third row and the first column, the third row and the second column, and the third row and the third column can be calculated from the grayscale values of 9 image pixels, and the obtained average grayscale value can be 26; the screen pixel in the second row and the third column can be calculated from the grayscale values of 6 image pixels, and the obtained average grayscale value can be 17.
[0078] Then, based on the difference between the average grayscale values of different screen pixels, determine whether there are defective screen pixels in the screen to be detected.
[0079] A grayscale value threshold can be set between different screen pixels. For example, when the difference between the average grayscale values of two screen pixels is greater than the grayscale value threshold, the screen pixel greater than the grayscale value threshold is determined as a defective screen pixel, otherwise it is determined as a normal screen pixel. As Figure 7 shown, based on the above determination rule, the screen pixels in the first row and the first column, the first row and the second column, the first row and the third column, the second row and the first column, the second row and the second column, the third row and the first column, the third row and the second column, and the third row and the third column can be determined as normal screen pixels, and the screen pixel in the second row and the third column can be determined as a defective screen pixel.
[0080] Further, please refer to Figure 8 , Figure 8 which is a schematic diagram of a functional module of the screen detection device 300 provided in an embodiment of the present application. In the embodiment of the present application, the screen detection device 300 can be divided into functional modules according to the method embodiment executed by the electronic device, that is, the following respective functional modules corresponding to the screen detection device 300 can be used to execute the above respective method embodiments. Among them, the screen detection device 300 can include a first acquisition module 310, a position determination module 320, a second acquisition module 330, a shielding processing module 340, and a pixel determination module 350. The functions of the respective functional modules of the screen detection device 300 will be elaborated in detail below.
[0081] The first acquisition module 310 is configured to control the image sensor 200 to acquire a first image of the screen to be detected in the screen-off state.
[0082] The image pixels in the first image correspond one-to-one with the photosensitive pixels in the image sensor. Exemplarily, as Figure 4 shown, the image pixels in the first image and the photosensitive pixels in the image sensor have the same distribution, for example, the same array distribution. Multiple image pixels in the first image can represent one screen pixel in the screen to be detected. For example, Figure 4 in, one screen pixel can be represented by the image pixels with a 3*3 array distribution shown in the dashed box in the first image. In other words, one screen pixel can be detected by the photosensitive pixels with a 3*3 array distribution in the image sensor.
[0083] In this embodiment, the screen-off state can refer to the state where the screen to be detected does not display, or the state where the screen to be detected displays a black screen. In the screen-off state, the screen to be detected appears black. When using the image sensor to take a picture, a first image with a black background can be obtained. If there are damaged photosensitive devices in the image sensor, since the image pixels corresponding to the damaged photosensitive pixels in the image are similar to the image pixels corresponding to the bright spots detected by the normal photosensitive pixels, the image pixels corresponding to the damaged photosensitive devices in the first image will be a bright spot.
[0084] In this embodiment, the first acquisition module 310 can be used to execute the above-mentioned step S11. For the detailed implementation manner of the first acquisition module 310, reference can be made to the detailed description of step S11 above.
[0085] The position determination module 320 is used to determine the positions of the damaged photosensitive pixels in the image sensor based on the first image.
[0086] In this embodiment, the position determination module 320 determines the positions of the damaged photosensitive pixels in the image sensor by detecting whether there are image pixels with a gray value greater than a preset gray value in the first image.
[0087] In this embodiment, the position determination module 320 can be used to execute the above-mentioned step S12. For the detailed implementation manner of the position determination module 320, reference can be made to the detailed description of step S12 above.
[0088] The second acquisition module 330 is used to control the image sensor to acquire a second image of the screen to be detected in the screen-on state.
[0089] In this embodiment, the screen-on state refers to the state where the screen to be detected displays a fixed picture. The displayed fixed picture can be a uniform color picture, such as a green picture, a red picture, a blue picture, etc. In the screen-on state, the screen pixels in the screen to be detected display the same gray-scale brightness.
[0090] In this embodiment, the second obtaining module 330 may be used to execute the above step S13. For the detailed implementation manner of the second obtaining module 330, reference may be made to the detailed description of the above step S13.
[0091] The shielding processing module 340 is configured to perform shielding processing on the corresponding image pixels in the second image based on the positions of the damaged photosensitive pixels, so as to obtain a screen detection image.
[0092] The shielding processing module 340 shields the image pixels corresponding to the positions of the damaged photosensitive pixels in the second image, which can exclude the influence of the damaged photosensitive pixels on the captured image.
[0093] In this embodiment, the shielding processing module 340 may be used to execute the above step S14. For the detailed implementation manner of the shielding processing module 340, reference may be made to the detailed description of the above step S14.
[0094] The pixel determination module 350 is configured to determine whether there are defective screen pixels in the screen to be detected based on the screen detection image.
[0095] In this embodiment, the pixel determination module 350 may be used to execute the above step S15. For the detailed implementation manner of the pixel determination module 350, reference may be made to the detailed description of the above step S15.
[0096] It should be noted that it should be understood that the division of each module in the above device or system is only a logical function division. In actual implementation, it may be fully or partially integrated into a physical entity, or physically separated. And these modules can all be implemented in the form that can be called by a processor through software (for example, open source software); they can also all be implemented in the form of hardware; or some modules can be implemented in the form of software called by a processor, and some modules can be implemented in the form of hardware. As an example, the shielding processing module 340 can be implemented by running a separate processor, and can be stored in the memory of the above device or system in the form of program code, and called and executed by a certain processor of the above device or system to perform the functions of the above shielding processing module 340. The implementation of other modules is similar and will not be elaborated here. In addition, these modules can be fully or partially integrated together or can be independently implemented. The processor described here can be an integrated circuit with signal processing capabilities. In the implementation process, each step or each module in the above technical solution can be completed in the form of integrated logic circuits in the processor or by executing software programs.
[0097] Please refer to Figure 9 , Figure 9 which shows a schematic hardware structure diagram of an electronic device 100 provided by an embodiment of the present disclosure for implementing the above screen detection method. As Figure 9As shown, the electronic device 100 may include a processor 110, a computer-readable storage medium 120, a bus 130, and a communication unit 140.
[0098] In a specific implementation process, the processor 110 executes computer-executable instructions stored in the computer-readable storage medium 120 (such as Figure 8 each module in the screen detection device 300 shown in
[0099] ), so that the processor 110 can execute the screen detection method in the above method embodiments. Among them, the processor 110, the computer-readable storage medium 120, and the communication unit 140 can be connected through the bus 130.
[0100] The specific implementation process of the processor 110 can refer to each method embodiment executed by the above electronic device 100, and its implementation principle and technical effects are similar, which will not be elaborated here in this application embodiment.
[0101] The bus 130 can be divided into an address bus, a data bus, a control bus, etc. For the convenience of representation, the bus in the drawings of this application does not limit to only one bus or one type of bus.
[0102] The communication unit 140 is used to communicate with the image sensor 200 to realize data interaction between the electronic device 100 and the image sensor 200.
[0103] In addition, this application embodiment also provides a readable storage medium, in which computer-executable instructions are stored. When the processor executes the computer-executable instructions, the above-mentioned screen detection method is realized.
[0104] In summary, for the screen detection method, device, and electronic device provided in the embodiments of the present application, first, a first image of the screen to be detected in the screen-off state is obtained; then, based on the first image, the positions of the damaged photosensitive pixels in the image sensor are determined; next, the image sensor is controlled to obtain a second image of the screen to be detected in the screen-on state; then, based on the positions of the damaged photosensitive pixels, the corresponding image pixels in the second image are masked to obtain a screen detection image; finally, based on the screen detection image, it is determined whether there are defective screen pixels in the screen to be detected. In the above process, the positions of the damaged photosensitive pixels in the image sensor are determined through the first image obtained in the screen-off state, and the image pixels corresponding to the damaged photosensitive pixels in the second image obtained in the screen-on state are masked to obtain a screen detection image, so as to avoid detection errors of screen pixels caused by damaged photosensitive pixels and improve the accuracy of screen pixel detection.
[0105] The foregoing is only a preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and modifications. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A method for detecting a screen body, characterized in that, The method includes: Controlling an image sensor to acquire a first image of a screen to be detected in a screen-off state, wherein a plurality of image pixels in the first image represent one screen pixel of the screen to be detected, and the image pixels in the first image correspond one-to-one with the photosensitive pixels in the image sensor; Based on the first image, determining the positions of the damaged photosensitive pixels in the image sensor; Controlling the image sensor to acquire a second image of the screen to be detected in a screen-on state; Based on the positions of the damaged photosensitive pixels, performing masking processing on the corresponding image pixels in the second image to obtain a screen detection image; Based on the screen detection image, determining whether there are defective screen pixels in the screen to be detected.
2. The screen body detection method according to claim 1, wherein The step of determining the positions of the damaged photosensitive pixels in the image sensor based on the first image includes: Performing binarization processing on the first image to obtain a binarized image; Based on the gray-scale values of the respective image pixels in the binarized image, determining the target image pixels corresponding to the damaged photosensitive pixels in the binarized image; According to the positions of the target image pixels in the binarized image, generating an image masking mask plate, wherein the value at the position corresponding to the damaged photosensitive pixel in the image masking mask plate is 0, and the value at the position corresponding to the normal photosensitive pixel in the image masking mask plate is 1.
3. The screen body detection method according to claim 2, wherein The step of performing masking processing on the corresponding image pixels in the second image based on the damaged photosensitive pixels to obtain a screen detection image includes: Multiplying the second image by the image masking mask plate to remove the gray-scale values of the image pixels corresponding to the damaged photosensitive pixels in the second image, thereby obtaining the screen detection image.
4. The screen body detection method according to any one of claims 1-3, characterized in that, The step of determining whether there are defective screen pixels in the screen to be detected based on the screen detection image includes: Based on the gray-scale values of the plurality of image pixels representing one screen pixel in the screen detection image, calculating the average gray-scale value of the screen pixel; Based on the differences between the average gray-scale values of different screen pixels, determining whether there are defective screen pixels in the screen to be detected.
5. A screen detection device, characterized in that, The apparatus includes: A first acquisition module, configured to control an image sensor to acquire a first image of a screen to be detected in a screen-off state, wherein a plurality of image pixels in the first image represent one screen pixel of the screen to be detected, and the image pixels in the first image correspond one-to-one with the photosensitive pixels in the image sensor; A position determination module, configured to determine the positions of the damaged photosensitive pixels in the image sensor based on the first image; A second acquisition module, configured to control the image sensor to acquire a second image of the screen to be detected in a screen-on state; A masking processing module, configured to perform masking processing on the corresponding image pixels in the second image based on the positions of the damaged photosensitive pixels to obtain a screen detection image; A pixel determination module, configured to determine whether there are defective screen pixels in the screen to be detected based on the screen detection image.
6. The screen body detection device according to claim 5, wherein, The position determination module is specifically configured to: Perform binarization processing on the first image to obtain a binarized image; Based on the grayscale values of each image pixel in the binary image, determine the target image pixels corresponding to the damaged photosensitive pixels in the binary image; Generate an image masking mask according to the positions of the target image pixels in the binary image, wherein the value at the position corresponding to the damaged photosensitive pixel in the image masking mask is 0, and the value at the position corresponding to the normal photosensitive pixel in the image masking mask is 1.
7. The screen body detection device according to claim 6, wherein, The masking processing module is specifically configured to: Multiply the second image by the image masking mask, and remove the grayscale values of the image pixels corresponding to the damaged photosensitive pixels in the second image to obtain the screen detection image.
8. The screen detection device according to any one of claims 5-7, characterized in that The pixel determination module is specifically configured to: Calculate the average grayscale value of the screen pixel based on the grayscale values of multiple image pixels representing a screen pixel in the screen detection image; Determine whether there are defective screen pixels in the screen to be detected based on the differences between the average grayscale values of different screen pixels.
9. An electronic device, characterized in that, The electronic device includes a processor and a computer-readable storage medium, the processor and the computer-readable storage medium are connected through a bus system, the computer-readable storage medium is used to store programs, instructions or codes, and the processor is used to execute the programs, instructions or codes in the computer-readable storage medium to implement the screen detection method according to any one of claims 1-4.
10. A computer-readable storage medium, characterized in that, Instructions are stored in the computer-readable storage medium, and when executed, cause the electronic device to execute the screen detection method according to any one of claims 1-4.
Citation Information
Patent Citations
Terminal touch screen detection method, detection device, and storage medium
CN108593672A
Defect detection method and device for electronic product and computer readable storage medium
CN111445452A