CN112304959B - Light source control device and method for detection equipment and detection equipment - Google Patents

Light source control device and method for detection equipment and detection equipment Download PDF

Info

Publication number
CN112304959B
CN112304959B CN202011573155.6A CN202011573155A CN112304959B CN 112304959 B CN112304959 B CN 112304959B CN 202011573155 A CN202011573155 A CN 202011573155A CN 112304959 B CN112304959 B CN 112304959B
Authority
CN
China
Prior art keywords
light source
detection
parameter
sub
coordinate parameter
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN202011573155.6A
Other languages
Chinese (zh)
Other versions
CN112304959A (en
Inventor
朱林林
管凌乾
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vega CNC Technology Suzhou Co Ltd
Original Assignee
Vega CNC Technology Suzhou Co Ltd
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 Vega CNC Technology Suzhou Co Ltd filed Critical Vega CNC Technology Suzhou Co Ltd
Priority to CN202011573155.6A priority Critical patent/CN112304959B/en
Publication of CN112304959A publication Critical patent/CN112304959A/en
Application granted granted Critical
Publication of CN112304959B publication Critical patent/CN112304959B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • G01N21/84Systems specially adapted for particular applications
    • G01N21/88Investigating the presence of flaws or contamination
    • G01N21/8806Specially adapted optical and illumination features
    • 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
    • G01N21/84Systems specially adapted for particular applications
    • G01N21/88Investigating the presence of flaws or contamination
    • G01N21/8806Specially adapted optical and illumination features
    • G01N2021/8835Adjustable illumination, e.g. software adjustable screen

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)

Abstract

The invention discloses a light source control device and method for detection equipment and the detection equipment, wherein the detection equipment comprises a detection light source and a detection camera, the detection light source comprises at least two detection sub-light sources which are arranged in sequence along a scanning direction, and the method comprises the following steps: acquiring scanning parameters of a detection camera and intrinsic parameters of a detection light source, wherein the scanning parameters comprise scanning width parameters of the detection camera along a scanning direction, and the intrinsic parameters comprise initial coordinate parameters of the detection light source and length parameters of the detection sub-light source along the scanning direction; acquiring position parameters of a detection camera, wherein the position parameters comprise real-time coordinate parameters of a central point of the detection camera along a scanning direction; and controlling the detection sub-light source to be turned on or off according to the scanning width parameter, the initial coordinate parameter, the length parameter and the real-time coordinate parameter. The invention effectively reduces the heat productivity of the light source in the detection process and the influence generated by the heat productivity of the light source by controlling the subsection lighting of the detection light source, and is beneficial to improving the detection stability and the detection precision.

Description

