CN114813736A - Test system, method and storage medium - Google Patents

Test system, method and storage medium Download PDF

Info

Publication number
CN114813736A
CN114813736A CN202210459234.7A CN202210459234A CN114813736A CN 114813736 A CN114813736 A CN 114813736A CN 202210459234 A CN202210459234 A CN 202210459234A CN 114813736 A CN114813736 A CN 114813736A
Authority
CN
China
Prior art keywords
image acquisition
acquisition equipment
personal computer
industrial personal
picture
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
CN202210459234.7A
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.)
Suzhou Luster Vision Intelligent Device Co Ltd
Suzhou Lingyunguang Industrial Intelligent Technology Co Ltd
Original Assignee
Suzhou Luster Vision Intelligent Device Co Ltd
Suzhou Lingyunguang Industrial Intelligent 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 Suzhou Luster Vision Intelligent Device Co Ltd, Suzhou Lingyunguang Industrial Intelligent Technology Co Ltd filed Critical Suzhou Luster Vision Intelligent Device Co Ltd
Priority to CN202210459234.7A priority Critical patent/CN114813736A/en
Publication of CN114813736A publication Critical patent/CN114813736A/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
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1408Methods for optical code recognition the method being specifically adapted for the type of code
    • G06K7/14172D bar codes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/0007Image acquisition
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/0014Image feed-back for automatic industrial control, e.g. robot with camera
    • 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/60Analysis of geometric attributes
    • G06T7/62Analysis of geometric attributes of area, perimeter, diameter or volume

Abstract

The embodiment of the invention discloses a test system, a test method and a storage medium. Wherein, the system includes: the industrial personal computer is used for sending the motion instruction to the motion module; the motion module is used for moving the image acquisition equipment to a target position according to the motion instruction and sending a movement completion instruction to the industrial personal computer after the image acquisition equipment is moved; the industrial personal computer is used for sending the image acquisition command to the image acquisition equipment after receiving the movement completion command; the image acquisition equipment is used for acquiring a target picture comprising a glass target, preprocessing the target picture to obtain preprocessing information and sending the preprocessing information to the industrial personal computer; and the industrial personal computer determines a test result according to the preprocessing information and the preset information. By executing the scheme, the test on each material of the industrial vision system can be automatically and efficiently realized, the manual participation is avoided, the test efficiency can be improved, the test process is more scientific, and the test result is accurate.

Description

