WO2018213971A1 - Method for determining visual detection parameter, visual detection device and visual detection system - Google Patents

Method for determining visual detection parameter, visual detection device and visual detection system Download PDF

Info

Publication number
WO2018213971A1
WO2018213971A1 PCT/CN2017/085289 CN2017085289W WO2018213971A1 WO 2018213971 A1 WO2018213971 A1 WO 2018213971A1 CN 2017085289 W CN2017085289 W CN 2017085289W WO 2018213971 A1 WO2018213971 A1 WO 2018213971A1
Authority
WO
WIPO (PCT)
Prior art keywords
target
angle
detected
reflection
incident angle
Prior art date
Application number
PCT/CN2017/085289
Other languages
French (fr)
Chinese (zh)
Inventor
阳光
Original Assignee
深圳配天智能技术研究院有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳配天智能技术研究院有限公司 filed Critical 深圳配天智能技术研究院有限公司
Priority to CN201780091085.0A priority Critical patent/CN111213047A/en
Priority to PCT/CN2017/085289 priority patent/WO2018213971A1/en
Publication of WO2018213971A1 publication Critical patent/WO2018213971A1/en

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light

Definitions

  • the present invention relates to the field of visual inspection, and in particular to a method for determining visual detection parameters, a visual inspection device, and a visual inspection system.
  • Lighting is an important step in industrial vision inspection tasks, usually accounting for one-third of the entire process.
  • the lighting is generally a fixed light source, and the visual flow is fixed, and the incident angle of the light source is generally preset according to the experience of the worker, and sometimes the surface characteristics of the detected object.
  • the preset lighting may only be applied to the lighting angle of a specific object, and the lighting position of the object cannot be automatically adjusted according to the material or defect of the object.
  • the preset lighting may not be performed. Suitable for objects that currently need to be detected.
  • Embodiments of the present invention provide a method for determining a visual detection parameter, a visual detection device, and a visual detection system for determining a visual detection parameter of a target to be detected.
  • a first aspect of the embodiments of the present invention provides a method for determining a visual detection parameter, which specifically includes: acquiring target information to be detected, where the information to be detected includes a geometric model of the object to be detected, and a geometry of the object to be detected
  • the model includes a to-be-detected area of the object to be detected and a non-detection area of the object to be detected; and determining the first angle of incidence, the first angle of reflection, and the first position and the second position on the geometric model, respectively a first reflectivity of the first location and a second reflectivity of the second location, the first incident angle being an angle at which the light source illuminates the first location, the first reflection angle being acquired by an image acquisition device An angle to the reflected light of the first position, the first position is located in a region to be detected, the second position is located in a non-detection region, and a distance between the first location and the second location is less than a preset value; determining a reflectance difference according to the first reflect
  • a second aspect of the embodiments of the present invention provides a method for determining a visual detection parameter, which specifically includes: acquiring information to be detected, where the information to be detected includes a geometric model of the object to be detected, The geometric model of the object to be detected includes a region to be detected of the object to be detected; determining a first reflectance of the target location according to a first incident angle, a first reflection angle, and a target position on the geometric model, The first incident angle is an angle at which the light source is irradiated to the target position, the first reflection angle is an angle of the reflected light of the image capturing device detecting the target position, and the target position is located in the area to be detected; a reflectance and a second reflectivity determine a reflectance difference, the second reflectivity being the target position extracted from a preset reference database at the first incident angle and the first reflected angle a reflectivity, at least the reflectivity corresponding to the target position at an arbitrary incident angle and an arbitrary reflection angle is stored in the preset reference database, and the
  • a third aspect of the embodiments of the present invention provides a visual inspection device, where the visual inspection device is connected to an image collection device, the visual inspection device includes a memory and a processor, and the memory is configured to store operation instructions and related data;
  • the processor is configured to: acquire the target information to be detected, the target information to be detected includes a geometric model of the target to be detected, and the geometric model of the target to be detected includes the target to be detected The area to be detected and the non-detection area of the object to be detected; determining the first reflection of the first position according to the first incident angle, the first reflection angle, and the first position and the second position on the geometric model, respectively And a second reflectivity of the second position, the first incident angle being an angle at which the light source illuminates the first position, the first reflected angle being acquired by the image acquisition device to the first position An angle of the reflected light, the first position is located in the area to be detected, the second position is located in the non-detection area, and the first position is opposite to the first The distance
  • a fourth aspect of the embodiments of the present invention provides a visual inspection device, where the visual inspection device is connected to an image acquisition device, the visual inspection device includes a memory and a processor, and the memory is configured to store operation instructions and related data;
  • the processor is configured to: acquire target information to be detected, where the target information to be detected includes a geometric model of the target to be detected, a geometric model of the target to be detected includes an area to be detected of the object to be detected; determining a first reflectance of the target position according to a first incident angle, a first reflection angle, and a target position on the geometric model, the first An incident angle is an angle at which the light source illuminates the target position, the first reflection angle being an angle of the reflected light of the image capturing device detecting the target position, the target position being located in the area to be detected; according to the first reflection And a second reflectivity determining a reflectance difference, the second reflectivity being a reflectance of the target position extracted from a preset reference database at the first incident angle and the first reflected
  • a fifth aspect of the embodiments of the present invention provides a visual inspection system including: a light source, an image acquisition device, and a visual inspection device; the visual detection device is configured to perform a determination method of the visual detection parameter as described above. At least one set of target incident angles and target reflection angles of the to-be-detected area of the target to be detected, and the light source is irradiated with the target to be detected at the target incident angle, and the image capturing device collects from the target reflection angle When the image of the target to be detected is detected, the image is detected and identified.
  • the embodiment of the present invention has the following advantages: by detecting a defect-to-detected area, it is determined that the target incident angle and the target reflection angle of the to-be-detected area can be detected, that is, determined. Suitable for detecting the lighting position of the area to be detected and the detecting position.
  • FIG. 1 is a schematic structural diagram of a scene for lighting positioning in an embodiment of the present invention
  • FIG. 2 is a schematic flow chart of an embodiment of a method for determining a visual detection parameter according to an embodiment of the present invention
  • FIG. 3 is a schematic flow chart of another embodiment of a method for determining a visual detection parameter according to an embodiment of the present invention.
  • FIG. 4 is a top view of collecting optical distribution data in an embodiment of the present invention.
  • FIG. 5 is a side view of collecting optical distribution data in an embodiment of the present invention.
  • FIG. 6 is a schematic flow chart of another embodiment of a method for determining a visual detection parameter according to an embodiment of the present invention.
  • FIG. 7 is a schematic flowchart diagram of another embodiment of a method for determining a visual detection parameter according to an embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of an embodiment of a visual inspection device according to an embodiment of the present invention.
  • Embodiments of the present invention provide a method for determining a visual detection parameter, a visual detection device, and a visual detection system for determining a visual detection parameter of a target to be detected.
  • the embodiment of the present invention is applicable to the architecture shown in FIG. 1 , and includes at least one light source, at least one camera, and at least one object to be detected.
  • an embodiment of a method for determining a visual detection parameter in an embodiment of the present invention includes:
  • to-be-detected target information includes a geometric model of the object to be detected
  • the geometric model of the object to be detected includes a to-be-detected area of the object to be detected and a non-detected target Detection area.
  • the target information to be detected of the target to be detected is first extracted, wherein the target information to be detected includes a geometric model of the target to be detected, and the geometry of the target to be detected.
  • the model includes a region to be detected of a target to be detected and a non-detection region of the object to be detected.
  • the area to be detected of the object to be detected is an area that needs to be detected.
  • the detection area is a defect area, or other area that needs to be detected.
  • the non-detection area is an area that does not need to be detected, such as a non-defective area.
  • the target information to be detected may be input into the lighting positioning device by a technician.
  • the first reflection angle is an angle of the reflected light collected by the image acquisition device to the first position, the first position being located in the area to be detected, the first The two positions are located in the non-detection area, and the distance between the first position and the second position is less than a preset value.
  • the preset value may be performed according to actual conditions, and is not limited herein, for example, 20 pixels.
  • the incident angle in the first reflectance of the first position and the second reflectance of the second position are respectively determined.
  • the angle of reflection here directly refers to an angle of incidence and a angle of reflection, and both angles are for the first position.
  • the first reflectance of the first position and the second reflectance of the second position are respectively determined according to the first incident angle, the first reflection angle, and the first position and the second position on the geometric model.
  • the first incident angle, the first reflection angle, and the first position and the second position on the geometric model please refer to the embodiment corresponding to FIG. 3 below.
  • the reflectance difference indicates the difference between the first position and the second position. The greater the difference between the reflectances, the greater the difference in the illumination, and the more the area to be detected of the picture taken by the image acquisition device obvious.
  • step 204 Determine whether the reflectance difference is greater than a preset threshold, and if yes, perform step 205; If it is less, step 206 is performed.
  • the preset threshold is related to the material of the detection target, and the specific value is not limited herein.
  • the incident angle and the reflection angle are not determined as a set of target incident angles and target reflection angles of the area to be detected.
  • the target incident angle and the target reflection angle of the to-be-detected area can be detected, that is, determining suitable for detecting the The lighting position of the area to be detected and the detection position.
  • another embodiment of a method for determining a visual detection parameter in an embodiment of the present invention includes:
  • Acquire target information to be detected where the to-be-detected target information includes a geometric model of the object to be detected, and the geometric model of the object to be detected includes a to-be-detected area of the object to be detected and a non-detected target Detection area.
  • step 301 is similar to step 201 in FIG. 2, and details are not described herein.
  • the 302. Determine a first reflectivity of the first location and a second reflectivity of the second location according to a first incident angle, a first reflection angle, and a first location and a second location on the geometric model, respectively.
  • the first incident angle is an angle at which the light source is irradiated to the first position
  • the first reflection angle is an angle of the reflected light collected by the image capturing device to the first position, where the first position is located a detection area, the second position is located in the non-detection area, and a distance between the first position and the second position is less than a preset value.
  • first reflectance of the first location and the second reflectivity of the second location are determined according to a first incident angle, a first reflected angle, and a first location and a second location on the geometric model, respectively.
  • the preset database stores at least the reflectivity corresponding to the first position and the second position of the object to be detected at an arbitrary incident angle and an arbitrary reflection angle.
  • the area to be detected on the target to be detected is an area that needs to be detected.
  • the data stored in the preset database is optically distributed data, and the optical data may be a Bidirectional Reflectance Distribution Function (BRDF) or other data, such as polarization distribution data. Make a limit.
  • the BRDF includes the BRDF of the non-detection area of the given material and the BRDF of the area to be detected of the given material. It should be noted that when the BRDF data is collected, each incident angle and each reflection angle are detected and collected. Reflectivity.
  • the geometric model of the object to be detected affects the input angle of the incident light, and the optical distribution data of different materials are different.
  • the area to be detected and the non-detection position of a given material of a given material can be divided into 4 or 8 directions, and the top view is as shown in FIG. 4, and each direction is 1 Sampling at intervals of 5 degrees, for example, when collecting in 4 directions and performing reflectance acquisition at intervals of 3 degrees, first select one of the eight directions, with the incident light being 3° with respect to the plane of the object to be detected, 6°, 9°, ...180°, the angle of the acquisition is divided, and then the light intensity of the incident light at each angle and the light intensity of the reflected light of each reflection angle corresponding to each incident light are respectively collected, and finally the same method is used.
  • the light intensity of the incident light at each angle of each direction and the light intensity of the reflected light of each reflection angle corresponding to each incident light are collected, and finally the reflectance of the incident light at each angle is calculated and stored in a database.
  • a side view of the sampling interval is shown in Figure 5.
  • Case 1 The first position and the second position are in the same plane on the geometric model. Because the distance between the two is small, the angle difference can be directly ignored. It is directly considered that the incident angle and the reflection angle of the first position are the second position. Incident angle and reflection angle;
  • Case 2 The first position and the second position are in different planes on the geometric model, and the incident angle and the reflection angle of the second position take into account two planes in the case where the positions of the light source and the image capturing device are unchanged. The angle problem.
  • the intensity of the reflected light at the first position and the intensity of the reflected light at the second position are respectively detected by the image capturing device at the first reflection angle, the first position being located in the area to be detected, and the second position being located a non-detection area, and a distance between the first position and the second position is less than a preset value, and then according to the intensity of the reflected light of the first position, the intensity of the light source, the distance between the image capturing device and the first position, and Calculating a first reflectance of the first position by the distance of the light source from the first position, and according to the intensity of the reflected light of the second position, the intensity of the light source, the distance between the image capturing device and the second position, and the distance between the light source and the second position The second reflectivity of the second location is calculated.
  • the first reflection angle corresponds to a light source that is irradiated to the first position and the second position, and the angle formed by the light source to the first position is the first incident angle.
  • the calculation of the reflectance of the detected position according to the intensity of the reflected light, the intensity of the light source, the distance between the image capturing device and the detected position, and the distance between the light source and the detected position may be an existing general algorithm, which is not limited herein. .
  • Step 305 is similar to step 203 in FIG. 2, and details are not described herein.
  • step 304 Determine whether the reflectance difference is greater than a preset threshold. If yes, perform step 305. If not, perform step 308.
  • the preset threshold is related to the material of the detection target, and the specific value is not limited herein.
  • the reflected light intensity of the first position and the second position under the combination of any incident angle and an arbitrary reflection angle are acquired by the image acquisition device.
  • the reflected light intensity of the position and then calculating the first reflectance of the first position according to the intensity of the reflected light at the first position and the intensity of the light source, the distance between the image capturing device and the first position, and the distance between the light source and the first position, and The second reflectivity of the second location is calculated based on the intensity of the reflected light at the second location, the intensity of the light source, the distance of the image capture device from the second location, and the distance of the light source from the second location.
  • the method for determining the difference between the first reflectance and the second reflectance is similar to the step 203 in FIG. 2, and details are not described herein.
  • the to-be-detected target includes at least the first detection area and the second detection area
  • the to-be-detected target includes at least the first detection area and the second detection area
  • the set of the target incident angle and the target reflection angle belonging to the first detection area, and the combination of the fourth incident angle and the fourth reflection angle does not belong to the set of the target incident angle and the target reflection angle of the second detection area.
  • the to-be-detected target includes at least the first detection area and the second detection area
  • the incident angle and the reflection angle are not determined as a set of target incident angles and target reflection angles of the area to be detected.
  • the embodiment of the present invention by detecting a defective area to be detected, it is determined that a combination of all target incident angles and target reflection angles of the to-be-detected area can be detected, that is, determining suitable use. A combination of all the light-receiving positions and the detected positions of the area to be detected is detected.
  • another embodiment of a method for determining a visual detection parameter in an embodiment of the present invention includes:
  • Acquire target information to be detected where the to-be-detected target information includes a geometric model of the object to be detected, and the geometric model of the object to be detected includes an area to be detected of the object to be detected.
  • step 601 is similar to step 201 in FIG. 2, and details are not described herein.
  • the 602. Determine a first reflectivity of the target location according to a first incident angle, a first reflected angle, and a target position on the geometric model, the first incident angle being an angle at which the light source illuminates the target location, The first reflection angle is an angle of the reflected light of the image acquisition device detecting the target position, and the target position is located in the area to be detected.
  • the preset reference database stores the BRDF data of the object to be detected, and the to-be-detected area of the object to be detected is a reference state (for example, a non-defective state).
  • the algorithm for the reflectance difference is similar to the step 203 in FIG. 2, and details are not described herein.
  • step 604. Determine whether the reflectance difference is greater than a preset threshold. If yes, perform step 605; if less, perform step 606.
  • the preset threshold is related to the material of the detection target, and the specific value is not limited herein.
  • the incident angle and the reflection angle are not determined as a set of target incident angles and target reflection angles of the area to be detected.
  • the embodiment of the present invention by comparing the reflectivity of the target location of the to-be-detected area with the reflectivity of the target location of the to-be-detected area acquired from the preset reference database, it is determined that the detected location can be detected.
  • the target incident angle and the target reflection angle of the detection area are described, that is, a suitable light-emitting position and a detection position for detecting the area to be detected are determined.
  • another embodiment of a method for determining a visual detection parameter in an embodiment of the present invention includes:
  • Acquire target information to be detected where the to-be-detected target information includes a geometric model of the object to be detected, and the geometric model of the object to be detected includes an area to be detected of the object to be detected.
  • step 701 is similar to step 201 in FIG. 2, and details are not described herein.
  • the 702. Determine a first reflectivity of the target location according to a first incident angle, a first reflected angle, and a target position on a geometric model, where the first incident angle is an angle at which the light source illuminates the target location, The first reflection angle is an angle of the reflected light of the image acquisition device detecting the target position, and the target position is located in the area to be detected.
  • the intensity of the reflected light at the target position is detected by the image capturing device at the first reflection angle, and then the intensity of the reflected light according to the target position, the intensity of the light source, the distance between the image capturing device and the target position, and the light source and the target.
  • the distance of the position calculates the first reflectivity of the target position.
  • the first reflection angle corresponds to a light source that is irradiated to the target position, and the angle formed by the light source to the target position is the first incident angle.
  • the reflectivity of the target position at the first incident angle and the first reflection angle is extracted from the preset database as a first reflectivity, and at least the target position is stored in the preset database at an arbitrary incident angle and an arbitrary reflection
  • the reflectivity corresponding to the angle, and the data stored in the preset database is the data when the target position is the area to be detected, that is, the data stored in the preset database is the BRDF data collected when the object to be detected is a defective area.
  • the step 703 is similar to the step 603 in FIG. 6 , and details are not described herein.
  • step 704. Determine whether the reflectance difference is greater than a preset threshold. If yes, perform step 705; if less, perform step 708.
  • the preset threshold is related to the material of the detection target, and the specific value is not limited herein.
  • the intensity of the reflected light of the target position after adjusting the angle of the first incident angle is acquired by the image acquisition device, and then the intensity of the reflected light according to the target position, the intensity of the light source, and the image
  • the distance between the acquisition device and the target position and the distance between the light source and the target position calculate the first reflectance of the target position.
  • the intensity of the reflected light of the target position after adjusting the angle of the first reflection angle is acquired by the image acquisition device, and then the intensity of the reflected light according to the target position, the intensity of the light source, the image acquisition device and The distance of the target position and the distance of the light source from the target position calculate the first reflectance of the target position.
  • the second type after adjusting the angle of the first incident angle, acquiring, by the preset database, the first reflectivity of the first incident angle after changing the angle and the target position corresponding to the first reflection angle; or adjusting the first reflection After the angle of the angle, the first reflectance of the target position corresponding to the first incident angle and the first incident angle after the angle is changed is acquired in the preset database.
  • the method for obtaining the second reflectivity of the target position under the combination of any incident angle and an arbitrary reflection angle is: after adjusting the angle of the first incident angle, obtaining the changed angle by using the preset reference database a first reflectance angle of the first incident angle corresponding to the first reflection angle; or after adjusting the angle of the first reflection angle, obtaining a first reflection angle after changing the angle in the preset reference database
  • the second reflectivity of the target position corresponding to an incident angle is: after adjusting the angle of the first incident angle, obtaining the changed angle by using the preset reference database a first reflectance angle of the first incident angle corresponding to the first reflection angle; or after adjusting the angle of the first reflection angle, obtaining a first reflection angle after changing the angle in the preset reference database
  • the second reflectivity of the target position corresponding to an incident angle is: after adjusting the angle of the first incident angle, obtaining the changed angle by using the preset reference database a first reflectance angle of the first incident angle corresponding to the first reflection angle; or after adjusting the angle
  • step 707 is similar to step 307 in FIG. 3, and details are not described herein.
  • the to-be-detected target includes at least the first detection area and the second detection area
  • the to-be-detected target includes at least the first detection area and the second detection area
  • the set of the target incident angle and the target reflection angle belonging to the first detection area, and the combination of the fourth incident angle and the fourth reflection angle does not belong to the set of the target incident angle and the target reflection angle of the second detection area.
  • the to-be-detected target includes at least the first detection area and the second detection area
  • the incident angle and the reflection angle are not determined as a set of target incident angles and target reflection angles of the area to be detected.
  • the embodiment of the present invention by comparing the reflectivity of the target location of the to-be-detected area with the reflectivity of the target location of the to-be-detected area acquired from the preset reference database, it is determined that the detected location can be detected.
  • a combination of all target incident angles and target reflection angles of the detection area is determined, that is, a combination of all of the light-on positions and the detection positions for detecting the area to be detected is determined.
  • FIG. 8 is a schematic structural diagram of an embodiment of a visual inspection device according to an embodiment of the present invention.
  • the visual inspection device is connected to an image acquisition device, wherein the visual inspection device 80 includes: The memory 810 and the processor 820.
  • the memory 810 is configured to store operation instructions and related data.
  • the processor 820 is configured to execute the foregoing determining method of the visual detection parameter by calling an operation instruction stored in the memory 810, to determine that a combination of the target incident angle and the target reflection angle of the to-be-detected region can be detected, that is, determining a suitable one.
  • processor 820 may also be referred to as a central processing unit (English full name: Central Processing Unit, English abbreviation: CPU).
  • the memory 810 is configured to store operation instructions and data, so that the processor 820 invokes the above operation instructions to implement corresponding operations, and may include a read only memory and a random access memory. A portion of the memory 810 may also include a non-volatile random access memory (English name: Non-Volatile Random Access Memory, English abbreviation: NVRAM).
  • NVRAM Non-Volatile Random Access Memory
  • the visual inspection device 80 also includes a bus system 830 that couples various components of the visual inspection device 80, each of which includes a memory 810, a processor 820, wherein the bus system 830 can include, in addition to the data bus, Power bus, control bus and status signal bus.
  • bus system 830 can include, in addition to the data bus, Power bus, control bus and status signal bus.
  • various buses are labeled as bus system 830 in the figure.
  • processor 820 may be an integrated circuit chip with signal processing capabilities.
  • each step of the foregoing method may be completed by an integrated logic circuit of hardware in the processor 820 or an instruction in a form of software.
  • the processor 820 may be a general-purpose processor, a digital signal processor (English name: Digital Signal Processing, English abbreviation: DSP), an application specific integrated circuit (English name: Application Specific Integrated Circuit, English abbreviation: ASIC), ready-made programmable Gate array (English name: Field-Programmable Gate Array, English abbreviation: FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
  • DSP Digital Signal Processing
  • ASIC Application Specific Integrated Circuit
  • FPGA ready-made programmable Gate array
  • the methods, steps, and logical block diagrams disclosed in the embodiments of the present invention may be implemented or carried out.
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the steps of the method disclosed in the embodiments of the present invention may be directly embodied as hardware decoding.
  • the processor is executed or completed by a combination of hardware and software modules in the decoding processor.
  • the software module can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like.
  • the storage medium is located in the memory 810, and the processor 820 reads the information in the memory 810 and completes the steps of the above method in combination with its hardware.
  • An embodiment of the present invention further provides a visual inspection system including a machine light source, an image acquisition device, and a visual inspection device, wherein the visual inspection system performs the above determination of the visual detection parameter by using the visual inspection device mentioned above.
  • the image may be detected and identified by an existing image recognition algorithm.

Landscapes

  • Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Chemical & Material Sciences (AREA)
  • Analytical Chemistry (AREA)
  • Biochemistry (AREA)
  • General Health & Medical Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • Immunology (AREA)
  • Pathology (AREA)
  • Length Measuring Devices By Optical Means (AREA)
  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)