Light source control device and method for detection equipment and detection equipment
Technical Field
The invention relates to the technical field of optical detection, in particular to a light source control device and method for detection equipment and the detection equipment.
Background
Automated Optical Inspection (AOI) is a device that detects common defects encountered in solder production based on Optical principles.
When the automatic detection operation is carried out, the automatic optical detection equipment turns on a detection light source, automatically scans a workpiece to be detected (such as a PCB) through a detection camera, acquires an image, detects defects on the workpiece to be detected through image processing, and displays/marks the defects through a display or an automatic mark.
The detection light source in the existing automatic optical detection equipment is usually set as a bar light source, and the light source controller controls the on and off of the detection light source by adopting a single channel, namely, the light source controller controls the whole bar light source to be completely turned on to emit light when the workpiece is positioned, scanned and detected; after finishing scanning and detecting, the light source controller controls the whole strip of bar-shaped light source to be closed, and the problem that the light source is opened all the time can generate heat when detecting, and the heat generated by the light source indirectly heats a workpiece to be detected, so that the workpiece to be detected is affected by expansion with heat and contraction with cold to expand, the detection precision of the workpiece to be detected is affected, when the same workpiece to be detected is repeatedly detected for many times, the heat of the light source is large, and the influence on the detection precision of the workpiece to be detected is more prominent.
Disclosure of Invention
The invention provides a light source control device for detection equipment, which can reduce the heat productivity of a light source in the detection process, solve the problem that the heat productivity of the light source influences the detection precision and is beneficial to improving the stability of optical detection.
In a first aspect, an embodiment of the present invention provides a light source control method for a detection device, where the detection device includes a detection light source and a detection camera, the detection light source includes at least two detection sub-light sources, and the at least two detection sub-light sources are sequentially arranged along a scanning direction, and the control method includes the following steps: acquiring scanning parameters of the detection camera and intrinsic parameters of the detection light source, wherein the scanning parameters comprise scanning width parameters of the detection camera along a scanning direction, and the intrinsic parameters comprise initial coordinate parameters of the detection light source and length parameters of the detection sub-light source along the scanning direction; acquiring position parameters of the detection camera, wherein the position parameters comprise real-time coordinate parameters of a central point of the detection camera along a scanning direction; and controlling the detection sub-light source to be turned on or off according to the scanning width parameter, the initial coordinate parameter, the length parameter and the real-time coordinate parameter.
Optionally, the controlling the detection sub-light source to be turned on or off according to the scan width parameter, the start coordinate parameter, the length parameter, and the real-time coordinate parameter includes the following steps: determining a channel number of a detection sub-light source corresponding to the central point of the current detection camera according to the initial coordinate parameter, the length parameter and the real-time coordinate parameter; acquiring light source interval coordinate parameters corresponding to the channel numbers, wherein the light source interval coordinate parameters comprise sub-light source starting point coordinate parameters and sub-light source end point coordinate parameters of the detection sub-light sources corresponding to the channel numbers along the scanning direction; determining the current sampling interval coordinate parameter of the detection camera according to the real-time coordinate parameter and the scanning width parameter, wherein the sampling interval coordinate parameter comprises a sampling start point coordinate parameter and a sampling end point coordinate parameter of a sampling interval along the scanning direction; determining a target number of a detection sub-light source which needs to be lightened currently according to the light source interval coordinate parameter and the sampling interval coordinate parameter, wherein the target number corresponds to the detection sub-light source one by one; and controlling the corresponding detection sub-light sources to be lightened according to the target numbers.
Optionally, the target number includes one or more combinations of the channel number, the channel number plus one, and the channel number minus one.
Optionally, the determining, according to the light source interval coordinate parameter and the sampling interval coordinate parameter, a target number of a detection sub-light source that needs to be currently turned on includes the following steps: judging whether the sampling starting point coordinate parameter is larger than the starting point coordinate parameter of the sub-light source; if the sampling starting point coordinate parameter is larger than the starting point coordinate parameter of the sub-light source, determining that the target number is the channel number; and if the sampling starting point coordinate parameter is less than or equal to the starting point coordinate parameter of the sub-light source, determining that the target number comprises the channel number and subtracting one from the channel number.
Optionally, the determining, according to the light source interval coordinate parameter and the sampling interval coordinate parameter, a target number of a detection sub-light source that needs to be currently turned on further includes the following steps: judging whether the sampling end point coordinate parameter is smaller than the sub-light source end point coordinate parameter or not; if the sampling end point coordinate parameter is smaller than the sub-light source end point coordinate parameter, determining that the target number is the channel number; and if the sampling end point coordinate parameter is greater than or equal to the sub-light source end point coordinate parameter, determining that the target number comprises the channel number and the channel number plus one.
Optionally, the light source control method for the detection device further includes the following steps: judging whether the detection is finished or not; if the detection is finished, controlling all the detection sub-light sources to be turned off; and if the detection is not finished, returning to the step of acquiring the position parameters of the detection camera.
Optionally, the detection sub-light source includes a color-adjustable LED lamp, and the light source control method further includes the following steps: acquiring the actual background color of a workpiece to be detected; and controlling the detection sub-light source to be lightened according to the actual background color of the workpiece to be detected.
Optionally, the controlling the detection sub-light source to be turned on according to the background color of the workpiece to be detected includes the following steps: establishing a standard database based on the background color of the workpiece and the detection light color corresponding to the optimal sampling effect; matching the actual background color with the standard database to determine the current color of the matched light source; and controlling the detection sub-light source to be lightened according to the color of the matched light source.
In a second aspect, an embodiment of the present invention further provides a light source control apparatus for a detection device, where the detection device includes a detection light source and a detection camera, the detection light source includes at least two detection sub-light sources, and the at least two detection sub-light sources are sequentially arranged along a scanning direction, and the light source control apparatus includes: a parameter obtaining unit, configured to obtain a scanning parameter of the detection camera and an intrinsic parameter of the detection light source, where the scanning parameter includes a scanning width parameter of the detection camera along a scanning direction, and the intrinsic parameter includes a start coordinate parameter of the detection light source and a length parameter of the detection sub-light source along the scanning direction; the positioning unit is used for detecting position parameters of the camera, and the position parameters comprise real-time coordinate parameters of the central point of the camera along the scanning direction; and the control unit is used for controlling the detection sub-light source to be turned on or off according to the scanning width parameter, the initial coordinate parameter, the length parameter and the real-time coordinate parameter.
In a third aspect, an embodiment of the present invention further provides a detection apparatus, including: the device comprises a detection camera, a motion platform, a detection light source and the light source control device, wherein the detection light source comprises at least two detection sub-light sources which are linearly arranged.
According to the light source control device and the detection device for the detection device, which are provided by the embodiment of the invention, the detection light source and the detection camera are arranged, and the at least one detection sub-light source is controlled to be turned on or turned off by acquiring the scanning parameters of the detection camera, the intrinsic parameters of the detection light source and the real-time position parameters of the detection camera and according to the scanning parameters of the detection camera, the intrinsic parameters of the detection light source and the real-time position parameters of the detection camera, so that the number of the detection light sources to be turned on is effectively reduced, the heat productivity of the light sources in the detection process is reduced, the problem that the detection precision is influenced by the heat of the light sources is solved.
Drawings
Fig. 1 is a flowchart of a light source control method for a detection device according to an embodiment of the present invention;
fig. 2 is a flowchart of another light source control method for a detection apparatus according to an embodiment of the present invention;
fig. 3 is a flowchart of a light source control method for a detection apparatus according to an embodiment of the present invention;
fig. 4 is a flowchart of a light source control method for a detection apparatus according to an embodiment of the present invention;
fig. 5 is a flowchart of a light source control method for a detection apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a light source control device for a detection apparatus according to a second embodiment of the present invention;
fig. 7 is a schematic diagram of an operating principle of a light source control device for a detection apparatus according to a second embodiment of the present invention;
fig. 8 is a schematic structural diagram of a detection apparatus according to a third embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a light source control method for an inspection apparatus according to an embodiment of the present invention, which is applicable to an automatic optical inspection apparatus, the inspection light source of the automatic optical inspection apparatus is a segmented multi-channel light source, and the method can be executed by software and hardware devices configured with specific automatic optical inspection.
In this embodiment, the detection device includes a detection light source, a detection camera, and a motion platform, where the detection light source includes at least two detection sub-light sources, and the at least two detection sub-light sources are sequentially arranged along the scanning direction X.
The detection camera can be a line scanning camera, the detection light source can be a segmented multi-channel light source, the light source of the same driving channel is defined as a detection sub-light source, each detection sub-light source corresponds to one driving channel one to one, the detection sub-light sources can be controlled to be turned on or turned off through the driving channels, the detection sub-light sources can be set to be LED lamp belts with the same length, the light emitting color of the LED lamp is not limited, the detection sub-light sources can be arranged in a strip shape, and the extending direction of the strip-shaped detection light sources is parallel to the scanning direction X of the detection camera.
It should be noted that, the driving channels of the detection light sources may adopt the same or different circuit structures, and this is not a limitation.
In this embodiment, a workpiece to be detected is placed on the motion platform, and in the process of automatically detecting the workpiece to be detected, the detection camera is controlled to continuously scan the workpiece to be detected row by row, so as to collect image data of the workpiece to be detected, and at the same time, the detection light source is controlled to start from the detection sub-light source at the initial position, and sequentially light up along the scanning direction X to irradiate the workpiece to be detected on the motion platform, and the scanning area of the detection camera falls into the irradiation area of the detection light source.
As shown in fig. 1, the light source control method for the detection device specifically includes the following steps:
step S1: scanning parameters of the detection camera and intrinsic parameters of the detection light source are obtained, wherein the scanning parameters comprise a scanning width parameter W1 of the detection camera along the scanning direction X, and the intrinsic parameters comprise a starting coordinate parameter P1 of the detection light source and a length parameter L1 of the detection sub-light source along the scanning direction X.
The scanning camera is provided with a wire-scanning telecentric lens, the scanning parameters of the detection camera are used for representing the performance index of the shooting range of the camera, the scanning parameters of the detection camera comprise a scanning width parameter W1 along the scanning direction X, and in the detection process, the detection camera can be controlled to continuously scan along the scanning direction X along the stepping size slightly smaller than the scanning width parameter W1, so that the image data of the workpiece to be detected are acquired.
The intrinsic parameters of the detection light source are used for representing the structural parameters and the size of the detection light source, the intrinsic parameters of the detection light source comprise the length parameter L1 of each detection sub light source, and the length parameter L1 is defined as the size of the detection sub light sources along the scanning direction X as the detection sub light sources are sequentially arranged along the scanning direction X.
Step S2: position parameters of the detection camera are acquired, including real-time coordinate parameters P2 of the center point of the detection camera along the scanning direction X.
Step S3: and controlling the detection sub-light source to be turned on or off according to the scanning width parameter W1, the starting coordinate parameter P1, the length parameter L1 and the real-time coordinate parameter P2.
Specifically, the inspection camera performs continuous scanning along the scanning direction X, and it can be determined that the projection of the center point of the current inspection camera falls within the irradiation range of the fourth inspection sub-light source according to the starting coordinate parameter P1, the length parameter L1 and the real-time coordinate parameter P2; when the detection camera moves to a specific position, the workpiece to be detected in the area with the size of W1 can be scanned in the scanning direction X, so that the acquisition area of the current detection camera can be determined according to the real-time coordinate parameter P2 and the scanning width parameter W1, the detection sub-light source right opposite to the acquisition area of the current detection camera is controlled to be turned on, the detection sub-light source outside the acquisition area of the current detection camera is controlled to be turned off, and the segmented driving and turning-on of the detection light source are realized.
According to the light source control method for the detection equipment, provided by the embodiment of the invention, the scanning width parameter W1 of the detection camera, the initial coordinate parameter P1 of the detection light source, the length parameter L1 of the detection sub-light source along the scanning direction X and the real-time coordinate parameter P2 of the central point of the detection camera are obtained, and one or more detection sub-light sources are controlled to be turned on or off according to the parameters, so that the segmented lighting of the detection light source is realized, the heat productivity of the light source in the detection process can be reduced, the problem that the detection precision is influenced by the heat of the light source is solved, the stability of optical detection is favorably improved, and the detection precision is improved.
Fig. 2 is a flowchart of another light source control method for a detection apparatus according to an embodiment of the present invention.
Optionally, as shown in fig. 2, the light source control method for the detection apparatus further includes the following steps:
step S4: and judging whether the detection is finished.
If the detection is completed, go to step S5; otherwise, the execution returns to step S2.
Step S5: and controlling all the detection sub-light sources to be turned off.
In this embodiment, the detection device controls the detection camera to sequentially detect each row of the workpiece to be detected along the scanning direction, after the detection of each row is performed, the detection device controls the axis of the detection camera to move to the starting position of the next row, and after the detection of the whole workpiece to be detected is completed, the detection is finished.
Specifically, after each row of detection is finished, the execution progress of the detection configuration file is obtained, whether the detection operation of the whole workpiece to be detected is finished or not is judged according to the execution progress of the configuration file, and if all detection operations are finished, all driving channels are sent with turn-off control signals to control all detection sub-light sources to be turned off; if not, the inspection device controls the axis of the inspection camera to move to the starting position of the next row, and returns to the above steps S2 and S3, obtains the real-time coordinate parameter P2 of the inspection camera, and controls the corresponding inspection sub-light source to light according to the inspection result.
Fig. 3 is a flowchart of a light source control method for a detection apparatus according to an embodiment of the present invention.
Optionally, as shown in fig. 3, determining a target number of a detection sub-light source that needs to be currently turned on according to the scan width parameter, the start coordinate parameter, the length parameter, and the real-time coordinate parameter, includes the following steps:
step S301: and determining a channel number C1 of the detection sub-light source corresponding to the central point of the current detection camera according to the starting coordinate parameter P1, the length parameter L1 and the real-time coordinate parameter P2, wherein the real-time coordinate parameter P2 is more than or equal to the starting coordinate parameter P1.
The start coordinate parameter P1 is a coordinate parameter of the start point of the first detecting sub-illuminant along the scanning direction X, the first detecting sub-illuminant is disposed at the start position of the detecting illuminant, and for the same detecting device, the start coordinate parameter P1 and the length parameter L1 are kept unchanged, and the start coordinate parameter P1 and the length parameter L1 of the detecting illuminant can be stored in the control unit for subsequent calculation and calling. The channel number C1 of the detection sub-light source is the number of the detection sub-light source where the projection of the center point of the detection camera on the plane where the detection light source is located, the number of the detection sub-light source is the same as the number of the driving channel, and the channel number C1 may be a positive integer greater than or equal to 1.
In this embodiment, the channel number of the first detecting sub-light source and the driving channel thereof is 1, the channel number of the second detecting sub-light source and the driving channel thereof is 2, the coordinate parameter of the first detecting sub-light source is smaller than the coordinate parameter of the second detecting sub-light source, and so on, and the detecting sub-light sources are sequentially arranged along the scanning direction X.
Specifically, the channel number C1 can be calculated by substituting the start coordinate parameter P1, the length parameter L1, and the real-time coordinate parameter P2 into formula one as follows:
Figure DEST_PATH_IMAGE001
(formula one)
Wherein ⌈ ⌉ denotes an up-integer sign, e.g. if
Figure 885063DEST_PATH_IMAGE002
=2.3, the channel number C1 is equal to 3.
Further, the driving channel corresponding to the control channel number C1 is turned on, and the detection sub-light source corresponding to the driving channel number C1 is turned on.
Step S302: and acquiring light source interval coordinate parameters corresponding to the channel number C1, wherein the light source interval coordinate parameters comprise a sub-light source starting point coordinate parameter P3 and a sub-light source end point coordinate parameter P4 of the detection sub-light source corresponding to the channel number along the scanning direction X.
The light source interval coordinate parameter refers to the coordinate parameter of the detection sub-light source corresponding to the channel number C1.
Specifically, the sub-illuminant starting point coordinate parameter P3 may be calculated by substituting the starting coordinate parameter P1, the length parameter L1, and the channel number C1 determined at step S301 into formula two shown below; calculating a sub-illuminant end-point coordinate parameter P4 by substituting the start coordinate parameter P1, the length parameter L1, and the channel number C1 determined at step S301 into formula three as shown below:
Figure DEST_PATH_IMAGE003
(formula two)
Wherein, the channel number C1 is a positive integer greater than or equal to 1.
Figure 336904DEST_PATH_IMAGE004
(formula three)
Wherein, the channel number C1 is a positive integer greater than or equal to 1.
When the channel number C1 is defined as a positive integer equal to or greater than 0, the formula one may be converted to the formula four as shown below, the formula two may be converted to the formula five as shown below, and the formula three may be converted to the formula six as shown below:
Figure DEST_PATH_IMAGE005
(formula four)
Wherein ⌊ ⌋ denotes a sign of an integer down, e.g. if
Figure 70462DEST_PATH_IMAGE002
=2.3, the channel number C1 is equal to 2.
Figure 88096DEST_PATH_IMAGE006
(formula five)
Wherein, the channel number C1 is a positive integer not less than 0.
Figure DEST_PATH_IMAGE007
(formula six)
Wherein, the channel number C1 is a positive integer not less than 0.
The sub-illuminant starting point coordinate parameter P3 and the sub-illuminant ending point coordinate parameter P4 obtained by the calculation of the formula four to the formula six are the same as the sub-illuminant starting point coordinate parameter P3 and the sub-illuminant ending point coordinate parameter P4 obtained by the calculation of the formula one to the formula three, and are not described again here.
Step S303: and determining the coordinate parameters of the sampling interval of the current detection camera according to the real-time coordinate parameter P2 and the scanning width parameter W1, wherein the coordinate parameters of the sampling interval comprise a sampling start coordinate parameter P5 and a sampling end coordinate parameter P6 of the sampling interval along the scanning direction X.
The sampling interval coordinate parameter refers to a coordinate parameter corresponding to a scanning area of a lens of the detection camera.
Specifically, the sampling start point coordinate parameter P5 may be calculated by substituting the real-time coordinate parameter P2 and the runlength parameter W1 into formula seven shown below; the sampled end coordinate parameter P6 may be calculated by substituting the real-time coordinate parameter P2 and the runlength parameter W1 into equation eight as shown below:
Figure 582662DEST_PATH_IMAGE008
(formula seven)
Figure DEST_PATH_IMAGE009
(formula eight)
The sampling start coordinate parameter P5 is greater than or equal to the start coordinate parameter P1.
Step S304: and determining the target number C2 of the detection sub-light source which needs to be lightened currently according to the light source interval coordinate parameters and the sampling interval coordinate parameters, wherein the target number C2 corresponds to the detection sub-light sources one to one.
The target number C2 may be a positive integer greater than or equal to 1.
Optionally, the target number C2 includes one or more combinations of the channel number C1, the channel number plus one (C1 + 1), and the channel number minus one (C1-1).
Step S305: and controlling the corresponding detection sub-light source to be lightened according to the target number C2.
In the embodiment, in the detection process, the scanning area of the detection camera is controlled to fall into the irradiation area of the detection light source, so that effective detection light irradiation is ensured to exist in the scanning area of the detection camera, and the improvement of the image quality acquired by the detection camera is facilitated.
Specifically, the channel number C1 may be determined according to the projection position of the center point of the current inspection camera on the inspection light source, and the sub-light source starting point coordinate parameter P3 and the sub-light source end point coordinate parameter P4 of the inspection sub-light source corresponding to the channel number C1 are compared with the sampling starting point coordinate parameter P5 and the sampling end point coordinate parameter P6 of the current inspection camera, so as to determine whether all the scanning areas of the inspection camera fall into the irradiation area of the inspection sub-light source corresponding to the channel number C1. If all the scanning areas of the current detection camera fall into the irradiation areas of the detection sub-light sources corresponding to the channel number C1, determining that the target number C2 is the channel number C1, and controlling the detection sub-light sources corresponding to the channel number C1 to be turned on; if the scanning area of the current inspection camera partially falls into the illumination area of the inspection sub-light source corresponding to the channel number C1, the inspection sub-light sources adjacent to the inspection sub-light source corresponding to the channel number C1 are controlled to be simultaneously turned on, for example, the inspection sub-light sources corresponding to the channel number C1 and the channel number plus one (C1 + 1) can be controlled to be simultaneously turned on, or the inspection sub-light sources corresponding to the channel number C1 and the channel number minus one (C1-1) can be controlled to be simultaneously turned on.
In this embodiment, the length parameter L1 of the detection sub-light source is greater than the scan width parameter W1 of the detection camera, and of course, the length parameter L1 of the detection sub-light source may be less than or equal to the scan width parameter W1 of the detection camera, in this case, a plurality of detection sub-light sources can be controlled to be continuously lighted at the same time according to actual needs, and the number of lighted detection sub-light sources can be adjusted according to the specific sizes of the length parameter L1 and the scan width parameter W1, which is not limited to this.
Fig. 4 is a flowchart of a light source control method for a detection device according to an embodiment of the present invention, where this embodiment is used to determine a target number corresponding to a detection sub-light source that needs to be turned on currently, and turn on a light source driving channel corresponding to the target number, so as to control the corresponding detection sub-light source to be turned on.
Optionally, as shown in fig. 4, determining a target number of a detection sub-light source that needs to be currently turned on according to the light source interval coordinate parameter and the sampling interval coordinate parameter includes the following steps:
step S401: and judging whether the sampling start coordinate parameter P5 is greater than the sub-illuminant start coordinate parameter P3.
In this embodiment, the sampling start coordinate parameter P5 and the sub-illuminant start coordinate parameter P3 can be obtained through the steps S301 to S303, and if the sampling start coordinate parameter P5 is greater than the sub-illuminant start coordinate parameter P3, it can be determined that all the scanning areas of the current inspection camera fall into the irradiation area of the inspection sub-illuminant corresponding to the channel number C1, and then step S402 is executed; otherwise, it is determined that a part of the scanning area of the current detection camera falls into the irradiation area of the detection sub-light source corresponding to the channel number C1, and the other part falls into the irradiation area of the detection sub-light source corresponding to the channel number minus one (C1-1), and then step S403 is performed.
Step S402: the object number C2 is determined to be the channel number C1.
Step S403: the determined target number C2 includes the channel number C1 and the channel number minus one (C1-1).
It should be noted that, in this embodiment, it may also be arranged that when the sampling start coordinate parameter P5 is equal to the sub-illuminant start coordinate parameter P3, the target number C2 is determined to be the channel number C1, and the detection sub-illuminant corresponding to the channel number C1 is controlled to be turned on.
Optionally, as shown in fig. 4, determining a target number of a detection sub-light source that needs to be currently turned on according to the light source interval coordinate parameter and the sampling interval coordinate parameter, further includes the following steps:
step S404: and judging whether the sampling end coordinate parameter P6 is smaller than the sub-illuminant end coordinate parameter P4.
In this embodiment, the sampling end point coordinate parameter P6 and the sub-illuminant end point coordinate parameter P4 can be obtained through the steps S301 to S303, and if the sampling end point coordinate parameter P6 is smaller than the sub-illuminant end point coordinate parameter P4, it can be determined that all the scanning areas of the current detection camera fall into the irradiation area of the detection sub-illuminant corresponding to the channel number C1, and then step S405 is executed; otherwise, it is determined that a part of the scanning area of the current detection camera falls into the irradiation area of the detection sub-light source corresponding to the channel number C1, and the other part falls into the irradiation area of the detection sub-light source corresponding to the channel number plus one (C1 + 1), and then step S406 is performed.
Step S405: the object number C2 is determined to be the channel number C1.
Step S406: the target number C2 is determined to be the channel number C1 and the channel number incremented by one (C1 + 1).
It should be noted that, in this embodiment, it may also be arranged that when the sampling end coordinate parameter P6 is equal to the sub-illuminant end coordinate parameter P4, the target number C2 is determined to be the channel number C1, and the detection sub-illuminant corresponding to the channel number C1 is controlled to be turned on.
Optionally, the detection sub-light source includes a color-adjustable LED lamp, and the light source control method further includes the following steps: acquiring the actual background color of a workpiece to be detected; and controlling the detection sub-light source to be lightened according to the actual background color of the workpiece to be detected.
In this embodiment, the detection sub-light source includes an LED lamp emitting at least one color, and the LED lamp of the detection sub-light source is adjusted to emit detection light of a corresponding color according to the background color of the workpiece to be detected, which is beneficial to improving the detection effect and improving the detection precision.
Fig. 5 is a flowchart of a light source control method for a detection apparatus according to an embodiment of the present invention.
Optionally, the light source control method further includes the steps of:
step S501: and acquiring the actual background color of the workpiece to be detected.
In this embodiment, the actual background color of the current workpiece to be measured can be obtained by analyzing the image data, and the actual background color can be the color of the bottom plate of the workpiece to be measured.
Step S502: and establishing a standard database based on the background color of the workpiece and the detection light color corresponding to the optimal sampling effect.
The color of the detection light corresponding to the optimal sampling effect means that the color of the background of the workpiece is greatly different from the color of the welding defect, the processing defect or other defect areas of the workpiece under the irradiation of the detection light.
In this embodiment, the standard database may be a data list of the background color of the workpiece and the color of the detected light, and each background color of the workpiece and the color of the detected light in the standard database may be in one-to-one correspondence, and the standard database may be stored in the control unit in advance.
Step S503: and matching the actual background color with a standard database to determine the current color of the matched light source.
Step S504: and controlling the detection sub-light source to be lightened according to the color of the matched light source.
The method comprises the steps of obtaining a corresponding relation between a background color of a workpiece and a detection light color corresponding to the optimal sampling effect according to big data testing, establishing a standard database based on the corresponding relation, comparing an actual background color of the current workpiece to be detected with a workpiece background color in the standard database, matching a corresponding matching light source color, controlling an LED lamp in a detection sub-light source right opposite to a collection area of a current detection camera to be turned on, emitting a matching light source color, and controlling other LED lamps to be turned off.
It should be noted that, in order to ensure the tested illuminance is uniform, each LED lamp can be configured to emit light of different colors independently, and typically, the detection sub-light sources can be configured to emit three primary colors of red, green and blue, and the combination of the three primary colors can emit different colors.
Of course, the detection light color of the detection sub-light source may also be set to be uniform visible white light, which is not limited in this respect.
Example two
Based on the above embodiments, the second embodiment of the present invention provides a light source control apparatus for a detection device. Fig. 6 is a schematic structural diagram of a light source control device for a detection apparatus according to a second embodiment of the present invention. Fig. 7 is a schematic diagram illustrating an operation principle of a light source control apparatus for a detection device according to a second embodiment of the present invention.
As shown in fig. 7, the inspection apparatus includes an inspection light source 10 and an inspection camera 20, the inspection light source 10 includes at least two inspection sub-light sources, and the at least two inspection sub-light sources are sequentially arranged along a scanning direction, as shown in fig. 6, a light source control device 100 includes: a parameter obtaining unit 101, configured to obtain scanning parameters of the detection camera and intrinsic parameters of the detection light source, where the scanning parameters include a scanning width parameter W1 of the detection camera along a scanning direction, and the intrinsic parameters include a start coordinate parameter P1 of the detection light source and a length parameter L1 of the detection sub-light source along the scanning direction; a positioning unit 102 for detecting a position parameter of the camera, the position parameter including a real-time coordinate parameter P2 of a center point of the camera along a scanning direction; and the control unit 103 is used for controlling the detection sub-light sources to be turned on or off according to the scanning width parameter, the initial coordinate parameter, the length parameter and the real-time coordinate parameter.
Optionally, the light source control apparatus 100 further includes: and the light source driving unit 104, the light source driving unit 104 includes at least two light source driving subunits, the light source driving subunits are electrically connected with the detection sub-light sources in a one-to-one correspondence manner, the light source driving subunits are also electrically connected with the control unit 103, and the light source driving subunits are used for driving the corresponding detection sub-light sources to be turned on or turned off according to the control signal output by the control unit 103.
Optionally, the control unit 103 includes a calculating unit, which stores a preset calculation formula, the calculating unit determines a channel number C1 of the detecting sub-illuminant corresponding to the center point of the current detecting camera 20 according to a start coordinate parameter P1, a length parameter L1 and a real-time coordinate parameter P2, and calculates a illuminant interval coordinate parameter corresponding to the channel number C1, the illuminant interval coordinate parameter includes a sub-illuminant start coordinate parameter P3 and a sub-illuminant end coordinate parameter P4 of the detecting sub-illuminant along the scanning direction corresponding to the channel number, determines a sampling interval coordinate parameter of the current detecting camera according to the real-time coordinate parameter P2 and a scanning width parameter W1, the sampling interval coordinate parameter includes a sampling start coordinate parameter P5 and a sampling end coordinate parameter P6 of the sampling interval along the scanning direction, and determines a target number C2 of the detecting sub-illuminant which needs to be lighted currently according to the illuminant interval coordinate parameter and the sampling interval coordinate parameter, the target number C2 corresponds to the detection sub-light sources one by one; the control unit 103 is further configured to control the corresponding detection sub-light source to be turned on according to the target number C2.
Optionally, the target number includes one or more combinations of a channel number, a channel number plus one, and a channel number minus one.
Optionally, the control unit 103 further includes a comparative analysis unit configured to determine whether the sampling start coordinate parameter P5 is greater than the sub-illuminant start coordinate parameter P3, and determine that the target number C2 is the channel number C1 when the sampling start coordinate parameter P5 is greater than the sub-illuminant start coordinate parameter P3; alternatively, when the sampling start coordinate parameter P5 is less than or equal to the sub-illuminant start coordinate parameter P3, the determination target number C2 includes the channel number C1 and the channel number minus one (C1-1).
Optionally, the comparison and analysis unit is further configured to determine whether the sampling end point coordinate parameter P6 is smaller than the sub-illuminant end point coordinate parameter P4, and determine that the target number C2 is the channel number C1 when the sampling end point coordinate parameter is smaller than the sub-illuminant end point coordinate parameter; alternatively, when the sampling end coordinate parameter P6 is greater than or equal to the sub-illuminant end coordinate parameter P4, the determined target number C2 includes the channel number C1 and the channel number plus one (C1 + 1).
Optionally, the control unit 103 is further configured to determine whether the detection is completed, and control all of the detection sub-light sources to be turned off when the detection is completed.
Optionally, the detecting sub-light source includes a color-adjustable LED lamp, the light source control device 100 further includes a background color analyzing unit, the background color analyzing unit is configured to obtain an actual background color of the workpiece to be detected, and the control unit 103 is further configured to control the detecting sub-light source to be turned on according to the actual background color of the workpiece to be detected.
Optionally, the control unit 103 further includes a storage unit, where the storage unit is configured to store a standard database established based on the background color of the workpiece and the detected light color corresponding to the optimal sampling effect; the control unit 103 is further configured to match the actual background color with the standard database, determine a current color of the matched light source, and control the detection sub-light to be turned on according to the color of the matched light source.
According to the light source control device provided by the embodiment of the invention, the scanning parameters of the detection camera and the intrinsic parameters of the detection light source are obtained through the parameter obtaining unit 101, the real-time position parameters of the camera are detected through the positioning unit 102, and the control unit 103 controls at least one detection sub-light source to be turned on or turned off according to the scanning parameters of the detection camera, the intrinsic parameters of the detection light source and the real-time position parameters of the detection camera, so that the number of the detection light sources to be turned on is effectively reduced, the heat productivity of the light source in the detection process is reduced, the problem that the detection precision is influenced by the heat of the light source is solved, the stability of optical detection.
EXAMPLE III
Based on the first embodiment, the third embodiment of the invention provides a detection device. Fig. 8 is a schematic structural diagram of a detection apparatus according to a third embodiment of the present invention. As shown in fig. 8, the detection apparatus 200 includes: the detection light source 10, the detection camera 20, the motion platform 30 and the light source control device (not shown in fig. 7), wherein the detection light source 10 includes at least two detection sub-light sources, and the at least two detection sub-light sources are linearly arranged.
In the embodiment, the light source control device is electrically connected to the detection light source 10 and the detection camera 20, respectively, and the light source control device can receive the position parameters of the detection camera 20 in real time and control the detection sub-light sources in the detection light source 10 to be turned on in segments according to the position parameters of the detection camera.
In the present embodiment, the control unit of the light source control device may be integrated with the control module of the detection apparatus 200 or may be provided independently, which is not limited thereto.
To sum up, the detection apparatus provided by the embodiment of the present invention is provided with the detection light source, the detection camera, and the light source control device, and controls at least one detection sub-light source to be turned on or off according to the scanning parameters of the detection camera, the intrinsic parameters of the detection light source, and the real-time position parameters of the detection camera, by obtaining the scanning parameters of the detection camera, the intrinsic parameters of the detection light source, and the real-time position parameters of the detection camera, so that the number of the detection light sources to be turned on is effectively reduced, the heat generation amount of the light source in the detection process is reduced, the problem that the detection precision is affected by the heat generation of the light source is solved, the.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A light source control method for a detection apparatus, the detection apparatus comprising a detection light source and a detection camera, the detection light source comprising at least two detection sub-light sources, the at least two detection sub-light sources being arranged in sequence along a scanning direction, the control method comprising the steps of:
acquiring scanning parameters of the detection camera and intrinsic parameters of the detection light source, wherein the scanning parameters comprise scanning width parameters of the detection camera along a scanning direction, and the intrinsic parameters comprise initial coordinate parameters of the detection light source and length parameters of the detection sub-light source along the scanning direction;
acquiring position parameters of the detection camera, wherein the position parameters comprise real-time coordinate parameters of a central point of the detection camera along a scanning direction;
determining a target number of a detection sub-light source which needs to be lightened currently according to the scanning width parameter, the initial coordinate parameter, the length parameter and the real-time coordinate parameter, wherein the target number corresponds to the detection sub-light source one to one, the target number comprises one or more combinations of a channel number, a channel number plus one and a channel number minus one, and the channel number is used for representing the number of the detection sub-light source;
and controlling the detection sub-light source to be turned on or off according to the target number.
2. The light source control method for detecting equipment according to claim 1, wherein the determining the target number of the detecting sub-light source which needs to be lighted currently according to the scan width parameter, the start coordinate parameter, the length parameter and the real-time coordinate parameter comprises the following steps:
determining a channel number of a detection sub-light source corresponding to the central point of the current detection camera according to the initial coordinate parameter, the length parameter and the real-time coordinate parameter;
acquiring light source interval coordinate parameters corresponding to the channel numbers, wherein the light source interval coordinate parameters comprise sub-light source starting point coordinate parameters and sub-light source end point coordinate parameters of the detection sub-light sources corresponding to the channel numbers along the scanning direction;
determining the current sampling interval coordinate parameter of the detection camera according to the real-time coordinate parameter and the scanning width parameter, wherein the sampling interval coordinate parameter comprises a sampling start point coordinate parameter and a sampling end point coordinate parameter of a sampling interval along the scanning direction;
and determining the target number of the detection sub-light source which needs to be lightened currently according to the light source interval coordinate parameter and the sampling interval coordinate parameter.
3. The light source control method for the detection device according to claim 2, wherein the determining the target number of the detection sub-light source which needs to be lighted currently according to the light source interval coordinate parameter and the sampling interval coordinate parameter comprises the following steps:
judging whether the sampling starting point coordinate parameter is larger than the starting point coordinate parameter of the sub-light source;
if the sampling starting point coordinate parameter is larger than the starting point coordinate parameter of the sub-light source, determining that the target number is the channel number;
and if the sampling starting point coordinate parameter is less than or equal to the starting point coordinate parameter of the sub-light source, determining that the target number comprises the channel number and subtracting one from the channel number.
4. The light source control method for the detection device according to claim 2, wherein the determining the target number of the detection sub-light source which needs to be turned on currently according to the light source interval coordinate parameter and the sampling interval coordinate parameter further comprises:
judging whether the sampling end point coordinate parameter is smaller than the sub-light source end point coordinate parameter or not;
if the sampling end point coordinate parameter is smaller than the sub-light source end point coordinate parameter, determining that the target number is the channel number;
and if the sampling end point coordinate parameter is greater than or equal to the sub-light source end point coordinate parameter, determining that the target number comprises the channel number and the channel number plus one.
5. The light source control method for detecting equipment according to claim 1, wherein the determining the target number of the detecting sub-light source which needs to be lighted currently according to the scan width parameter, the start coordinate parameter, the length parameter and the real-time coordinate parameter comprises the following steps:
substituting the initial coordinate parameter, the length parameter and the real-time coordinate parameter into the following formula to determine the channel number of the detection sub-light source corresponding to the central point of the current detection camera,
Figure DEST_PATH_IMAGE002
wherein C1 represents a channel number of a inspection sub-light source corresponding to a center point of the inspection camera at present, P1 represents the start coordinate parameter, P2 represents the real-time coordinate parameter, and L1 represents the length parameter.
6. The light source control method for a detection apparatus according to any one of claims 1 to 5, further comprising the steps of:
judging whether the detection is finished or not;
if the detection is finished, controlling all the detection sub-light sources to be turned off;
and if the detection is not finished, returning to the step of acquiring the position parameters of the detection camera.
7. The light source control method for the detection device according to any one of claims 1 to 5, wherein the detection sub-light source comprises a color-tunable LED lamp, and the light source control method further comprises the following steps:
acquiring the actual background color of a workpiece to be detected;
and controlling the detection sub-light source to be lightened according to the actual background color of the workpiece to be detected.
8. The light source control method for the detection equipment according to claim 7, wherein the step of controlling the detection sub-light sources to be turned on according to the actual background color of the workpiece to be detected comprises the following steps:
establishing a standard database based on the background color of the workpiece and the detection light color corresponding to the optimal sampling effect;
matching the actual background color with the standard database to determine the current color of the matched light source;
and controlling the detection sub-light source to be lightened according to the color of the matched light source.
9. The utility model provides a light source controlling means for check out test set, check out test set includes detection light source and detection camera, detection light source includes two at least detection sub-light sources, two at least detection sub-light sources are arranged along scanning direction in proper order, its characterized in that, light source controlling means includes:
a parameter obtaining unit, configured to obtain a scanning parameter of the detection camera and an intrinsic parameter of the detection light source, where the scanning parameter includes a scanning width parameter of the detection camera along a scanning direction, and the intrinsic parameter includes a start coordinate parameter of the detection light source and a length parameter of the detection sub-light source along the scanning direction;
the positioning unit is used for detecting position parameters of the camera, and the position parameters comprise real-time coordinate parameters of the central point of the camera along the scanning direction;
and the control unit is used for determining the target number of the detection sub-light source which needs to be lightened currently according to the scanning width parameter, the initial coordinate parameter, the length parameter and the real-time coordinate parameter, wherein the target number corresponds to the detection sub-light source one to one, the target number comprises one or more combinations of a channel number, a channel number plus one and a channel number minus one, and the channel number is used for representing the number of the detection sub-light source and controlling the detection sub-light source to be lightened or extinguished according to the target number.
10. A detection apparatus, comprising: the detection camera, the motion platform, the detection light source and the light source control device of claim 9, wherein the detection light source comprises at least two detection sub-light sources, and the at least two detection sub-light sources are linearly arranged.
CN202011573155.6A 2020-12-28 2020-12-28 Light source control device and method for detection equipment and detection equipment Active CN112304959B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011573155.6A CN112304959B (en) 2020-12-28 2020-12-28 Light source control device and method for detection equipment and detection equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011573155.6A CN112304959B (en) 2020-12-28 2020-12-28 Light source control device and method for detection equipment and detection equipment

