CN112730406A - Product testing method, system and readable storage medium - Google Patents

Product testing method, system and readable storage medium Download PDF

Info

Publication number
CN112730406A
CN112730406A CN202011498707.1A CN202011498707A CN112730406A CN 112730406 A CN112730406 A CN 112730406A CN 202011498707 A CN202011498707 A CN 202011498707A CN 112730406 A CN112730406 A CN 112730406A
Authority
CN
China
Prior art keywords
product
color data
state
upper computer
intelligent terminal
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.)
Pending
Application number
CN202011498707.1A
Other languages
Chinese (zh)
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 Toptec Technology Co ltd
Original Assignee
Shenzhen Toptec Technology 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 Toptec Technology Co ltd filed Critical Shenzhen Toptec Technology Co ltd
Priority to CN202011498707.1A priority Critical patent/CN112730406A/en
Publication of CN112730406A publication Critical patent/CN112730406A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/84Systems specially adapted for particular applications
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D21/00Measuring or testing not otherwise provided for
    • G01D21/02Measuring two or more variables by means not covered by a single other subclass
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/01Arrangements or apparatus for facilitating the optical investigation
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/17Systems in which incident light is modified in accordance with the properties of the material investigated
    • G01N21/25Colour; Spectral properties, i.e. comparison of effect of material on the light at two or more different wavelengths or wavelength bands
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • G06T7/0004Industrial image inspection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/13Edge detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30108Industrial image inspection
    • G06T2207/30141Printed circuit board [PCB]

Abstract

The invention discloses a product testing method, which comprises the following steps: when a product to be tested is connected with a needle bed of the automatic test platform, receiving a state setting instruction of the product to be tested sent by an upper computer; setting the state information of the product to be detected in response to the state setting instruction, and determining a detection area corresponding to the state information; and acquiring color data of each test point in the detection area, which is acquired by the intelligent terminal, and reporting the color data to an upper computer so that the upper computer can confirm the test result of the product to be tested according to the color data. The invention also discloses a product testing system and a readable storage medium. Gather colour data through intelligent terminal to interact with the host computer, make automatic test platform can independently accomplish the colour test, improved the convenience of colour test, can avoid the error because of the complicated operation leads to, improve automatic test effect.

Description

