Search

CN-122018879-A - Modeling method and device for detection software, electronic equipment and readable storage medium

CN122018879ACN 122018879 ACN122018879 ACN 122018879ACN-122018879-A

Abstract

The application discloses a modeling method and device for detection software, electronic equipment and a readable storage medium, and belongs to the field of industrial detection. The method comprises the steps of configuring workstation parameters and hardware parameters of automatic optical detection equipment, processing flows and interaction time sequences of all workstations based on visual operation by modeling software, obtaining a first modeling template under the condition that all workstations and hardware normally operate, configuring object parameters of a target object detected by the automatic optical detection equipment, detection groups of all workstations, detection picture parameters of all workstations, image acquisition modes, image processing algorithms and calibration of image processing results on a target image of the target object, obtaining a second modeling template under the condition that the image processing results and the calibration results of the target image meet corresponding preset conditions, associating the first modeling template with the second modeling template to obtain a template of detection software, and achieving simple operation without customized development and reducing cost of developing the detection software.

Inventors

  • SUN FENGXIN

Assignees

  • 凌云光技术股份有限公司

Dates

Publication Date
20260512
Application Date
20251230

Claims (10)

  1. 1. A modeling method of detection software, comprising: The method comprises the steps that a visual interface of modeling software is based on visual operation, workstation parameters and hardware parameters of automatic optical detection equipment, and processing flows and interaction time sequences of all workstations are configured, and a first modeling template is obtained under the condition that all the workstations and the hardware normally run; Configuring object parameters of a target object detected by the automatic optical detection equipment, detection groups to which each work station belongs, detection picture parameters of each work station, an image acquisition mode, an image processing algorithm and calibration of an image processing result on a target image of the target object on the basis of visual operation of a visual interface of the modeling software, and acquiring a second modeling template under the condition that the image processing result and the calibration result of the target image meet corresponding preset conditions; and correlating the first modeling template with the second modeling template to obtain a template of detection software of the automatic optical detection equipment.
  2. 2. The modeling method of inspection software of claim 1, wherein configuring workstation parameters of an automated optical inspection device comprises: in response to a visualization operation for adding, modifying or deleting a workstation, workstation parameters of the workstation are newly added, modified or deleted, wherein the workstation parameters comprise at least part of a workstation identifier, a workstation name, a service merging state, a communication address and a communication port; configuring hardware parameters includes: In response to a visual operation of inputting hardware parameters of any hardware, storing the hardware parameters in a hardware parameter library under the condition that the hardware parameters of the hardware are submitted, wherein the hardware comprises at least part of a camera, a light source, a motion control card and an input/output card; Configuring the processing flow and the interaction time sequence of each workstation, comprising: and setting the processing flow and the interaction time sequence of the workstation in response to the dragging mode of the user through the flow chart.
  3. 3. The modeling method of inspection software according to claim 1, wherein said configuring the object parameters of the target object detected by the automatic optical inspection apparatus, the inspection group to which each station belongs, the inspection screen parameters of each station, comprises: Acquiring input object parameters of the target object in response to an operation of setting the object parameters of the target object; responding to the visualization operation of grouping each workstation to obtain a plurality of detection groups, and displaying the grouping layout of each detection group; and responding to the visualization operation of setting the detection picture parameters for each workstation, and acquiring the detection picture parameters of each work, wherein the detection picture parameters comprise the number of pictures, the picture names and the template images of the pictures.
  4. 4. A method of modeling detection software according to claim 3, wherein the image acquisition mode includes a cropping parameter, an artwork parameter, an image cropping parameter, and an image stitching parameter; configuring an image acquisition mode comprises the following steps: Responding to the visual operation of setting cutting and splicing parameters for each detection group, and obtaining the cutting and splicing parameters of each detection group, wherein the cutting and splicing parameters are any one of a cutting and splicing mode, a multi-object image cutting and splicing mode, an image package detection mode and a multi-image package splicing detection mode; Acquiring original image parameters set for cameras of each workstation in response to a visualization operation for setting the original image parameters, wherein the original image parameters comprise at least part of image quantity, image pixel width and image pixel height; acquiring image cropping parameters set for cameras of each workstation in response to a visualization operation for setting the image cropping parameters, wherein the image cropping parameters comprise cropping areas; and responding to the visualization operation for setting the image stitching parameters, and acquiring the image stitching parameters set for each camera of each workstation.
  5. 5. The modeling method of detection software of claim 1, wherein configuring the image processing algorithm comprises: And acquiring the image processing algorithm of each workstation and algorithm parameters of each algorithm in response to the operation of setting the image processing algorithm for each workstation.
  6. 6. The modeling method of detection software according to claim 1, wherein configuring calibration of the image processing result on the target image of the target object includes: and responding to the operation of setting a target image of a target image, acquiring the target image, and creating a mapping relation between images acquired by each workstation and each region in the target image so as to display the defect on the target image based on the mapping relation when the image processing result acquired by each workstation represents that the defect exists.
  7. 7. The modeling method of inspection software according to any one of claims 1-6, wherein associating the first modeling template and the second modeling template to obtain a template of inspection software of the automated optical inspection device comprises: and associating the first modeling template with the second modeling template through a standardized interface to obtain a template of detection software of the automatic optical detection equipment.
  8. 8. A modeling apparatus for detecting software, comprising: The first processing module is used for configuring workstation parameters and hardware parameters of the automatic optical detection equipment, and processing flows and interaction time sequences of the workstations based on visual operation of a visual interface of modeling software, and obtaining a first modeling template under the condition that the workstations and the hardware normally operate; The second processing module is used for configuring object parameters of the target object detected by the automatic optical detection equipment, detection groups to which each work station belongs, detection picture parameters of each work station, an image acquisition mode, an image processing algorithm and calibration of an image processing result on a target image of the target object on the basis of visual operation on a visual interface of the modeling software, and obtaining a second modeling template under the condition that the image processing result and the calibration result of the target image meet corresponding preset conditions; and the third processing module is used for associating the first modeling template with the second modeling template to obtain a template of detection software of the automatic optical detection equipment.
  9. 9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements a modeling method for the detection software according to any of claims 1-7 when the program is executed by the processor.
  10. 10. A non-transitory computer readable storage medium, having stored thereon a computer program, which when executed by a processor, implements a method of modeling of detection software according to any of claims 1-7.

