An analyzer and an analysis method of the analyzer
Patent Information
- Application Number
- CN202210473391.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-29
- Publication Date
- 2026-09-08
- Estimated Expiration
- 2042-04-29
AI Technical Summary
视觉装置设置有光源,以提高摄像机的拍摄效果,通常情况下,操作者根据产品的材质并结合工作经验、实验数据、现有光源参数等数据来选取视觉装置的光源的参数(包括颜色、亮度、种类等),这种方式选取的光源易发生打光效果差、选择效率过低等问题
[0005] In this application, the operator can select a suitable, low-cost light source based on the output results of the analysis element, thereby improving the operator's efficiency in selecting the light source and reducing the cost of the vision device. At the same time, it increases the matching degree between the parameters of the second light source generated by the light source and the product material, reduces the risk of local reflection of the product due to improper selection of the light source, and affects the shooting effect of the camera, improves the lighting effect of the light source, and thus improves the working stability of the vision device.
Smart Images

Figure CN117007284B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of vision device technology, and in particular to an analyzer and an analysis method for the analyzer. Background Technology
[0002] Vision devices use cameras to photograph products, thereby inspecting their processing quality and installation location. These devices are equipped with light sources to enhance camera performance. Typically, operators select the light source parameters (including color, brightness, and type) based on the product's material, work experience, experimental data, and existing light source parameters. However, this method of selection can easily lead to poor lighting effects and low selection efficiency. Summary of the Invention
[0003] This application provides an analyzer and an analysis method for the analyzer, which can improve the selection efficiency of light sources and the lighting effect.
[0004] The first aspect of this application provides an analyzer for determining a light source configuration scheme for a vision device. The vision device includes a camera and a light source capable of generating second light source parameters. The analyzer includes an analysis element and a photosensitive element. The photosensitive element is wired or wirelessly connected to the analysis element. The analysis element can output first light source parameters according to product parameters. The photosensitive element can detect second light source parameters of the light source in the vision device and transmit the second light source parameters to the analysis element. The analysis element can compare and analyze the first light source parameters and the second light source parameters to obtain analysis results, and can also output a light source configuration scheme based on the analysis results.
[0005] In this application, the operator can select a suitable, low-cost light source based on the output results of the analysis element, thereby improving the operator's efficiency in selecting the light source and reducing the cost of the vision device. At the same time, it increases the matching degree between the parameters of the second light source generated by the light source and the product material, reduces the risk of local reflection of the product due to improper selection of the light source, and affects the shooting effect of the camera, improves the lighting effect of the light source, and thus improves the working stability of the vision device.
[0006] In one possible design, the analysis element can convert the first light source parameters into a first three-dimensional rendering and the second light source parameters into a second three-dimensional rendering. The analysis element can compare and analyze the first three-dimensional rendering and the second three-dimensional rendering to output a light source configuration scheme.
[0007] In one possible design, the analysis element can output the third light source parameters of the camera based on the product's detection accuracy profile and / or positioning accuracy profile, in order to obtain the camera configuration scheme.
[0008] In one possible design, the analysis element can determine the working distance and actual field of view of the camera based on the detection accuracy profile and / or positioning accuracy profile, and can also calculate the parameters of the third light source based on the working distance and actual field of view.
[0009] A second aspect of this application provides an analysis method for an analyzer, wherein the analyzer is any of the analyzers described above;
[0010] The analyzer's analysis methods include:
[0011] Output the first light source parameters based on the product parameters;
[0012] The parameters of the second light source are detected and received by a photosensitive element;
[0013] Compare the parameters of the first light source with those of the second light source, and generate a light source configuration scheme.
[0014] In this application, the analyzer generates a light source configuration scheme by comparing and analyzing the parameters of the first light source and the parameters of the second light source, which improves the operator's efficiency in selecting light sources and reduces the risk of local reflections on the product caused by improper selection of light sources, thereby affecting the shooting effect of the camera and improving the lighting effect of the light source.
[0015] In one possible design, the output of the first light source parameters based on the product parameters includes:
[0016] Receive the product's 3D model file and material type file, and generate the first light source environment based on the 3D model file and material type file.
[0017] In one possible design, outputting the first light source parameters based on product parameters also includes:
[0018] Receive the product's detection accuracy configuration file and / or positioning accuracy configuration file, and determine the camera's working distance and actual field of view based on the detection accuracy configuration file and / or positioning accuracy configuration file;
[0019] Receive the camera's preset light source parameters;
[0020] The parameters of the third light source for the camera are calculated based on the working distance and the actual field of view. The preset light source parameters are compared with the parameters of the third light source, and the camera configuration scheme is output based on the analysis results.
[0021] In one possible design, detecting the parameters of the second light source via a photosensor includes:
[0022] Receive the product's detection accuracy profile and / or positioning accuracy profile, and determine the camera's working distance based on the detection accuracy profile and / or positioning accuracy profile;
[0023] The vision device and the light sensor are fixed separately, and the distance between the vision device and the light sensor is the working distance;
[0024] Turn on the light source, collect the ambient light emitted by the light source through the light sensor, and receive the second light source parameters of the ambient light.
[0025] In one possible design, comparing the parameters of the first light source with those of the second light source and generating a light source configuration scheme also includes:
[0026] The parameters of the first light source are converted into a first 3D rendering, and the parameters of the second light source are converted into a second 3D rendering. The first 3D rendering and the second 3D rendering are then compared and analyzed.
[0027] Based on the analysis results, a lighting score for the visual device is generated, and a light source configuration scheme is also generated.
[0028] In one possible design, the photosensitive element includes a photosensitive unit and a position sensing unit;
[0029] Converting the parameters of the second light source into a second 3D rendering includes:
[0030] The parameters of the second light source are detected and received by the photosensor unit.
[0031] The position sensing unit detects the three-dimensional position of the ambient light emitted by the light source on the photosensitive element and receives the three-dimensional position.
[0032] Calculate the perspective transformation relationship between the light sensor and the product's 3D model, and assign the second light source parameters to the product's 3D model based on the perspective transformation relationship to form a second 3D rendering.
[0033] It should be understood that the above general description and the following detailed description are merely exemplary and do not limit this application. Attached Figure Description
[0034] To more clearly illustrate the technical solutions in this application, the drawings used in the description of the embodiments or prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0035] Figure 1 A schematic diagram of the analysis method of the analyzer provided in this application in a specific embodiment;
[0036] Figure 2 for Figure 1 A schematic diagram of step S3 in one specific embodiment;
[0037] Figure 3 This is a schematic diagram illustrating the operation of the analyzer provided in this application in one specific embodiment.
[0038] Figure label:
[0039] 1-Analytical element;
[0040] 2-Optical sensor;
[0041] 3-Visual device.
[0042] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application. Detailed Implementation
[0043] To better understand the technical solution of this application, the embodiments of this application will be described in detail below with reference to the accompanying drawings.
[0044] It should be understood that the described embodiments are merely some, not all, of the embodiments in this application. All other embodiments obtained by those skilled in the art based on the embodiments in this application without inventive effort are within the scope of protection of this application.
[0045] The terminology used in the embodiments of this application is for the purpose of describing particular embodiments only and is not intended to be limiting of this application. The singular forms “a,” “the,” and “the” used in the embodiments of this application and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise.
[0046] It should be understood that the term "and / or" used in this article is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Additionally, the character " / " in this article generally indicates that the preceding and following related objects have an "or" relationship.
[0047] It should be noted that the directional terms such as "upper," "lower," "left," and "right" described in the embodiments of this application are used to describe the angles shown in the accompanying drawings and should not be construed as limiting the embodiments of this application. Furthermore, in the context, it should be understood that when it is mentioned that an element is connected "upper" or "lower" to another element, it can be directly connected to the other element "upper" or "lower," or indirectly connected to the other element "upper" or "lower" through an intermediate element.
[0048] Vision device 3 uses a camera to photograph the product, thereby detecting the product's processing quality and installation position. Vision device 3 is equipped with a light source; the light emitted from this source illuminates the product, increasing the brightness around it and improving the camera's shooting effect. Currently, machine vision in the industrial field heavily relies on its light source, and the quality of the lighting largely determines the stability of the machine vision algorithm. Typically, operators select the light source parameters (including color, brightness, and type) for vision device 3 based on the product's material, combined with work experience, experimental data, and existing light source parameters. However, this method is not conducive to stably, quickly, and effectively creating a suitable light source configuration, and is prone to problems such as poor lighting effect of vision device 3 and low light source selection efficiency.
[0049] Therefore, such as Figures 1-3 As shown, this application proposes an analyzer for determining the light source configuration scheme of a vision device 3. The analyzer includes an analysis element 1 and a photosensitive element 2 connected to the analysis element 1 via wired or wireless connection. During use, the operator inputs parameters such as the product's material, detection accuracy, and positioning accuracy into the analysis element 1. The analysis element 1 can generate the first light source parameters required for photographing the product based on these parameters. The operator can select a suitable, low-cost light source based on the output of the analysis element 1, thereby improving the operator's efficiency in selecting the light source and reducing the cost of the vision device 3. Simultaneously, the photosensitive element 2 can collect ambient light (which can be...) The ambient light around the light sensor 2 can be natural light, light emitted from the light source on the vision device 3, or a mixture of both (this application takes the light emitted from the light source on the vision device 3 as an example). The second light source parameter of the ambient light is transmitted to the analysis element 1. The analysis element 1 compares and analyzes the first light source parameter and the second light source parameter to obtain the analysis result. Based on the analysis result, it outputs the lighting score and light source configuration scheme of the light source so that the operator can intuitively observe the lighting effect of the vision device 3. At the same time, the operator can adjust and replace the light source of the vision device 3 according to the light source configuration scheme output by the analysis element 1, thereby further improving the lighting effect of the vision device 3.
[0050] Therefore, the analyzer proposed in this application can increase the matching degree between the second light source parameters generated by the light source and the product material, reduce the risk of local reflection of the product due to improper selection of the light source, and thus affect the shooting effect of the camera, thereby improving the lighting effect of the light source and improving the working stability of the vision device 3.
[0051] Specifically, the analysis element 1 can convert the first light source parameters into a first three-dimensional rendering and the second light source parameters into a second three-dimensional rendering. By comparing and analyzing the first three-dimensional rendering and the second three-dimensional rendering, it outputs the lighting score and the light source configuration scheme.
[0052] In this embodiment, the analysis element 1 converts the first light source parameters into a first three-dimensional effect image and the second light source parameters into a second three-dimensional effect image. This can improve the accuracy of the analysis results of the first light source parameters and the second light source parameters by the analysis element 1, and improve the analysis efficiency of the analysis element 1, thereby improving the working efficiency and reliability of the analyzer.
[0053] In addition, the analysis element 1 can output the third light source parameters of the camera according to the product's detection accuracy configuration file and / or positioning accuracy configuration file to obtain the camera configuration scheme. The operator can select and adjust the camera according to the camera configuration scheme output by the analysis element 1 to improve the quality of the camera's product shooting.
[0054] Specifically, the analysis element can determine the camera's working distance and actual field of view based on the detection accuracy profile and / or positioning accuracy profile, and can calculate the parameters of the third light source based on the working distance and actual field of view. The parameters of the third light source include, but are not limited to, focal length, optical magnification, and resolution, and the calculation formulas are as follows:
[0055] The camera's focal length f = working distance WD × camera's image size / actual field of view;
[0056] The optical magnification M of a camera = the camera's image size / the actual field of view.
[0057] The light source parameters include, but are not limited to, light source color, light source brightness, and light source type. The light source type includes, but is not limited to, loop, bar, sphere integral, backlight, and combination of multiple light sources.
[0058] Furthermore, the analysis element 1 can be a smart chip or a 3D drawing software on a computer. Operators can select the type, variety, and quantity of the analysis element 1 according to the usage scenario and usage requirements, thereby expanding the applicability of the analysis element 1 and thus expanding the applicable scenarios of the analyzer.
[0059] The contour shape of the light sensor 2 is a hemispherical integral shape to improve the light sensor 2's ability to collect ambient light, thereby improving the performance and operational stability of the light sensor 2.
[0060] like Figure 1 As shown, the analysis method of this analyzer includes:
[0061] S1: Analytical element 1 generates the first light source parameters based on the product parameters;
[0062] S2: The light sensor 2 detects the second light source parameters generated by the light source on the vision device 3, and transmits the second light source parameters to the analysis element 1;
[0063] S3: Analyze element 1 to compare the parameters of the first light source and the second light source, and generate a light source configuration scheme.
[0064] In this embodiment, the operator selects and replaces the light source of the vision device 3 based on the analysis results of the analyzer, which improves the operator's efficiency in selecting the light source. At the same time, it increases the matching degree between the second light source parameters generated by the light source and the product material, and reduces the risk of local reflection of the product due to improper selection of the light source, which affects the shooting effect of the camera, thereby improving the lighting effect of the light source.
[0065] Specifically, step S1 includes:
[0066] S11: Input the product's 3D model file and material type file into analysis element 1. Analysis element 1 determines the material distribution of the product based on the 3D model file and material type file, and generates the first light source parameters.
[0067] S12: Input the product's detection accuracy configuration file and / or positioning accuracy configuration file into analysis element 1. Analysis element 1 determines the working distance and actual field of view of the camera based on the detection accuracy configuration file and / or positioning accuracy configuration file. Input the preset light source parameters of the cameras known on the market into analysis element 1. Analysis element 1 calculates the third light source parameters of the camera based on the working distance and actual field of view. Analysis element 1 compares and analyzes the preset light source parameters and the third light source parameters, and outputs the camera configuration scheme.
[0068] In this embodiment, by calculating the working distance of the camera using the analysis element 1, the accuracy of the installation position of the vision device 3 can be improved, thereby simplifying the operator's focusing operation and improving the working efficiency of the vision device 3. By outputting the camera configuration scheme through the analysis element 1, the shooting effect of the camera can be improved. At the same time, the operator can select a low-priced camera based on the camera configuration scheme, thereby reducing the cost of the vision device 3.
[0069] When the analysis element 1 is a smart chip, the operator inputs the product's 3D model into the analysis element 1 using techniques such as 3D scanning; when the analysis element 1 is 3D drawing software on a computer, the operator can input the product's 3D model using techniques such as 3D scanning, or directly draw the product's 3D model on the 3D drawing software. This application does not impose any special limitations on the method of inputting the product's 3D model.
[0070] In addition, preset light source parameters include, but are not limited to, focal length, optical magnification, and resolution.
[0071] Step S2 is as follows: the analysis element 1 determines the working distance of the camera in the vision device 3 according to the product's detection accuracy configuration file and / or positioning accuracy configuration file; the vision device 3 and the light sensor 2 are fixed respectively, so that the distance between the vision device 3 and the light sensor 2 is the working distance; the light source of the vision device 3 is turned on, the light sensor 2 collects the ambient light, and transmits the second light source parameters of the ambient light to the analysis element 1.
[0072] Step S3 specifically involves: the analysis element 1 converting the first light source parameters into a first three-dimensional effect image, converting the received second light source parameters into a second three-dimensional effect image, and comparing and analyzing the first three-dimensional effect image with the second three-dimensional effect image; the analysis element 1 generates the lighting score of the visual device 3 based on the analysis results, and generates a light source configuration scheme.
[0073] In this embodiment, the first light source parameters are converted into a first three-dimensional effect image, and the second light source parameters are converted into a second three-dimensional effect image. The analysis element 1 analyzes the lighting effect of the vision device 3 and generates a light source configuration scheme by analyzing the three-dimensional effect image, thereby improving the working efficiency and accuracy of the analysis element 1.
[0074] More specifically, such as Figure 2 As shown, the light-sensing element 2 includes a light-sensing unit and a position-sensing unit. The light-sensing unit is used to detect the second light source parameters of the ambient light illuminating the light-sensing element 2 and transmit the second light source parameters to the analysis element 1. The position-sensing unit is used to detect the three-dimensional position of the ambient light illuminating the light-sensing element 2, and after saving the illuminating position as one or more matrix units, it transmits it to the analysis element 1. The analysis element 1 calculates the perspective transformation relationship between the light-sensing element 2 and the three-dimensional model of the product, and assigns the second light source parameters to the corresponding three-dimensional model of the product based on the detection results of the light-sensing unit and the position-sensing unit to form a second three-dimensional rendering.
[0075] Analysis element 1 maps the first light source parameters to the three-dimensional model of the product and sets the first light source parameters as the judgment threshold. It compares and analyzes the second light source parameters with the first light source parameters and makes different marks (marker types include but are not limited to color, shape, value, etc.) according to the degree of exceeding or falling below the judgment threshold. Finally, analysis element 1 statistically scores the comparison results and outputs the light source configuration according to the marks.
[0076] In summary, such as Figures 1-3 As shown, the specific working process of the analyzer is as follows:
[0077] Input the product's 3D model file and material type file into analysis element 1. Analysis element 1 generates the first light source parameters required for photographing the product.
[0078] The operator selects a suitable light source based on the parameters of the primary light source;
[0079] The product's detection accuracy profile and / or positioning accuracy profile are input into the analysis element 1. The analysis element 1 determines the working distance of the camera and the actual field of view of the camera based on the detection accuracy profile and / or positioning accuracy profile.
[0080] The preset light source parameters of the camera (i.e., the camera models and light source parameters known on the market) are input into the analysis element 1. The analysis element 1 calculates the third light source parameters of the camera required to shoot the product based on the working distance and the actual field of view. The analysis element 1 compares and analyzes the preset light source parameters and the third light source parameters, and outputs the camera configuration scheme based on the analysis results.
[0081] The operator selects a suitable camera based on the camera configuration scheme and installs the camera and light source on the vision device 3;
[0082] The vision device 3 and the light sensor 2 are fixed according to the working distance, so that the distance between the vision device 3 and the light sensor 2 is equal to the working distance;
[0083] When the light source is turned on, the light sensor 2 collects the ambient light emitted by the light source and transmits the second light source parameters of the ambient light to the analysis element 1. At the same time, the light sensor 2 saves the three-dimensional position of the ambient light shining on the light sensor 2 as one or more matrix units and then transmits them to the analysis element 1.
[0084] Analysis element 1 calculates the perspective transformation relationship between light sensor 2 and the product's 3D model, and assigns the second light source parameters of the ambient light to the corresponding product's 3D model based on the detection results of light sensor 2.
[0085] Analysis element 1 maps the first light source parameters to the three-dimensional model of the product and sets the first light source parameters as the judgment threshold. It compares and analyzes the second light source parameters with the first light source parameters and makes different marks according to the degree to which they exceed or fall below the judgment threshold.
[0086] Analysis element 1 generates the lighting score of visual device 3 based on the analysis results, and generates a light source configuration scheme;
[0087] The operator adjusts the light source parameters according to the optimal light source configuration scheme.
[0088] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
Claims
1. An analyzer for determining a light source configuration scheme for a vision device, the vision device including a camera, characterized in that, The analyzer includes: An analysis element, which is capable of outputting first light source parameters based on product parameters; A photosensitive element is connected to the analysis element via a wired or wireless connection. The photosensitive element is capable of detecting the parameters of a second light source in the vision device and transmitting the parameters of the second light source to the analysis element. The analysis element can compare and analyze the parameters of the first light source and the parameters of the second light source to obtain analysis results, and can also output the light source configuration scheme based on the analysis results; The analysis element can output the third light source parameters of the camera according to the product's detection accuracy configuration file and / or positioning accuracy configuration file, so as to obtain the configuration scheme of the camera; Specifically, the analysis element can determine the working distance of the camera and the actual field of view of the camera according to the detection accuracy configuration file and / or the positioning accuracy configuration file, and can also calculate the third light source parameters according to the working distance and the actual field of view, wherein the third light source parameters include, but are not limited to, focal length, optical magnification and resolution.
2. The analyzer according to claim 1, characterized in that, The analysis element can convert the first light source parameters into a first three-dimensional effect image and the second light source parameters into a second three-dimensional effect image. The analysis element can compare and analyze the first three-dimensional effect image and the second three-dimensional effect image to output a lighting score and a light source configuration scheme.
3. An analysis method for an analyzer, characterized in that, The analyzer is the analyzer according to any one of claims 1 to 2; The analysis method of the analyzer includes: Generate the first light source parameters based on the product parameters; The photosensitive element detects the parameters of the second light source in the vision device, and the analysis element receives the parameters of the second light source. The parameters of the first light source are compared with those of the second light source, and a light source configuration scheme is generated.
4. The analysis method of the analyzer according to claim 3, characterized in that, The first light source parameters generated based on the product parameters include: Receive the product's 3D model file and material type file, and generate the first light source parameters based on the 3D model file and the material type file.
5. The analysis method of the analyzer according to claim 3, characterized in that, The step of generating the first light source parameters based on the product parameters also includes: Receive the product's detection accuracy configuration file and / or positioning accuracy configuration file, and determine the working distance of the camera in the vision device and the actual field of view of the camera based on the detection accuracy configuration file and / or the positioning accuracy configuration file; Receive the preset light source parameters of the camera; The third light source parameters of the camera are calculated based on the working distance and the actual field of view. The preset light source parameters and the third light source parameters are compared and analyzed, and the configuration scheme of the camera is output based on the analysis results.
6. The analysis method of the analyzer according to claim 3, characterized in that, Detecting the parameters of the second light source using the photosensitive element includes: Receive the product's detection accuracy configuration file and / or positioning accuracy configuration file, and determine the working distance of the camera in the vision device based on the detection accuracy configuration file and / or the positioning accuracy configuration file; The vision device and the light-sensing element are fixed respectively, and the distance between the vision device and the light-sensing element is used as the working distance; The light source is turned on, and the ambient light emitted by the light source is collected by the light sensing element. The second light source parameters of the ambient light are received.
7. The analysis method of the analyzer according to claim 6, characterized in that, The process of comparing the parameters of the first light source with those of the second light source and generating a light source configuration scheme also includes: The first light source parameters are converted into a first three-dimensional rendering, the second light source parameters are converted into a second three-dimensional rendering, and the first three-dimensional rendering and the second three-dimensional rendering are compared and analyzed. Based on the analysis results, the lighting score of the vision device is generated, and a light source configuration scheme is generated.
8. The analysis method of the analyzer according to claim 7, characterized in that, The optical sensing element includes a light sensing unit and a position sensing unit; Converting the second light source parameters into a second 3D rendering includes: The second light source parameters are detected and received by the photosensing unit. The position sensing unit detects the three-dimensional position of the ambient light emitted by the light source in the vision device on the light-sensing element, and receives the three-dimensional position. Calculate the perspective transformation relationship between the light-sensing element and the three-dimensional model of the product, and assign the second light source parameters to the three-dimensional model of the product according to the perspective transformation relationship to form the second three-dimensional rendering.
Citation Information
Patent Citations
Light control method for image equipment
CN106814520A
Shooting box, shooting box system and operation method of such system
CN107515504A