Product testing method, system and readable storage medium
Technical Field
The invention relates to the technical field of automatic testing, in particular to a product testing method, a product testing system and a readable storage medium.
Background
Traditional automatic test platform has less color check function, leads to can't make more comprehensive and effectual detection to the product that awaits measuring under some concrete application scenes. For example, when the display state of the LED needs to be detected, the color of the LED cannot be detected, so that the on-off state of the LED cannot be detected; when the appearance of a part needs to be detected, whether the left side is red or not and whether the right side is blue or not cannot be identified; the detection is difficult for the condition that the PCBA circuit board is missed, or the color of the wire is used wrongly.
The current self-testing platform is mainly used for color detection in the following two ways: one is to use optical fiber to test the color and brightness of a certain test point, each position needs corresponding optical fiber, the hardware structure is complex due to more positions, and the optical fiber is close to the reported test point during testing, which is very inconvenient to operate; the other is manual detection, which is not only high in cost, but also easy to generate false detection due to fatigue operation of operators. Therefore, the current color detection scheme applied to the automatic test platform has the problem of poor automatic detection effect caused by inconvenient operation.
Disclosure of Invention
The invention mainly aims to provide a product testing method, a product testing system and a readable storage medium, and aims to solve the problem that in the prior art, the color detection scheme for an automatic testing platform is poor in automatic detection effect due to inconvenience in operation.
In order to achieve the purpose, the invention provides a product testing method which is applied to an automatic testing platform, wherein the automatic testing platform comprises an intelligent terminal and an upper computer connected with the intelligent terminal, and the method comprises the following steps:
when a product to be tested is connected with a needle bed of the automatic test platform, receiving a state setting instruction of the product to be tested sent by an upper computer;
setting the state information of the product to be detected in response to the state setting instruction, and determining a detection area corresponding to the state information;
and acquiring color data of each test point in the detection area, which is acquired by the intelligent terminal, and reporting the color data to an upper computer so that the upper computer can confirm the test result of the product to be tested according to the color data.
Optionally, the step of determining the detection area corresponding to the state information includes:
receiving test point setting operation which is sent by an upper computer and corresponds to the state information;
determining the position information of each test point corresponding to the state information according to the test point setting operation;
and determining a detection area corresponding to the state information according to the position information of each test point.
Optionally, before the step of obtaining color data of each test point in the detection area collected by the intelligent terminal, the method includes:
determining image acquisition parameters of the intelligent terminal according to the state information and the detection area;
and adjusting the shooting parameters of the intelligent terminal according to the image acquisition parameters to acquire color data acquired by the intelligent terminal according to the adjusted shooting parameters.
Optionally, after the step of reporting the color data to the upper computer, the method includes:
detecting whether a state switching instruction sent by an upper computer is received;
if so, responding to the state switching instruction, switching the state information of the product to be detected to the next state, and executing the step of determining the detection area of the product to be detected corresponding to the state information;
and if not, executing the step of receiving the state setting instruction of the product to be tested sent by the upper computer when the next product to be tested is connected with the needle bed of the automatic test platform.
Optionally, before the step of detecting whether a state switching instruction sent by the upper computer is received, the method includes:
receiving a test result sent by an upper computer;
if the test result is that the current state is abnormal, outputting first prompt information by using the intelligent terminal so as to perform corresponding abnormal processing according to the first prompt information;
and if the test result is that the current state is normal, outputting second prompt information by using the intelligent terminal, and executing a step of detecting whether a state switching instruction sent by an upper computer is received.
Optionally, the step of obtaining color data of each test point in the detection area collected by the intelligent terminal includes:
setting the test time of a product to be tested and the refreshing frequency of the intelligent terminal when the intelligent terminal collects color data according to the state information;
and acquiring the color data of each frame of image acquired by the intelligent terminal according to the refreshing frequency in the testing time, wherein the color data of each frame of image comprises the color data of each testing point in the testing area.
Optionally, the step of obtaining color data of each test point in the detection area collected by the intelligent terminal and reporting the color data to an upper computer includes:
determining a data format of color data corresponding to the state information;
and acquiring color data of each test point in the detection area, which is acquired by the intelligent terminal, and reporting the color data to an upper computer in a determined data format.
Optionally, before receiving the state setting instruction of the product to be tested sent by the upper computer, include:
determining the detection items of the product to be detected;
if the detection item is contour detection, performing contour detection operation on the product to be detected;
and if the detection item is state detection, executing a step of receiving a state setting instruction of the product to be detected sent by the upper computer.
In addition, in order to achieve the above object, the present invention further provides a product testing system, which includes a memory, a processor, and a product testing program stored on the processor and capable of running on the processor, and the processor implements the steps of the product testing method as described above when executing the product testing program.
In addition, to achieve the above object, the present invention further provides a readable storage medium, which stores a product testing program, and the product testing program, when executed by a processor, implements the steps of the product testing method as described above.
According to the embodiment of the invention, when the product to be tested is connected with the needle bed of the automatic test platform, the state setting instruction of the product to be tested sent by the upper computer is received, the state information of the product to be tested is set in response to the state setting instruction, the detection area corresponding to the state information is determined at the same time, the color data of each test point in the detection area collected by the intelligent terminal is further obtained, and the color data is reported to the upper computer, so that the upper computer can confirm the test result of the product to be tested according to the color data, the color detection is not required to be carried out manually, the color detection is not required to be carried out in a point-to-point mode by adopting optical fibers, and the influence on the automatic test result caused by operation errors caused by complicated operation can. That is, gather the colour data in the detection area through intelligent terminal to carry out data interaction with the host computer, can realize that automatic test platform carries out the colour automatically and detects, improve the convenience of colour test, can reduce the error in test because of the inconvenient operation leads to, improve automatic test effect.
Drawings
FIG. 1 is a schematic diagram of a product testing system of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart diagram of an exemplary embodiment of a product testing method of the present invention;
FIG. 3 is a flowchart illustrating a method for testing a product according to another exemplary embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The main solution of the invention is: when a product to be tested is connected with a needle bed of the automatic test platform, receiving a state setting instruction of the product to be tested sent by an upper computer; setting the state information of the product to be detected in response to the state setting instruction, and determining a detection area corresponding to the state information; and acquiring color data of each test point in the detection area, which is acquired by the intelligent terminal, and reporting the color data to an upper computer so that the upper computer can confirm the test result of the product to be tested according to the color data.
At present, the color detection scheme for the automatic test platform mainly tests in a point-to-point mode or a manual mode through optical fibers, and the two modes are extremely inconvenient to operate and easily influence the automatic detection effect. Therefore, the invention provides a product testing method, a system and a readable storage medium, when a product to be tested is connected with a needle bed of an automatic testing platform, a state setting instruction of the product to be tested sent by an upper computer is received, then the state information of the product to be tested is set in response to the state setting instruction, a detection area corresponding to the state information is determined, then color data of each test point in the detection area collected by an intelligent terminal is obtained and reported to the upper computer, so that the upper computer confirms the test result of the product to be tested according to the color data, the automatic testing platform can automatically complete color detection, optical fibers are not needed to be used for carrying out detection in a point-to-point mode, manual detection is not needed, the operation convenience in color detection can be improved, and detection errors caused by complex operation are avoided, the automatic detection effect of the automatic test platform is improved.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a product testing system of a hardware operating environment according to an embodiment of the present invention.
The product testing system comprises an intelligent terminal, an upper computer connected with the intelligent terminal and a needle bed which can be controlled by the upper computer and is used for switching the testing state of a product to be tested.
As shown in fig. 1, the product testing system may further include: a communication bus 1002, a processor 1001, such as a CPU, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the product testing system configuration shown in FIG. 1 does not constitute a limitation of the product testing system, and may include more or fewer components than shown, or some components in combination, or a different arrangement of components.
In the product testing system shown in fig. 1, the network interface 1004 is mainly used for connecting to a background server and performing data communication with the background server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to invoke the product test program stored in the memory 1005 and perform the following operations:
when a product to be tested is connected with a needle bed of the automatic test platform, receiving a state setting instruction of the product to be tested sent by an upper computer;
setting the state information of the product to be detected in response to the state setting instruction, and determining a detection area corresponding to the state information;
and acquiring color data of each test point in the detection area, which is acquired by the intelligent terminal, and reporting the color data to an upper computer so that the upper computer can confirm the test result of the product to be tested according to the color data.
Alternatively, the processor 1001 may call a product test program stored in the memory 1005, and further perform the following operations:
receiving test point setting operation which is sent by an upper computer and corresponds to the state information;
determining the position information of each test point corresponding to the state information according to the test point setting operation;
and determining a detection area corresponding to the state information according to the position information of each test point.
Optionally, before the step of acquiring the color data of each test point in the detection area collected by the intelligent terminal, the processor 1001 may call a product test program stored in the memory 1005, and further perform the following operations:
determining image acquisition parameters of the intelligent terminal according to the state information and the detection area;
and adjusting the shooting parameters of the intelligent terminal according to the image acquisition parameters to acquire color data acquired by the intelligent terminal according to the adjusted shooting parameters.
Optionally, after the step of reporting the color data to the upper computer, the processor 1001 calls a product test program stored in the memory 1005, and performs the following operations:
detecting whether a state switching instruction sent by an upper computer is received;
if so, responding to the state switching instruction, switching the state information of the product to be detected to the next state, and executing the step of determining the detection area of the product to be detected corresponding to the state information;
and if not, executing the step of receiving the state setting instruction of the product to be tested sent by the upper computer when the next product to be tested is connected with the needle bed of the automatic test platform.
Optionally, before the step of detecting whether the status switching instruction sent by the upper computer is received, the processor 1001 may call the product test program stored in the memory 1005, and further perform the following operations:
receiving a test result sent by an upper computer;
if the test result is that the current state is abnormal, outputting first prompt information by using the intelligent terminal so as to perform corresponding abnormal processing according to the first prompt information;
and if the test result is that the current state is normal, outputting second prompt information by using the intelligent terminal, and executing a step of detecting whether a state switching instruction sent by an upper computer is received.
Alternatively, the processor 1001 may call a product test program stored in the memory 1005, and further perform the following operations:
setting the test time of a product to be tested and the refreshing frequency of the intelligent terminal when the intelligent terminal collects color data according to the state information;
and acquiring the color data of each frame of image acquired by the intelligent terminal according to the refreshing frequency in the testing time, wherein the color data of each frame of image comprises the color data of each testing point in the testing area.
Alternatively, the processor 1001 may call a product test program stored in the memory 1005, and further perform the following operations:
determining a data format of color data corresponding to the state information;
and acquiring color data of each test point in the detection area, which is acquired by the intelligent terminal, and reporting the color data to an upper computer in a determined data format.
Optionally, before receiving a state setting instruction of a product to be tested sent by the upper computer, the processor 1001 may call a product test program stored in the memory 1005, and further perform the following operations:
determining the detection items of the product to be detected;
if the detection item is contour detection, performing contour detection operation on the product to be detected;
and if the detection item is state detection, executing a step of receiving a state setting instruction of the product to be detected sent by the upper computer.
Referring to fig. 2, fig. 2 is a flow chart of an exemplary embodiment of the product testing method of the present invention.
The product testing method provided in the embodiment is suitable for an automatic testing platform, and can automatically perform color detection when a product is tested, so as to confirm whether a product to be tested can normally operate in different operating states according to a color detection result, or check whether the appearance design of the product to be tested meets preset requirements or not according to the color detection result. Because the color detection is not required to be carried out manually, and the color detection is also not required to be carried out in a point-to-point mode by adopting the optical fiber, the automation level of the automatic test platform is improved, and the operation is more convenient when the automatic test platform is used for carrying out product test.
It should be noted that the automated testing platform to which the product testing method in this embodiment is applied includes not only the needle bed and the upper computer, but also the intelligent terminal. This intelligent terminal can be the terminal equipment that has the image acquisition function such as smart mobile phone or intelligent flat board, and in the application, can be connected with the host computer with wired or wireless mode and realize data communication, preferably connect through WIFI in this embodiment. The upper computer is used as a control end capable of directly sending a control command, can be communicated with the intelligent terminal, and can control the connection state of the needle bed and a product to be tested; the needle bed is used as a non-standard test auxiliary fixture which can test on-line components by utilizing electrical performance so as to check production defects and poor components, the connection state between a test probe on the needle bed and a test point on a product to be tested can be controlled by an upper computer, and then the product to be tested is switched to different running states by changing the connection state of different test points so as to test different running states of the product to be tested.
Specifically, in this embodiment, the product testing method includes the following steps:
step S10: when a product to be tested is connected with a needle bed of the automatic test platform, receiving a state setting instruction of the product to be tested sent by an upper computer;
when carrying out automated test to the product that awaits measuring, in order to realize the automated inspection to the product colour that awaits measuring, can be connected with the needle bed of automatic test platform with the product that awaits measuring earlier, there are a plurality of running state at the product that awaits measuring, and when there is the product that awaits measuring to have the change on some colours under the different states, need carry out the colour detection to the product that awaits measuring corresponding different running state to whether the product that detects can normal operating under the running state of difference. The product to be detected is a product needing color detection, and can be a product provided with an LED, such as: whether the on-off state of the LED lamp is abnormal or not can be analyzed by carrying out color detection on the LED lamp, and then whether the running state of a product to be tested is abnormal or not can be analyzed; or the product may be a product with a part having a combined color, for example, a red part of a certain product is on the left, a blue part of the certain product is on the right, whether the part is installed incorrectly can be determined by performing color detection on the product to be tested, and for example, color test can be performed on PCBA (Printed Circuit Board + Assembly) to determine whether there is a missing part or whether the wire rod is used incorrectly, etc. Moreover, the product to be tested may include only one product, or may include a plurality of products at the same time. For example, a preset number of PCBA boards with the same number can be spliced to form a PCBA jointed board, and thus, each PCBA board is provided with a power indicator light; during the test, power indicator on every PCBA board all needs to inspect the LED state, and the accessible intelligent terminal shoots the LED of predetermineeing the number simultaneously, carries out state detection to the LED of predetermineeing the number simultaneously, realizes automatic test.
On one hand, the color detection can realize the consideration of different running states of the product to be detected, and also can realize the detection of whether the appearance profile of the product is qualified (if the product is not detected, whether the position of the part is staggered, whether the wiring is wrong, and the like). Therefore, in an embodiment, before receiving a state setting instruction of a product to be detected sent by an upper computer, a detection item corresponding to the product to be detected needs to be determined, and targeted detection is performed according to an item type corresponding to the detection item. Therefore, the detection items of the product to be detected can be set according to the product type of the product to be detected, such as the product related to the running state change, the detection items can be set to be state detection, the product not related to the state change, and the detection items can be set to be contour detection.
When the detection item is contour detection, contour detection operation can be performed on the product to be detected. The specific process of performing the contour detection operation on the product to be detected may be: firstly, determining a test surface required to be detected of a product to be detected and contour areas corresponding to different test surfaces. Then, when different test surfaces are tested, the product to be tested can be automatically turned over according to the set test sequence, and color data of each test point in the corresponding outline area is collected. Because the state change is not involved, the acquired color data does not need to be dynamically acquired, and only one image needs to be acquired by different test surfaces, and a plurality of images can be acquired simultaneously for the sake of safety; in addition, the collected outline area can be the whole outline area of the product to be tested, or the outline area where one or more components on the product to be tested are located, that is, one test surface may correspond to a plurality of outline areas; and then, uploading the collected color data corresponding to the different contour areas to an upper computer, and comparing the color data corresponding to the different contour areas with the pre-stored color data by the upper computer to determine whether the appearance contour of the product to be detected meets the preset requirement or not. If so, testing the next contour region until the last contour region; and if not, marking the product to be detected as unqualified.
When the detection item is in state detection, different running states corresponding to the product to be detected can be switched by sending a state switching instruction through the upper computer. Therefore, after the product to be tested is connected with the needle bed of the automatic test platform, whether a state setting instruction sent by the upper computer is received or not needs to be detected in real time, so that the state setting instruction of the product to be tested sent by the upper computer is received, and the running state of the product to be tested is set or switched. The state setting instruction can automatically switch the running states of the products to be tested according to each running state corresponding to the products to be tested and the execution sequence of each running state which are preset; or after testing an operating state, setting a state parameter corresponding to the next operating state, that is, after testing an operating state, receiving a state setting instruction sent by the upper computer again. The state setting instruction can be set manually or by default, and different types of products to be tested are tested by different test platforms.
Step S20: setting the state information of the product to be detected in response to the state setting instruction, and determining a detection area corresponding to the state information;
after receiving a state setting instruction of a product to be tested sent by an upper computer, a state parameter corresponding to the state setting instruction may be determined, and the state parameter may include: the number information and the position information of the test points, and various test parameters such as voltage, current and load corresponding to different test points.
And if the product to be tested only has one running state, responding to the state setting instruction, and directly setting the state parameters corresponding to the state setting instruction as the running parameters of the product to be tested when the product to be tested is tested so as to set the state information of the product to be tested as the state information corresponding to the state setting instruction.
If the product to be tested has multiple operation states, the connection position of the test point corresponding to each operation state, the voltage, the current, the load and the like corresponding to different test points are different, so that the current state parameter of the product to be tested needs to be switched to the state parameter corresponding to the state setting instruction, at this time, the connection state of the test points (such as the position, the number and the like of the electrified test points) and the test parameters such as the voltage, the current, the load and the like connected with each test point can be changed in response to the state setting instruction, and the state information of the product to be tested is switched.
Before collecting color data, in order to ensure the validity of the collected color data, a detection area corresponding to different state information of a product to be detected needs to be determined so as to collect color data of each test point in the detection area. In an embodiment, a user may autonomously set the location information and the quantity information of the test points on the automatic test platform, and thus, the test area corresponding to the state information of the product to be tested may be determined according to the test point setting operation triggered by the user on the automatic test platform.
Specifically, the step of determining the detection area corresponding to the state information of the product to be detected may be: the method includes the steps that an operation instruction sent by an upper computer is detected in real time, if a test point setting operation which is sent by the upper computer and corresponds to the current state information of a product to be detected is received, the test point setting operation can be responded, the test point corresponding to the test point setting operation is set as a target test point corresponding to the current state information, and an area containing all target test points is used as a detection area corresponding to the state information.
Step S30: acquiring color data of each test point in the detection area, which is acquired by the intelligent terminal, and reporting the color data to an upper computer so that the upper computer can confirm a test result of a product to be tested according to the color data;
the intelligent terminal comprises an image acquisition device (such as a camera), has an image acquisition function, and can acquire color images of all test points in the detection area through the intelligent terminal. However, because different products that await measuring are under different state information, the detection area that needs the collection can be different, and the object that corresponds the collection also can be different, and intelligent terminal is when gathering the colour image in the detection area, and corresponding adjustment also need be made to the shooting parameter that corresponds the setting. Therefore, image acquisition parameters of the intelligent terminal can be determined according to the current state information of the product to be detected and the determined detection area; and then, adjusting the shooting parameters of the intelligent terminal according to the determined image acquisition parameters to acquire color data acquired by the intelligent terminal according to the adjusted shooting parameters. Such as: under the current state, when the detection area is small, the focal length can be properly adjusted to carry out amplification treatment; when the discrimination between the detected object and the background color in the detection area is not large, the contrast can be properly improved; when the detection environment is dark, the exposure level can be properly increased. The image acquisition parameters are image parameters which need to be adjusted when color data of a product to be detected under current state information are acquired, and can comprise focal length, brightness, exposure, contrast and the like, and the shooting parameters, particularly the image parameters when the intelligent terminal is used for shooting, at least comprise the image acquisition parameters.
On the other hand, because the test time and the test frequency corresponding to different states may be different, in order to ensure the validity of the collected color data, the test time of the product to be tested and the refresh frequency of the color data collected by the intelligent terminal need to be set, so as to avoid the lack of reliability of the collected color data due to insufficient test time or too high refresh frequency which cannot effectively capture the color change. Therefore, in an embodiment, the test time of the product to be tested and the refresh frequency of the intelligent terminal when collecting the color data are also set according to the current state information of the product to be tested, and further, the color data of each frame of image collected by the intelligent terminal according to the set refresh frequency is obtained within the set test time. Meanwhile, it is also required to ensure that the acquired color data of each frame image includes the color data of each test point in the detection area.
After color data acquired by the intelligent terminal are acquired, the acquired color data can be reported to an upper computer, the upper computer processes the reported color data, for example, if a product to be detected is a charging power panel, the charging power panel is provided with 1 LED, the LED is in long-light state to supply power to the outside, and is in flashing state (1 second is on and 1 second is off) to indicate charging, and is not in light state to indicate shutdown; the intelligent terminal continuously acquires the image of each frame, extracts color data of each frame corresponding to the LED position, immediately reports the extracted color data to the upper computer, and if the upper computer needs to know the LED state, the upper computer needs to analyze the color data reported in real time so as to analyze the LED state.
Here, when the intelligent terminal reports the color data, the color data can be reported in a plurality of data formats, such as RGB formats or HSV formats, so that the upper computer can analyze different applications conveniently, and the application expansion can be performed conveniently. Therefore, in an embodiment, before the color data is reported to the upper computer, a data format of the color data corresponding to the current state information is determined, then the intelligent device is controlled to collect the color data of each test point in the detection area, and the collected color data is reported to the upper computer in the determined data format, so that the upper computer can analyze the received color data normally, and misjudgment on a test result when the color data cannot be analyzed normally is avoided, and thus an automatic test effect is influenced.
In an embodiment, the process of processing the color data by the upper computer may be: the method comprises the steps of intercepting color data of corresponding points on a color picture through an image recognition and processing technology, then comparing the intercepted color data with corresponding color data in a database, or classifying the intercepted color data through a color analysis model which is trained in advance and corresponds to a product to be detected, and the like, and analyzing whether the product to be detected can normally run under the current state. If the product to be detected can normally run in the current state, the next state can be entered for detection; and if the product to be detected is abnormal in operation in the current state, marking the product to be detected as abnormal in color. In addition, the color data and the corresponding test results can be correlated, and the correlated color data and the test results are uploaded to a server for storage, so that a user can view the color data and the test results in real time.
It is worth noting that: besides color detection, the automatic test platform can also perform performance detection in other aspects, such as sound detection and the like. Therefore, the automatic test platform can improve the color detection effect, and can combine color detection with detection in other aspects, thereby further improving the test effect of the automatic test platform.
In the embodiment, when a product to be tested is connected with a needle bed of an automatic test platform, a state setting instruction of the product to be tested sent by an upper computer is received, then state information of the product to be tested is set in response to the state setting instruction, a detection area corresponding to the state information is determined, color data of each test point in the detection area collected by an intelligent terminal is further obtained, and the color data is reported to the upper computer so that the upper computer can confirm a test result of the product to be tested according to the color data. The process of carrying out the color detection to the product to be detected is independently accomplished by automatic test platform, need not to carry out the color detection with point-to-point mode through optic fibre, also need not to accomplish the detection by the manual work, has improved the convenience that the color detected, is convenient for produce the line quantization production, improves production efficiency, can avoid simultaneously leading to the automated inspection effect not good because of the operation is inconvenient, has improved the automated inspection effect.
Referring to fig. 3, another exemplary embodiment of the product testing method of the present invention is proposed based on the above-described embodiment. In this embodiment, the product testing method includes the following steps:
step S11: when a product to be tested is connected with a needle bed of the automatic test platform, receiving a state setting instruction of the product to be tested sent by an upper computer;
step S12: setting the state information of the product to be detected in response to the state setting instruction, and determining a detection area corresponding to the state information;
step S13: acquiring color data of each test point in the detection area, which is acquired by the intelligent terminal, and reporting the color data to an upper computer;
step S14: detecting whether a state switching instruction sent by an upper computer is received;
step S15: if so, responding to the state switching instruction, switching the state information of the product to be detected to the next state information, and executing the step of determining the detection area of the product to be detected corresponding to the state information;
step S16: and if not, executing the step of receiving the state setting instruction of the product to be tested sent by the upper computer when the next product to be tested is connected with the needle bed of the automatic test platform.
In this embodiment, when the product to be detected has a plurality of states, the upper computer may determine whether the next state is needed for detection. Therefore, after the color data of each test point in the detection area collected by the intelligent terminal is obtained and reported to the upper computer, whether a state switching instruction sent by the upper computer is received or not can be further detected. If a state switching instruction sent by an upper computer is received, switching the state information of the product to be detected to the next state in response to the state switching instruction, and continuously executing the step of determining the detection area of the product to be detected corresponding to the state information after the state switching; if the state switching instruction sent by the upper computer is not received, whether the next product to be tested exists or not can be further detected, and if the next product to be tested exists and is connected with the needle bed of the automatic test platform, the step of receiving the state setting instruction of the product to be tested sent by the upper computer is continuously executed.
In an embodiment, after the color data is reported to the upper computer, the upper computer can confirm the test result of the product to be tested according to the reported color data, and the upper computer can further feed back the test result to the intelligent terminal so as to prompt the test result at the intelligent terminal side. Therefore, after receiving the test result sent by the upper computer, if the received test result indicates that the product to be tested is abnormal in the current state, the intelligent terminal can be used to output a first prompt message to prompt that the current state information is abnormal and prompt the reason of the possible abnormality, such as the fact that the image acquisition parameters of the intelligent terminal are not correct, the fact that the data format is not correct, the fact that the test time is not enough, and the like, so as to timely perform corresponding abnormality processing according to the first prompt message; if the received test result indicates that the product to be tested can normally operate in the current state, the intelligent terminal can be used for outputting second prompt information to prompt that the product to be tested operates normally in the current state, so that whether a step of receiving a state switching instruction sent by the upper computer is received or not is further executed, and then when the state switching instruction sent by the upper computer is received, the state information of the product to be tested is switched.
Of course, when the test result is that the current state is abnormal, the current state can be selectively switched to the next state, and the next state is continuously detected, so that the abnormal state is specifically processed.
This embodiment carries out the state switching through the host computer to the product that awaits measuring for the user can independently select whether to need to detect next state based on the production demand, so, can only trigger state switching instruction when needs carry out the state switching, and when need not carrying out the state switching, directly detect next product of awaiting measuring, can save the detection of unnecessary state switching and unnecessary state, make the automated inspection process more nimble, can improve the production efficiency of producing the line.
In addition, an embodiment of the present invention further provides a product testing system, where the product testing system includes a memory, a processor, and a product testing program that is stored on the processor and can be run on the processor, and the processor implements the steps of the product testing method when executing the product testing program.
In addition, an embodiment of the present invention further provides a readable storage medium, where a product testing program is stored on the readable storage medium, and the product testing program, when executed by a processor, implements the steps of the product testing method described above.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, a television, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A product testing method is characterized by being applied to an automatic testing platform, wherein the automatic testing platform comprises an intelligent terminal and an upper computer connected with the intelligent terminal, and the product testing method comprises the following steps:
when a product to be tested is connected with a needle bed of the automatic test platform, receiving a state setting instruction of the product to be tested sent by an upper computer;
setting the state information of the product to be detected in response to the state setting instruction, and determining a detection area corresponding to the state information;
and acquiring color data of each test point in the detection area, which is acquired by the intelligent terminal, and reporting the color data to an upper computer so that the upper computer can confirm the test result of the product to be tested according to the color data.
2. The product testing method of claim 1, wherein the step of determining a detection area corresponding to the status information comprises:
receiving test point setting operation which is sent by an upper computer and corresponds to the state information;
determining the position information of each test point corresponding to the state information according to the test point setting operation;
and determining a detection area corresponding to the state information according to the position information of each test point.
3. The product testing method of claim 1, wherein the step of obtaining color data of each test point in the detection area collected by the intelligent terminal is preceded by:
determining image acquisition parameters of the intelligent terminal according to the state information and the detection area;
and adjusting the shooting parameters of the intelligent terminal according to the image acquisition parameters to acquire color data acquired by the intelligent terminal according to the adjusted shooting parameters.
4. The product testing method of claim 1, wherein said step of reporting said color data to a host computer is followed by:
detecting whether a state switching instruction sent by an upper computer is received;
if so, responding to the state switching instruction, switching the state information of the product to be detected to the next state, and executing the step of determining the detection area of the product to be detected corresponding to the state information;
and if not, executing the step of receiving the state setting instruction of the product to be tested sent by the upper computer when the next product to be tested is connected with the needle bed of the automatic test platform.
5. The product testing method of claim 4, wherein before the step of detecting whether the status switching command sent by the upper computer is received, the method comprises:
receiving a test result sent by an upper computer;
if the test result is that the current state is abnormal, outputting first prompt information by using the intelligent terminal so as to perform corresponding abnormal processing according to the first prompt information;
and if the test result is that the current state is normal, outputting second prompt information by using the intelligent terminal, and executing a step of detecting whether a state switching instruction sent by an upper computer is received.
6. The product testing method of claim 1, wherein the step of obtaining color data of each test point in the detection area collected by the intelligent terminal comprises:
setting the test time of a product to be tested and the refreshing frequency of the intelligent terminal when the intelligent terminal collects color data according to the state information;
and acquiring the color data of each frame of image acquired by the intelligent terminal according to the refreshing frequency in the testing time, wherein the color data of each frame of image comprises the color data of each testing point in the testing area.
7. The product testing method of claim 1, wherein the step of obtaining color data of each test point in the detection area collected by the intelligent terminal and reporting the color data to an upper computer comprises:
determining a data format of color data corresponding to the state information;
and acquiring color data of each test point in the detection area, which is acquired by the intelligent terminal, and reporting the color data to an upper computer in a determined data format.
8. The product testing method of any one of claims 1 to 7, wherein before receiving the state setting instruction of the product to be tested sent by the upper computer, the method comprises:
determining the detection items of the product to be detected;
if the detection item is contour detection, performing contour detection operation on the product to be detected;
and if the detection item is state detection, executing a step of receiving a state setting instruction of the product to be detected sent by the upper computer.
9. A product testing system comprising a memory, a processor and a product testing program stored on the memory and executable on the processor, the processor implementing the steps of the product testing method of any one of claims 1-8 when executing the product testing program.
10. A readable storage medium, having stored thereon a product testing program, which when executed by a processor, performs the steps of the product testing method of any one of claims 1-8.
CN202011498707.1A 2020-12-17 2020-12-17 Product testing method, system and readable storage medium Pending CN112730406A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011498707.1A CN112730406A (en) 2020-12-17 2020-12-17 Product testing method, system and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011498707.1A CN112730406A (en) 2020-12-17 2020-12-17 Product testing method, system and readable storage medium

