A method for intelligent generation of machine vision solutions

Through guided configuration and batch automated lighting testing, combined with deep learning algorithms to generate initial models, it solves the problems of high algorithm complexity and long implementation cycle in existing machine vision solutions, achieves efficient lighting configuration and algorithm development, and improves Ensure program quality and implementation.

CN117671071BActive Publication Date: 2024-10-25LINGHU INTELLIGENT CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410013923.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-02
Publication Date
2024-10-25
Estimated Expiration
2044-01-02

AI Technical Summary

Technical Problem

Existing machine vision solutions develop algorithms based on predetermined imaging solutions, resulting in high algorithm complexity or inability to effectively solve problems, resulting in extended implementation cycles and increased costs.

Method used

Recommend camera, lens and light source selection through guided configuration and industry knowledge base, conduct batch automated lighting tests, calculate image evaluation indicators, recommend the most appropriate lighting solution, and combine with deep learning algorithms to generate initial models and optimize lighting configurations and algorithm development.

Benefits of technology

It achieves automation and efficient evaluation of lighting configuration, reduces the impact of human factors, shortens the implementation cycle, and improves program quality and implementation guarantee.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117671071B_ABST
    Figure CN117671071B_ABST
Patent Text Reader

Abstract

The present invention provides a method for intelligently generating a machine vision solution, and relates to the technical field of intelligently generating a machine vision solution. The method for intelligently generating a machine vision solution comprises the following steps: S1. setting an initial configuration, and making preliminary recommendations based on guided configuration, including but not limited to task and sample type attributes, using an industry knowledge base to determine the selection of cameras, lenses and light sources, and selecting the task type. The software control device implements batch automated execution of lighting configuration, completes image acquisition and data storage, uses multiple metrics to perform quantitative evaluation of all image sets, implements algorithm recommendations based on specific tasks, and if a deep learning algorithm is recommended, considers training an initial model, which can efficiently collect sample images under different lighting schemes, and builds a mechanism that combines lighting testing with subsequent algorithm construction, thereby making the implementation of the entire visual solution more secure.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of intelligent generation of machine vision solutions, and in particular to a method for intelligent generation of machine vision solutions. Background Art

[0002] In the industrial field, lighting is the core content of machine vision solutions, and its purpose is to image the target object in a way that meets the requirements. In addition to the selection of cameras and lenses, there are also different types of light sources and their different distributions in space to choose from, so the lighting process is usually cumbersome.

[0003] When building a machine vision solution, the first thing to do is to test the lighting. Engineers usually light the samples on a lighting test bench, collect images, and output the lighting configuration based on their personal experience, and the subsequent specific algorithm development will depend on the lighting configuration. For the construction of an algorithm for a specific machine vision task, imaging is a core prerequisite. Therefore, a better choice is to use enough lighting configurations for lighting testing, so that better lighting solutions can be selected as much as possible to avoid suboptimal choices caused by human factors. In addition, the purpose of lighting testing is actually to serve the final algorithm development, so giving some initial algorithm recommendations during the lighting test stage can further enhance the quality of the lighting solution, thereby making the implementation of the entire vision solution more secure.

[0004] At present, lighting solutions are generally derived by engineers through limited attempts and personal experience, and there is little attention paid to the algorithms used later at this stage. Algorithm engineers use images to develop algorithms based on pre-determined imaging solutions, which may lead to high algorithm complexity or fail to effectively solve the problem and have to rebuild the lighting solution. This will prolong the implementation cycle of the entire solution and increase the cost. Summary of the invention

[0005] 1. Technical issues to be resolved

[0006] In view of the shortcomings of the prior art, the present invention provides a method for intelligently generating machine vision solutions, which solves the problem that most of the existing methods sample images and develop algorithms based on a predetermined imaging solution, resulting in high algorithm complexity, or are unable to effectively solve the problem and have to rebuild the lighting solution, which in turn leads to a longer implementation cycle and higher costs for the entire solution.

[0007] (II) Technical solution

[0008] To achieve the above objectives, the present invention is implemented through the following technical solutions: a method for intelligently generating a machine vision solution, specifically comprising the following steps:

[0009] S1. Set the initial configuration, through guided configuration, based on but not limited to the task and sample type attributes, use the industry knowledge base to make preliminary recommendations, determine the selection of camera, lens and light source, and select the task type;

[0010] S2. After the selection is completed, place the sample for imaging and then mark the ROI area;

[0011] S3. Adjust the position and angle of the light source in space, automatically perform batch lighting of the same sample, complete imaging under various lighting configurations, store all imaging results and their corresponding lighting configurations in a unified manner, and store the lighting configurations and imaging in association;

[0012] S4. Repeat the process of S2 and S3 to perform lighting tests on multiple samples to verify the completeness and effectiveness of the lighting test;