Publications (2)

Publication Number Publication Date
CN112304959A CN112304959A (en) 2021-02-02
CN112304959B true CN112304959B (en) 2021-03-30

Family

ID=74487548

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011573155.6A Active CN112304959B (en) 2020-12-28 2020-12-28 Light source control device and method for detection equipment and detection equipment

Country Status (1)

Country Link
CN (1) CN112304959B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200720780A (en) * 2005-11-25 2007-06-01 Ind Tech Res Inst Backlight module, liquid crystal display and driving method for liquid crystal display
CN101320094A (en) * 2008-05-21 2008-12-10 旭丽电子(广州)有限公司 Light source scanning positioning system and its positioning method
JP4350270B2 (en) * 2000-05-23 2009-10-21 キヤノン株式会社 Image forming apparatus
CN108256416A (en) * 2017-11-30 2018-07-06 北京集创北方科技股份有限公司 Biological characteristic detection method and system
CN110678789A (en) * 2017-05-22 2020-01-10 大日本印刷株式会社 Lighting device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4350270B2 (en) * 2000-05-23 2009-10-21 キヤノン株式会社 Image forming apparatus
TW200720780A (en) * 2005-11-25 2007-06-01 Ind Tech Res Inst Backlight module, liquid crystal display and driving method for liquid crystal display
CN101320094A (en) * 2008-05-21 2008-12-10 旭丽电子(广州)有限公司 Light source scanning positioning system and its positioning method
CN110678789A (en) * 2017-05-22 2020-01-10 大日本印刷株式会社 Lighting device
CN108256416A (en) * 2017-11-30 2018-07-06 北京集创北方科技股份有限公司 Biological characteristic detection method and system