Test system, method and storage medium
Technical Field
The embodiment of the invention relates to the technical field of industrial vision, in particular to a test system, a test method and a storage medium.
Background
In the industrial visual inspection scheme, materials of each optical device play a key role, the materials are matched with each other, and a target result is calculated and displayed in real time, so that the industrial visual inspection scheme is the core of a whole set of system.
In the prior art, because the product technology among various manufacturers in the industry has the universal single advantage, the method is only limited to providing single material detection and service, and depends on manual operation of workers in the test process, the detection items are complicated and time-consuming, the auxiliary tool is various, and the method has certain narrowness and deficiency on the whole set of vision detection system in the later stage. The overall detection of the vision system is particularly important for high-end users and providers who stand to offer the full complement of solution services.
Disclosure of Invention
The embodiment of the invention provides a testing system, a testing method and a storage medium, which can automatically and efficiently test each material of an industrial vision system, avoid manual participation, improve testing efficiency, and have more scientific testing process and accurate testing result.
In a first aspect, an embodiment of the present invention provides a test system, where the test system includes: the system comprises an industrial personal computer, a motion module, image acquisition equipment and a glass target; wherein:
the industrial personal computer is respectively in communication connection with the motion module and the image acquisition equipment and is used for sending a motion instruction to the motion module;
the motion module is connected with the image acquisition equipment and used for moving the image acquisition equipment to a target position according to the motion instruction and sending a movement completion instruction to the industrial personal computer after the image acquisition equipment is moved; the target location is above the glass target;
the industrial personal computer is used for sending a picture acquisition instruction to the image acquisition equipment after receiving the movement completion instruction;
the image acquisition equipment is used for acquiring a target picture comprising the glass target at the target position according to the picture acquisition instruction, preprocessing the target picture to obtain preprocessing information and sending the preprocessing information to the industrial personal computer;
the industrial personal computer is further used for determining a measuring function test result of the image acquisition equipment and/or a definition test result of the image acquisition equipment and/or a uniformity test result of the image acquisition equipment and/or a character recognition test result of the image acquisition equipment and/or a function test result of the industrial personal computer according to the preprocessing information and the preset information.
In a second aspect, an embodiment of the present invention further provides a testing method, executed by a testing system, where the method includes: sending the motion instruction to the motion module through the industrial personal computer;
the motion module moves the image acquisition equipment to a target position according to the motion instruction, and sends a movement completion instruction to the industrial personal computer after the image acquisition equipment is moved; the target location is above the glass target;
after receiving the movement completion instruction, the industrial personal computer sends an image acquisition instruction to the image acquisition equipment;
acquiring a target picture comprising the glass target at the target position according to the picture acquisition command through the image acquisition equipment, preprocessing the target picture through the image acquisition equipment to obtain preprocessing information, and sending the preprocessing information to the industrial personal computer;
and determining a measurement function test result of the image acquisition equipment and/or a definition test result of the image acquisition equipment and/or a uniformity test result of the image acquisition equipment and/or a character recognition test result of the image acquisition equipment and/or a function test result of the industrial personal computer by the industrial personal computer according to the preprocessing information and the preset information.
In a third aspect, the present invention further provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the testing method according to any one of the embodiments of the present invention.
The technical scheme provided by the embodiment of the invention comprises the following steps: the system comprises an industrial personal computer, a motion module, image acquisition equipment and a glass target; wherein: the industrial personal computer is respectively in communication connection with the motion module and the image acquisition equipment and is used for sending the motion instruction to the motion module; the motion module is connected with the image acquisition equipment and used for moving the image acquisition equipment to a target position according to the motion instruction and sending a movement completion instruction to the industrial personal computer after the image acquisition equipment is moved; the industrial personal computer is used for sending the image acquisition command to the image acquisition equipment after receiving the movement completion command; the image acquisition equipment is used for acquiring a target picture comprising a glass target at a target position according to the picture acquisition instruction, preprocessing the target picture to obtain preprocessing information and sending the preprocessing information to the industrial personal computer; the industrial personal computer determines a measuring function test result of the image acquisition equipment and/or a definition test result of the image acquisition equipment and/or a uniformity test result of the image acquisition equipment and/or a character recognition test result of the image acquisition equipment and/or a function test result of the industrial personal computer according to the preprocessing information and the preset information. By executing the technical scheme provided by the embodiment of the invention, the automatic and efficient test of each material of the industrial vision system can be realized, the manual participation is avoided, the test efficiency can be improved, the test process is more scientific, and the test result is accurate.
Drawings
FIG. 1 is a schematic structural diagram of a test system according to an embodiment of the present invention;
FIG. 2 is a schematic structural diagram of another test system provided in the embodiment of the present invention;
FIG. 3 is a schematic view of a glass target provided in an embodiment of the present invention;
fig. 4 is a flowchart of a testing method according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Fig. 1 is a schematic structural diagram of a test system provided in an embodiment of the present invention, and as shown in fig. 1, the system includes: the system comprises an industrial personal computer 11, a motion module 12, an image acquisition device 13 and a glass target 14; wherein:
the industrial personal computer 11 is respectively in communication connection with the motion module 12 and the image acquisition equipment 13 and is used for sending a motion instruction to the motion module 12;
the motion module 12 is connected with the image acquisition equipment 13 and used for moving the image acquisition equipment 13 to a target position according to the motion instruction and sending a movement completion instruction to the industrial personal computer 11 after the image acquisition equipment 13 is moved; wherein the target location is above the glass target 14;
the industrial personal computer 11 is used for sending the image acquisition command to the image acquisition equipment 13 after receiving the movement completion command;
the image acquisition equipment 13 is used for acquiring a target picture comprising the glass target 14 at the target position according to the picture acquisition instruction, preprocessing the target picture to obtain preprocessing information and sending the preprocessing information to the industrial personal computer 11;
the industrial personal computer 11 determines a measurement function test result of the image acquisition device 13, and/or a definition test result of the image acquisition device 13, and/or a uniformity test result of the image acquisition device 13, and/or a character recognition test result of the image acquisition device 13, and/or a function test result of the industrial personal computer 11 according to the preprocessing information and the preset information.
The industrial personal computer 11 can be a visual industrial personal computer, and the performance of the industrial personal computer directly influences the processing speed and the running time of the whole visual system and is the key of the whole visual system. The motion module 12 may be an XYZ three-axis motion platform, the motion module 12 may also be a rotation module, and the motion module 12 may be set according to actual needs. The image acquiring device 13 may be an area-array camera, the image acquiring device 13 may also be a line-array camera, and the image acquiring device 13 may be set according to actual needs. In this scheme, the industrial control computer 11 is in communication connection with the motion module 12 and the image acquisition device 13, respectively, and the motion instruction may be an instruction that the industrial control computer 11 sends to the motion module 12 after determining the shooting position of the image acquisition device 13, and controls the motion module 12 to move to the shooting position according to a specific direction, and/or controls the motion module 12 to rotate to the shooting position according to a specific angle. The image capturing device 13 may be integrated or mounted on the motion module 12, and moves with the motion of the motion module.
The target position may be a desired photographing position of the image pickup device 13 determined by the industrial personal computer 11, and the target position may be above the glass target 14. When the image acquisition device 13 needs to acquire different patterns on the glass target 14, the target positions are also different. This scheme can be after motion module 12 removes image acquisition device 13 to the target position according to the motion instruction, send to industrial computer 11 and remove completion instruction and send to make industrial computer 11 send the instruction of gathering the picture to image acquisition device 13.
After receiving the movement completion instruction sent by the motion module 12, the industrial personal computer 11 may send a picture acquisition instruction to the image acquisition device 13, and the image acquisition device 13 executes an image acquisition operation at a target position according to the picture acquisition instruction to obtain a picture of a related pattern on the glass target 14, that is, a target picture. And then preprocessing the target picture to obtain preprocessing information. For example, if the target picture includes a two-dimensional code, the image obtaining device 13 may identify the target picture to obtain text information. Alternatively, if the target picture includes the positioning circle, the image obtaining device 13 may measure the positioning circle pattern in the target picture to obtain measurement information of the positioning circle. Alternatively, if the target picture includes line pairs or a checkerboard, the image capturing device 13 may determine the definition of the line pairs or the pixel values of the checkerboard in the target picture. Alternatively, if gray-scale paper is included in the target picture, the image acquisition device 13 may determine the gray-scale values at a plurality of positions of the gray-scale paper in the target picture. The image acquisition device 13 then sends the determined pre-processing information to the industrial personal computer 11. The industrial personal computer 11 determines a function test result of the industrial personal computer 11 and each function test result of the image acquisition device 13 according to the preprocessing information and the pre-stored preset information.
For example, if the industrial personal computer 11 can normally transmit instructions and data, perform data analysis, and determine an analysis result, it indicates that the industrial personal computer 11 is functioning normally. Or, if the pre-processing information is compared with the preset information by the industrial personal computer 11, and it is determined that the difference value between the preset information and the preset processing information is within a reasonable range, it indicates that the function test of the image acquisition device 13 is passed. For example, if the definition of identifying the line pair picture by the image acquisition device 13 is greater than or equal to the preset definition of the line pair picture, it indicates that the definition function test of the image acquisition device 13 is passed. If the diameter of the positioning circle measured by the image acquiring device 13 is consistent with the actual diameter of the positioning circle, it indicates that the measuring function of the image acquiring device 13 is normal. If the identification uniformity value of the image acquisition equipment 13 to the gray-scale paper picture is greater than or equal to the preset uniformity value of the gray-scale paper picture, the uniformity function test of the image acquisition equipment is passed. If the text information for recognizing the two-dimensional code by the image acquisition device 13 is consistent with the text information associated with the two-dimensional code, it indicates that the text recognition function test of the image acquisition device 13 is passed.
The technical scheme provided by the embodiment of the invention comprises the following steps: the system comprises an industrial personal computer, a motion module, image acquisition equipment and a glass target; wherein: the industrial personal computer is respectively in communication connection with the motion module and the image acquisition equipment and is used for sending the motion instruction to the motion module; the motion module is connected with the image acquisition equipment and used for moving the image acquisition equipment to a target position according to the motion instruction and sending a movement completion instruction to the industrial personal computer after the image acquisition equipment is moved; the target position is positioned above the glass target; the industrial personal computer is used for sending the image acquisition command to the image acquisition equipment after receiving the movement completion command; the image acquisition equipment is used for acquiring a target picture comprising a glass target at a target position according to the picture acquisition instruction, preprocessing the target picture to obtain preprocessing information and sending the preprocessing information to the industrial personal computer; the industrial personal computer determines a measuring function test result of the image acquisition equipment and/or a definition test result of the image acquisition equipment and/or a uniformity test result of the image acquisition equipment and/or a character recognition test result of the image acquisition equipment and/or a function test result of the industrial personal computer according to the preprocessing information and the preset information. By executing the technical scheme provided by the embodiment of the invention, the automatic and efficient test of each material of the industrial vision system can be realized, the manual participation is avoided, the test efficiency can be improved, the test process is more scientific, and the test result is accurate.
In one possible embodiment, optionally, the system further comprises a light source controller, a light source, and a display; wherein:
the industrial personal computer 11 is respectively in communication connection with the light source controller and the display, and is further used for sending a light source starting instruction to the light source controller before sending a picture collecting instruction to the image acquisition equipment 13;
the light source controller is connected with the light source and used for controlling the light source to be started according to the light source starting instruction;
the light source is positioned right below the glass target and used for generating scattered light according to the light source starting instruction;
and the display is used for displaying each test result.
As shown in fig. 2, in the present embodiment, the image capturing device 13 should capture the pattern on the glass target 14 under illumination, that is, the light source 16 diffuses the light onto the glass target 14 directly above the light source 16, and the image capturing device 13 can obtain a clear picture. Before sending the image acquisition command to the image acquisition device 13, the industrial personal computer 11 first sends a light source starting command to the light source controller 15, and the light source controller 15 determines parameters and brightness of the light source according to the light source starting command, and controls the light source 16 to generate a light source according to the parameters and the brightness, and the light source is projected onto the glass target 14. Then, the light source controller 15 may feed back an instruction that the light source is successfully turned on to the industrial personal computer 11, and after the industrial personal computer 11 determines that the light source is successfully turned on, the light source controller sends an image acquisition instruction to the image acquisition device 13. The display 17 may be connected to the industrial personal computer 11, and may visually display the result of the precision test of the image capturing device 13, and/or the result of the measurement function test of the image capturing device 13, and/or the result of the sharpness test of the image capturing device 13, and/or the result of the uniformity test of the image capturing device 13, and/or the result of the character recognition test of the image capturing device 13, and/or the result of the function test of the industrial personal computer 11, which are analyzed and determined in the industrial personal computer 11.
Therefore, the industrial personal computer is respectively in communication connection with the light source controller and the display and is used for sending a light source starting instruction to the light source controller before sending a picture collecting instruction to the image acquisition equipment; the light source controller is connected with the light source and used for controlling the light source to be started according to the light source starting instruction; the light source is positioned right below the glass target and used for generating scattered light according to a light source starting command; and the display is used for displaying each test result. The test system and the test environment can be perfected, a reliable data source is provided for subsequent steps, and the test result can be visually displayed.
In another possible embodiment, the glass target 14 optionally includes at least one of a line pair, a checkerboard, a two-dimensional code, a positioning circle, and a gray-scale paper, for the image capturing device 13 to capture a picture;
the image acquisition equipment 13 is specifically used for acquiring checkerboard pictures according to the picture acquisition instruction, determining the identification precision of the checkerboard pictures and sending the identification precision to the industrial personal computer 11;
the industrial personal computer 11 is specifically configured to determine a target line pair on the glass target 14 according to the identification accuracy, and send a picture acquisition instruction to the image acquisition device 13, so that the image acquisition device 13 acquires a target line pair picture.
As shown in fig. 3, the image acquiring device 13 may acquire a checkerboard picture on the glass target 14 according to the instruction for acquiring a picture, for example, a picture including two adjacent checkerboards. The recognition accuracy of the image acquisition device 13 (i.e. the actual pixels of the picture comprising two adjacent checkerboards) is then determined and sent to the industrial control computer 11. The industrial personal computer 11 can determine the pixel equivalent according to the pre-stored actual physical size (1mm) between two checkerboards and the identification precision, namely, how many pixels the actual physical size between two adjacent checkerboards represents. For example, 1mm is represented by 10 pixels, or 1mm is represented by 100 pixels. And from the pixel equivalents, the pair of lines on the glass target 14 that matches the pixel equivalents, i.e., the target pair, is determined. For example, assuming that the pixel equivalent is 0.012mm/px determined according to the recognition accuracy of the image pickup device 13 and the actual physical size between adjacent checkerboards, the target line pair may be determined by multiplying the pixel equivalent by the magnification in order to make the system accuracy higher. For example, if the magnification is 3, 0.012 × 3 is 0.036, and the closest pair to the upward direction is the target pair, that is, the pair of 40 um. And judging whether the identification definition of the image acquisition equipment 13 is qualified or not according to the definition test result of the 40um line to the picture.
Therefore, the image acquisition equipment is specifically used for acquiring the checkerboard pictures according to the picture acquisition instruction, determining the identification precision of the checkerboard pictures and sending the identification precision to the industrial personal computer; and the industrial personal computer is specifically used for determining the target line pair on the glass target according to the identification precision and sending a picture acquisition command to the image acquisition equipment so as to enable the image acquisition equipment to acquire the target line pair picture. The method and the device can improve reliable data sources for determining the definition test of the image acquisition equipment, and can improve the test efficiency and the test quality.
In this embodiment, optionally, the image obtaining device 13 is specifically configured to collect the target line-to-picture according to a picture collecting instruction, determine the identification definition of the target line-to-picture, and send the identification definition to the industrial personal computer 11;
the industrial personal computer 11 is specifically used for determining a definition test result of the image acquisition device 13 and a function test result of the industrial personal computer 11 according to the identification definition and the preset definition of the target line to the picture;
the industrial personal computer 11 is further configured to determine a function test result of the light source 16 according to the recognition definition and the preset definition of the target line on the picture.
As shown in fig. 3, assuming that the 40um line pair on the glass target 14 is a target line pair, the image acquisition device 13 may acquire a target line pair picture according to the acquisition picture instruction, and determine the identification definitions of the target line for a plurality of positions on the picture after the target line pair picture is acquired, for example, the identification definition of the center position of the target line pair picture, the identification definition of the upper left position of the target line pair picture, the identification definition of the lower left position of the target line pair picture, the identification definition of the upper right position of the target line pair picture, and the identification definition of the lower right position of the target line pair picture. Then, the identification definitions of the positions are sent to the industrial personal computer 11, and the industrial personal computer 11 compares the identification definitions with the preset definitions of the pre-stored target line at the positions of the picture respectively, so that the definition test result of the image acquisition device 13 or the function test result of the light source 16 can be determined. For example, if each recognition definition is greater than or equal to the preset definition of the corresponding position of the target line to the picture, it indicates that the definition test result of the image capturing device 13 and the function test result of the light source 16 are normal. Otherwise, it indicates that the result of the sharpness test of the image capturing device 13 is abnormal and/or that the result of the functional test of the light source 16 is abnormal, and further verification is required. For example, according to the present disclosure, the light source controller 15 may adjust the brightness and parameters of the light source 16 to control the image acquiring device 13 to take a line-to-line picture at different brightness, and if the recognition resolution of the line-to-line picture acquired by the image acquiring device 13 at low brightness is greater than or equal to the preset resolution of the line-to-line picture, and the recognition resolution of the line-to-line picture acquired by the image acquiring device 13 at high brightness is less than the preset resolution of the line-to-line picture, it indicates that the function of the light source 16 is abnormal. Or, for example, under a light source with a normal function test, the image capturing device 13 captures a target line pair picture, and determines the recognition definition of each position in the target line pair picture. If each recognition definition is smaller than the preset definition of the corresponding position of the target line to the picture prestored in the industrial personal computer 11, it indicates that the definition test result of the image acquisition equipment 13 is abnormal.
Therefore, the target line pair picture is acquired through the image acquisition equipment according to the picture acquisition command, the identification definition of the target line pair picture is determined, and the identification definition is sent to the industrial personal computer; the industrial personal computer determines a definition test result of the image acquisition equipment and a function test result of the industrial personal computer according to the identification definition and the preset definition of the target line to the picture; and determining a function test result of the light source according to the identification definition and the preset definition of the target line on the picture. The functions of the whole set of vision system can be scientifically, accurately and efficiently tested, and the test of more devices can be covered.
In another feasible embodiment, optionally, the image acquisition device 13 is specifically configured to acquire a two-dimensional code picture according to an image acquisition instruction, determine character recognition information corresponding to the two-dimensional code picture, and send the character recognition information to the industrial personal computer 11; the industrial personal computer 11 is specifically configured to determine a text recognition test result of the image acquisition device 13 according to the text recognition information and the preset text information of the two-dimensional code picture.
For example, as shown in fig. 3, the image acquiring device 13 may acquire a two-dimensional code picture on the glass target 14 according to the image acquisition instruction, perform character recognition on the acquired two-dimensional code picture to obtain character recognition information, such as ABCDEFG, and then send the character recognition information to the industrial personal computer 11. The industrial personal computer 11 determines a character recognition test result of the image acquisition device 13 according to the character recognition information and the preset character information of the two-dimensional code picture. For example, if the preset text information of the two-dimensional code picture is ABEFCDG and is not consistent with the text identification information ABEFCDG, it indicates that the text identification test result of the image capturing device 13 is abnormal.
Therefore, the image acquisition equipment is specifically used for acquiring the two-dimensional code picture according to the picture acquisition instruction, determining character recognition information corresponding to the two-dimensional code picture and sending the character recognition information to the industrial personal computer; and the industrial personal computer is specifically used for determining a character recognition test result of the image acquisition equipment according to the character recognition information and the preset character information of the two-dimensional code picture. The character recognition function of the image acquisition equipment can be scientifically, accurately and efficiently determined, and the test efficiency is improved.
In another possible embodiment, optionally, the image obtaining device 13 is specifically configured to collect a gray-scale paper picture according to the collected picture instruction, determine an identification uniformity value of the gray-scale paper picture, and send the identification uniformity value to the industrial personal computer 11; and the industrial personal computer 11 is specifically used for determining the uniformity test result of the image acquisition equipment 13 according to the identification uniformity value and the preset uniformity value of the gray-scale paper picture.
As shown in fig. 3, the image acquiring device 13 may acquire a small square gray-scale paper picture on the glass target 14 according to the image acquisition command, and determine gray values of a plurality of positions on the square gray-scale paper picture, so as to determine an identification uniformity value of the square gray-scale paper picture. For example, the gray values of a plurality of positions on the small-square gray-scale paper picture are respectively: the gray value 181.355 at the middle position, the gray value 167.980 at the upper left position, 182.103 at the upper right position, 172.430 at the lower left position and 185.381 at the lower right position, and then the uniform identification value of the checkered gray-scale paper picture is determined to be 0.906 according to the gray values at a plurality of positions. Wherein the identification uniformity value is determined by the ratio of the difference of the maximum gray value minus the minimum gray value and the average of the gray values at all locations. The identification uniformity value 0.906 of the checkered gray-scale paper picture is sent to the industrial personal computer 11, the preset uniformity value of the small checkered gray-scale paper picture prestored in the industrial personal computer 11 is 0.8, and 0.906 is greater than 0.8, so that the uniformity test result of the image acquisition equipment 13 is normal.
Therefore, the image acquisition equipment is specifically used for acquiring the gray-scale paper picture according to the image acquisition command, determining the identification uniform value of the gray-scale paper picture and sending the identification uniform value to the industrial personal computer; and the industrial personal computer is specifically used for determining the uniformity test result of the image acquisition equipment 13 according to the identification uniformity value and the preset uniformity value of the gray-scale paper picture. The uniformity test result of the image acquisition equipment can be scientifically, accurately and efficiently determined, and the test efficiency is improved.
In this embodiment, optionally, the image obtaining device 13 is specifically configured to collect a positioning circle picture according to a picture collecting instruction, determine a measurement diameter of a positioning circle according to the positioning circle picture, and send the measurement diameter to the industrial personal computer 11; and the industrial personal computer 11 is specifically used for determining a measurement function test result of the image acquisition equipment 13 according to the measurement diameter and the preset diameter of the positioning circle.
As shown in fig. 3, the image acquiring device 13 may acquire a positioning circle picture on the glass target 14 according to the image acquisition command, and then measure the diameter of the positioning circle according to the positioning circle picture, for example, determine that the measurement diameter of the positioning circle is 8mm, and send the measurement diameter 8mm to the industrial personal computer 11. And the industrial personal computer 11 determines a measurement function test result of the image acquisition equipment 13 according to the measurement diameter and the preset diameter of the positioning circle. Theoretically, if the measurement function of the image acquisition device 13 is normal, the measurement diameter determined by the image acquisition device 13 should be consistent with the preset diameter of the positioning circle. If the measurement diameter of the positioning circle is 8mm and the preset diameter is 10mm, it indicates that the measurement function test result of the image capturing device 13 is abnormal.
Therefore, the image acquisition equipment is specifically used for acquiring a positioning circle picture according to the picture acquisition instruction, determining the measurement diameter of the positioning circle according to the positioning circle picture and sending the measurement diameter to the industrial personal computer; and the industrial personal computer is specifically used for determining a measurement function test result of the image acquisition equipment according to the measurement diameter and the preset diameter of the positioning circle. The measuring function test result of the image acquisition equipment can be scientifically, accurately and efficiently determined, and the test efficiency is improved.
In yet another possible embodiment, optionally, the motion module 12 includes at least one of an X-direction motion module, a Y-direction motion module, a Z-direction motion module, and a rotation motion module; the target position is determined by at least one of a first displacement, a second displacement, a third displacement, and a rotation angle;
the industrial personal computer 11 is in communication connection with the X-direction motion module, the Y-direction motion module, the Z-direction motion module and the rotary motion module respectively, and is specifically used for sending an X-direction motion instruction to the X-direction motion module, and/or sending a Y-direction motion instruction to the Y-direction motion module, and/or sending a Z-direction motion instruction to the Z-direction motion module, and/or sending a rotary motion instruction to the rotary motion module; the X-direction movement module is used for moving the image acquisition equipment 13 along the X direction by a first displacement according to the X-direction movement instruction; and/or the Y-direction movement module is configured to move the image acquisition device 13 by a second displacement along the Y direction according to the Y-direction movement instruction; and/or, the Z-direction motion module is configured to move the image acquisition device 13 along the Z direction by a third displacement according to the Z-direction motion instruction; and/or, the rotational motion module is configured to rotate the image capturing device 13 according to the rotational motion instruction by a rotational angle.
The image capturing device 13 may be connected to the X-direction moving module, the Y-direction moving module, the Z-direction moving module, and the rotating module, respectively. An X-direction motion instruction is sent to the X-direction motion module through the industrial personal computer 11 to control the X-direction motion module to move the image acquisition equipment 13 along the X direction for a first displacement, and/or a Y-direction motion instruction is sent to the Y-direction motion module to control the Y-direction motion module to move the image acquisition equipment 13 along the Y direction for a second displacement, and/or a Z-direction motion instruction is sent to the Z-direction motion module to control the Z-direction motion module to move the image acquisition equipment 13 along the Z direction for a third displacement, and/or a rotary motion instruction is sent to the rotary motion module to control the rotary motion module to rotate the image acquisition equipment 13 according to a rotation angle, such as rotating leftwards for 90 degrees, and finally a target position of the image acquisition equipment 13 is determined through the first displacement, the second displacement, the third displacement and the rotation angle. After the image acquisition device 13 is moved, the X-direction motion module, and/or the Y-direction motion module, and/or the Z-direction motion module, and/or the rotation motion module feeds back to the industrial personal computer 11, and the industrial personal computer 11 sends an instruction for acquiring a picture to the image acquisition device 13.
Therefore, the image acquisition equipment is flexibly moved by matching the three-way movement module with the rotary movement module, the ideal shooting direction of the image acquisition equipment can be determined, and a reliable data source is provided for the subsequent steps.
Fig. 4 is a flowchart of a testing method provided by an embodiment of the present invention, which is applicable to a scenario of testing an industrial vision system, and the testing method can be executed by a testing system provided by an embodiment of the present invention, and the system can be implemented by software and/or hardware, and can be generally integrated in an electronic device for testing. The test method and the test system provided by the above embodiments belong to the same public concept, and details which are not described in detail in the method embodiments may refer to the description in the above embodiments.
As shown in fig. 4, the testing method provided in the embodiment of the present invention includes:
and S210, sending the motion instruction to the motion module through the industrial personal computer.
And S220, the motion module moves the image acquisition equipment to a target position according to the motion instruction, and sends a movement completion instruction to the industrial personal computer after the image acquisition equipment is moved.
Wherein the target location is above the glass target.
And S230, after receiving the movement completion instruction, the industrial personal computer sends a picture acquisition instruction to the image acquisition equipment.
S240, collecting a target picture comprising the glass target at the target position according to the picture collecting instruction through the image obtaining equipment, preprocessing the target picture through the image obtaining equipment to obtain preprocessing information, and sending the preprocessing information to the industrial personal computer.
S250, determining a measurement function test result of the image acquisition equipment and/or a definition test result of the image acquisition equipment and/or a uniformity test result of the image acquisition equipment and/or a character recognition test result of the image acquisition equipment and/or a function test result of the industrial personal computer by the industrial personal computer according to the preprocessing information and preset information.
According to the technical scheme provided by the embodiment of the invention, the motion instruction is sent to the motion module through the industrial personal computer; the motion module moves the image acquisition equipment to a target position according to the motion instruction, and sends a movement completion instruction to the industrial personal computer after the image acquisition equipment is moved; after receiving the movement completion instruction, the industrial personal computer sends the image acquisition instruction to the image acquisition equipment; acquiring a target picture including a glass target at a target position through image acquisition equipment according to an image acquisition instruction, preprocessing the target picture through the image acquisition equipment to obtain preprocessing information, and sending the preprocessing information to an industrial personal computer; and determining a measuring function test result of the image acquisition equipment and/or a definition test result of the image acquisition equipment and/or a uniformity test result of the image acquisition equipment and/or a character recognition test result of the image acquisition equipment and/or a function test result of the industrial personal computer by the industrial personal computer according to the preprocessing information and the preset information. By executing the technical scheme provided by the embodiment of the invention, the automatic and efficient test of each material of the industrial vision system can be realized, the manual participation is avoided, the test efficiency can be improved, the test process is more scientific, and the test result is accurate.
An embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a testing method provided by an embodiment of the present invention, that is:
sending the motion instruction to the motion module through the industrial personal computer;
the motion module moves the image acquisition equipment to a target position according to the motion instruction, and sends a movement completion instruction to the industrial personal computer after the image acquisition equipment is moved; the target position is located above the glass target;
after receiving the movement completion instruction, the industrial personal computer sends an image acquisition instruction to the image acquisition equipment;
acquiring a target picture comprising the glass target at the target position according to the picture acquisition command through the image acquisition equipment, preprocessing the target picture through the image acquisition equipment to obtain preprocessing information, and sending the preprocessing information to the industrial personal computer;
and determining a measurement function test result of the image acquisition equipment and/or a definition test result of the image acquisition equipment and/or a uniformity test result of the image acquisition equipment and/or a character recognition test result of the image acquisition equipment and/or a function test result of the industrial personal computer by the industrial personal computer according to the preprocessing information and the preset information.
Any combination of one or more computer-readable media may be employed. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in some detail by the above embodiments, the invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the invention, and the scope of the invention is determined by the scope of the appended claims.

