CN108303237B - Terminal screen detection method, detection device and storage medium - Google Patents

Terminal screen detection method, detection device and storage medium Download PDF

Info

Publication number
CN108303237B
CN108303237B CN201810172038.5A CN201810172038A CN108303237B CN 108303237 B CN108303237 B CN 108303237B CN 201810172038 A CN201810172038 A CN 201810172038A CN 108303237 B CN108303237 B CN 108303237B
Authority
CN
China
Prior art keywords
terminal
range
image
detected
display screen
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810172038.5A
Other languages
Chinese (zh)
Other versions
CN108303237A (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.)
Shenzhen Huishoubao Tech Co ltd
Original Assignee
Shenzhen Huishoubao Tech 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 Shenzhen Huishoubao Tech Co ltd filed Critical Shenzhen Huishoubao Tech Co ltd
Priority to CN201810172038.5A priority Critical patent/CN108303237B/en
Publication of CN108303237A publication Critical patent/CN108303237A/en
Application granted granted Critical
Publication of CN108303237B publication Critical patent/CN108303237B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01MTESTING STATIC OR DYNAMIC BALANCE OF MACHINES OR STRUCTURES; TESTING OF STRUCTURES OR APPARATUS, NOT OTHERWISE PROVIDED FOR
    • G01M11/00Testing of optical apparatus; Testing structures by optical methods not otherwise provided for