[0013] S5. traverse the data set, calculate the predefined image evaluation index on all images, and calculate and recommend the most appropriate lighting solution by weighted statistics;

[0014] S6. Determine whether an algorithm recommendation is required. If an algorithm recommendation is required, jump to S7. If an algorithm recommendation is not required, jump to S9.

[0015] S7. Generate algorithm recommendations based on initial configuration, sample imaging, and task type, and determine whether a deep learning algorithm needs to be generated. If the generated algorithm is a deep learning algorithm, jump to S8; if the generated algorithm is not a deep learning algorithm, jump to S9;

[0016] S8. Determine whether it is necessary to generate an initial model. If it is necessary to generate an initial model, construct a data set based on the imaging of the selected lighting scheme and perform model training. If it is not necessary to generate an initial model, jump to S9;

[0017] S9. Generate a machine vision solution;

[0018] S10. End the machine vision solution intelligent generation method.

[0019] Preferably, in S1, the selection is made by manually specifying the type of sample or by algorithm recommendation based on the task type and the sample type.

[0020] Preferably, in S2, after the camera and lens are fixed and the ROI area is confirmed, batch automatic lighting of multiple types, multiple spectra and multiple positions is performed on the light source part to obtain an imaging set under different light fields.

[0021] Preferably, in S5, the imaging effect is evaluated by calculating contrast and clarity, and relevant calculations are performed inside and outside the ROI area. For certain tasks, such as defect detection, a batch of preset algorithms can also be run directly on the imaging, and the optimal imaging is selected based on the algorithm results.

[0022] Preferably, in S7, an available operator set or deep learning model structure is generated based on the task type and imaging effect.

[0023] Preferably, in S8, for the deep learning algorithm, images corresponding to the optimal lighting solution are screened out, and when the number of images is sufficient, fine-tuning is performed based on the pre-trained model to obtain a seed model for subsequent model iterations.

[0024] (III) Beneficial effects

[0025] The present invention provides a method for intelligently generating a machine vision solution. It has the following beneficial effects:

[0026] 1. The present invention provides a method for intelligently generating machine vision solutions. Compared with the existing method for intelligently generating machine vision solutions, the method for intelligently generating machine vision solutions realizes batch automatic execution of lighting configurations through a software control device (such as a module or a manipulator), completes image acquisition and data storage, uses multiple measurement criteria to perform quantitative evaluation on all image sets, and implements algorithm recommendations based on specific tasks. If a deep learning algorithm is recommended, the training of the initial model is considered. A method for efficiently collecting sample images under different lighting solutions can be used. At the same time, a method for selecting the optimal lighting configuration based on imaging can be used. A mechanism for combining lighting testing with subsequent algorithm construction can be provided. Recommendations for some initial algorithms can further enhance the quality of the lighting solution, thereby ensuring the implementation of the entire visual solution. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 A schematic diagram of the workflow of an intelligent generation method for machine vision solutions proposed in the present invention. DETAILED DESCRIPTION

[0028] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0029] Example:

[0030] like Figure 1As shown, an embodiment of the present invention provides a method for intelligently generating a machine vision solution, which specifically includes the following steps:

[0031] S1. Set the initial configuration, through guided configuration, based on but not limited to the task and sample type attributes, use the industry knowledge base to make preliminary recommendations, determine the selection of camera, lens and light source, select the task type, and combine the form of the industry knowledge base to reduce the time of preliminary adjustment and speed up the working efficiency of the method;

[0032] S2. After the selection is completed, the sample is placed for imaging, and then the ROI area is marked to facilitate subsequent batch data processing and detection;

[0033] S3. Adjust the position and angle of the light source in space, automatically perform batch lighting of the same sample, complete imaging under various lighting configurations, store all imaging results and their corresponding lighting configurations in a unified manner, and associate the lighting configuration with the imaging for easy subsequent data call and continued use;

[0034] S4. Repeat the process of S2 and S3 to perform lighting tests on multiple samples to verify the integrity and effectiveness of the lighting test and ensure the overall accuracy of the scheme generated by this method;

[0035] S5. Traverse the data set, calculate the predefined image evaluation index on all images, calculate and recommend the most suitable lighting scheme by weighted statistics, which is helpful to provide support for the subsequent use of the lighting scheme;

[0036] S6. Determine whether an algorithm recommendation is needed. If an algorithm recommendation is needed, jump to S7. If an algorithm recommendation is not needed, jump to S9. This is beneficial for shortening the method process and speeding up the execution of the method according to different usage situations.

[0037] S7. Generate algorithm recommendations based on initial configuration, sample imaging, and task type, and determine whether a deep learning algorithm needs to be generated. If the generated algorithm is a deep learning algorithm, jump to S8; if the generated algorithm is not a deep learning algorithm, jump to S9, which is conducive to shortening the solution generation process according to the usage of the hi phone and ensuring that the solution is targeted;