Abstract

Provided are a method for determining a visual detection parameter, and a visual detection device (80) and a visual detection system for determining a visual detection parameter of a target to be detected. The method comprises: acquiring information about a target to be detected, wherein the information about the target to be detected comprises a geometric model of the target to be detected, and the geometric model of the target to be detected comprises a region to be detected of the target to be detected and a non-detection region of the target to be detected (201); respectively determining, according to a first incidence angle, a first reflection angle and a first position and a second position on the geometric model, first reflectivity of the first position and second reflectivity of the second position, wherein the first incidence angle is an angle at which a light source irradiates to the first position, the first reflection angle is an angle at which an image collecting device collects reflected light of the first position, the first position is located in the region to be detected, the second position is located in the non-detection region, and the distance between the first position and the second position is less than a predetermined value (202); determining a reflectivity difference value according to the first reflectivity and the second reflectivity (203); determining whether the reflectivity difference value is greater than a pre-set threshold value (204); and if the reflectivity difference value is greater than the pre-set threshold value, then determining the incidence angle and the reflection angle as a set of target incidence angle and target reflection angle of the region to be detected (205). A target incidence angle and a target reflection angle used for detecting the region to be detected can be determined.

Description

一种视觉检测参数的确定方法、视觉检测设备以及视觉检测系统Method for determining visual detection parameters, visual inspection device and visual inspection system 技术领域Technical field
本发明涉及视觉检测领域,特别涉及一种视觉检测参数的确定方法、视觉检测设备以及视觉检测系统。The present invention relates to the field of visual inspection, and in particular to a method for determining visual detection parameters, a visual inspection device, and a visual inspection system.
背景技术Background technique
在工业视觉检测任务里,打光是很重要的一个步骤,通常占了整个步骤的三分之一。现有技术中对工业视觉检测任务里给定的问题,打光一般都为固定光源,固定视觉流程,且光源的入射角一般都是按照工作人员的经验预先设置好,有时被检测物体表面特性非常复杂,预先设定好的打光可能只适用于某个特定物体的打光角度,无法根据物体的材质或缺陷对物体的打光位置进行自动调整,预先设定好的打光可能并不适用于当前需要检测的物体。Lighting is an important step in industrial vision inspection tasks, usually accounting for one-third of the entire process. In the prior art, for the problems given in the industrial visual inspection task, the lighting is generally a fixed light source, and the visual flow is fixed, and the incident angle of the light source is generally preset according to the experience of the worker, and sometimes the surface characteristics of the detected object. Very complicated, the preset lighting may only be applied to the lighting angle of a specific object, and the lighting position of the object cannot be automatically adjusted according to the material or defect of the object. The preset lighting may not be performed. Suitable for objects that currently need to be detected.
发明内容Summary of the invention
本发明实施例提供了一种视觉检测参数的确定方法、视觉检测设备以及视觉检测系统,用于确定待检测目标的视觉检测参数。Embodiments of the present invention provide a method for determining a visual detection parameter, a visual detection device, and a visual detection system for determining a visual detection parameter of a target to be detected.
本发明实施例的第一方面提供一种视觉检测参数的确定方法,具体包括:获取待检测目标信息,所述待检测目标信息包括所述待检测目标的几何模型,所述待检测目标的几何模型包括所述待检测目标的待检测区域和所述待检测目标的非检测区域;根据第一入射角、第一反射角以及所述几何模型上的第一位置和第二位置分别确定所述第一位置的第一反射率和所述第二位置的第二反射率,所述第一入射角为光源照射到所述第一位置的一个角度,所述第一反射角为图像采集设备采集到所述第一位置的反射光的一个角度,所述第一位置位于待检测区域,所述第二位置位于非检测区域,且所述第一位置与所述第二位置之间的距离小于预设值;根据所述第一反射率与所述第二反射率确定反射率差值;判断所述反射率差值是否大于预置阈值;若所述反射率差值大于预置阈值,则将所述入射角和所述反射角确定为所述待检测区域的一组目标入射角和目标反射角。A first aspect of the embodiments of the present invention provides a method for determining a visual detection parameter, which specifically includes: acquiring target information to be detected, where the information to be detected includes a geometric model of the object to be detected, and a geometry of the object to be detected The model includes a to-be-detected area of the object to be detected and a non-detection area of the object to be detected; and determining the first angle of incidence, the first angle of reflection, and the first position and the second position on the geometric model, respectively a first reflectivity of the first location and a second reflectivity of the second location, the first incident angle being an angle at which the light source illuminates the first location, the first reflection angle being acquired by an image acquisition device An angle to the reflected light of the first position, the first position is located in a region to be detected, the second position is located in a non-detection region, and a distance between the first location and the second location is less than a preset value; determining a reflectance difference according to the first reflectivity and the second reflectivity; determining whether the reflectance difference is greater than a preset threshold; if the reflectance difference is large A preset threshold, then the incident angle and the reflection angle is determined as the detection region to be a set of target angle of incidence and the angle of reflection targets.
本发明实施例的第二方面提供一种视觉检测参数的确定方法,具体包括:获取待检测目标信息,所述待检测目标信息包括所述待检测目标的几何模型, 所述待检测目标的几何模型包括所述待检测目标的待检测区域;根据第一入射角、第一反射角以及所述几何模型上的目标位置确定所述目标位置的第一反射率,所述第一入射角为光源照射到所述目标位置的一个角度,所述第一反射角为图像采集设备检测目标位置的反射光的一个角度,所述目标位置位于待检测区域;根据所述第一反射率与第二反射率确定反射率差值,所述第二反射率为从一预置参考数据库中提取的所述目标位置在所述第一入射角和所述第一反射角下的反射率,所述预置参考数据库中至少存储有所述目标位置在任意入射角和任意反射角下所对应的反射率,且所述预置参考数据库中存储的数据为所述待检测区域为参考状态时的数据;判断所述反射率差值是否大于预置阈值;若所述反射率差值大于预置阈值,则将所述入射角和所述反射角确定为所述待检测区域的一组目标入射角和目标反射角。A second aspect of the embodiments of the present invention provides a method for determining a visual detection parameter, which specifically includes: acquiring information to be detected, where the information to be detected includes a geometric model of the object to be detected, The geometric model of the object to be detected includes a region to be detected of the object to be detected; determining a first reflectance of the target location according to a first incident angle, a first reflection angle, and a target position on the geometric model, The first incident angle is an angle at which the light source is irradiated to the target position, the first reflection angle is an angle of the reflected light of the image capturing device detecting the target position, and the target position is located in the area to be detected; a reflectance and a second reflectivity determine a reflectance difference, the second reflectivity being the target position extracted from a preset reference database at the first incident angle and the first reflected angle a reflectivity, at least the reflectivity corresponding to the target position at an arbitrary incident angle and an arbitrary reflection angle is stored in the preset reference database, and the data stored in the preset reference database is the to-be-detected area. Determining whether the reflectance difference is greater than a preset threshold; if the reflectance difference is greater than a preset threshold, the incident angle and the reflection angle are The region to be detected as a set target angle of incidence and angle of reflection targets.
本发明实施例的第三方面提供一种视觉检测设备,所述视觉检测设备与图像采集设备相连,所述视觉检查设备包括存储器和处理器;所述存储器,用于存储操作指令以及相关数据;所述处理器通过调用所述操作指令,用于:获取待检测目标信息,所述待检测目标信息包括所述待检测目标的几何模型,所述待检测目标的几何模型包括所述待检测目标的待检测区域和所述待检测目标的非检测区域;根据第一入射角、第一反射角以及所述几何模型上的第一位置和第二位置分别确定所述第一位置的第一反射率和所述第二位置的第二反射率,所述第一入射角为光源照射到所述第一位置的一个角度,所述第一反射角为图像采集设备采集到所述第一位置的反射光的一个角度,所述第一位置位于待检测区域,所述第二位置位于非检测区域,且所述第一位置与所述第二位置之间的距离小于预设值;根据所述第一反射率与所述第二反射率确定反射率差值;判断所述反射率差值是否大于预置阈值;若所述反射率差值大于预置阈值,则将所述入射角和所述反射角确定为所述待检测区域的一组目标入射角和目标反射角。A third aspect of the embodiments of the present invention provides a visual inspection device, where the visual inspection device is connected to an image collection device, the visual inspection device includes a memory and a processor, and the memory is configured to store operation instructions and related data; The processor is configured to: acquire the target information to be detected, the target information to be detected includes a geometric model of the target to be detected, and the geometric model of the target to be detected includes the target to be detected The area to be detected and the non-detection area of the object to be detected; determining the first reflection of the first position according to the first incident angle, the first reflection angle, and the first position and the second position on the geometric model, respectively And a second reflectivity of the second position, the first incident angle being an angle at which the light source illuminates the first position, the first reflected angle being acquired by the image acquisition device to the first position An angle of the reflected light, the first position is located in the area to be detected, the second position is located in the non-detection area, and the first position is opposite to the first The distance between the positions is less than a preset value; determining a reflectance difference according to the first reflectivity and the second reflectivity; determining whether the reflectance difference is greater than a preset threshold; if the reflectance difference Above the preset threshold, the incident angle and the reflected angle are determined as a set of target incident angles and target reflection angles of the area to be detected.
本发明实施例的第四方面提供一种视觉检测设备,所述视觉检测设备与图像采集设备相连,所述视觉检查设备包括存储器和处理器;所述存储器,用于存储操作指令以及相关数据;所述处理器通过调用所述操作指令,用于:获取待检测目标信息,所述待检测目标信息包括所述待检测目标的几何模型,所述 待检测目标的几何模型包括所述待检测目标的待检测区域;根据第一入射角、第一反射角以及所述几何模型上的目标位置确定所述目标位置的第一反射率,所述第一入射角为光源照射到所述目标位置的一个角度,所述第一反射角为图像采集设备检测目标位置的反射光的一个角度,所述目标位置位于待检测区域;根据所述第一反射率与第二反射率确定反射率差值,所述第二反射率为从一预置参考数据库中提取的所述目标位置在所述第一入射角和所述第一反射角下的反射率,所述预置参考数据库中至少存储有所述目标位置在任意入射角和任意反射角下所对应的反射率,且所述预置参考数据库中存储的数据为所述待检测区域为参考状态时的数据;判断所述反射率差值是否大于预置阈值;若所述反射率差值大于预置阈值,则将所述入射角和所述反射角确定为所述待检测区域的一组目标入射角和目标反射角。A fourth aspect of the embodiments of the present invention provides a visual inspection device, where the visual inspection device is connected to an image acquisition device, the visual inspection device includes a memory and a processor, and the memory is configured to store operation instructions and related data; The processor is configured to: acquire target information to be detected, where the target information to be detected includes a geometric model of the target to be detected, a geometric model of the target to be detected includes an area to be detected of the object to be detected; determining a first reflectance of the target position according to a first incident angle, a first reflection angle, and a target position on the geometric model, the first An incident angle is an angle at which the light source illuminates the target position, the first reflection angle being an angle of the reflected light of the image capturing device detecting the target position, the target position being located in the area to be detected; according to the first reflection And a second reflectivity determining a reflectance difference, the second reflectivity being a reflectance of the target position extracted from a preset reference database at the first incident angle and the first reflected angle The preset reference database stores at least the reflectivity corresponding to the target position at an arbitrary incident angle and an arbitrary reflection angle, and the data stored in the preset reference database is the reference state of the to-be-detected area. Determining whether the reflectance difference is greater than a preset threshold; if the reflectance difference is greater than a preset threshold, determining the incident angle and the reflected angle A set of target and a target angle of incidence of the reflection area to be inspected.
本发明实施例的第五方面提供一种视觉检测系统,视觉检测系统包括:光源、图像采集设备以及视觉检测设备;所述视觉检测设备用于执行如上述所述的视觉检测参数的确定方法确定待检测目标的待检测区域的至少一组目标入射角和目标反射角,并在所述光源以所述目标入射角照射所述待检测目标,且所述图像采集设备从所述目标反射角采集所述待检测目标的图像时,对所述图像进行检测识别。A fifth aspect of the embodiments of the present invention provides a visual inspection system including: a light source, an image acquisition device, and a visual inspection device; the visual detection device is configured to perform a determination method of the visual detection parameter as described above. At least one set of target incident angles and target reflection angles of the to-be-detected area of the target to be detected, and the light source is irradiated with the target to be detected at the target incident angle, and the image capturing device collects from the target reflection angle When the image of the target to be detected is detected, the image is detected and identified.
从以上技术方案可以看出,本发明实施例具有以下优点:通过对一个具有缺陷的待检测区域进行检测,从而确定可以检测到所述待检测区域的目标入射角和目标反射角,也即确定合适的用于检测该待检测区域的打光位置以及检测位置。It can be seen from the above technical solutions that the embodiment of the present invention has the following advantages: by detecting a defect-to-detected area, it is determined that the target incident angle and the target reflection angle of the to-be-detected area can be detected, that is, determined. Suitable for detecting the lighting position of the area to be detected and the detecting position.
附图说明DRAWINGS
图1为本发明实施例中打光定位一个场景架构示意图;1 is a schematic structural diagram of a scene for lighting positioning in an embodiment of the present invention;
图2为本发明实施例中视觉检测参数的确定方法一个实施例流程示意图;2 is a schematic flow chart of an embodiment of a method for determining a visual detection parameter according to an embodiment of the present invention;
图3为本发明实施例中视觉检测参数的确定方法另一个实施例流程示意图;3 is a schematic flow chart of another embodiment of a method for determining a visual detection parameter according to an embodiment of the present invention;
图4为本发明实施例中采集光学分布数据的一个俯视图; 4 is a top view of collecting optical distribution data in an embodiment of the present invention;
图5为本发明实施例中采集光学分布数据的一个侧视图;5 is a side view of collecting optical distribution data in an embodiment of the present invention;
图6为本发明实施例中视觉检测参数的确定方法另一个实施例流程示意图;6 is a schematic flow chart of another embodiment of a method for determining a visual detection parameter according to an embodiment of the present invention;
图7为本发明实施例中视觉检测参数的确定方法另一个实施例流程示意图;FIG. 7 is a schematic flowchart diagram of another embodiment of a method for determining a visual detection parameter according to an embodiment of the present invention; FIG.
图8为本发明实施例中视觉检测设备的一个实施例结构示意图。FIG. 8 is a schematic structural diagram of an embodiment of a visual inspection device according to an embodiment of the present invention.
具体实施方式detailed description
本发明实施例提供了一种视觉检测参数的确定方法、视觉检测设备以及视觉检测系统,用于确定待检测目标的视觉检测参数。Embodiments of the present invention provide a method for determining a visual detection parameter, a visual detection device, and a visual detection system for determining a visual detection parameter of a target to be detected.
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is an embodiment of the invention, but not all of the embodiments. Based on the embodiments in the present invention.
本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”、“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”或“具有”及其任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third", "fourth", etc. (if present) in the specification and claims of the present invention and the above figures are used to distinguish similar objects without having to use To describe a specific order or order. It is to be understood that the data so used may be interchanged where appropriate so that the embodiments described herein can be implemented in a sequence other than what is illustrated or described herein. In addition, the term "comprises" or "comprises" or any variations thereof, is intended to cover a non-exclusive inclusion, for example, a process, method, system, product, or device that comprises a series of steps or units is not necessarily limited to those that are clearly listed Steps or units, but may include other steps or units not explicitly listed or inherent to such processes, methods, products or devices.
本发明实施例可应用于如图1所示的架构,该架构中,包括至少一个光源,至少一个摄像头及至少一个待检测目标。The embodiment of the present invention is applicable to the architecture shown in FIG. 1 , and includes at least one light source, at least one camera, and at least one object to be detected.
请参阅图2,本发明实施例中视觉检测参数的确定方法一个实施例包括:Referring to FIG. 2, an embodiment of a method for determining a visual detection parameter in an embodiment of the present invention includes:
201、获取待检测目标信息,所述待检测目标信息包括所述待检测目标的几何模型,所述待检测目标的几何模型包括所述待检测目标的待检测区域和所述待检测目标的非检测区域。 201. Acquire target information to be detected, where the to-be-detected target information includes a geometric model of the object to be detected, and the geometric model of the object to be detected includes a to-be-detected area of the object to be detected and a non-detected target Detection area.
本实施例中,当打光定位装置需要进行打光操作之前,会首先提取待检测的目标的待检测目标信息,其中,该待检测目标信息包括待检测目标的几何模型,待检测目标的几何模型包括待检测目标的待检测区域和待检测目标的非检测区域。所述待检测目标的待检测区域为需要被检测出来的区域。例如该检测区域为一个缺陷区域,或者其他需要被检测出来的区域。所述非检测区域为不需要被检测出来的区域,例如非缺陷区域。其中,待检测目标信息可以由技术人员输入至打光定位装置中。In this embodiment, before the lighting positioning device needs to perform the lighting operation, the target information to be detected of the target to be detected is first extracted, wherein the target information to be detected includes a geometric model of the target to be detected, and the geometry of the target to be detected. The model includes a region to be detected of a target to be detected and a non-detection region of the object to be detected. The area to be detected of the object to be detected is an area that needs to be detected. For example, the detection area is a defect area, or other area that needs to be detected. The non-detection area is an area that does not need to be detected, such as a non-defective area. The target information to be detected may be input into the lighting positioning device by a technician.
202、根据第一入射角、第一反射角以及几何模型上的第一位置和第二位置分别确定第一位置的第一反射率和第二位置的第二反射率,所述第一入射角为光源照射到所述第一位置的一个角度,所述第一反射角为图像采集设备采集到所述第一位置的反射光的一个角度,所述第一位置位于待检测区域,所述第二位置位于非检测区域,且所述第一位置与所述第二位置之间的距离小于预设值。所述预设值可以根据实际情况进行设备,在此不做限定,例如20个像素点。202. Determine a first reflectivity of the first location and a second reflectivity of the second location according to the first incident angle, the first reflection angle, and the first location and the second location on the geometric model, the first incident angle Illuminating the light source to an angle of the first position, the first reflection angle is an angle of the reflected light collected by the image acquisition device to the first position, the first position being located in the area to be detected, the first The two positions are located in the non-detection area, and the distance between the first position and the second position is less than a preset value. The preset value may be performed according to actual conditions, and is not limited herein, for example, 20 pixels.
需要说明的是,根据第一入射角、第一反射角以及几何模型上的第一位置和第二位置分别确定第一位置的第一反射率和第二位置的第二反射率中的入射角和反射角,在这里是直接泛指一个入射角和一个反射角,而且这两个角度都是针对第一位置的。It should be noted that, according to the first incident angle, the first reflection angle, and the first position and the second position on the geometric model, the incident angle in the first reflectance of the first position and the second reflectance of the second position are respectively determined. And the angle of reflection, here directly refers to an angle of incidence and a angle of reflection, and both angles are for the first position.
需要说明的是,本步骤中根据第一入射角、第一反射角以及几何模型上的第一位置和第二位置分别确定第一位置的第一反射率和第二位置的第二反射率的具体内容,请参见下文图3所对应的实施例。It should be noted that, in this step, the first reflectance of the first position and the second reflectance of the second position are respectively determined according to the first incident angle, the first reflection angle, and the first position and the second position on the geometric model. For details, please refer to the embodiment corresponding to FIG. 3 below.
203、根据第一反射率与第二反射率确定反射率差值。203. Determine a reflectance difference according to the first reflectivity and the second reflectivity.
本实施例中,当获取到第一位置的第一反射率以及第二位置的第二反射率之后,将根据第一反射率与第二反射率计算得出反射率差值,例如,第一反射率为20%,第二反射率为60%,则反射率差值为60%-20%=40%。In this embodiment, after acquiring the first reflectivity of the first location and the second reflectivity of the second location, the reflectance difference is calculated according to the first reflectivity and the second reflectivity, for example, the first The reflectance is 20%, and the second reflectance is 60%, and the reflectance difference is 60%-20%=40%.
需要说明的是该反射率差值表示第一位置与第二位置的打光区别度,反射率差值越大,打光区别度越大,图像采集设备所拍出的图片的待检测区域越明显。It should be noted that the reflectance difference indicates the difference between the first position and the second position. The greater the difference between the reflectances, the greater the difference in the illumination, and the more the area to be detected of the picture taken by the image acquisition device obvious.
204、判断反射率差值是否大于预置阈值,若大于,则执行步骤205;若 小于,则执行步骤206。204: Determine whether the reflectance difference is greater than a preset threshold, and if yes, perform step 205; If it is less, step 206 is performed.
其中,预置阈值与检测目标的材质有关,具体数值此处不做限定。The preset threshold is related to the material of the detection target, and the specific value is not limited herein.
205、将入射角和反射角确定为待检测区域的一组目标入射角和目标反射角。205. Determine an incident angle and a reflection angle as a set of target incident angles and target reflection angles of the area to be detected.
206、不将入射角和反射角确定为待检测区域的一组目标入射角和目标反射角。206. The incident angle and the reflection angle are not determined as a set of target incident angles and target reflection angles of the area to be detected.
本发明实施例提供的技术方案中,通过对一个具有缺陷的待检测区域进行检测,从而确定可以检测到所述待检测区域的目标入射角和目标反射角,也即确定合适的用于检测该待检测区域的打光位置以及检测位置。In the technical solution provided by the embodiment of the present invention, by detecting a defective area to be detected, it is determined that the target incident angle and the target reflection angle of the to-be-detected area can be detected, that is, determining suitable for detecting the The lighting position of the area to be detected and the detection position.
请参阅图3,本发明实施例中视觉检测参数的确定方法另一个实施例包括:Referring to FIG. 3, another embodiment of a method for determining a visual detection parameter in an embodiment of the present invention includes:
301、获取待检测目标信息,所述待检测目标信息包括所述待检测目标的几何模型,所述待检测目标的几何模型包括所述待检测目标的待检测区域和所述待检测目标的非检测区域。301. Acquire target information to be detected, where the to-be-detected target information includes a geometric model of the object to be detected, and the geometric model of the object to be detected includes a to-be-detected area of the object to be detected and a non-detected target Detection area.
本实施例中,步骤301与图2中的步骤201类似,具体此处不做赘述。In this embodiment, step 301 is similar to step 201 in FIG. 2, and details are not described herein.
302、根据第一入射角、第一反射角以及所述几何模型上的第一位置和第二位置分别确定所述第一位置的第一反射率和所述第二位置的第二反射率,所述第一入射角为光源照射到所述第一位置的一个角度,所述第一反射角为图像采集设备采集到所述第一位置的反射光的一个角度,所述第一位置位于待检测区域,所述第二位置位于非检测区域,且所述第一位置与所述第二位置之间的距离小于预设值。302. Determine a first reflectivity of the first location and a second reflectivity of the second location according to a first incident angle, a first reflection angle, and a first location and a second location on the geometric model, respectively. The first incident angle is an angle at which the light source is irradiated to the first position, and the first reflection angle is an angle of the reflected light collected by the image capturing device to the first position, where the first position is located a detection area, the second position is located in the non-detection area, and a distance between the first position and the second position is less than a preset value.
其中,根据第一入射角、第一反射角以及所述几何模型上的第一位置和第二位置分别确定所述第一位置的第一反射率和所述第二位置的第二反射率的方法有两种:Wherein the first reflectance of the first location and the second reflectivity of the second location are determined according to a first incident angle, a first reflected angle, and a first location and a second location on the geometric model, respectively There are two ways:
第一种,从预置数据库中提取第一位置在第一入射角和第一反射角下的反射率作为第一反射率,并根据第一位置与第二位置在几何模型上的位置以及第一入射角和第一反射角计算出第二位置的第二入射角和第二反射角,然后从所述预置数据库中提取第二位置在第二入射角和第二反射角下的反射率作为第二反射率。 First, extracting the reflectance of the first position at the first incident angle and the first reflection angle as a first reflectance from the preset database, and according to the position of the first position and the second position on the geometric model and Calculating a second incident angle and a second reflected angle of the second position by an incident angle and a first reflected angle, and then extracting a reflectance of the second position at the second incident angle and the second reflected angle from the preset database As the second reflectivity.
其中,该预置数据库中至少存储有该待检测目标的第一位置及第二位置分别在任意入射角和任意反射角下所对应的反射率。该待检测目标上的待检测区域为需要被检测出来的区域。The preset database stores at least the reflectivity corresponding to the first position and the second position of the object to be detected at an arbitrary incident angle and an arbitrary reflection angle. The area to be detected on the target to be detected is an area that needs to be detected.
需要说明的是,预置数据库中存储的数据为光学分布数据,该光学分别数据可以为双向反射分布函数(Bidirectional Reflectance Distribution Function,BRDF)还可以为其他数据,例如偏振分布数据,具体此处不做限定。其中,BRDF包括给定材质的非检测区域的BRDF和给定材质的待检测区域的BRDF,需要说明的是,在进行BRDF数据采集时,会检测并收集各个入射角和各个反射角下所对应的反射率。It should be noted that the data stored in the preset database is optically distributed data, and the optical data may be a Bidirectional Reflectance Distribution Function (BRDF) or other data, such as polarization distribution data. Make a limit. The BRDF includes the BRDF of the non-detection area of the given material and the BRDF of the area to be detected of the given material. It should be noted that when the BRDF data is collected, each incident angle and each reflection angle are detected and collected. Reflectivity.
其中,待检测目标的几何模型影响入射光的输入角度,不同材质的光学分布数据有所不同。Wherein, the geometric model of the object to be detected affects the input angle of the incident light, and the optical distribution data of different materials are different.
需要说明的是,采集BRDF或偏振分布数据时,可以对给定材质的待检测区域和给定材质的非检测位置划分4个或8个方向,俯视图如图4所示,每个方向以1至5度的间隔进行采样,例如对4个方向进行采集且间隔3度进行反射率采集时,首先选定8个方向的其中一个方向,以入射光相对于待检测物体的平面的3°、6°、9°……180°进行采集角度划分,然后分别采集各个角度的入射光的光强及与每个入射光对应的各个反射角度的反射光的光强,最后以同样的方法把8个方向的各个角度的入射光的光强及与每个入射光对应的各个反射角度的反射光的光强进行采集,最后计算出各个角度的入射光的反射率,并存储至数据库。采样间隔的侧视图如图5所示。It should be noted that when collecting BRDF or polarization distribution data, the area to be detected and the non-detection position of a given material of a given material can be divided into 4 or 8 directions, and the top view is as shown in FIG. 4, and each direction is 1 Sampling at intervals of 5 degrees, for example, when collecting in 4 directions and performing reflectance acquisition at intervals of 3 degrees, first select one of the eight directions, with the incident light being 3° with respect to the plane of the object to be detected, 6°, 9°, ...180°, the angle of the acquisition is divided, and then the light intensity of the incident light at each angle and the light intensity of the reflected light of each reflection angle corresponding to each incident light are respectively collected, and finally the same method is used. The light intensity of the incident light at each angle of each direction and the light intensity of the reflected light of each reflection angle corresponding to each incident light are collected, and finally the reflectance of the incident light at each angle is calculated and stored in a database. A side view of the sampling interval is shown in Figure 5.
需要说明的是,关于第二位置的第二入射角和第二反射角有两种情况:It should be noted that there are two cases regarding the second incident angle and the second reflected angle of the second position:
情况1:第一位置与第二位置在几何模型上处在同一个平面,因为两者距离很小,则可以直接忽略角度差,直接认为第一位置的入射角和反射角就是第二位置的入射角和反射角;Case 1: The first position and the second position are in the same plane on the geometric model. Because the distance between the two is small, the angle difference can be directly ignored. It is directly considered that the incident angle and the reflection angle of the first position are the second position. Incident angle and reflection angle;
情况2:第一位置与第二位置在几何模型上处在不同平面,则在光源以及图像采集设备的位置不变的情况下,第二位置的入射角和反射角就要考虑到两个平面的夹角问题。Case 2: The first position and the second position are in different planes on the geometric model, and the incident angle and the reflection angle of the second position take into account two planes in the case where the positions of the light source and the image capturing device are unchanged. The angle problem.
需要说明的是,当第一位置与第二位置在几何模型上处在不同平面,则需要对第二位置的入射角角度进行校正,例如两个面互成角度a,若第一位置的 第一入射角x,则第二位置的第二入射角为y=180-a-x度;若第一位置的反射角z,则第二位置的反射角为y=180-a-z度。It should be noted that when the first position and the second position are in different planes on the geometric model, the angle of incidence of the second position needs to be corrected, for example, the two faces are at an angle a, if the first position is The first incident angle x, the second incident angle of the second position is y=180-a-x degrees; if the reflection angle z of the first position, the reflection angle of the second position is y=180-a-z degrees.
第二种,通过图像采集设备在第一反射角上分别检测第一位置的反射光的强度以及第二位置的反射光的强度,所述第一位置位于待检测区域,所述第二位置位于非检测区域,且所述第一位置与所述第二位置之间的距离小于预设值,然后根据第一位置的反射光的强度、光源的强度、图像采集设备与第一位置的距离以及光源与第一位置的距离计算出第一位置的第一反射率,并根据第二位置的反射光的强度、光源的强度、图像采集设备与第二位置的距离以及光源与第二位置的距离计算出第二位置的第二反射率。Secondly, the intensity of the reflected light at the first position and the intensity of the reflected light at the second position are respectively detected by the image capturing device at the first reflection angle, the first position being located in the area to be detected, and the second position being located a non-detection area, and a distance between the first position and the second position is less than a preset value, and then according to the intensity of the reflected light of the first position, the intensity of the light source, the distance between the image capturing device and the first position, and Calculating a first reflectance of the first position by the distance of the light source from the first position, and according to the intensity of the reflected light of the second position, the intensity of the light source, the distance between the image capturing device and the second position, and the distance between the light source and the second position The second reflectivity of the second location is calculated.
其中,第一反射角对应一束照射到第一位置和第二位置的光源,该光源照射到第一位置所形成的角度为第一入射角。The first reflection angle corresponds to a light source that is irradiated to the first position and the second position, and the angle formed by the light source to the first position is the first incident angle.
其中,根据反射光的强度、光源的强度、图像采集设备与检测位置的距离以及光源与检测位置的距离来计算出该检测位置的反射率,可以是现有的通用算法,在此不做限定。The calculation of the reflectance of the detected position according to the intensity of the reflected light, the intensity of the light source, the distance between the image capturing device and the detected position, and the distance between the light source and the detected position may be an existing general algorithm, which is not limited herein. .
303、根据第一反射率与第二反射率确定反射率差值。303. Determine a reflectance difference according to the first reflectivity and the second reflectivity.
其中,步骤305与图2中的步骤203类似,具体此处不做赘述。Step 305 is similar to step 203 in FIG. 2, and details are not described herein.
304、判断反射率差值是否大于预置阈值,若大于,则执行步骤305;若小于,则执行步骤308。304. Determine whether the reflectance difference is greater than a preset threshold. If yes, perform step 305. If not, perform step 308.
其中,预置阈值与检测目标的材质有关,具体数值此处不做限定。The preset threshold is related to the material of the detection target, and the specific value is not limited herein.
305、将该入射角和反射角确定为检测区域的一组目标入射角和目标反射角。305. Determine the incident angle and the reflection angle as a set of target incident angles and target reflection angles of the detection area.
306、获取在任意入射角与任意反射角的组合下的第一位置的第一反射率、第二位置的第二反射率、以及第一反射率与第二反射率的反射率差值。306. Acquire a first reflectivity at a first position, a second reflectance at a second position, and a reflectance difference between the first reflectance and the second reflectance at a combination of any incident angle and an arbitrary angle of reflection.
其中,获取在任意入射角与任意反射角的组合下的第一位置的第一反射率、第二位置的第二反射率的方法有两种:There are two methods for obtaining the first reflectance at the first position and the second reflectance at the second position under the combination of any incident angle and an arbitrary reflection angle:
第一种,当调整第一入射角的角度之后,通过所述预置数据库获取改变角度后的第一入射角与第一反射角所对应的第一位置的第一反射率以及第二位置的第二反射率;或调整第一反射角的角度之后,在所述预置数据库中获取改变角度后的第一反射角与第一入射角所对应的第一位置的第一反射率以及第 二位置的第二反射率。First, after adjusting the angle of the first incident angle, acquiring, by the preset database, the first incident angle after changing the angle, the first reflectance of the first position corresponding to the first reflection angle, and the second position a second reflectivity; or after adjusting an angle of the first reflection angle, acquiring a first reflectance of the first reflection angle corresponding to the first incident angle and a first reflectance corresponding to the first incident angle in the preset database The second reflectivity of the two positions.
第二种,当调整第一入射角与第一反射角中的一个或两个后,将通过图像采集设备获取任意入射角与任意反射角的组合下的第一位置的反射光强度和第二位置的反射光强度,然后根据第一位置的反射光的强度和光源的强度、图像采集设备与第一位置的距离以及光源与第一位置的距离计算出第一位置的第一反射率,并根据第二位置的反射光的强度、光源的强度、图像采集设备与第二位置的距离以及光源与第二位置的距离计算出第二位置的第二反射率。Secondly, after adjusting one or both of the first incident angle and the first reflection angle, the reflected light intensity of the first position and the second position under the combination of any incident angle and an arbitrary reflection angle are acquired by the image acquisition device. The reflected light intensity of the position, and then calculating the first reflectance of the first position according to the intensity of the reflected light at the first position and the intensity of the light source, the distance between the image capturing device and the first position, and the distance between the light source and the first position, and The second reflectivity of the second location is calculated based on the intensity of the reflected light at the second location, the intensity of the light source, the distance of the image capture device from the second location, and the distance of the light source from the second location.
其中,第一反射率与第二反射率的反射率差值的确定方法与图2中的步骤203类似,具体此处不做赘述。The method for determining the difference between the first reflectance and the second reflectance is similar to the step 203 in FIG. 2, and details are not described herein.
307、将反射率差值大于预置阈值所对应的第一入射角与第一反射角的组合均记录入待检测区域的目标入射角和目标反射角的集合。307. Combine the combination of the first incident angle and the first reflection angle corresponding to the reflectance difference greater than the preset threshold value into the set of the target incident angle and the target reflection angle of the to-be-detected region.
进一步,当待检测目标上至少包括第一检测区域和第二检测区域时,则需要先确定每个检测区域所对应的目标入射角和目标反射角的集合。若需要同时检测第一检测区域和第二检测区域时,则将第三入射角与第三反射角的组合确定为目标入射角和目标反射角,其中,第三入射角与第三反射角的组合属于第一检测区域的目标入射角和目标反射角的集合,且第三入射角与第三反射角的组合属于第二检测区域的目标入射角和目标反射角的集合。Further, when the to-be-detected target includes at least the first detection area and the second detection area, it is necessary to first determine a set of the target incident angle and the target reflection angle corresponding to each detection area. If it is required to simultaneously detect the first detection area and the second detection area, determining a combination of the third incident angle and the third reflection angle as the target incident angle and the target reflection angle, wherein the third incident angle and the third reflection angle are The set of the target incident angle and the target reflection angle belonging to the first detection area are combined, and the combination of the third incident angle and the third reflection angle belongs to a set of the target incident angle and the target reflection angle of the second detection area.
进一步,当待检测目标上至少包括第一检测区域和第二检测区域时,则需要先确定每个检测区域所对应的目标入射角和目标反射角的集合。若需要检测第一检测区域且不检测第二检测区域时,将第四入射角与第四反射角的组合确定为目标入射角和目标反射角,其中第四入射角与第四反射角的组合属于第一检测区域的目标入射角和目标反射角的集合,且第四入射角与第四反射角的组合不属于第二检测区域的目标入射角和目标反射角的集合。Further, when the to-be-detected target includes at least the first detection area and the second detection area, it is necessary to first determine a set of the target incident angle and the target reflection angle corresponding to each detection area. If it is required to detect the first detection area and not detect the second detection area, the combination of the fourth incident angle and the fourth reflection angle is determined as the target incident angle and the target reflection angle, wherein the combination of the fourth incident angle and the fourth reflection angle The set of the target incident angle and the target reflection angle belonging to the first detection area, and the combination of the fourth incident angle and the fourth reflection angle does not belong to the set of the target incident angle and the target reflection angle of the second detection area.
进一步,当待检测目标上至少包括第一检测区域和第二检测区域时,则需要先确定每个检测区域所对应的目标入射角和目标反射角的集合。若需要检测第二检测区域且不检测第一检测区域时,将第五射角与第五反射角的组合确定为目标入射角和目标反射角,其中第五入射角与第五反射角的组合不属于第一检测区域的目标入射角和目标反射角的集合,且第五入射角与第五反射角的组合属于第二检测区域的目标入射角和目标反射角的集合。 Further, when the to-be-detected target includes at least the first detection area and the second detection area, it is necessary to first determine a set of the target incident angle and the target reflection angle corresponding to each detection area. If it is required to detect the second detection area and not detect the first detection area, the combination of the fifth angle of incidence and the fifth reflection angle is determined as the target incident angle and the target reflection angle, wherein the combination of the fifth incident angle and the fifth reflection angle The set of the target incident angle and the target reflection angle that do not belong to the first detection area, and the combination of the fifth incident angle and the fifth reflection angle belongs to the set of the target incident angle and the target reflection angle of the second detection area.
308、不将该入射角和反射角确定为待检测区域的一组目标入射角和目标反射角。308. The incident angle and the reflection angle are not determined as a set of target incident angles and target reflection angles of the area to be detected.
本发明实施例提供的技术方案中,通过对一个具有缺陷的待检测区域进行检测,从而确定可以检测到所述待检测区域的所有目标入射角和目标反射角的组合,也即确定合适的用于检测该待检测区域的所有打光位置以及检测位置的组合。In the technical solution provided by the embodiment of the present invention, by detecting a defective area to be detected, it is determined that a combination of all target incident angles and target reflection angles of the to-be-detected area can be detected, that is, determining suitable use. A combination of all the light-receiving positions and the detected positions of the area to be detected is detected.
请参阅图6,本发明实施例中视觉检测参数的确定方法另一个实施例包括:Referring to FIG. 6, another embodiment of a method for determining a visual detection parameter in an embodiment of the present invention includes:
601、获取待检测目标信息,所述待检测目标信息包括所述待检测目标的几何模型,所述待检测目标的几何模型包括所述待检测目标的待检测区域。601. Acquire target information to be detected, where the to-be-detected target information includes a geometric model of the object to be detected, and the geometric model of the object to be detected includes an area to be detected of the object to be detected.
本实施例中,步骤601与图2中的步骤201类似,具体此处不做赘述。In this embodiment, step 601 is similar to step 201 in FIG. 2, and details are not described herein.
602、根据第一入射角、第一反射角以及几何模型上的目标位置确定所述目标位置的第一反射率,所述第一入射角为光源照射到所述目标位置的一个角度,所述第一反射角为图像采集设备检测目标位置的反射光的一个角度,所述目标位置位于待检测区域。602. Determine a first reflectivity of the target location according to a first incident angle, a first reflected angle, and a target position on the geometric model, the first incident angle being an angle at which the light source illuminates the target location, The first reflection angle is an angle of the reflected light of the image acquisition device detecting the target position, and the target position is located in the area to be detected.
需要说明的是,本步骤中第一反射率的具体获取方法,具体见图7所对应的实施例。It should be noted that the specific method for obtaining the first reflectivity in this step is specifically shown in the embodiment corresponding to FIG. 7 .
603、根据第一反射率与第二反射率确定反射率差值,所述第二反射率为从预置参考数据库中提取的所述目标位置在所述第一入射角和所述第一反射角下的反射率,所述预置参考数据库中至少存储有所述目标位置在任意入射角和任意反射角下所对应的反射率,且所述预置参考数据库中存储的数据为所述待检测区域为参考状态时的数据。603. Determine a reflectance difference according to the first reflectivity and the second reflectivity, where the second reflectivity is the first incident angle and the first reflection from the target position extracted from the preset reference database. a reflectivity under the corner, at least the reflectivity corresponding to the target position at an arbitrary incident angle and an arbitrary reflection angle is stored in the preset reference database, and the data stored in the preset reference database is the The data when the detection area is the reference status.
在本实施例中,所述预置参考数据库中存储的是所述待检测目标的BRDF数据,且该待检测目标的待检测区域为参考状态(例如非缺陷状态)。In this embodiment, the preset reference database stores the BRDF data of the object to be detected, and the to-be-detected area of the object to be detected is a reference state (for example, a non-defective state).
其中,反射率差值的算法与图2中步骤203类似,具体此处不做赘述。The algorithm for the reflectance difference is similar to the step 203 in FIG. 2, and details are not described herein.
604、判断反射率差值是否大于预置阈值,若大于,则执行步骤605;若小于,则执行步骤606。604. Determine whether the reflectance difference is greater than a preset threshold. If yes, perform step 605; if less, perform step 606.
其中,预置阈值与检测目标的材质有关,具体数值此处不做限定。The preset threshold is related to the material of the detection target, and the specific value is not limited herein.
605、将入射角和反射角确定为待检测区域的一组目标入射角和目标反射 角。605. Determine an incident angle and a reflection angle as a set of target incident angles and target reflections of the area to be detected. angle.
606、不将入射角和反射角确定为待检测区域的一组目标入射角和目标反射角。606. The incident angle and the reflection angle are not determined as a set of target incident angles and target reflection angles of the area to be detected.
本发明实施例提供的技术方案中,通过将待检测区域的目标位置的反射率与从预置参考数据库中获取的所述待检测区域的目标位置的反射率来对比,从而确定可以检测到所述待检测区域的目标入射角和目标反射角,也即确定合适的用于检测所述待检测区域的打光位置以及检测位置。In the technical solution provided by the embodiment of the present invention, by comparing the reflectivity of the target location of the to-be-detected area with the reflectivity of the target location of the to-be-detected area acquired from the preset reference database, it is determined that the detected location can be detected. The target incident angle and the target reflection angle of the detection area are described, that is, a suitable light-emitting position and a detection position for detecting the area to be detected are determined.
请参阅图7,本发明实施例中视觉检测参数的确定方法另一个实施例包括:Referring to FIG. 7, another embodiment of a method for determining a visual detection parameter in an embodiment of the present invention includes:
701、获取待检测目标信息,所述待检测目标信息包括所述待检测目标的几何模型,所述待检测目标的几何模型包括所述待检测目标的待检测区域。701. Acquire target information to be detected, where the to-be-detected target information includes a geometric model of the object to be detected, and the geometric model of the object to be detected includes an area to be detected of the object to be detected.
本实施例中,步骤701与图2中的步骤201类似,具体此处不做赘述。In this embodiment, step 701 is similar to step 201 in FIG. 2, and details are not described herein.
702、根据第一入射角、第一反射角以及几何模型上的目标位置确定所述目标位置的第一反射率,所述第一入射角为光源照射到所述目标位置的一个角度,所述第一反射角为图像采集设备检测目标位置的反射光的一个角度,所述目标位置位于待检测区域。702. Determine a first reflectivity of the target location according to a first incident angle, a first reflected angle, and a target position on a geometric model, where the first incident angle is an angle at which the light source illuminates the target location, The first reflection angle is an angle of the reflected light of the image acquisition device detecting the target position, and the target position is located in the area to be detected.
其中,确定所述目标位置的第一反射率的方法有两种:There are two methods for determining the first reflectivity of the target location:
第一种,首先通过图像采集设备在第一反射角上检测目标位置的反射光的强度,然后根据目标位置的反射光的强度、光源的强度、图像采集设备与目标位置的距离以及光源与目标位置的距离计算出目标位置的第一反射率。First, firstly, the intensity of the reflected light at the target position is detected by the image capturing device at the first reflection angle, and then the intensity of the reflected light according to the target position, the intensity of the light source, the distance between the image capturing device and the target position, and the light source and the target. The distance of the position calculates the first reflectivity of the target position.
其中,第一反射角对应一束照射到目标位置的光源,该光源照射到目标位置所形成的角度为第一入射角。The first reflection angle corresponds to a light source that is irradiated to the target position, and the angle formed by the light source to the target position is the first incident angle.
第二种,从预置数据库中提取目标位置在第一入射角和第一反射角下的反射率作为第一反射率,所述预置数据库中至少存储有目标位置在任意入射角和任意反射角下所对应的反射率,且预置数据库中存储的数据为目标位置为待检测区域时的数据,即预置数据库中存储的数据为待检测对象为缺陷区域时所采集的BRDF数据。Secondly, the reflectivity of the target position at the first incident angle and the first reflection angle is extracted from the preset database as a first reflectivity, and at least the target position is stored in the preset database at an arbitrary incident angle and an arbitrary reflection The reflectivity corresponding to the angle, and the data stored in the preset database is the data when the target position is the area to be detected, that is, the data stored in the preset database is the BRDF data collected when the object to be detected is a defective area.
703、根据第一反射率与第二反射率确定反射率差值,所述第二反射率为从预置参考数据库中提取的所述目标位置在所述第一入射角和所述第一反射 角下的反射率,所述预置参考数据库中至少存储有所述目标位置在任意入射角和任意反射角下所对应的反射率,且所述预置参考数据库中存储的数据为所述待检测区域为参考状态时的数据。703. Determine a reflectance difference according to the first reflectivity and the second reflectivity, where the second reflectivity is the first incident angle and the first reflection from the target position extracted from the preset reference database. a reflectivity under the corner, at least the reflectivity corresponding to the target position at an arbitrary incident angle and an arbitrary reflection angle is stored in the preset reference database, and the data stored in the preset reference database is the The data when the detection area is the reference status.
本实施例中,步骤703与图6中步骤603类似,具体此处不做赘述。In this embodiment, the step 703 is similar to the step 603 in FIG. 6 , and details are not described herein.
704、判断反射率差值是否大于预置阈值,若大于,则执行步骤705;若小于,则执行步骤708。704. Determine whether the reflectance difference is greater than a preset threshold. If yes, perform step 705; if less, perform step 708.
其中,预置阈值与检测目标的材质有关,具体数值此处不做限定。The preset threshold is related to the material of the detection target, and the specific value is not limited herein.
705、将入射角和反射角确定为待检测区域的一组目标入射角和目标反射角。705. Determine an incident angle and a reflection angle as a set of target incident angles and target reflection angles of the area to be detected.
706、获取在任意入射角与任意反射角的组合下的目标位置的第一反射率和第二反射率,以及第一反射率与第二反射率的反射率差值。706. Acquire a first reflectance and a second reflectivity of the target position under a combination of any incident angle and an arbitrary reflection angle, and a reflectance difference between the first reflectivity and the second reflectivity.
本实施例中,获取在任意入射角与任意反射角的组合下的目标位置的第一反射率的方法有两种:In this embodiment, there are two methods for obtaining the first reflectance of the target position under the combination of any incident angle and an arbitrary reflection angle:
第一种,当调整第一入射角的角度之后,通过图像采集设备采集调整第一入射角的角度之后的目标位置的反射光强度,然后根据目标位置的反射光的强度、光源的强度、图像采集设备与目标位置的距离以及光源与目标位置的距离计算出目标位置的第一反射率。或当调整第一反射角的角度之后,通过图像采集设备采集调整第一反射角的角度之后的目标位置的反射光强度,然后根据目标位置的反射光的强度、光源的强度、图像采集设备与目标位置的距离以及光源与目标位置的距离计算出目标位置的第一反射率。First, after adjusting the angle of the first incident angle, the intensity of the reflected light of the target position after adjusting the angle of the first incident angle is acquired by the image acquisition device, and then the intensity of the reflected light according to the target position, the intensity of the light source, and the image The distance between the acquisition device and the target position and the distance between the light source and the target position calculate the first reflectance of the target position. Or after adjusting the angle of the first reflection angle, the intensity of the reflected light of the target position after adjusting the angle of the first reflection angle is acquired by the image acquisition device, and then the intensity of the reflected light according to the target position, the intensity of the light source, the image acquisition device and The distance of the target position and the distance of the light source from the target position calculate the first reflectance of the target position.
第二种:当调整第一入射角的角度之后,通过所述预置数据库获取改变角度后的第一入射角与第一反射角所对应的目标位置的第一反射率;或调整第一反射角的角度之后,在所述预置数据库中获取改变角度后的第一反射角与第一入射角所对应的目标位置的第一反射率。The second type: after adjusting the angle of the first incident angle, acquiring, by the preset database, the first reflectivity of the first incident angle after changing the angle and the target position corresponding to the first reflection angle; or adjusting the first reflection After the angle of the angle, the first reflectance of the target position corresponding to the first incident angle and the first incident angle after the angle is changed is acquired in the preset database.
本实施例中,获取在任意入射角与任意反射角的组合下的目标位置的第二反射率的方法为:当调整第一入射角的角度之后,通过所述预置参考数据库获取改变角度后的第一入射角与第一反射角所对应的目标位置的第二反射率;或调整第一反射角的角度之后,在所述预置参考数据库中获取改变角度后的第一反射角与第一入射角所对应的目标位置的第二反射率。 In this embodiment, the method for obtaining the second reflectivity of the target position under the combination of any incident angle and an arbitrary reflection angle is: after adjusting the angle of the first incident angle, obtaining the changed angle by using the preset reference database a first reflectance angle of the first incident angle corresponding to the first reflection angle; or after adjusting the angle of the first reflection angle, obtaining a first reflection angle after changing the angle in the preset reference database The second reflectivity of the target position corresponding to an incident angle.
707、将反射率差值大于预置阈值所对应的第一入射角与第一反射角的组合均记录入待检测区域的目标入射角和目标反射角的集合。707. Record a combination of the first incident angle and the first reflection angle corresponding to the reflectance difference greater than the preset threshold into the set of the target incident angle and the target reflection angle of the to-be-detected region.
本实施例中,步骤707与图3中步骤307类似,具体此处不做赘述。In this embodiment, step 707 is similar to step 307 in FIG. 3, and details are not described herein.
进一步,当待检测目标上至少包括第一检测区域和第二检测区域时,则需要先确定每个检测区域所对应的目标入射角和目标反射角的集合。若需要同时检测第一检测区域和第二检测区域时,则将第三入射角与第三反射角的组合确定为目标入射角和目标反射角,其中,第三入射角与第三反射角的组合属于第一检测区域的目标入射角和目标反射角的集合,且第三入射角与第三反射角的组合属于第二检测区域的目标入射角和目标反射角的集合。Further, when the to-be-detected target includes at least the first detection area and the second detection area, it is necessary to first determine a set of the target incident angle and the target reflection angle corresponding to each detection area. If it is required to simultaneously detect the first detection area and the second detection area, determining a combination of the third incident angle and the third reflection angle as the target incident angle and the target reflection angle, wherein the third incident angle and the third reflection angle are The set of the target incident angle and the target reflection angle belonging to the first detection area are combined, and the combination of the third incident angle and the third reflection angle belongs to a set of the target incident angle and the target reflection angle of the second detection area.
进一步,当待检测目标上至少包括第一检测区域和第二检测区域时,则需要先确定每个检测区域所对应的目标入射角和目标反射角的集合。若需要检测第一检测区域且不检测第二检测区域时,将第四入射角与第四反射角的组合确定为目标入射角和目标反射角,其中第四入射角与第四反射角的组合属于第一检测区域的目标入射角和目标反射角的集合,且第四入射角与第四反射角的组合不属于第二检测区域的目标入射角和目标反射角的集合。Further, when the to-be-detected target includes at least the first detection area and the second detection area, it is necessary to first determine a set of the target incident angle and the target reflection angle corresponding to each detection area. If it is required to detect the first detection area and not detect the second detection area, the combination of the fourth incident angle and the fourth reflection angle is determined as the target incident angle and the target reflection angle, wherein the combination of the fourth incident angle and the fourth reflection angle The set of the target incident angle and the target reflection angle belonging to the first detection area, and the combination of the fourth incident angle and the fourth reflection angle does not belong to the set of the target incident angle and the target reflection angle of the second detection area.
进一步,当待检测目标上至少包括第一检测区域和第二检测区域时,则需要先确定每个检测区域所对应的目标入射角和目标反射角的集合。若需要检测第二检测区域且不检测第一检测区域时,将第五射角与第五反射角的组合确定为目标入射角和目标反射角,其中第五入射角与第五反射角的组合不属于第一检测区域的目标入射角和目标反射角的集合,且第五入射角与第五反射角的组合属于第二检测区域的目标入射角和目标反射角的集合。Further, when the to-be-detected target includes at least the first detection area and the second detection area, it is necessary to first determine a set of the target incident angle and the target reflection angle corresponding to each detection area. If it is required to detect the second detection area and not detect the first detection area, the combination of the fifth angle of incidence and the fifth reflection angle is determined as the target incident angle and the target reflection angle, wherein the combination of the fifth incident angle and the fifth reflection angle The set of the target incident angle and the target reflection angle that do not belong to the first detection area, and the combination of the fifth incident angle and the fifth reflection angle belongs to the set of the target incident angle and the target reflection angle of the second detection area.
708、不将入射角和反射角确定为待检测区域的一组目标入射角和目标反射角。708. The incident angle and the reflection angle are not determined as a set of target incident angles and target reflection angles of the area to be detected.
本发明实施例提供的技术方案中,通过将待检测区域的目标位置的反射率与从预置参考数据库中获取的所述待检测区域的目标位置的反射率来对比,从而确定可以检测到所述待检测区域的所有目标入射角和目标反射角的组合,也即确定合适的用于检测该待检测区域的所有打光位置以及检测位置的组合。In the technical solution provided by the embodiment of the present invention, by comparing the reflectivity of the target location of the to-be-detected area with the reflectivity of the target location of the to-be-detected area acquired from the preset reference database, it is determined that the detected location can be detected. A combination of all target incident angles and target reflection angles of the detection area is determined, that is, a combination of all of the light-on positions and the detection positions for detecting the area to be detected is determined.
上面对本发明实施例中的视觉检测参数的确定方法进行了描述,下面对本发明实施例中的视觉检测设备进行描述,请参阅图8。 The method for determining the visual detection parameters in the embodiment of the present invention has been described above. The visual inspection device in the embodiment of the present invention will be described below. Please refer to FIG. 8.
本发明还提供了一种视觉检测设备,请参阅图8,为本发明实施例中视觉检测设备的一个实施例结构示意图,所述视觉检测设备与图像采集设备相连,其中视觉检测设备80包括:存储器810、处理器820。The present invention also provides a visual inspection device. Referring to FIG. 8, FIG. 8 is a schematic structural diagram of an embodiment of a visual inspection device according to an embodiment of the present invention. The visual inspection device is connected to an image acquisition device, wherein the visual inspection device 80 includes: The memory 810 and the processor 820.
其中,存储器810,用于存储操作指令以及相关数据;The memory 810 is configured to store operation instructions and related data.
处理器820通过调用存储器810存储的操作指令,用于执行上述的视觉检测参数的确定方法,以确定可以检测到所述待检测区域的目标入射角和目标反射角的组合,也即确定合适的用于检测该待检测区域的打光位置以及检测位置的组合。The processor 820 is configured to execute the foregoing determining method of the visual detection parameter by calling an operation instruction stored in the memory 810, to determine that a combination of the target incident angle and the target reflection angle of the to-be-detected region can be detected, that is, determining a suitable one. A combination of a lighting position for detecting the area to be detected and a detection position.
需要说明的是,本实施例中,处理器820还可以称为中央处理单元(英文全称:Central Processing Unit,英文缩写:CPU)。It should be noted that, in this embodiment, the processor 820 may also be referred to as a central processing unit (English full name: Central Processing Unit, English abbreviation: CPU).
存储器810,用于存储操作指令和数据,以便处理器820调用上述操作指令实现相应操作,可以包括只读存储器和随机存取存储器。存储器810的一部分还可以包括非易失性随机存取存储器(英文全称:Non-Volatile Random Access Memory,英文缩写:NVRAM)。The memory 810 is configured to store operation instructions and data, so that the processor 820 invokes the above operation instructions to implement corresponding operations, and may include a read only memory and a random access memory. A portion of the memory 810 may also include a non-volatile random access memory (English name: Non-Volatile Random Access Memory, English abbreviation: NVRAM).
视觉检测设备80还包括总线系统830,总线系统830将视觉检测设备80的各个组件耦合在一起,上述各个组件包括存储器810、处理器820,其中总线系统830除包括数据总线之外,还可以包括电源总线、控制总线和状态信号总线等。但是为了清楚说明起见,在图中将各种总线都标为总线系统830。The visual inspection device 80 also includes a bus system 830 that couples various components of the visual inspection device 80, each of which includes a memory 810, a processor 820, wherein the bus system 830 can include, in addition to the data bus, Power bus, control bus and status signal bus. However, for clarity of description, various buses are labeled as bus system 830 in the figure.
本实施例中,还需要说明的是,上述本发明实施例揭示的方法可以应用于处理器820中,或者由处理器820实现。处理器820可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器820中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器820可以是通用处理器、数字信号处理器(英文全称:Digital Signal Processing,英文缩写:DSP)、专用集成电路(英文全称:Application Specific Integrated Circuit,英文缩写:ASIC)、现成可编程门阵列(英文全称:Field-Programmable Gate Array,英文缩写:FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件译码处 理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器810,处理器820读取存储器810中的信息,结合其硬件完成上述方法的步骤。In this embodiment, it should be noted that the method disclosed in the foregoing embodiment of the present invention may be applied to the processor 820 or implemented by the processor 820. Processor 820 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the foregoing method may be completed by an integrated logic circuit of hardware in the processor 820 or an instruction in a form of software. The processor 820 may be a general-purpose processor, a digital signal processor (English name: Digital Signal Processing, English abbreviation: DSP), an application specific integrated circuit (English name: Application Specific Integrated Circuit, English abbreviation: ASIC), ready-made programmable Gate array (English name: Field-Programmable Gate Array, English abbreviation: FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The methods, steps, and logical block diagrams disclosed in the embodiments of the present invention may be implemented or carried out. The general purpose processor may be a microprocessor or the processor or any conventional processor or the like. The steps of the method disclosed in the embodiments of the present invention may be directly embodied as hardware decoding. The processor is executed or completed by a combination of hardware and software modules in the decoding processor. The software module can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like. The storage medium is located in the memory 810, and the processor 820 reads the information in the memory 810 and completes the steps of the above method in combination with its hardware.
本发明实施例还提供了一种视觉检测系统,该视觉检测系统包括机光源、图像采集设备以及视觉检测设备,上述视觉检测系统通过上述所提及的视觉检测设备执行上述的视觉检测参数的确定方法,以确定待检测目标的待检测区域的至少一组目标入射角和目标反射角,并在所述光源以所述目标入射角照射所述待检测目标,且所述图像采集设备从所述目标反射角采集所述待检测目标的图像时,对所述图像进行检测识别。需要说明的是,可以用现有的图像识别算法对所述图像进行检测识别。An embodiment of the present invention further provides a visual inspection system including a machine light source, an image acquisition device, and a visual inspection device, wherein the visual inspection system performs the above determination of the visual detection parameter by using the visual inspection device mentioned above. a method of determining at least one set of target incident angles and target reflection angles of a region to be detected of a target to be detected, and illuminating the target to be detected at the target incident angle with the light source, and the image capturing device from the When the target reflection angle acquires an image of the object to be detected, the image is detected and identified. It should be noted that the image may be detected and identified by an existing image recognition algorithm.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。A person skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the system, the device and the unit described above can refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
以上,以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。 The above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art will understand that The technical solutions described in the examples are modified, or equivalent to some of the technical features, and the modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (16)

  1. 一种视觉检测参数的确定方法,其特征在于,包括:A method for determining a visual detection parameter, comprising:
    获取待检测目标信息,所述待检测目标信息包括所述待检测目标的几何模型,所述待检测目标的几何模型包括所述待检测目标的待检测区域和所述待检测目标的非检测区域;Obtaining target information to be detected, the target information to be detected includes a geometric model of the object to be detected, and the geometric model of the object to be detected includes a to-be-detected area of the object to be detected and a non-detection area of the object to be detected ;
    根据第一入射角、第一反射角以及所述几何模型上的第一位置和第二位置分别确定所述第一位置的第一反射率和所述第二位置的第二反射率,所述第一入射角为光源照射到所述第一位置的一个角度,所述第一反射角为图像采集设备采集到所述第一位置的反射光的一个角度,所述第一位置位于待检测区域,所述第二位置位于非检测区域,且所述第一位置与所述第二位置之间的距离小于预设值;Determining a first reflectivity of the first location and a second reflectivity of the second location, respectively, based on a first angle of incidence, a first angle of reflection, and a first location and a second location on the geometric model, The first incident angle is an angle at which the light source is irradiated to the first position, and the first reflection angle is an angle of the reflected light collected by the image capturing device to the first position, where the first position is located in the area to be detected The second position is located in the non-detection area, and a distance between the first position and the second position is less than a preset value;
    根据所述第一反射率与所述第二反射率确定反射率差值;Determining a reflectance difference according to the first reflectance and the second reflectivity;
    判断所述反射率差值是否大于预置阈值;Determining whether the reflectance difference is greater than a preset threshold;
    若所述反射率差值大于预置阈值,则将所述入射角和所述反射角确定为所述待检测区域的一组目标入射角和目标反射角。If the reflectance difference is greater than a preset threshold, the incident angle and the reflected angle are determined as a set of target incident angles and target reflection angles of the region to be detected.
  2. 根据权利要求1所述的方法,其特征在于,所述根据第一入射角、第一反射角以及所述几何模型上的第一位置和第二位置分别确定所述第一位置的第一反射率和所述第二位置的第二反射率包括:The method of claim 1 wherein said determining said first position of said first position based on said first angle of incidence, said first angle of reflection, and said first and second positions on said geometric model, respectively The rate and the second reflectivity of the second location include:
    从一预置数据库中提取所述第一位置在第一入射角和第一反射角下的反射率作为第一反射率,所述预置数据库中至少存储有该待检测目标上的所述第一位置及所述第二位置分别在任意入射角和任意反射角下所对应的反射率;Extracting a reflectance of the first position at a first incident angle and a first reflection angle as a first reflectivity from a preset database, wherein the preset database stores at least the first on the target to be detected a corresponding reflectance of a position and the second position at an arbitrary incident angle and an arbitrary reflection angle;
    根据所述第一位置与所述第二位置在所述几何模型上的位置以及所述第一入射角和所述第一反射角计算出所述第二位置的第二入射角和第二反射角;Calculating a second incident angle and a second reflection of the second position according to a position of the first position and the second position on the geometric model and the first incident angle and the first reflection angle angle;
    从所述预置数据库中提取所述第二位置在第二入射角和第二反射角下的反射率作为第二反射率。A reflectance of the second position at the second incident angle and the second reflected angle is extracted from the preset database as a second reflectance.
  3. 根据权利要求1所述的方法,其特征在于,所述根据第一入射角、第一反射角以及所述几何模型上的第一位置和第二位置分别确定所述第一位置的第一反射率和所述第二位置的第二反射率包括:The method of claim 1 wherein said determining said first position of said first position based on said first angle of incidence, said first angle of reflection, and said first and second positions on said geometric model, respectively The rate and the second reflectivity of the second location include:
    通过所述图像采集设备在第一反射角上分别检测第一位置的反射光的强 度以及所述第二位置的反射光的强度;Detecting, by the image capturing device, the intensity of the reflected light at the first position on the first reflection angle And the intensity of the reflected light of the second position;
    根据所述第一位置的反射光的强度、所述光源的强度、所述图像采集设备与第一位置的距离以及所述光源与第一位置的距离计算出第一位置的第一反射率;及Calculating a first reflectance of the first location according to an intensity of the reflected light of the first location, an intensity of the light source, a distance of the image capturing device from the first location, and a distance between the light source and the first location; and
    根据所述第二位置的反射光的强度、所述光源的强度、所述图像采集设备与第二位置的距离以及所述光源与第二位置的距离计算出第二位置的第二反射率。And calculating a second reflectance of the second position according to the intensity of the reflected light at the second position, the intensity of the light source, the distance between the image capturing device and the second position, and the distance between the light source and the second position.
  4. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1 further comprising:
    调整所述第一入射角与第一反射角中的一个或两个后,获取在任意入射角与任意反射角的组合下的第一位置的第一反射率、第二位置的第二反射率、以及所述第一反射率与第二反射率的反射率差值;及After adjusting one or both of the first incident angle and the first reflection angle, acquiring a first reflectance at a first position and a second reflectance at a second position at a combination of any incident angle and an arbitrary angle of reflection And a difference in reflectance between the first reflectivity and the second reflectance; and
    将所述反射率差值大于预置阈值所对应的第一入射角与第一反射角的组合均记录入所述待检测区域的目标入射角和目标反射角的集合。The combination of the first incident angle corresponding to the reflectance difference greater than the preset threshold and the first reflected angle is recorded into the set of the target incident angle and the target reflection angle of the to-be-detected region.
  5. 根据权利要求4所述的方法,其特征在于,当所述待检测目标上至少包括第一待检测区域和第二待检测区域时,所述方法还包括:The method according to claim 4, wherein when the object to be detected includes at least a first area to be detected and a second area to be detected, the method further includes:
    当需要同时检测所述第一待检测区域和所述第二待检测区域时,先确定每个待检测区域所对应的目标入射角和目标反射角的集合,并将第三入射角与第三反射角的组合确定为目标入射角和目标反射角,其中所述第三入射角与所述第三反射角的组合属于第一待检测区域的目标入射角和目标反射角的集合,且所述第三入射角与第三反射角的组合属于第二待检测区域的目标入射角和目标反射角的集合。When it is required to simultaneously detect the first to-be-detected area and the second to-be-detected area, first determine a set of target incident angles and target reflection angles corresponding to each to-be-detected area, and third angle of incidence and third The combination of the reflection angles is determined as a target incident angle and a target reflection angle, wherein the combination of the third incident angle and the third reflection angle belongs to a set of a target incident angle and a target reflection angle of the first to-be-detected region, and The combination of the third incident angle and the third reflected angle belongs to a set of the target incident angle and the target reflection angle of the second to-be-detected region.
  6. 根据权利要求4所述的方法,其特征在于,当所述待检测目标上至少包括第一待检测区域和第二待检测区域时,所述方法还包括:The method according to claim 4, wherein when the object to be detected includes at least a first area to be detected and a second area to be detected, the method further includes:
    当需要检测所述第一待检测区域且不检测所述第二待检测区域时,先确定每个待检测区域所对应的目标入射角和目标反射角的集合,并将第四入射角与第四反射角的组合确定为目标入射角和目标反射角,其中所述第四入射角与所述第四反射角的组合属于第一待检测区域的目标入射角和目标反射角的集合,且所述第四入射角与第四反射角的组合不属于第二待检测区域的目标入射角和目标反射角的集合。 When it is required to detect the first to-be-detected area and not detect the second to-be-detected area, first determine a set of a target incident angle and a target reflection angle corresponding to each to-be-detected area, and the fourth incident angle and the first The combination of the four reflection angles is determined as a target incident angle and a target reflection angle, wherein the combination of the fourth incident angle and the fourth reflection angle belongs to a set of the target incident angle and the target reflection angle of the first to-be-detected region, and The combination of the fourth incident angle and the fourth reflection angle does not belong to the set of the target incident angle and the target reflection angle of the second to-be-detected region.
  7. 根据权利要求4所述的方法,其特征在于,当所述待检测目标上至少包括第一待检测区域和第二待检测区域时,所述方法还包括:The method according to claim 4, wherein when the object to be detected includes at least a first area to be detected and a second area to be detected, the method further includes:
    当需要检测所述第二待检测区域且不检测所述第一待检测区域时,先确定每个待检测区域所对应的目标入射角和目标反射角的集合,并将第五射角与第五反射角的组合确定为目标入射角和目标反射角,其中所述第五入射角与所述第五反射角的组合不属于第一待检测区域的目标入射角和目标反射角的集合,且所述第五入射角与第五反射角的组合属于第二待检测区域的目标入射角和目标反射角的集合。When it is required to detect the second to-be-detected area and not detect the first to-be-detected area, first determine a set of a target incident angle and a target reflection angle corresponding to each to-be-detected area, and set a fifth angle of incidence The combination of the five reflection angles is determined as a target incident angle and a target reflection angle, wherein the combination of the fifth incident angle and the fifth reflection angle does not belong to a set of the target incident angle and the target reflection angle of the first to-be-detected region, and The combination of the fifth incident angle and the fifth reflection angle belongs to a set of a target incident angle and a target reflection angle of the second to-be-detected region.
  8. 一种视觉检测参数的确定方法,其特征在于,包括:A method for determining a visual detection parameter, comprising:
    获取待检测目标信息,所述待检测目标信息包括所述待检测目标的几何模型,所述待检测目标的几何模型包括所述待检测目标的待检测区域;Obtaining to-be-detected target information, the to-be-detected target information includes a geometric model of the object to be detected, and the geometric model of the object to be detected includes an area to be detected of the object to be detected;
    根据第一入射角、第一反射角以及所述几何模型上的目标位置确定所述目标位置的第一反射率,所述第一入射角为光源照射到所述目标位置的一个角度,所述第一反射角为图像采集设备检测目标位置的反射光的一个角度,所述目标位置位于待检测区域;Determining a first reflectivity of the target location based on a first angle of incidence, a first angle of reflection, and a target location on the geometric model, the first angle of incidence being an angle at which the light source illuminates the target location, The first reflection angle is an angle of the reflected light of the image capturing device detecting the target position, and the target position is located in the area to be detected;
    根据所述第一反射率与第二反射率确定反射率差值,所述第二反射率为从一预置参考数据库中提取的所述目标位置在所述第一入射角和所述第一反射角下的反射率,所述预置参考数据库中至少存储有所述目标位置在任意入射角和任意反射角下所对应的反射率,且所述预置参考数据库中存储的数据为所述待检测区域为参考状态时的数据;Determining a reflectance difference according to the first reflectivity and the second reflectivity, the second reflectivity being the target position extracted from a preset reference database at the first incident angle and the first a reflectivity at a reflection angle, wherein the preset reference database stores at least a reflectance corresponding to the target position at an arbitrary incident angle and an arbitrary reflection angle, and the data stored in the preset reference database is the Data when the area to be detected is the reference state;
    判断所述反射率差值是否大于预置阈值;Determining whether the reflectance difference is greater than a preset threshold;
    若所述反射率差值大于预置阈值,则将所述入射角和所述反射角确定为所述待检测区域的一组目标入射角和目标反射角。If the reflectance difference is greater than a preset threshold, the incident angle and the reflected angle are determined as a set of target incident angles and target reflection angles of the region to be detected.
  9. 根据权利要求8所述的方法,其特征在于,所述根据第一入射角、第一反射角以及所述几何模型上的目标位置确定所述目标位置的第一反射率包括:The method according to claim 8, wherein the determining the first reflectance of the target position according to the first incident angle, the first reflection angle, and the target position on the geometric model comprises:
    通过所述图像采集设备在所述第一反射角上检测所述目标位置的反射光的强度;Detecting, by the image capturing device, the intensity of the reflected light of the target position on the first reflection angle;
    根据所述目标位置的反射光的强度、所述光源的强度、所述图像采集设备 与目标位置的距离以及所述光源与目标位置的距离计算出目标位置的第一反射率。The intensity of the reflected light according to the target position, the intensity of the light source, the image acquisition device The distance from the target position and the distance of the light source from the target position calculate a first reflectance of the target position.
  10. 根据权利要求8所述的方法,其特征在于,所述根据第一入射角、第一反射角以及所述几何模型上的目标位置确定所述目标位置的第一反射率包括:The method according to claim 8, wherein the determining the first reflectance of the target position according to the first incident angle, the first reflection angle, and the target position on the geometric model comprises:
    从预置数据库中提取所述目标位置在第一入射角和第一反射角下的反射率作为第一反射率,所述预置数据库中至少存储有该待检测目标上的所述目标位置在任意入射角和任意反射角下所对应的反射率。Extracting, from the preset database, a reflectance of the target position at a first incident angle and a first reflection angle as a first reflectivity, wherein the preset database stores at least the target position on the target to be detected The reflectivity at any angle of incidence and at any angle of reflection.
  11. 根据权利要求8所述的方法,其特征在于,所述方法还包括:The method of claim 8 further comprising:
    调整所述第一入射角与所述第一反射角中的一个或两个后,获取在任意入射角与任意反射角的组合下的目标位置的第一反射率和第二反射率,以及所述第一反射率与第二反射率的反射率差值;及After adjusting one or both of the first incident angle and the first reflection angle, acquiring a first reflectance and a second reflectance of a target position under a combination of an arbitrary incident angle and an arbitrary reflection angle, and a difference in reflectance between the first reflectance and the second reflectance; and
    将所述反射率差值大于预置阈值所对应的第一入射角与第一反射角的组合均记录入所述待检测区域的目标入射角和目标反射角的集合。The combination of the first incident angle corresponding to the reflectance difference greater than the preset threshold and the first reflected angle is recorded into the set of the target incident angle and the target reflection angle of the to-be-detected region.
  12. 根据权利要求11所述的方法,其特征在于,当所述待检测目标上至少包括第一待检测区域和第二待检测区域时,所述方法还包括:The method according to claim 11, wherein when the object to be detected includes at least a first area to be detected and a second area to be detected, the method further includes:
    当需要同时检测所述第一待检测区域和所述第二待检测区域时,先确定每个待检测区域所对应的目标入射角和目标反射角的集合,并将第二入射角与第二反射角的组合确定为目标入射角和目标反射角,其中所述第二入射角与所述第二反射角的组合属于第一待检测区域的目标入射角和目标反射角的集合,且所述第二入射角与第二反射角的组合属于第二待检测区域的目标入射角和目标反射角的集合。When it is required to simultaneously detect the first to-be-detected area and the second to-be-detected area, first determine a set of target incident angles and target reflection angles corresponding to each to-be-detected area, and second incident angles and second The combination of the reflection angles is determined as a target incident angle and a target reflection angle, wherein the combination of the second incident angle and the second reflection angle belongs to a set of a target incident angle and a target reflection angle of the first to-be-detected region, and The combination of the second incident angle and the second reflected angle belongs to a set of the target incident angle and the target reflection angle of the second to-be-detected region.
  13. 根据权利要求11所述的方法,其特征在于,当所述待检测目标上至少包括第一待检测区域和第二待检测区域时,所述方法还包括:The method according to claim 11, wherein when the object to be detected includes at least a first area to be detected and a second area to be detected, the method further includes:
    当需要检测所述第一检测区域且不检测所述第二检测区域时,先确定每个待检测区域所对应的目标入射角和目标反射角的集合,并将第三入射角与第三反射角的组合确定为目标入射角和目标反射角,其中所述第三入射角与所述第三反射角的组合属于第一待检测区域的目标入射角和目标反射角的集合,且所述第三入射角与第三反射角的组合不属于第二待检测区域的目标入射角和目 标反射角的集合。When it is required to detect the first detection area and not detect the second detection area, first determine a set of a target incident angle and a target reflection angle corresponding to each to-be-detected area, and the third incident angle and the third reflection The combination of the angles is determined as a target incident angle and a target reflection angle, wherein the combination of the third incident angle and the third reflection angle belongs to a set of the target incident angle and the target reflection angle of the first to-be-detected region, and the The combination of the three incident angles and the third reflection angle does not belong to the target incident angle and the target of the second to-be-detected region A collection of standard reflection angles.
  14. 根据权利要求11所述的方法,其特征在于,当所述待检测目标上至少包括第一待检测区域和第二待检测区域时,所述方法还包括:The method according to claim 11, wherein when the object to be detected includes at least a first area to be detected and a second area to be detected, the method further includes:
    当需要检测所述第二待检测区域且不检测所述第一待检测区域时,先确定每个待检测区域所对应的目标入射角和目标反射角的集合,并将第四射角与第四反射角的组合确定为目标入射角和目标反射角,其中所述第四入射角与所述第四反射角的组合不属于第一待检测区域的目标入射角和目标反射角的集合,且所述第四入射角与第四反射角的组合属于第二待检测区域的目标入射角和目标反射角的集合。When it is required to detect the second to-be-detected area and not detect the first to-be-detected area, first determine a set of a target incident angle and a target reflection angle corresponding to each to-be-detected area, and the fourth angle of incidence and the The combination of the four reflection angles is determined as a target incident angle and a target reflection angle, wherein the combination of the fourth incident angle and the fourth reflection angle does not belong to a set of the target incident angle and the target reflection angle of the first to-be-detected region, and The combination of the fourth incident angle and the fourth reflection angle belongs to a set of a target incident angle and a target reflection angle of the second to-be-detected region.
  15. 一种视觉检测设备,其特征在于,所述视觉检测设备与图像采集设备相连,所述视觉检查设备包括存储器和处理器;A visual inspection device, wherein the visual inspection device is connected to an image acquisition device, the visual inspection device comprising a memory and a processor;
    所述存储器,用于存储操作指令以及相关数据;The memory is configured to store operation instructions and related data;
    所述处理器用于通过调用所述操作指令以实现如权利要求1至14中任一项所述的视觉检测参数的确定方法。The processor is configured to implement the method of determining a visual detection parameter according to any one of claims 1 to 14 by calling the operation instruction.
  16. 一种视觉检测系统,其特征在于,所述视觉检测系统包括:A visual inspection system, characterized in that the visual inspection system comprises:
    光源、图像采集设备以及视觉检测设备;a light source, an image acquisition device, and a visual inspection device;
    所述视觉检测设备用于执行如权利要求1至14任一项所述的视觉检测参数的确定方法确定待检测目标的待检测区域的至少一组目标入射角和目标反射角,并在所述光源以所述目标入射角照射所述待检测目标,且所述图像采集设备从所述目标反射角采集所述待检测目标的图像时,对所述图像进行检测识别。 The method for determining a visual detection parameter according to any one of claims 1 to 14 for determining at least one set of target incident angles and target reflection angles of a region to be detected of a target to be detected, and The light source illuminates the object to be detected at the target incident angle, and the image capturing device detects and recognizes the image when the image of the object to be detected is acquired from the target reflection angle.
PCT/CN2017/085289 2017-05-22 2017-05-22 Method for determining visual detection parameter, visual detection device and visual detection system WO2018213971A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201780091085.0A CN111213047A (en) 2017-05-22 2017-05-22 Method for determining visual inspection parameters, visual inspection equipment and visual inspection system
PCT/CN2017/085289 WO2018213971A1 (en) 2017-05-22 2017-05-22 Method for determining visual detection parameter, visual detection device and visual detection system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/085289 WO2018213971A1 (en) 2017-05-22 2017-05-22 Method for determining visual detection parameter, visual detection device and visual detection system

Publications (1)

Publication Number Publication Date
WO2018213971A1 true WO2018213971A1 (en) 2018-11-29

Family

ID=64395217

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/085289 WO2018213971A1 (en) 2017-05-22 2017-05-22 Method for determining visual detection parameter, visual detection device and visual detection system

Country Status (2)

Country Link
CN (1) CN111213047A (en)
WO (1) WO2018213971A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4754148A (en) * 1986-12-10 1988-06-28 Allegheny Ludlum Corporation Adjustably positioned apparatus maintaining a fixed perpendicular distance for evaluating a curved surface
CN1789928A (en) * 2005-12-07 2006-06-21 西安交通大学 Resin level detection method for ultraviolet curing quick forming process
CN101762563A (en) * 2008-12-24 2010-06-30 中国科学院半导体研究所 Refractive index sensing method for sensing by using change of total reflection angle
CN103399995A (en) * 2013-07-24 2013-11-20 哈尔滨工业大学深圳研究生院 Method for optimally designing machine vision LED light source
CN105447955A (en) * 2015-10-30 2016-03-30 湖南丰汇银佳科技股份有限公司 Photochromic ink-based bank note detection method

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5087822A (en) * 1990-06-22 1992-02-11 Alcan International Limited Illumination system with incident beams from near and far dark field for high speed surface inspection of rolled aluminum sheet
US5302836A (en) * 1992-07-16 1994-04-12 Bernard Siu High speed image acquisition for microelectronics inspection
US5835220A (en) * 1995-10-27 1998-11-10 Nkk Corporation Method and apparatus for detecting surface flaws
JP3312849B2 (en) * 1996-06-25 2002-08-12 松下電工株式会社 Defect detection method for object surface
US5889593A (en) * 1997-02-26 1999-03-30 Kla Instruments Corporation Optical system and method for angle-dependent reflection or transmission measurement
JP2000310600A (en) * 1999-04-28 2000-11-07 Yokohama Rubber Co Ltd:The Method and apparatus for detecting foreign matter of sheet material
US6788411B1 (en) * 1999-07-08 2004-09-07 Ppt Vision, Inc. Method and apparatus for adjusting illumination angle
US6473165B1 (en) * 2000-01-21 2002-10-29 Flex Products, Inc. Automated verification systems and methods for use with optical interference devices
JP2001264251A (en) * 2000-03-22 2001-09-26 Kurabo Ind Ltd Gloss measuring method
JP2002139451A (en) * 2000-08-04 2002-05-17 Nikon Corp Surface inspection apparatus
JP2005130268A (en) * 2003-10-24 2005-05-19 Nikon Corp Image extraction device
JP2006023183A (en) * 2004-07-08 2006-01-26 Sharp Corp Device and method for measuring level difference, computer program for controlling the device and computer readable recording medium recorded with the same
US7483133B2 (en) * 2004-12-09 2009-01-27 Kla-Tencor Technologies Corporation. Multiple angle of incidence spectroscopic scatterometer system
CN106645161B (en) * 2016-09-27 2020-02-04 凌云光技术集团有限责任公司 Surface defect detection system and method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4754148A (en) * 1986-12-10 1988-06-28 Allegheny Ludlum Corporation Adjustably positioned apparatus maintaining a fixed perpendicular distance for evaluating a curved surface
CN1789928A (en) * 2005-12-07 2006-06-21 西安交通大学 Resin level detection method for ultraviolet curing quick forming process
CN101762563A (en) * 2008-12-24 2010-06-30 中国科学院半导体研究所 Refractive index sensing method for sensing by using change of total reflection angle
CN103399995A (en) * 2013-07-24 2013-11-20 哈尔滨工业大学深圳研究生院 Method for optimally designing machine vision LED light source
CN105447955A (en) * 2015-10-30 2016-03-30 湖南丰汇银佳科技股份有限公司 Photochromic ink-based bank note detection method

Also Published As

Publication number Publication date
CN111213047A (en) 2020-05-29

Similar Documents

Publication Publication Date Title
TWI618161B (en) Methods, systems and non-transitory computer-readable medium for detecting repeating defects on semiconductor wafers using design data
US9053527B2 (en) Detecting defects on a wafer
US8831334B2 (en) Segmentation for wafer inspection
US9704234B2 (en) Adaptive local threshold and color filtering
US6687396B1 (en) Optical member inspection apparatus, image-processing apparatus, image-processing method, and computer readable medium
US9430080B2 (en) Touch positioning method, touch screen, touch system, and display
CN109900719A (en) A kind of visible detection method of blade surface knife mark
CN106030283B (en) For examining the apparatus and method of semiconductor packages
US10074551B2 (en) Position detection apparatus, position detection method, information processing program, and storage medium
JP2022507678A (en) Optimization of setup stage in automated visual inspection process
TW201738985A (en) System, method and computer program product for correcting a difference image generated from a comparison of target and reference dies
JP2002098650A (en) Transparent body detection method and system thereof
US9082201B2 (en) Surface contamination determination system
CN114674830A (en) Bottle cap flaw detection module on high-speed production line
TWI558999B (en) Defect inspection method and apparatus thereof
WO2020132961A1 (en) Appearance defect inspection method and device
WO2018213971A1 (en) Method for determining visual detection parameter, visual detection device and visual detection system
CN117030612A (en) Household film element surface defect detection system and detection method based on machine vision
JP2019190911A (en) Inspection device
TWI753424B (en) Appearance inspection management system, appearance inspection management device, appearance inspection management method, and program
Shreya et al. Design of machine vision system for high speed manufacturing environments
CN113567464A (en) Transparent medium stain position detection method and device
WO2020178815A2 (en) System and method for adjustable production line inspection
US11816827B2 (en) User interface device for autonomous machine vision inspection
JP2022056389A (en) Inspection device, inspection method, and inspection program

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17910764

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17910764

Country of ref document: EP

Kind code of ref document: A1