Landscapes

  • Chemical & Material Sciences (AREA)
  • Analytical Chemistry (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention provides a method for detecting a terminal screen, which is characterized by comprising the following steps: shooting a first image of a display screen of a terminal to be detected, wherein a pure-color image and a floating icon are displayed on the display screen of the terminal to be detected; moving the floating icon to be out of the original position range of the floating icon, and shooting a second image of the display screen of the terminal to be detected; and identifying the first image and the second image, and determining the defect information of the display screen of the terminal to be detected according to the identification result. The embodiment of the invention also provides a detection device and a storage medium for executing the terminal screen detection method.

Description

Terminal screen detection method, detection device and storage medium
Technical Field
The invention belongs to the technical field of terminal detection, and particularly relates to a method and a device for detecting a terminal screen and a storage medium
Background
With the development of electronic technology and mobile internet, various electronic products are gradually popularized in life, and electronic products have become an indispensable part of life or work of people. In addition, with the increase of environmental awareness, users gradually tend to recycle or sell inapplicable electronic products in the second-hand market.
During the recycling of the terminal, the terminal element needs to be inspected to determine the value of the terminal. At present, in the terminal screen detection process, screen detection is sometimes affected due to the blockage of the terminal floating icon.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method, a device and a storage medium for terminal screen detection.
The embodiment of the invention provides a method for detecting a terminal screen, which is characterized by comprising the following steps:
shooting a first image of a display screen of a terminal to be detected, wherein a pure-color image and a floating icon are displayed on the display screen of the terminal to be detected;
moving the floating icon to be out of the original position range of the floating icon, and shooting a second image of the display screen of the terminal to be detected;
and identifying the first image and the second image, and determining the defect information of the display screen of the terminal to be detected according to the identification result.
The embodiment of the invention also provides a terminal screen detection method, which is characterized by comprising the following steps:
a detection method for a terminal screen is characterized by comprising the following steps:
shooting a first image of a display screen of a terminal to be detected, wherein a pure-color image and a floating icon are displayed on the display screen of the terminal to be detected;
moving the floating icon to be out of the original position range of the floating icon, and shooting a second image of the display screen of the terminal to be detected;
and sending the first image and the second image to a server, enabling the server to identify the first image and the second image, and determining the defect information of the display screen of the terminal to be detected according to the identification result.
The embodiment of the present invention further provides a detection device, which is characterized by comprising:
a processor, a memory for storing the processor-executable instructions;
wherein the processor is configured to call instructions stored in the memory to cause the detection device to perform any of the methods of the embodiments of the present invention.
An embodiment of the present invention further provides a computer-readable storage medium, where instructions are stored, and when the instructions are executed on a terminal, the detection apparatus is caused to execute any one of the methods described above.
The method, the device and the storage medium for detecting the terminal screen provided by the embodiment of the invention can facilitate a user to know the detection process.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive labor.
FIG. 1 is a schematic structural framework diagram of a detection device provided in an embodiment of the present invention;
FIG. 2 is a schematic structural diagram of a detecting device according to an embodiment of the present invention;
fig. 3 is a flowchart of a terminal screen detection method according to an embodiment of the present invention;
fig. 4 is another flowchart of a terminal screen detection method according to an embodiment of the present invention;
FIG. 5 is another flowchart of a terminal screen detection method according to an embodiment of the present invention;
FIG. 6 is another flowchart of a terminal screen detection method according to an embodiment of the present invention;
fig. 7 is another flowchart of a terminal screen detection method according to an embodiment of the present invention;
fig. 8 is another flowchart of a terminal screen detection method according to an embodiment of the present invention;
fig. 9 is another flowchart of a terminal screen detection method according to an embodiment of the present invention.
Detailed Description
The embodiment of the invention discloses various embodiments of a detection device, a detection method and a storage medium, which are used for detecting the state of a terminal such as a mobile phone, a tablet computer and the like so as to determine the state of the terminal. Further, the value of the terminal may be determined based on the detected state of the terminal to facilitate identification, evaluation, purchase, and/or other processes of the terminal, which may allow the owner of the terminal to more quickly learn about the value of the terminal to facilitate a transaction.
Some details are set forth in the following description and in figures 1-9 to provide those skilled in the art with an understanding of the embodiments of the invention. In other instances, well-known structures, materials, operations, and/or systems that are generally associated with terminals and/or devices of embodiments of the present invention, such as smart phones, mobile phones, handheld devices, consumer electronics, computing hardware, software, and networking systems, will not be described in detail in order to avoid unnecessarily obscuring descriptions of the various embodiments of the technology. One skilled in the relevant art will recognize, however, that the technology can be practiced without one or more of the details described herein, or with other structures, methods, components, and so forth.
The terminology used below should be interpreted in its broadest reasonable manner, even though it is being used in conjunction with a detailed description of certain examples of embodiments of the technology. Indeed, certain terms may even be emphasized below; however, any terminology intended to be interpreted in any restricted manner will be overtly defined as such in this detailed description section.
The drawings illustrate embodiments of the present technology and are not intended to limit the scope thereof. The dimensions of the various elements described are not necessarily to scale, and these various elements may be exaggerated in any scale to improve their legibility. Where details of a component are not necessary for a complete understanding of how it may be made and used, the details in the drawings may be abstract to exclude details such as the location of components and some precise connections between components.
In the drawings, like reference numbers identify identical elements, or at least substantially similar elements. To facilitate the discussion of particular elements, the most significant digit or digits of a given reference number refer to the number in which that element is first introduced to the figure.
The terms "first", "second", and the like in the embodiments of the present invention are only used for distinguishing related technical features, and do not indicate a sequence.
In order to explain the technical solutions of the embodiments of the present invention, the following description is given by way of specific examples.
Fig. 1 is a schematic structural framework diagram of a detection device 100 for implementing the present technology. The detection device 100 may be a device that only detects the state of the terminal to be detected, or may further include other components and/or components to evaluate the terminal to be detected after detecting the terminal to be detected, and then recover or perform other processing modes on the terminal to be detected. The terminal to be detected according to the embodiment of the present invention is a terminal placed in a detection device for state detection, and the terminal may include, but is not limited to, an electronic device such as a mobile phone, a smart phone, a portable electronic device, a tablet computer, MP3, MP4, a notebook, an ultrabook, a Personal Digital Assistant (PDA), a music player, a set-top box, a remote controller, an electronic book, and a smart wearable device (e.g., smart glasses, smart watch, etc.). The detection device 100 of the embodiment of the invention detects the state of the terminal to be detected, and uses the detected state information to perform operations such as selling, reselling, recycling, donation, exchange, identification, evaluation, pricing, auction, scrapping or overhaul and the like on the terminal to be detected. "recycling" as used in embodiments of the present invention generally refers to selling and/or purchasing, reselling, exchanging, donating and/or receiving, etc. electronic devices.
The detection device 100 of the embodiment of the present invention may include all of the components or devices shown in fig. 1, or may lack some of them. As shown in fig. 1, the detection device 100 may include a processor 110, a power supply device 120, an input device 130, a detection component 140, a memory 150, a display screen 160, a communication component 170, a recycling component 180, and a transaction component 190.
Processor 110 may include one or more processors, for example, processor 110 may include one or more central processors, or one central processor and one graphics processor. When the processor 110 includes a plurality of processors, the plurality of processors may be integrated on the same chip or may be independent chips. A processor may include one or more processing cores.
The power device 120 provides power for the detection device, and may be a battery or a plug connected to a power network.
The input device 130 may input information to the detection device, which may specifically include but is not limited to a camera 131, for capturing images and/or videos and inputting the captured images and/or videos to the detection device 100; the touch pad 132 is used for inputting corresponding instructions, such as inputting corresponding characters, icons and other operations; other input devices, such as microphones, scanning elements, etc., are not described in detail herein.
The detection component 140 is configured to detect a state of the terminal to be detected, where the specific state of the terminal to be detected is a general term for information for evaluating a value of the terminal to be detected: the state of the terminal to be detected comprises the performance state of the terminal to be detected, such as the software performance and/or the hardware performance state; the state of the terminal to be detected may also include hardware configuration of the terminal to be detected, such as parameters of a processor, memory size, screen performance, and the like; the state of the terminal to be detected may include an appearance state of the terminal to be detected, for example, information such as whether a scratch exists on a housing, whether a screen is broken, whether a corner is knocked, and the like. The inspection assembly 140 may include a hatch 141 through which the terminal to be inspected enters the inspection device 100 for status inspection. The mechanical component 142 is used for moving, turning, rotating, touching and the like to assist in detecting the terminal to be detected. The internal camera 143 captures images and/or video of the terminal to be detected. Other components for detecting the state of the terminal to be detected, and the like. For example, a moving part for performing appearance detection by moving the terminal to be detected to a specified position; or a touch component which slides a touch screen of the terminal to be detected so as to input touch information, and the like.
The memory 150 stores computer programs including an operating system program 1522, an application program 1521, and the like. The processor 110 is used to read the computer programs in the memory 150 and then execute computer program defined methods, such as the processor 110 reading an operating system program 1522 to run an operating system on the terminal to implement various functions of the operating system, or reading one or more application programs 1521 to run applications on the terminal.
Memory 150 also stores other data 153 in addition to computer programs, and other data 1523 may include data generated by operating system 1522 or application programs 1521 when executed, including system data (e.g., operating system configuration parameters) and user data, such as data generated by processes running.
Storage 150 typically includes internal memory 151 and external memory 152. The memory 151 may be a Random Access Memory (RAM), a Read Only Memory (ROM), a CACHE (CACHE), etc. The storage space of the embodiment of the present invention may include a flash memory (flash), a hard disk, an optical disk, a USB disk, a floppy disk, or a tape drive. The computer program is typically stored in external memory 152, from which processor 150 loads the computer program into memory 151 before performing the processing.
The display screen 160 is used for displaying information in the detection process, and in the embodiment of the present invention, a detection picture in the detection process may be displayed on the display screen. In one possible embodiment, the touch pad of the input device may be integrated with the display screen to form a touch screen. In the embodiment of the invention, in order to avoid misunderstanding, the display screen is separately described. It is understood that it is within the scope of the embodiments of the present invention to have the display screen as a stand-alone information display device and/or component, or as an integrated touch pad.
The communication component 170 is configured to enable the detection apparatus to establish a communication connection with a terminal to be detected, and a specific communication component may include an antenna, and is configured to establish a wireless connection with the terminal to be detected, and specifically may include but not limited to WiFi (wireless fidelity, wireless local area network based on ieee802.11b standard), Bluetooth (Bluetooth), nfc (near field communication), 3G, 4G, or 5G, and other operator network connections.
The recycling component 180 is a component that performs state detection on the terminal to be detected, provides the estimated value to the user, and recycles the terminal to be detected after the user receives the estimated value. The recovery assembly 180 includes, but is not limited to, a recovery cabin 181 for recovering and storing the terminal to be detected; the transmission assembly 182 is used to move the terminal to be tested or the retrieval module to ensure that the terminal to be tested is placed in the proper position.
The transaction component 190 is used to provide the assessed value to the user, and may be specifically a cash dispenser, an electronic money transfer device, and the like.
Fig. 2 is a specific structural schematic diagram of a detection device according to an embodiment of the present invention, the detection device may include a housing 210, the housing 210 is used to fix other components, for example, a camera 220 is disposed on the housing 210 and may be used to capture images and/or videos of a user when the detection device is operated, the housing 210 may further be provided with a display screen 230, and the specific display screen 230 may be a liquid crystal display (L CD) or a light emitting diode (L ED) display screen, a projection display, or the like, and is used to provide information, prompts, or the like to the user, the housing 210 may further be provided with a hatch 240, a terminal to be detected enters the housing 210 through the hatch 240, and is detected by the detection component 140 illustrated in fig. 1 to determine a state of the terminal to be detected, the detection device 100 may further include a recovery compartment 250, and the terminal to be detected which is stored in the recovery compartment 250, the detection device 100 may further include a base 260.
Fig. 3 is a flowchart illustrating a method for detecting a terminal screen according to an embodiment of the present invention. The specific implementation mode is as follows:
310, a first image of a display screen of a terminal to be detected is shot, wherein a solid image and a floating icon are displayed on the display screen of the terminal to be detected.
Specifically, as an implementation manner, a first instruction can be sent to the terminal to be detected, wherein the first instruction is used for controlling the terminal to be detected to display a pure color image, such as black, white, RED, blue, GREEN and the like, wherein RED (RED, abbreviated as "R"), blue (B L UE, abbreviated as "B"), GREEN (GREEN, abbreviated as "G") are three primary colors of the display screen, and each primary color generally has 8 levels, i.e., 0 to 255 can be displayed, if the primary color is pure RED, (255,0, 0) if the primary color is pure GREEN, (0, 255,0) if the primary color is pure blue, (0,0, 255) if the primary color is pure GREEN, and black, white and the like can be displayed by combining the three primary colors.
As another implementation mode, a second instruction of the terminal to be detected is received, wherein the second instruction is an instruction which is sent after the terminal to be detected displays a pure-color image and is used for controlling the detection device to shoot a display screen of the terminal to be detected; and then shooting the display screen of the terminal to be detected based on the second instruction to obtain a shot image. The terminal is enabled to display the pure-color image, so that the identification of the display defects of the terminal display screen is facilitated.
The floating icon (for example, "small dot on desktop", or "small dot") in the embodiment of the present invention refers to an icon, a button, a widget and other operation controls displayed on the uppermost layer of a display interface of a terminal, and for example, in an Android (Android operating system) or IOS (apple operating system) terminal, the floating icon may be displayed on the display interface, so as to facilitate operations such as quickly switching pages. For example, the Home page can be quickly switched to by hovering the icon. In general, the floating icon is displayed on the uppermost layer of the terminal interface and is displayed at the boundary of the terminal display screen or a position close to the boundary, and in any interface, the floating icon appears on the display screen. The display screen of the terminal to be detected is also called as a screen of the terminal to be detected, or a screen or a display device.
And 320, moving the floating icon to the outside of the original position range of the floating icon, and shooting a second image of the display screen of the terminal to be detected.
A feasible implementation of the embodiment of the present invention is to send an instruction to move the floating icon to the terminal to be detected, so as to control the terminal to be detected to move the floating icon out of the original position range. For example, the terminal is controlled to move the floating icon to a specified distance or direction through the terminal operating system or an application program. An exemplary implementation manner is to send an instruction to the terminal to be detected, and control the floating icon to move up or down by 2cm (or a distance not less than the up-down length of the floating icon) or to move left or right by 2cm (or a distance not less than the up-down width of the floating icon), that is, it is enough to ensure that the floating icon moves beyond the original position range.
Another possible implementation manner of the embodiment of the present invention is that, by using a touch device included in the detection device, the touch device in the embodiment of the present invention is a device, such as a stylus pen, a finger, and the like, capable of generating touch operations, such as clicking, sliding, dragging, long-pressing, double-pressing, and pinching, on a touch pad of the terminal to be detected. The specific implementation mode is as follows:
410 shooting a second image of a display screen of the terminal to be detected, wherein a floating icon is displayed in the display screen of the terminal to be detected.
And shooting a second image of the display screen of the terminal to be detected through the camera of the detection device. Specifically, when the display screen of the terminal to be detected is lighted, that is, when the display interface of the terminal to be detected is displayed, the camera of the terminal to be detected is used for shooting the second image with the display screen of the terminal to be detected.
420 identify the second image and determine the original position of the floating icon.
The method comprises the steps of extracting features, such as colors, gray values, lines and the like, in the processed second image by processing the second image, such as denoising, binarization, graying and the like, and identifying the position of the floating icon and the coordinate range in the second image through feature comparison to determine the original position of the floating icon.
430 moving the floating icon out of the original position range of the floating icon through a touch device.
The detection device drags or moves the floating icon out of the range of the original position by moving the touch device to the original position of the floating icon. For example, up or down or left or right, by a distance (not less than the length or width of the floating icon) to move the floating icon out of the original position range.
Another possible implementation manner of the embodiment of the present invention is that, by using a touch device included in the detection device, the touch device in the embodiment of the present invention is a device, such as a stylus pen, a finger, and the like, capable of generating touch operations, such as clicking, sliding, dragging, long-pressing, double-pressing, and pinching, on a touch pad of the terminal to be detected. The specific implementation mode is as follows:
510 identify the first image and determine the original position of the floating icon.
The method comprises the steps of acquiring a first image, processing the first image, such as denoising, binarization, graying and the like, extracting features, such as colors, gray values, lines and the like, in the processed first image, and identifying the position of a floating icon and a coordinate range in the first image through feature comparison to determine the original position of the floating icon.
520, moving the floating icon to be out of the original position range of the floating icon through a touch device.
The detection device drags or moves the floating icon out of the range of the original position by moving the touch device to the original position of the floating icon. For example, up or down or left or right, by a distance (not less than the length or width of the floating icon) to move the floating icon out of the original position range.
330 identifying the first image and the second image, and determining the defect information of the display screen of the terminal to be detected according to the identification result.
The first and second images are subjected to image processing, such as denoising, binarization, and gradation. The processed image feature information is then extracted, for example, the feature information may be color information and/or shape information. And inquiring and comparing the characteristics of the defect information of the display screen prestored in the first image or the second image, and if the characteristics of the screen defect exist in the first image or the second image, determining the corresponding area as the defect area of the terminal display screen, for example, extracting abnormal brightness line segment information and/or abnormal brightness point information.
When the bright spot information and/or the bright line information of the display screen of the terminal to be detected are determined to be detected, the pure color is black, the contrast can be improved by displaying the black color, and the identification of the bright spot and/or the bright line is facilitated.
When the dark point information and/or the dark line information of the display screen of the terminal to be detected are determined to be detected, the pure color is white, and the contrast can be provided by displaying the white color, so that the identification of the dark points and/or the bright lines is facilitated. The abnormal luminance line segment information includes the number and length of abnormal luminance line segments, and the like, and the abnormal luminance point information includes the number of abnormal luminance points. And different abnormal brightness line segment information or abnormal brightness point information corresponds to different display performance grades. And determining the display performance grade of the display screen of the terminal to be detected based on the abnormal brightness line segment information or the abnormal brightness point information.
A more specific implementation manner of the embodiment of the present invention is to extract partial images from the first image and the second image, and identify the partial images and/or combine the partial images to form a finished terminal display screen for identification, so as to determine whether the terminal screen to be detected has defects. The specific implementation mode is as follows:
and 610, extracting an image in a first range from the range of the display screen of the terminal to be detected in the first image, and extracting an image in a second range from the range of the display screen of the terminal to be detected in the second image, wherein the combination of the first range and the second range is not less than the range of the display screen of the terminal to be detected, and the first range and the second range do not contain the suspension icon.
The image of the first range is a partial image that does not include the original position of the floating icon. And extracting the image of the first range without the position range of the suspension icon by identifying the range of the display screen of the terminal to be detected in the first image. Similarly, a second range of images is also extracted on the second image, where the second range does not include the range of positions of the floating icon. And combining the image in the first range with the image in the second range, and ensuring that all ranges of the display screen of the terminal to be detected can be covered. For example, in the first image, the floating icon is located on the upper half portion of the display screen of the terminal to be detected, and in the second image, the floating icon is located on the lower half portion of the display screen of the terminal to be detected; the lower half part of the range of the display screen of the terminal to be detected in the first image is extracted, the upper half part of the display screen of the terminal to be detected in the second image is extracted, and then the extracted images are respectively identified, so that all ranges of the display screen of the terminal to be detected can be identified.
And 620, identifying the images in the first range and the second range, and determining the defect information of the terminal screen to be detected.
The first range image from which the first image is extracted and the second range image from which the second image is extracted are subjected to image processing, such as denoising, binarization, and graying. The processed image feature information is then extracted, for example, the feature information may be color information and/or shape information. And inquiring and comparing the characteristics of the pre-stored screen defect information in the first range image or the second range image, and if the characteristics of the screen defect exist in the first range image or the second range image, determining the corresponding area as a defect area of the terminal display screen.
A feasible implementation manner of the embodiment of the present invention is to extract pixel values from the first range image or the second range image, and then compare the pixel values to determine defect information of the display screen of the terminal to be detected. The specific implementation mode is as follows:
710 extracting the pixel value with the highest probability of occurrence from the pixel values in the first range and the second range, and determining the pixel value with the highest probability as a standard value.
The pixel value, which is the value assigned by the computer when the image is digitized, represents the average luminance and/or color information of a certain small square or point of the image. Specific pixel values may be represented by standard primary colors.
One possible implementation is to represent the pixel values by taking the RGB values, i.e. the standard red, green and blue luminance values of the displayed image. Specifically, acquiring the standard RGB values includes: acquiring red brightness values, green brightness values and blue brightness values (hereinafter referred to as RGB values) of a plurality of pixels in a display image; counting the RGB value of each pixel to obtain the RGB value with the maximum occurrence probability; and determining the RGB value with the maximum occurrence probability as the standard RGB value of the display image. In order to reduce the amount of calculation and increase the detection speed, the RGB values of a plurality of pixels in the display image may be sampled and acquired. The first method comprises the steps of clustering all RGB values to obtain a plurality of clusters of RGB values, then respectively calculating the weight of each cluster, and determining the mean value of the cluster with the maximum weight as a standard RGB value. Secondly, dividing each RGB value by a preset integer to obtain a quotient; removing decimal places of each quotient to obtain each integer quotient; obtaining products of each integer quotient and a preset integer, obtaining each product value, and counting the occurrence times of each product value; and determining the product value with the largest occurrence number as the standard RGB value.
720, obtaining pixel points with the difference from the standard value exceeding a set threshold value in the pixel values in the first range and the second range, and determining the pixel points as the defect information of the display screen of the terminal to be detected.
And acquiring a difference value between the maximum value and the minimum value in the standard RGB values, and judging whether the difference value is greater than a first preset threshold value. And if the difference is smaller than a first preset threshold, judging that the terminal screen does not have color cast, and if the difference is larger than the first preset threshold, judging that the terminal screen has color cast.
Examples of the invention
810 divides the first range image and the second range image into set sub-regions.
And dividing the first range image and the second range image into a plurality of sub-areas according to a set rule, such as a criss-cross mode, a staggered division mode and the like.
820 comparing pixel values of pixel points among the sub-regions, and determining the sub-region with larger difference as an abnormal region of the display screen of the terminal to be detected.
And counting the pixel values of the pixel points in each sub-area, wherein the pixel value is a value given by a computer when the image is digitalized and represents the average brightness information of a certain small square or point of the image. Specific pixel values may be represented by standard primary colors. One possible implementation is to represent the pixel values by taking the RGB values, i.e. the standard red, green and blue luminance values of the displayed image.
By counting the pixel value with the highest probability of occurrence in each sub-region or the average pixel value of the sub-region, etc. The pixel values with the highest probability of occurrence for each sub-region or the average pixel value are then compared to determine the correspondence between the sub-regions. If the difference of pixel values between the sub-regions exceeds a set threshold, it can be judged that color cast occurs.
The embodiment of the invention discloses a flow diagram of a method for detecting a terminal screen. The specific implementation mode is as follows:
910, a first image of a display screen of a terminal to be detected is shot, wherein a solid image and a floating icon are displayed on the display screen of the terminal to be detected.
And 920, moving the floating icon to be out of the original position range of the floating icon, and shooting a second image of the display screen of the terminal to be detected.
930, sending the first image and the second image to a server, so that the server identifies the first image and the second image, and determining the defect information of the display screen of the terminal to be detected according to the identification result.
In an embodiment of the present invention, the detection data, such as the first image, the second image, and the like, is obtained by the detection device. The detection device sends the detection data to the server, and the server processes the corresponding detection data to determine the defect information of the display screen of the terminal to be detected. For descriptive information, see the above-described embodiments.
The embodiment of the invention also provides a detection device, and the method of the embodiment can be operated on the detection device. Specifically, the detection apparatus provided in the embodiment of the present invention at least includes a processor, a memory for storing executable instructions of the processor; wherein the processor is configured to control the detection apparatus to implement any of the methods of the above embodiments.
An embodiment of the present invention further provides a computer-readable storage medium, where instructions are stored, and when the instructions are executed on a detection apparatus, the detection apparatus is caused to execute any one of the methods described in the foregoing embodiments.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/terminal device are illustrative, and for example, the division of the modules or units is a logical division, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. . Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer memory, Read-only memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, etc. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media which may not include electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (9)

1. A method for detecting a terminal screen is characterized by comprising the following steps:
shooting a first image of a display screen of a terminal to be detected, wherein a pure-color image and a floating icon are displayed on the display screen of the terminal to be detected;
moving the floating icon to be out of the original position range of the floating icon, and shooting a second image of the display screen of the terminal to be detected;
identifying the first image and the second image, and determining the defect information of the display screen of the terminal to be detected according to the identification result; the method specifically comprises the following steps: extracting an image in a first range from a display screen range of a terminal to be detected in the first image, and extracting an image in a second range from the display screen range of the terminal to be detected in the second image, wherein the combination of the first range and the second range is not less than the range of the display screen of the terminal to be detected, and the first range and the second range do not contain the suspension icon;
and identifying the images in the first range and the second range, and determining the defect information of the terminal screen to be detected.
2. The method of claim 1, wherein the moving the floating icon outside of the floating icon's original position range comprises:
shooting a second image of a display screen of the terminal to be detected;
identifying the second image, and determining the original position of the suspension icon;
and moving the floating icon to be out of the original position range of the floating icon through a touch device.
3. The method of claim 1, wherein the moving the floating icon outside of the floating icon's original position range comprises:
identifying the first image, and determining the original position of the suspension icon;
and moving the floating icon to be out of the original position range of the floating icon through a touch device.
4. The method of claim 1, wherein moving the floating icon outside of the floating icon's original position range is specifically:
and sending an instruction for moving the floating icon to the terminal to be detected so as to control the terminal to be detected to move the floating icon out of the range of the original position.
5. The method of claim 1, wherein the identifying the images in the first range and the second range, and the determining the defect information of the terminal screen to be detected comprises:
extracting the pixel value with the maximum probability from the pixel values in the first range and the second range, and determining the pixel value with the maximum probability as a standard value;
and acquiring pixel points with the difference from the standard value exceeding a set threshold value in the pixel values in the first range and the second range, and determining the pixel points as the defect information of the display screen of the terminal to be detected.
6. The method of claim 1, wherein the identifying the images in the first range and the second range, and the determining the defect information of the terminal screen to be detected comprises:
dividing the first range image and the second range image into set sub-regions;
and comparing pixel values of pixel points among the sub-regions, and determining the sub-region with larger difference as an abnormal region of the display screen of the terminal to be detected.
7. A detection method for a terminal screen is characterized by comprising the following steps:
shooting a first image of a display screen of a terminal to be detected, wherein a pure-color image and a floating icon are displayed on the display screen of the terminal to be detected;
moving the floating icon to be out of the original position range of the floating icon, and shooting a second image of the display screen of the terminal to be detected;
sending the first image and the second image to a server, enabling the server to identify the first image and the second image, and determining defect information of a display screen of the terminal to be detected according to an identification result; the method specifically comprises the following steps: extracting an image in a first range from a display screen range of a terminal to be detected in the first image, and extracting an image in a second range from the display screen range of the terminal to be detected in the second image, wherein the combination of the first range and the second range is not less than the range of the display screen of the terminal to be detected, and the first range and the second range do not contain the suspension icon;
and identifying the images in the first range and the second range, and determining the defect information of the terminal screen to be detected.
8. A detection device, comprising:
a processor, a memory for storing the processor-executable instructions;
wherein the processor is configured to call instructions stored in the memory to cause the detection apparatus to perform any of the methods of claims 1-7.
9. A computer-readable storage medium having stored therein instructions that, when executed on a detection apparatus, cause the detection apparatus to perform any of the methods of claims 1-7.
CN201810172038.5A 2018-03-01 2018-03-01 Terminal screen detection method, detection device and storage medium Active CN108303237B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810172038.5A CN108303237B (en) 2018-03-01 2018-03-01 Terminal screen detection method, detection device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810172038.5A CN108303237B (en) 2018-03-01 2018-03-01 Terminal screen detection method, detection device and storage medium

Publications (2)

Publication Number Publication Date
CN108303237A CN108303237A (en) 2018-07-20
CN108303237B true CN108303237B (en) 2020-07-28

Family

ID=62849402

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810172038.5A Active CN108303237B (en) 2018-03-01 2018-03-01 Terminal screen detection method, detection device and storage medium

Country Status (1)

Country Link
CN (1) CN108303237B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109345691A (en) * 2018-07-23 2019-02-15 深圳回收宝科技有限公司 A kind of method, portable terminal and the storage medium of electronic product recycling
CN110086921B (en) * 2019-04-28 2021-09-14 深圳回收宝科技有限公司 Method and device for detecting performance state of terminal, portable terminal and storage medium
CN110189670A (en) * 2019-06-24 2019-08-30 珠海格力智能装备有限公司 A kind of LED display screen defect inspection method
CN112950608B (en) * 2021-03-15 2023-05-26 读书郎教育科技有限公司 Method for detecting screen pattern and screen flashing of terminal in factory

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0979946A (en) * 1995-09-18 1997-03-28 Sanyo Electric Co Ltd Inspection device for display device
JP2002340740A (en) * 2001-05-16 2002-11-27 Matsushita Electric Ind Co Ltd Method for inspecting address of display defect in liquid crystal display unit
JP2007071785A (en) * 2005-09-08 2007-03-22 Victor Co Of Japan Ltd Method for inspecting projector
CN101655614A (en) * 2008-08-19 2010-02-24 京东方科技集团股份有限公司 Method and device for detecting cloud pattern defects of liquid crystal display panel
TWI490791B (en) * 2011-12-09 2015-07-01 國立高雄應用科技大學 Display defect-inspecting method
CN105679221A (en) * 2016-03-31 2016-06-15 广东欧珀移动通信有限公司 Chromatic aberration detection method and device and terminal
CN105973894A (en) * 2016-04-28 2016-09-28 蚌埠国显科技有限公司 Display screen foreign matter detection method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0979946A (en) * 1995-09-18 1997-03-28 Sanyo Electric Co Ltd Inspection device for display device
JP2002340740A (en) * 2001-05-16 2002-11-27 Matsushita Electric Ind Co Ltd Method for inspecting address of display defect in liquid crystal display unit
JP2007071785A (en) * 2005-09-08 2007-03-22 Victor Co Of Japan Ltd Method for inspecting projector
CN101655614A (en) * 2008-08-19 2010-02-24 京东方科技集团股份有限公司 Method and device for detecting cloud pattern defects of liquid crystal display panel
TWI490791B (en) * 2011-12-09 2015-07-01 國立高雄應用科技大學 Display defect-inspecting method
CN105679221A (en) * 2016-03-31 2016-06-15 广东欧珀移动通信有限公司 Chromatic aberration detection method and device and terminal
CN105973894A (en) * 2016-04-28 2016-09-28 蚌埠国显科技有限公司 Display screen foreign matter detection method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
怎么检测显示器坏点;年轻小鲜橙;《百度知道》;20170726;第1页 *

Also Published As

Publication number Publication date
CN108303237A (en) 2018-07-20

Similar Documents

Publication Publication Date Title
CN108303237B (en) Terminal screen detection method, detection device and storage medium
US11113523B2 (en) Method for recognizing a specific object inside an image and electronic device thereof
EP3736766A1 (en) Method and device for blurring image background, storage medium, and electronic apparatus
CN103916589B (en) Method for running video camera and its electronic equipment
CN108875451B (en) Method, device, storage medium and program product for positioning image
US20150039637A1 (en) Systems Apparatus and Methods for Determining Computer Apparatus Usage Via Processed Visual Indicia
KR102638707B1 (en) Method and Electronic device for reading a barcode
CN110100251A (en) For handling the equipment, method and graphic user interface of document
US20160170492A1 (en) Technologies for robust two-dimensional gesture recognition
CN108593672A (en) A kind of detection method, detection device and the storage medium of terminal touch screen
CN110378276B (en) Vehicle state acquisition method, device, equipment and storage medium
EP4047549A1 (en) Method and device for image detection, and electronic device
CN108563972B (en) Graphic code identification method and device, mobile terminal and storage medium
CN111080665A (en) Image frame identification method, device and equipment and computer storage medium
CN110796673B (en) Image segmentation method and related product
CN112381798A (en) Transmission line defect identification method and terminal
CN107862010B (en) Method and device for acquiring information of application system of Internet of things and mobile terminal
CN110705653A (en) Image classification method, image classification device and terminal equipment
CN109144379B (en) Method for operating terminal, terminal detection device, system and storage medium
CN108668310B (en) Control method of detection device, detection device and storage medium
CN109117035B (en) Method for hiding floating icon, terminal recovery system and storage medium
CN108769527B (en) Scene identification method and device and terminal equipment
CN113255421A (en) Image detection method, system, device and medium
US10713792B1 (en) System and apparatus for image processing
CN110049316B (en) Method and device for detecting set number of terminals, portable terminal and storage medium

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
CP02 Change in the address of a patent holder

Address after: 518000 building 20, Shenzhen International Innovation Center, No. 1006, Shennan Road, Futian District, Shenzhen, Guangdong, Guangdong

Patentee after: SHENZHEN HUISHOUBAO TECH Co.,Ltd.

Address before: 518057 building 7, building 8, Granville Software Park, Nanshan District science and Technology Park, Shenzhen, Guangdong

Patentee before: SHENZHEN HUISHOUBAO TECH Co.,Ltd.

CP02 Change in the address of a patent holder