Publications (1)

Publication Number Publication Date
CN112730406A true CN112730406A (en) 2021-04-30

Family

ID=75602863

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011498707.1A Pending CN112730406A (en) 2020-12-17 2020-12-17 Product testing method, system and readable storage medium

Country Status (1)

Country Link
CN (1) CN112730406A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113325823A (en) * 2021-05-31 2021-08-31 重庆川仪速达机电有限公司 Automatic testing system and method for diesel engine monitor
CN113556535A (en) * 2021-07-16 2021-10-26 深圳创维-Rgb电子有限公司 Intelligent detection method, device and computer readable storage medium
CN115259213A (en) * 2022-07-20 2022-11-01 南京钛白化工有限责任公司 Hydrolysis seed crystal preparation regulation and control method, device, equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103024434A (en) * 2012-12-20 2013-04-03 广州视源电子科技股份有限公司 Automatic test system based on image matching
CN105184793A (en) * 2015-09-02 2015-12-23 广东电网有限责任公司汕尾供电局 Electric energy meter sample appearance and PCB element detection method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103024434A (en) * 2012-12-20 2013-04-03 广州视源电子科技股份有限公司 Automatic test system based on image matching
CN105184793A (en) * 2015-09-02 2015-12-23 广东电网有限责任公司汕尾供电局 Electric energy meter sample appearance and PCB element detection method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113325823A (en) * 2021-05-31 2021-08-31 重庆川仪速达机电有限公司 Automatic testing system and method for diesel engine monitor
CN113556535A (en) * 2021-07-16 2021-10-26 深圳创维-Rgb电子有限公司 Intelligent detection method, device and computer readable storage medium
CN115259213A (en) * 2022-07-20 2022-11-01 南京钛白化工有限责任公司 Hydrolysis seed crystal preparation regulation and control method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN112730406A (en) Product testing method, system and readable storage medium
CN110567987A (en) Feeder terminal substrate detection system and method based on automatic vision technology
CN111141529B (en) Automatic test method for automobile instrument signals
CN113496661A (en) LED display control system detection method, device and system
CN111263141B (en) Camera detection method and device and production line system
CN113096111A (en) Material detection method, system, computer program product and readable storage medium
CN111811560B (en) Detection method, device and system of automatic driving sensor and computer equipment
CN110232881A (en) Front board measuring method
CN109596317B (en) Detection method and device for panel lamp
CN112147439A (en) Instrument detection method, device, equipment, storage medium and system
CN216209508U (en) Detection equipment and detection system
CN113115031B (en) Method and system for detecting camera
KR101297470B1 (en) Method for testing inverter mass production automatically
CN113709065A (en) Automatic detection method, system, equipment and storage medium for panel light of switch
CN109522170B (en) Front shell display module detection device and system
CN111915601A (en) Intelligent terminal abnormity testing method, device and system
CN209992616U (en) Automatic detection equipment for control panel
CN113495210A (en) Low-voltage switch sampling inspection control method, device, equipment and storage medium
CN110457169B (en) Server board LED testing device and method
CN113495818B (en) Keyboard lamp detection system and method, computer readable storage medium and electronic device
CN112748118A (en) Detection system and detection method for display panel
CN112378908A (en) Capacitor polarity installation detection device and detection method
CN107454240B (en) Installation method of detection system, detection system and detection method of camera
CN205539254U (en) Charactron detecting system
CN110252686A (en) The determination method and device of remote controler quality

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210430

RJ01 Rejection of invention patent application after publication