[0038] S8. Determine whether it is necessary to generate an initial model. If it is necessary to generate an initial model, build a data set based on the imaging of the selected lighting scheme and perform model training. If it is not necessary to generate an initial model, jump to S9, which is conducive to ensuring the integrity of the overall scheme in specific use cases and improving the use effect of the method;

[0039] S9. Generate a machine vision solution;

[0040] S10. End the machine vision solution intelligent generation method.

[0041] In S1, manually specifying the selection or selecting the model based on the task type and sample type through algorithm recommendation is conducive to improving the overall scope of application of the method and the practicality of the method when used as a whole. In S2, after fixing the camera and lens and confirming the RO After the I area, the light source part is automatically illuminated in batches with multiple types, spectra, and positions to obtain a set of imaging under different light fields, which is conducive to improving the scope of the overall data collection of the scheme and improving the overall effectiveness and completeness of the method. In S5, the imaging effect is evaluated by calculating the contrast and clarity, and relevant calculations are required inside and outside the ROI area. For some tasks, such as defect detection, a batch of preset algorithms can also be run directly on the imaging, and the optimal imaging is selected according to the algorithm results, which is conducive to ensuring the practicality of the output algorithm. In S7, based on the task type and imaging effect, an available operator set or deep learning model structure is generated, which is conducive to improving the completeness of the generated scheme. In S8, for the deep learning algorithm, the image corresponding to the optimal lighting scheme is screened out. When the number of images is sufficient, fine-tuning is performed based on the pre-trained model to obtain the seed model for subsequent model iteration, which is conducive to combining the lighting test with the subsequent algorithm construction mechanism, so as to provide guarantee for the subsequent implementation of the scheme.

[0042] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. A method for intelligently generating a machine vision solution, characterized in that: The specific steps include: S1. Set the initial configuration, through guided configuration, based on the task and sample type attributes, use the industry knowledge base to make preliminary recommendations, determine the selection of camera, lens and light source, and select the task type; S2. After the selection is completed, place the sample for imaging and then mark the ROI area; S3. Adjust the position and angle of the light source in space, automatically perform batch lighting of the same sample, complete imaging under various lighting configurations, store all imaging results and their corresponding lighting configurations in a unified manner, and store the lighting configurations and imaging in association; S4. Repeat the process of S2 and S3 to perform lighting tests on multiple samples to verify the completeness and effectiveness of the lighting test; S5. traverse the data set, calculate the predefined image evaluation index on all images, and calculate and recommend the most appropriate lighting solution by weighted statistics; S6. Determine whether an algorithm recommendation is required. If an algorithm recommendation is required, jump to S7. If an algorithm recommendation is not required, jump to S9. S7. Generate algorithm recommendations based on initial configuration, sample imaging, and task type, determine whether a deep learning algorithm needs to be generated, and generate an available operator set or deep learning model structure based on the task type and imaging effect. If the generated algorithm is a deep learning algorithm, jump to S8; if the generated algorithm is not a deep learning algorithm, jump to S9; S8. Determine whether it is necessary to generate an initial model. For deep learning algorithms, select images corresponding to the optimal lighting scheme. If the number of images is sufficient, fine-tune based on the pre-trained model to obtain a seed model for subsequent model iterations. If it is necessary to generate an initial model, build a data set based on the imaging of the selected lighting scheme and perform model training. If it is not necessary to generate an initial model, jump to S9. S9. Generate a machine vision solution; S10. End the machine vision solution intelligent generation method.

2. The method for intelligently generating a machine vision solution according to claim 1, characterized in that: In S1, the model is selected by manual specification or algorithm recommendation based on the task type and sample type.

3. The method for intelligently generating a machine vision solution according to claim 1, characterized in that: In S2, after the camera and lens are fixed and the ROI area is confirmed, batch automatic lighting of multiple types, multiple spectra, and multiple positions is performed on the light source part to obtain an imaging set under different light fields.

4. The method for intelligently generating a machine vision solution according to claim 1, characterized in that: In S5, the imaging effect is evaluated by calculating contrast and clarity, and relevant calculations are performed inside and outside the ROI area respectively.

Citation Information

Patent Citations

  • Scanning processing method of red and black files

    CN106791254A

  • Intelligent optical detection sample characteristic and defect intelligent lighting and image capturing method and device

    CN110956627A

  • Dimming method, device and equipment

    CN113176270A

  • Industrial intelligent visual algorithm cloud service system and method

    CN114627366A

  • Machine vision systems and methods for automatically generating one or more machine vision jobs based on region of interests (ROIS) of digital images

    US20230030779A1