Claims (10)

1. A test system, comprising: the system comprises an industrial personal computer, a motion module, image acquisition equipment and a glass target; wherein:
the industrial personal computer is respectively in communication connection with the motion module and the image acquisition equipment and is used for sending a motion instruction to the motion module;
the motion module is connected with the image acquisition equipment and used for moving the image acquisition equipment to a target position according to the motion instruction and sending a movement completion instruction to the industrial personal computer after the image acquisition equipment is moved; the target location is above the glass target;
the industrial personal computer is used for sending a picture acquisition instruction to the image acquisition equipment after receiving the movement completion instruction;
the image acquisition equipment is used for acquiring a target picture comprising the glass target at a target position according to the picture acquisition instruction, preprocessing the target picture to obtain preprocessing information and sending the preprocessing information to the industrial personal computer;
the industrial personal computer is further used for determining a measuring function test result of the image acquisition equipment and/or a definition test result of the image acquisition equipment and/or a uniformity test result of the image acquisition equipment and/or a character recognition test result of the image acquisition equipment and/or a function test result of the industrial personal computer according to the preprocessing information and the preset information.
2. The system of claim 1, further comprising a light source controller, a light source, and a display; wherein:
the industrial personal computer is respectively in communication connection with the light source controller and the display, and is further used for sending a light source starting instruction to the light source controller before sending a picture collecting instruction to the image acquisition equipment;
the light source controller is connected with the light source and used for controlling the light source to be started according to the light source starting instruction;
the light source is positioned right below the glass target and used for generating scattered light according to the light source starting instruction;
and the display is used for displaying each test result.
3. The system of claim 2, wherein the glass target comprises at least one of a line pair, a checkerboard, a two-dimensional code, a positioning circle and a piece of gray-scale paper thereon, and is used for the image acquisition device to acquire pictures;
the image acquisition equipment is specifically used for acquiring checkerboard pictures according to a picture acquisition instruction, determining the identification precision of the checkerboard pictures and sending the identification precision to the industrial personal computer;
the industrial personal computer is specifically used for determining the target line pair on the glass target according to the identification precision and sending a picture acquisition command to the image acquisition equipment so that the image acquisition equipment acquires the target line pair picture.
4. The system of claim 3,
the image acquisition equipment is specifically used for acquiring the target line pair picture according to a picture acquisition command, determining the identification definition of the target line pair picture and sending the identification definition to the industrial personal computer;
the industrial personal computer is specifically used for determining a definition test result of the image acquisition equipment and a function test result of the industrial personal computer according to the identification definition and the preset definition of the target line to the picture;
the industrial personal computer is further used for determining a function test result of the light source according to the identification definition and the preset definition of the target line to the picture.
5. The system of claim 3,
the image acquisition equipment is specifically used for acquiring a two-dimensional code picture according to a picture acquisition instruction, determining character identification information corresponding to the two-dimensional code picture and sending the character identification information to the industrial personal computer;
the industrial personal computer is specifically used for determining a character recognition test result of the image acquisition equipment according to the character recognition information and the preset character information of the two-dimensional code picture.
6. The system of claim 3,
the image acquisition equipment is specifically used for acquiring a gray-scale paper picture according to the image acquisition instruction, determining an identification uniform value of the gray-scale paper picture and sending the identification uniform value to the industrial personal computer;
the industrial personal computer is specifically used for determining the uniformity test result of the image acquisition equipment according to the identification uniformity value and the preset uniformity value of the gray-scale paper picture.
7. The system of claim 3,
the image acquisition equipment is specifically used for acquiring a positioning circle picture according to an image acquisition instruction, determining the measurement diameter of a positioning circle according to the positioning circle picture, and sending the measurement diameter to the industrial personal computer;
the industrial personal computer is specifically used for determining a measurement function test result of the image acquisition equipment according to the measurement diameter and the preset diameter of the positioning circle.
8. The system of claim 1,
the motion module comprises at least one of an X-direction motion module, a Y-direction motion module, a Z-direction motion module and a rotary motion module; the target position is determined by at least one of a first displacement, a second displacement, a third displacement, and a rotation angle;
the industrial personal computer is respectively in communication connection with the X-direction motion module, the Y-direction motion module, the Z-direction motion module and the rotary motion module, and is specifically used for sending an X-direction motion instruction to the X-direction motion module, and/or sending a Y-direction motion instruction to the Y-direction motion module, and/or sending a Z-direction motion instruction to the Z-direction motion module, and/or sending a rotary motion instruction to the rotary motion module;
the X-direction movement module is used for moving the image acquisition equipment along the X direction by a first displacement according to the X-direction movement instruction; and/or the presence of a gas in the gas,
the Y-direction movement module is used for moving the image acquisition equipment along the Y direction for a second displacement according to the Y-direction movement instruction; and/or the presence of a gas in the gas,
the Z-direction movement module is used for moving the image acquisition equipment along the Z direction by a third displacement according to the Z-direction movement instruction; and/or the presence of a gas in the gas,
and the rotary motion module is used for rotating the image acquisition equipment according to the rotary motion instruction by a rotation angle.
9. A method of testing, the method performed by a test system, the method comprising:
sending the motion instruction to the motion module through the industrial personal computer;
the motion module moves the image acquisition equipment to a target position according to the motion instruction, and sends a movement completion instruction to the industrial personal computer after the image acquisition equipment is moved; the target position is located above the glass target;
after receiving the movement completion instruction, the industrial personal computer sends an image acquisition instruction to the image acquisition equipment;
acquiring a target picture comprising the glass target at the target position according to the picture acquisition command through the image acquisition equipment, preprocessing the target picture through the image acquisition equipment to obtain preprocessing information, and sending the preprocessing information to the industrial personal computer;
and determining a measurement function test result of the image acquisition equipment and/or a definition test result of the image acquisition equipment and/or a uniformity test result of the image acquisition equipment and/or a character recognition test result of the image acquisition equipment and/or a function test result of the industrial personal computer by the industrial personal computer according to the preprocessing information and the preset information.
10. A computer-readable storage medium storing computer instructions for causing a processor to perform the testing method of claim 9 when executed.
CN202210459234.7A 2022-04-27 2022-04-27 Test system, method and storage medium Pending CN114813736A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210459234.7A CN114813736A (en) 2022-04-27 2022-04-27 Test system, method and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210459234.7A CN114813736A (en) 2022-04-27 2022-04-27 Test system, method and storage medium

