Visual detection method, device and equipment and readable storage medium
By automatically generating the detection program and detection box of AOI testing equipment, the detection accuracy problem caused by manual drawing of detection boxes is solved, and the efficiency and accuracy of visual detection are improved.
Patent Information
- Application Number
- CN202411103284.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-12
- Publication Date
- 2024-11-29
- Estimated Expiration
- 2044-08-12
AI Technical Summary
Existing AOI testing equipment requires testers to manually draw the detection frame lines, resulting in poor accuracy of the detection results.
By obtaining the processing drawings and visual detection parameters of the product to be tested, a detection program is automatically generated, and a detection box is generated based on the conversion parameters to achieve automatic visual detection.
It improves the generation efficiency and accuracy of the detection program, thereby improving the visual inspection efficiency of the product to be tested, and reducing manual operation errors.
Smart Images

Figure CN119044169A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of visual inspection technology, and more specifically, to a visual inspection method, a visual inspection device, a visual inspection equipment and a computer-readable storage medium. Background Art
[0002] AOI (Automated Optical Inspection) is a device that detects common defects encountered in welding production based on optical principles. AOI is a new test technology that has just emerged, but it has developed rapidly, and many manufacturers have launched AOI test equipment. During automatic inspection, the machine automatically scans the PCB through a camera, collects images, compares the tested solder joints with the qualified parameters in the database, and checks the defects on the PCB through image processing, and displays / marks the defects through a display or automatic mark for maintenance personnel to repair.
[0003] However, in the prior art, testers are usually required to manually draw the inspection frame lines of the product to be tested through the AOI test equipment to generate the inspection program of the product to be tested, resulting in poor accuracy of the AOI inspection results. Summary of the invention
[0004] An object of embodiments of the present invention is to provide a visual inspection method, apparatus, device and readable storage medium.
[0005] According to a first aspect of the present disclosure, there is provided a visual detection method, comprising:
[0006] Obtaining a first processing drawing and a first visual inspection parameter of a product to be tested;
[0007] Obtaining conversion parameters from the actual size of the product to be tested to the pixel size of the camera's field of view;
[0008] Generate a first inspection program for the product to be inspected according to the first processing drawing, the first visual inspection parameter and the conversion parameter, wherein the first inspection program includes at least one first inspection frame of the product to be inspected within the camera field of view;
[0009] Perform visual inspection on the product to be inspected according to the first inspection program.
[0010] Optionally, the step of obtaining a first processing drawing and a first visual inspection parameter of the product to be tested includes:
[0011] Obtaining product information of the product to be tested;
[0012] According to the product information, a first processing drawing and a first visual inspection parameter of the product to be tested are obtained from a server.
[0013] Optionally, the method further includes:
[0014] Comparing the first visual detection parameter with a second visual parameter of the product to be tested;
[0015] When the first visual parameter is different from the second visual parameter, the step of generating a first inspection program for the product to be inspected according to the first processing drawing, the first visual inspection parameter and the conversion parameter is performed.
[0016] Optionally, the method further includes:
[0017] When the first visual parameter is the same as the second visual parameter, the product to be tested is visually inspected according to a second inspection program, wherein the second inspection program is an inspection program obtained according to the first processing drawing, the second visual inspection parameter and the conversion parameter.
[0018] Optionally, the method further includes:
[0019] When the first visual parameter is different from the second visual parameter, issuing an alarm;
[0020] In response to the confirmation operation of the visual inspection parameter modification, the step of generating a first inspection program for the product to be inspected according to the first processing drawing, the first visual inspection parameter and the conversion parameter is performed.
[0021] Optionally, generating a first inspection formula for the product to be inspected according to the first processing drawing, the first visual inspection parameter and the conversion parameter includes:
[0022] Generating a second inspection frame represented by the actual size of the product to be inspected according to the first processing drawing;
[0023] Processing the second detection frame according to the conversion parameter to obtain the first detection frame;
[0024] The first detection formula is obtained according to the first detection frame and the first visual detection parameter.
[0025] Optionally, the processing drawing is a 3D drawing, and generating a second detection frame represented by an actual size of the product to be tested according to the first processing drawing includes:
[0026] Generate a 2D drawing of the product to be tested according to the 3D drawing;
[0027] The 2D drawing is parsed to obtain the second detection frame.
[0028] According to a second aspect of the present disclosure, there is provided a visual inspection device, comprising:
[0029] A detection parameter acquisition module, used to obtain a first processing drawing and a first visual detection parameter of the product to be tested;
[0030] A conversion parameter acquisition module, used to acquire conversion parameters from the actual size of the product to be tested to the pixel size of the camera field of view;
[0031] An inspection program generation module, configured to generate a first inspection program for the product to be inspected according to the first processing drawing, the first visual inspection parameter and the conversion parameter, wherein the first inspection program includes at least one first inspection frame of the product to be inspected within a camera field of view;
[0032] The visual inspection module is used to perform visual inspection on the product to be inspected according to the first inspection program.
[0033] According to a third aspect of the present disclosure, a visual inspection device is provided, comprising a processor and a memory, wherein the memory is used to store a computer program, and the computer program is used to control the processor to execute the method according to the first aspect of the present disclosure.
[0034] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method described in the first aspect of the present disclosure is implemented.
[0035] Through the embodiments of the present disclosure, a first inspection program for the product to be tested is automatically generated according to a first processing drawing of the product to be tested, a first visual inspection parameter, and a conversion parameter from the actual size of the product to be tested to the pixel size of the camera's field of view, and visual inspection is performed on the product to be tested according to the first inspection program. There is no need for the tester to manually draw an inspection frame to obtain the inspection program, which can improve the generation efficiency and accuracy of the inspection program, thereby improving the visual inspection efficiency of the product to be tested.
[0036] Further features and advantages of the present invention will become apparent from the following detailed description of exemplary embodiments of the present invention with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the invention and, together with the description, serve to explain the principles of the invention.
[0038] Figure 1 is a flow chart of a visual inspection method provided according to an embodiment of the present disclosure;
[0039] Figure 2 is a schematic diagram of a first configuration interface according to an embodiment of the present disclosure;
[0040] Figure 3 is a schematic diagram of a second configuration interface according to an embodiment of the present disclosure;
[0041] Figure 4 is a schematic diagram of a second configuration interface according to another embodiment of the present disclosure;
[0042] Figure 5 is a block diagram of a visual inspection device provided according to an embodiment of the present disclosure;
[0043] Figure 6 is a block diagram of a visual inspection device provided according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0044] Various exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings. It should be noted that the relative arrangement of regions and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless otherwise specifically stated.
[0045] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.
[0046] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered as part of the specification.
[0047] In all examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not limiting. Therefore, other examples of the exemplary embodiments may have different values.
[0048] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0049] This embodiment provides a visual inspection method, which can be implemented by a visual inspection device.
[0050] Figure 1 It is a flow chart of a visual inspection method provided according to an embodiment of the present disclosure.
[0051] like Figure 1 As shown, the product assembly method may include steps S1100 to S1400 as shown below:
[0052] Step S1100, obtaining a first processing drawing and a first visual inspection parameter of a product to be tested.
[0053] In this embodiment, the first processing drawing may be a drawing for processing the product to be tested, and the first processing drawing may be a 3D digital model drawing.
[0054] The first visual inspection parameter may be a threshold value and / or upper and lower limits representing a qualified range of visual inspection of the product to be inspected. The first visual inspection parameter may be stored in a csv file.
[0055] In one embodiment, the first processing drawing and the first visual inspection parameter of the product to be inspected may be pre-stored on a visual inspection device that executes the method of this embodiment.
[0056] In one embodiment, the first processing drawing and the first visual parameter of the product to be tested may be stored on a server, and the visual inspection device executing the method of this embodiment obtains the first processing drawing and the first visual inspection parameter of the product to be tested from the server. Specifically, obtaining the first processing drawing and the first visual inspection parameter of the product to be tested may include: obtaining product information of the product to be tested, and obtaining the first processing drawing and the first visual inspection parameter of the product to be tested from the server according to the product information of the product to be tested.
[0057] In this embodiment, the user may set the product information of the product to be tested for visual inspection in the visual inspection device through the first configuration interface, wherein the first configuration interface may be as follows: Figure 2 For example, the product information may be an item code for indicating the product type of the product to be tested.
[0058] In the server, a second configuration interface can be provided, and the user can set it through the second configuration interface. The user can configure the product information of the product to be tested through the second configuration interface, and upload the first processing drawing and the first visual inspection parameter of the product to be tested through the second configuration interface to associate the product information of the product to be tested with the first processing drawing and the first visual inspection parameter of the product to be tested.
[0059] Furthermore, the user can also configure the relationship between workstations, workstations, processes, and product information through the server.
[0060] Specifically, users can also configure project codes, workstation codes, system line identification codes, line types, processes, workstation codes, and workstation names through the server. The above basic information is the basis for parameter upload and parameter distribution.
[0061] In an example, Figure 3 As shown, the server can synchronize the project information of the basic data platform, and can also enter the project code or factory instance to synchronize the unit and station relationship information of the basic data platform, and can also enter the inventory organization code to synchronize the project material number information of the basic data platform.
[0062] In an example, Figure 3 As shown, the server can also provide a quality parameter management list in the second configuration interface. The quality parameter management list is displayed based on project, unit, and test classification, and only the quality parameters of the latest version are displayed. The server can also filter and display projects for users with different data permissions.
[0063] In an example, Figure 4 As shown, the user can click the Add button in the second configuration interface to enter the quality parameter maintenance page. In the quality parameter maintenance page, the user can choose to upload a CSV format file, check the corresponding unit station information, and click the Confirm button to upload the first visual inspection parameters.
[0064] In an example, Figure 3 As shown, when the user selects the corresponding project workstation, the server can provide all versions of the visual parameters of the corresponding project for the user to view all parameter upload versions. Each version of the visual parameters can contain basic project information, such as upload time, version content, etc.
[0065] In one embodiment, the visual inspection device executing the method of this embodiment may obtain the first processing drawing and the first visual parameter of the product to be tested from the server when an event of obtaining parameters occurs. The event of obtaining parameters may include: receiving an operation of obtaining parameters and reaching a set update time.
[0066] In another embodiment, the visual inspection device executing the method of this embodiment may obtain the first processing drawing and the first visual parameter of the product to be tested from the server when receiving the operation of obtaining the parameters. The visual inspection device may obtain the first visual parameter of the product to be tested from the server when the set update time is reached.
[0067] The operation of obtaining the parameters may be an operation in which the user sets the product information of the product to be tested for visual inspection through the first configuration interface in the visual inspection device and clicks the first button in the first configuration interface. The first configuration interface may be as follows: Figure 2 As shown, the first button can be Figure 2 The button "Pull parameters and save locally" in the first configuration interface shown.
[0068] In this embodiment, the user can set the time interval for updating the visual parameters during the visual inspection of the product to be inspected in advance in the visual inspection device through the first configuration interface, and the time interval can be, for example, 5 minutes. Then, when the time interval for updating the visual parameters reaches 5 minutes, the step of obtaining the first visual inspection parameter is performed once.
[0069] In one embodiment of the present disclosure, the method may further include: comparing the first visual inspection parameter with the second visual parameter of the product to be tested; when the first visual parameter is different from the second visual parameter, executing the step of generating a first inspection program for the product to be tested according to the first processing drawing, the first visual inspection parameter and the conversion parameter.
[0070] In this embodiment, the second visual parameter may be a visual parameter currently used by the visual inspection device, that is, the second inspection program currently used by the visual inspection device to perform visual inspection on the product to be inspected is generated based on the second visual parameter.
[0071] Furthermore, when the second visual parameter is not stored in the visual inspection device, the step of comparing the first visual inspection parameter with the second visual parameter of the product to be inspected may not be performed, and steps S1200 to S1400 are continued to be performed.
[0072] Through this embodiment, the inspection program used by the visual inspection equipment can be updated in time when the visual parameters are updated, thereby avoiding inaccurate visual inspection results of the products to be tested due to untimely updating of the inspection program, thereby affecting the pass rate of the products to be tested.
[0073] In one embodiment of the present disclosure, the method also includes: issuing an alarm when the first visual parameter is different from the second visual parameter; in response to a confirmation operation on the modification of the visual inspection parameter, executing the step of generating a first inspection program for the product to be tested according to the first processing drawing, the first visual inspection parameter and the conversion parameter.
[0074] In this embodiment, when the first visual parameter is different from the second visual parameter, an alarm is issued to remind the tester to confirm whether to use the first visual parameter to test the product to be tested. When the tester confirms to use the first visual parameter to test the product to be tested, the tester can perform a confirmation operation on the modification of the visual inspection parameter, so that the visual inspection device performs subsequent steps S1200 to S1400.
[0075] Through this embodiment, the reliability and accuracy of visual detection results can be improved.
[0076] In one embodiment of the present disclosure, the method also includes: when the first visual parameter is the same as the second visual parameter, performing visual inspection on the product to be inspected according to a second inspection program, wherein the second inspection program is an inspection program obtained based on the first processing drawing, the second visual inspection parameter and the conversion parameter.
[0077] In this embodiment, when the first visual parameter is the same as the second visual parameter, it means that the visual parameter of the product to be tested has not changed. In order to reduce the computing power of the visual inspection device, it is not necessary to generate the first inspection program according to the first visual parameter to perform visual inspection on the product to be tested. Therefore, the second inspection program generated according to the second visual parameter can continue to be used to perform visual inspection on the product to be tested.
[0078] Through this embodiment, the computing power of the visual inspection equipment can be reduced.
[0079] Step S1200, obtaining conversion parameters from the actual size of the product to be inspected to the pixel size of the camera field of view.
[0080] In this embodiment, the camera may be calibrated according to the calibration product to obtain conversion parameters from the actual size of the product to be inspected to the pixel size of the camera's field of view.
[0081] In some embodiments, when the visual inspection device changes the type of product to be visually inspected, the camera may be recalibrated before visual inspection.
[0082] In some embodiments, the conversion parameters may be stored in the visual inspection device after the camera is calibrated. If the visual inspection device does not change the type of product to be inspected, if an inspection program needs to be generated, the stored conversion parameters may be obtained from the visual inspection device.
[0083] Step S1300, generating a first inspection program for the product to be inspected according to the first processing drawing, the first visual inspection parameters and the converted parameters.
[0084] The first detection program includes at least one first detection frame of the product to be detected within the camera's field of view.
[0085] In this embodiment, the first detection program can be used to detect whether the deviation between at least one to-be-detected area of the to-be-detected product and the corresponding first detection frame in the camera field of view meets the corresponding first visual parameter.
[0086] In one embodiment of the present disclosure, a first inspection program for a product to be inspected is generated according to a first processing drawing, first visual inspection parameters and conversion parameters, including: generating a second inspection frame represented by the actual size of the product to be inspected according to the first processing drawing; processing the second inspection frame according to the conversion parameters to obtain a first inspection frame; and obtaining the first inspection program according to the first inspection frame and the first visual inspection parameters.
[0087] In this embodiment, the second detection frame represents the actual size of the product to be detected and the actual position of the area to be detected in the product to be detected.
[0088] Since visual inspection is performed by photographing the product to be tested with a camera and detecting whether the product to be tested has defects based on the photographed image, it is necessary to convert the second inspection frame in the product to be tested to the camera field of view according to the conversion parameters to obtain the first inspection frame.
[0089] In one embodiment of the present disclosure, the processing drawing is a 3D drawing, and generating a second detection frame represented by the actual size of the product to be tested according to the first processing drawing includes: generating a 2D drawing of the product to be tested according to the 3D drawing; and parsing the 2D drawing to obtain the second detection frame.
[0090] Through this embodiment, the inspection program of the product to be inspected can be automatically generated according to the 3D drawing, without the need for the tester to manually draw the inspection frame, thereby improving the generation efficiency and accuracy of the inspection program and further improving the production efficiency of the product to be tested.
[0091] Step S1400: Perform visual inspection on the product to be inspected according to a first inspection program.
[0092] In this embodiment, performing visual inspection on the product to be tested according to the first inspection program may include: controlling a camera to photograph the product to be tested to obtain an image to be tested; performing visual inspection on the image to be tested according to the first inspection program to obtain a visual inspection result of the product to be tested.
[0093] Through the embodiments of the present disclosure, a first inspection program for the product to be tested is automatically generated according to a first processing drawing of the product to be tested, a first visual inspection parameter, and a conversion parameter from the actual size of the product to be tested to the pixel size of the camera's field of view, and visual inspection is performed on the product to be tested according to the first inspection program. There is no need for the tester to manually draw an inspection frame to obtain the inspection program, which can improve the generation efficiency and accuracy of the inspection program, thereby improving the visual inspection efficiency of the product to be tested.
[0094] This embodiment also provides a visual inspection device 5000, such as Figure 5 As shown, the visual inspection device 5000 includes a detection parameter acquisition module 5100, a conversion parameter acquisition module 5200, a detection program generation module 5300 and a visual inspection module 5400.
[0095] The detection parameter acquisition module 5100 is used to obtain a first processing drawing and a first visual detection parameter of the product to be tested.
[0096] The conversion parameter acquisition module 5200 is used to acquire the conversion parameters from the actual size of the product to be tested to the pixel size of the camera field of view.
[0097] The inspection program generation module 5300 is used to generate a first inspection program for the product to be inspected according to the first processing drawing, the first visual inspection parameters and the conversion parameters, wherein the first inspection program includes at least one first inspection frame of the product to be inspected within the camera field of view.
[0098] The visual inspection module 5400 is used to perform visual inspection on the product to be inspected according to the first inspection program.
[0099] In one embodiment of the present disclosure, the detection parameter acquisition module 5100 is used to:
[0100] Obtaining product information of the product to be tested;
[0101] According to the product information, a first processing drawing and a first visual inspection parameter of the product to be tested are obtained from a server.
[0102] In one embodiment of the present disclosure, the visual inspection device 5000 further includes:
[0103] A module for comparing the first visual detection parameter with a second visual parameter of the product to be tested;
[0104] The inspection program generation module 5300 is used to execute the step of generating the first inspection program for the product to be inspected according to the first processing drawing, the first visual inspection parameter and the conversion parameter when the first visual parameter is different from the second visual parameter.
[0105] In one embodiment of the present disclosure, the visual inspection device 5000 further includes:
[0106] A module for performing visual inspection on the product to be inspected according to a second inspection program when the first visual parameter is the same as the second visual parameter, wherein the second inspection program is an inspection program obtained according to the first processing drawing, the second visual inspection parameter and the conversion parameter.
[0107] In one embodiment of the present disclosure, the visual inspection device 5000 further includes:
[0108] A module for issuing an alarm when the first visual parameter is different from the second visual parameter;
[0109] The inspection program generation module 5300 is used to execute the step of generating the first inspection program for the product to be inspected according to the first processing drawing, the first visual inspection parameters and the conversion parameters in response to the confirmation operation of the visual inspection parameter modification.
[0110] In one embodiment of the present disclosure, the detection formula generation module 5300 is used to:
[0111] Generating a second inspection frame represented by the actual size of the product to be inspected according to the first processing drawing;
[0112] Processing the second detection frame according to the conversion parameter to obtain the first detection frame;
[0113] The first detection formula is obtained according to the first detection frame and the first visual detection parameter.
[0114] In one embodiment of the present disclosure, the processing drawing is a 3D drawing, and generating a second detection frame represented by the actual size of the product to be tested according to the first processing drawing includes:
[0115] Generate a 2D drawing of the product to be tested according to the 3D drawing;
[0116] The 2D drawing is parsed to obtain the second detection frame.
[0117] This embodiment also provides a visual inspection device 6000, such as Figure 6 As shown, it includes a processor 6100 and a memory 6200, wherein the memory 6200 is used to store a computer program, and the computer program is used to control the processor 6100 to execute a method according to any embodiment of the present disclosure.
[0118] This embodiment further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the method described in any embodiment of the present disclosure is implemented.
[0119] The above embodiments mainly focus on describing the differences from other embodiments, but it should be clear to those skilled in the art that the above embodiments can be used alone or in combination with each other as needed.
[0120] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other. Each embodiment focuses on the differences from other embodiments, but it should be clear to those skilled in the art that the above embodiments can be used alone or in combination with each other as needed. In addition, for the device embodiment, since it corresponds to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the corresponding part of the method embodiment. The system embodiment described above is merely illustrative, and the modules described as separate areas may or may not be physically separated.
[0121] The present invention may be an apparatus, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present invention.
[0122] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (a non-exhaustive list) include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical compression device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium is not to be interpreted as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.
[0123] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.
[0124] The computer program instructions for performing the operation of the present invention may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed entirely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be personalized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present invention.
[0125] Various aspects of the present invention are described herein with reference to the flow charts and / or block diagrams of the methods, devices (systems) and computer program products according to embodiments of the present invention. It should be understood that each box of the flow chart and / or block diagram and the combination of each box in the flow chart and / or block diagram can be implemented by computer-readable program instructions.
[0126] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0127] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0128] The flow charts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the systems, methods and computer program products according to multiple embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a part of a module, a program segment or an instruction, and a part of the module, a program segment or an instruction contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented by a dedicated hardware-based system that performs the specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions. It is well known to those skilled in the art that it is equivalent to implement it by hardware, implement it by software, and implement it by combining software and hardware.
[0129] Embodiments of the present invention have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The choice of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements to the technology in the marketplace, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein. The scope of the present invention is defined by the appended claims.
Claims
1. A visual inspection method, It is characterized in that include: Obtaining a first processing drawing and a first visual inspection parameter of a product to be tested; Obtaining conversion parameters from the actual size of the product to be tested to the pixel size of the camera's field of view; Generate a first inspection program for the product to be inspected according to the first processing drawing, the first visual inspection parameter and the conversion parameter, wherein the first inspection program includes at least one first inspection frame of the product to be inspected within the camera field of view; Perform visual inspection on the product to be inspected according to the first inspection program.
2. The method according to claim 1, It is characterized in that The step of obtaining a first processing drawing and a first visual inspection parameter of the product to be tested includes: Obtaining product information of the product to be tested; According to the product information, a first processing drawing and a first visual inspection parameter of the product to be tested are obtained from a server.
3. The method according to claim 2, It is characterized in that The method further comprises: Comparing the first visual detection parameter with a second visual parameter of the product to be tested; When the first visual parameter is different from the second visual parameter, the step of generating a first inspection program for the product to be inspected according to the first processing drawing, the first visual inspection parameter and the conversion parameter is performed.
4. The method according to claim 3, It is characterized in that The method further comprises: When the first visual parameter is the same as the second visual parameter, the product to be tested is visually inspected according to a second inspection program, wherein the second inspection program is an inspection program obtained according to the first processing drawing, the second visual inspection parameter and the conversion parameter.
5. The method according to claim 3, It is characterized in that The method further comprises: When the first visual parameter is different from the second visual parameter, issuing an alarm; In response to the confirmation operation of the visual inspection parameter modification, the step of generating a first inspection program for the product to be inspected according to the first processing drawing, the first visual inspection parameter and the conversion parameter is performed.
6. The method according to claim 1, It is characterized in that The step of generating a first inspection program for the product to be inspected according to the first processing drawing, the first visual inspection parameter and the conversion parameter comprises: Generating a second inspection frame represented by the actual size of the product to be inspected according to the first processing drawing; Processing the second detection frame according to the conversion parameter to obtain the first detection frame; The first detection formula is obtained according to the first detection frame and the first visual detection parameter.
7. The method according to claim 6, It is characterized in that The processing drawing is a 3D drawing, and generating a second detection frame represented by the actual size of the product to be tested according to the first processing drawing includes: Generate a 2D drawing of the product to be tested according to the 3D drawing; The 2D drawing is parsed to obtain the second detection frame.
8. A visual inspection device, It is characterized in that include: A detection parameter acquisition module, used to obtain a first processing drawing and a first visual detection parameter of the product to be tested; A conversion parameter acquisition module, used to acquire conversion parameters from the actual size of the product to be tested to the pixel size of the camera field of view; An inspection program generation module, configured to generate a first inspection program for the product to be inspected according to the first processing drawing, the first visual inspection parameter and the conversion parameter, wherein the first inspection program includes at least one first inspection frame of the product to be inspected within a camera field of view; The visual inspection module is used to perform visual inspection on the product to be inspected according to the first inspection program.
9. A visual inspection device, It is characterized in that The method comprises a processor and a memory, wherein the memory is used to store a computer program, and the computer program is used to control the processor to execute the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, It is characterized in that A computer program is stored thereon, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Automatic optical detection apparatus and detection method thereof
CN105466951A
AOI component detection frame automatic generation method based on PCB coordinate transformation
CN106570858A
Automatic optical detection auxiliary method, device and storage medium
CN113538341A
PCBA online detection platform based on AI visual inspection technology
CN115170497A
Functional region recognition method and device, functional region model construction method and device and storage medium
CN115424287A