Also Published As

Publication number Publication date
CN112304959A (en) 2021-02-02

Similar Documents

Publication Publication Date Title
US7505149B2 (en) Apparatus for surface inspection and method and apparatus for inspecting substrate
US9959451B2 (en) Image inspection device, image inspection method and image inspection program
US10416086B2 (en) Image inspection device
US7394084B2 (en) Method of generating image and illumination device for inspecting substrate
CN102628669B (en) Dimension measuring apparatus, dimension measurement method and the program for dimension measuring apparatus
US6246788B1 (en) System and method of optically inspecting manufactured devices
JP5119602B2 (en) Periodic pattern defect inspection method and defect inspection apparatus
WO2021129283A1 (en) Illuminating apparatus used for automated optical inspection device, and imaging system
KR20120129547A (en) Specimen inspecting apparatus using multi-line senser camera and multi-light
JP2004191355A (en) Lighting and image obtaining system
JP4655644B2 (en) Periodic pattern unevenness inspection system
JP2016050864A (en) Appearance inspection device with solder
CN112304959B (en) Light source control device and method for detection equipment and detection equipment
JP2000332500A (en) Method for setting illumination of electronic component
CN105300666A (en) LED lamp strip detection device and method
JP2008068284A (en) Apparatus and method for correcting defect, and method for manufacturing pattern substrate
CN111721507B (en) Intelligent detection method and device for keyboard backlight module based on polar coordinate identification
JP3243385B2 (en) Object shape inspection device
CN112858169B (en) Light source detection equipment, light source lighting method thereof and light source control device
JP2008175818A (en) Surface inspection apparatus and method
JP2010175305A (en) Inspection device for inspection body
US20110234870A1 (en) Imaging apparatus for fully automatic screen printer
KR100323513B1 (en) Appearance test apparatus &the test method for printed board
JP2007047062A (en) Inspection method and inspection device of display panel
US20230326870A1 (en) Alignment Device and Alignment Method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CB02 Change of applicant information
CB02 Change of applicant information

Address after: No.188 Chuangyuan Road, industrial park, Suzhou, Jiangsu Province, 215000

Applicant after: Suzhou Weijia Technology Co.,Ltd.

Address before: No.188 Chuangyuan Road, industrial park, Suzhou, Jiangsu Province, 215000

Applicant before: VEGA CNC TECHNOLOGY (SUZHOU) Co.,Ltd.