Publications (1)

Publication Number Publication Date
CN114813736A true CN114813736A (en) 2022-07-29

Family

ID=82510097

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210459234.7A Pending CN114813736A (en) 2022-04-27 2022-04-27 Test system, method and storage medium

Country Status (1)

Country Link
CN (1) CN114813736A (en)

Similar Documents

Publication Publication Date Title
US11587219B2 (en) Method and apparatus for detecting pixel defect of optical module, and device
JP6290720B2 (en) Inspection device, inspection method, and program
CN107179324B (en) The methods, devices and systems of testing product packaging
KR102108956B1 (en) Apparatus for Performing Inspection of Machine Vision and Driving Method Thereof, and Computer Readable Recording Medium
KR20180106856A (en) Automatic optical inspection system and operating method thereof
US20080133173A1 (en) Method and system for measuring an image of an object
US20170061209A1 (en) Object processing method, reference image generating method, reference image generating apparatus, object processing apparatus, and recording medium
TWI410606B (en) Apparatus for high resolution processing of a generally planar workpiece having microscopic features to be imaged, emthod for collecting images of workipieces having microscopic features, and system for inspection of microscopic objects
US11682113B2 (en) Multi-camera visual inspection appliance and method of use
CN110751055B (en) Intelligent manufacturing system
CN115546219B (en) Detection plate type generation method, plate card defect detection method, device and product
CN114813736A (en) Test system, method and storage medium
CN112763496A (en) Mobile phone battery surface defect detection device and detection method thereof
WO2023053029A1 (en) Method for identifying and characterizing, by means of artificial intelligence, surface defects on an object and cracks on brake discs subjected to fatigue tests
US7747066B2 (en) Z-axis optical detection of mechanical feature height
JPH09264856A (en) Article appearance inspection device
JPH05118830A (en) Edge inspecting apparatus for optical connector
CN111062920B (en) Method and device for generating semiconductor detection report
Shen et al. Design and implementation of PCB detection and classification system based on machine vision
CN115184378B (en) Concrete structure disease detection system and method based on mobile equipment
US10325361B2 (en) System, method and computer program product for automatically generating a wafer image to design coordinate mapping
CN115265368A (en) Product detection system and method based on spectrum confocal displacement sensor
CN115980059A (en) Surface defect detection system and detection method, device, equipment and storage medium thereof
Kos et al. Detection, localization and recognition of objects using LabVIEW
JP2023160063A (en) Utility work inspection device, utility work inspection method, and program for utility work inspection

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