Description

Modeling method and device for detection software, electronic equipment and readable storage medium Technical Field The application belongs to the field of industrial detection, and particularly relates to a modeling method and device of detection software, electronic equipment and a readable storage medium. Background With the development of industrial vision industry, application of AOI (Automated Optical Inspection, automatic optical detection) vision detection in industrial production is becoming wider and wider, the types of detection products cover various forms such as display screens, mobile phone midframes, headphones, batteries and the like, and the size, appearance and detection station configuration differences of different products are obvious, so that the detection scheme needs to be frequently adjusted. In the prior art, the detection software mostly adopts a customization mode of 'one scheme one development', however, the customization mode needs to write codes independently for workstation layout, hardware configuration (cameras, light sources and the like) and image processing logic of different products, and has long development period and high labor cost. Disclosure of Invention The present application is directed to solving at least one of the technical problems existing in the related art. Therefore, the modeling method, the modeling device, the electronic equipment and the readable storage medium of the detection software are simple to operate, do not need customized development, and reduce the cost of developing the detection software. In a first aspect, the present application provides a method for modeling detection software, the method comprising: The method comprises the steps that a visual interface of modeling software is based on visual operation, workstation parameters and hardware parameters of automatic optical detection equipment are configured, and processing flows and interaction time sequences of all workstations are configured, so that a first modeling template is obtained under the condition that all workstations and hardware normally run; The method comprises the steps that a visual interface of modeling software is based on visual operation, object parameters of a target object detected by automatic optical detection equipment, detection groups of all work stations, detection picture parameters of all work stations, an image acquisition mode, an image processing algorithm are configured, an image processing result is calibrated on a target image of the target object, and a template of a second modeling template is obtained under the condition that the image processing result and the calibration result of the target image meet corresponding preset conditions; And correlating the first modeling template with the second modeling template to obtain detection software of the automatic optical detection equipment. According to the modeling method of the detection software, the workstation parameters, the hardware parameters, the processing flow and the interaction time sequence of each workstation of the automatic optical detection equipment can be configured through the visual interface of the modeling software based on the visual operation, the first modeling template is obtained under the condition that each workstation and the hardware normally operate, the object parameters of the target object detected by the automatic optical detection equipment, the detection picture of each workstation, the image acquisition mode, the image processing algorithm and the calibration of the image processing result on the target image of the target object are configured, the second modeling template is obtained under the condition that the image processing result and the calibration result of the target image meet the corresponding preset conditions, the first modeling template and the second modeling template are associated, the template of the detection software of the automatic optical detection equipment is obtained, a user can model the template of the detection software of the automatic optical detection equipment only through simple visual operation, the operation is simple, the custom development is not needed, and the template development cost of the detection software is reduced. According to one embodiment of the application, configuring workstation parameters of an automated optical inspection apparatus includes: In response to a visualization operation for adding, modifying or deleting a workstation, workstation parameters of the workstation are newly added, modified or deleted, the workstation parameters including at least part of a workstation identification, a workstation name, a service merge status, a communication address, a communication port; configuring hardware parameters includes: In response to a visual operation of inputting hardware parameters of any hardware, storing the hardware parameters in a hardware parameter library under the condition of hardware pa