3D measuring device
Patent Information
- Application Number
- JP2022546928
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2020-09-07
- Filing Date
- 2021-08-31
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2041-08-31
AI Technical Summary
【0020】 本開示の一態様によれば、対象物の特定部位で直接反射する参照光は測距レンジに応じた参照光の走査時刻範囲で必ず受光されるため、設定された走査時刻範囲以外の受光部の情報を除外して測距することで多重反射した参照光等に起因するノイズの影響を軽減できる。なお、測距レンジとは、要求される仕様に応じて予め定めた測距可能範囲のことを意味する。 本開示の他の態様によれば、関心領域以外の受光部の情報を除外して測距することで多重反射した参照光等に起因するノイズの影響を軽減できる。また、受光部は関心領域のみの情報を出力するため、参照光の走査時刻範囲のみによって受光部の情報を制限する場合に比べ、ノイズの過多による受光部のレイテンシの悪化が改善される。
Smart Images

Figure 0007549025000007 
Figure 0007549025000013 
Figure 0007549025000015
Abstract
Description
[Technical field]
[0001] The present invention relates to a three-dimensional measuring technique, and more particularly to an optical scanning three-dimensional measuring device. [Background technology]
[0002] As a distance measurement method based on triangulation using structured illumination, light projection methods such as the light section method, phase shift method, and spatial code method have been proposed. The light section method projects a strip-shaped slit light onto the object while scanning the object, images the object from an imaging position different from the light projection position, and calculates the distance to the object by triangulation based on the projection angle of the slit light, the incidence angle of the slit light on the imaging plane, and the baseline length between the projection position and the imaging position. The projection angle of the slit light is obtained, for example, from a command value to the scanner or the detection time of the bright line of the slit light appearing on the imaging plane, and the incidence angle of the slit light is obtained, for example, from the incidence position of the slit light on the imaging plane. The light section method is said to have good accuracy, but compared to the phase shift method, spatial code method, etc., there is a problem that it takes a long measurement time because a large number of images are required for one measurement.
[0003] In recent years, event-based image sensors based on a different concept from general frame-based image sensors have been proposed. Frame-based image sensors output frame images at a predetermined cycle by opening and closing the shutter for a predetermined period of time for exposure, whereas event-based image sensors monitor each pixel independently and asynchronously from moment to moment, and when they detect an event (e.g., a change in luminance of a predetermined level or more), they output the position, time, and polarity (e.g., whether the pixel became brighter (positive polarity) or darker (negative polarity)) of the pixel where the event occurred as event information. Event-based image sensors have a wider dynamic range than frame-based image sensors, and are characterized by being high-speed because they only output event information. Therefore, it is believed that the use of event-based image sensors will enable the light-section method to be performed at high speed.
[0004] However, ideally, events generated by an event-based image sensor should only be those caused by the scanning of the slit light, but when capturing an actual scene, not all ideal events occur, and noise events may occur due to factors other than the scanning of the slit light. For example, distance measurement using the light-section method is plagued by the problem of multiple reflections of the slit light. When focusing on a certain pixel of the image sensor, it is originally intended to receive only the first reflection of the slit light irradiated toward a specific part of the object captured at that pixel, but the first reflection of the slit light irradiated toward another part may be secondarily reflected at that specific part and enter the pixel. When this phenomenon occurs, the pixel cannot determine whether it has captured the slit light that was directly reflected (single reflection) at that specific part or the slit light that was multiple reflections, and therefore the pixel cannot measure the correct distance. Since the multiple reflection light is light that has been reflected multiple times, it will be weaker than the single reflection light unless the reflectance of each reflection surface is 100%. Therefore, in frame-based image sensors, the influence of the reference light that has been multiple reflections is reduced by using brightness information, but the same method cannot be adopted in event-based image sensors because they do not output brightness information. In addition, the noise is not only noise caused by the reference light reflected multiple times on the object, but also noise caused by the optical system or the image sensor (e.g., flare, ghost, aberration, etc.). As the technology related to the present application, for example, the following documents are known.
[0005] In Patent Document 1, an object is scanned with a slit of light while two image sensors capture an image. A three-dimensional input device is disclosed that captures images synchronously, stores the frame number in which the maximum brightness is detected for each pixel of each image sensor, matches pixels based on the frame numbers, and calculates distance based on the matched pixels.
[0006] Patent document 2 describes that in three-dimensional distance measurement based on the light-section method, if the start of scanning and the start of counting the number of frames of the sensor are simultaneous, the swing angle of the scanner is determined by knowing the frame in which the slit light is detected, and therefore the distance from the sensor to the object is determined.
[0007] Patent document 3 describes a shape measuring device that scans a measured object with a light beam, which photoelectrically converts a beam spot light reflected from a reference surface or the surface of the measured object, and determines the surface shape of the measured object based on the time difference between the rise timing of the photoelectrically converted electrical signal when the reference surface is scanned and the rise timing of the photoelectrically converted electrical signal when the measured object is scanned.
[0008] Patent Document 4 describes a three-dimensional image recognition device that irradiates an inspection area on the top surface of a substrate while transporting the substrate, receives the scanning light reflected by the substrate and electronic components on the substrate, and determines the height of the electronic component from the difference between the light receiving position on the light receiving surface when reflected from the top surface of the substrate and the light receiving position on the light receiving surface when reflected from the top surface of the electronic component. The device describes how the effects of multiple reflections and transmitted reflections are reduced by limiting the incidence of reflected light on the light receiving surface to only transparent openings set with a predetermined incidence width.
[0009] Patent Document 5 describes a fillet weld sensing device that irradiates slit light onto a fillet weld between components including a shiny component, in which the angles of the light source and camera are set so that the image of the slit light and the image of the secondary reflected light are separated.
[0010] Patent Document 6 describes a contour shape measuring device based on the light-section method in which the depth of field is made extremely small so that images from two or more reflection points are not captured to the same extent as images from a single reflection point, thereby suppressing erroneous measurements due to multiple reflections.
[0011] Patent document 7 describes a distance measurement device using a pattern light projection method, which captures an image of an object onto which a line pattern projected in a direction approximately parallel to the epipolar line is projected, calculates the direction of the line from the captured image, and detects a multiple reflection light area based on the angular difference between the calculated line direction and the epipolar line direction.
[0012] Patent document 8 describes an event-based image processing device that detects whether a predetermined event has occurred at each of a plurality of pixels, outputs an event signal in response to the detection, generates timestamp information by mapping at least one pixel corresponding to the event signal to the time at which the event signal was output, and generates a light flow based on the timestamp information.
[0013] Patent document 9 describes a method for three-dimensionally reconstructing a scene, which includes receiving a first sequence of events for each pixel from a first sensor, receiving a second sequence of events for each pixel from a second sensor, and matching a first event in the first sequence of events to a second event in the second sequence of events according to minimization of a cost function.
[0014] Patent Document 10 describes a three-dimensional measurement method and device in which a slit light and a camera are moved together along the length of an object to obtain cross-sectional data at a predetermined pitch, and the object is measured in three dimensions from each cross-sectional data. The method and device describe how a narrow window that intersects the slit light at a right angle is set on an image sensor, and the brightness data with the maximum brightness within the window and the coordinate data in the Y-axis direction at that time are detected.
[0015] Patent Document 11 describes a method for preventing the amount of event data from becoming huge and thus preventing long latency times in event processing by setting an ROI (region of interest) corresponding to an object of interest based on the results of pattern recognition and tracking the object of interest.
[0016] Patent document 12 describes a method of synchronizing an image sensor with structured light in a distance measurement system that measures the distance to a subject using an event detection sensor and structured light technology, in particular resetting the image sensor in synchronization with switching of pattern light. [Prior art documents] [Patent documents]
[0017] [Patent Document 1] JP 2000-088539 A [Patent Document 2] JP 2006-333493 A [Patent Document 3] JP 2003-329419 A [Patent Document 4] JP 2013-148353 A [Patent Document 5] Japanese Patent Application Publication No. 11-33725 [Patent Document 6] JP 2001-227923 A [Patent Document 7] JP 2012-141964 A [Patent Document 8] JP 2014-002744 A [Patent Document 9] JP 2018-516395 A [Patent Document 10] Japanese Patent Application Publication No. 7-260444 [Patent Document 11] JP 2020-136958 A [Patent Document 12] Patent Publication No. 2021-032763 Summary of the Invention [Problem to be solved by the invention]
[0018] SUMMARY OF THE PRESENT DISCLOSURE In view of the problems of the prior art, an object of the present invention is to reduce the influence of noise caused by multiple reflections of reference light and the like when distance measurement is performed by optical scanning. [Means for solving the problem]
[0019] One aspect of the present disclosure includes a light projecting unit that projects a reference light onto an object while scanning the reference light, a light receiving unit that receives the reference light reflected by the object, a time range setting unit that sets a scanning time range of the reference light between a time when the reference light is irradiated onto a point on the farthest side of a distance measurement range and a time when the reference light is irradiated onto a point on the nearest side of the distance measurement range for each predetermined section of the light receiving unit, and a three-dimensional information calculation unit that calculates three-dimensional information of the object by triangulation based on information from the light receiving unit only within the set scanning time range. the light receiving unit has a plurality of pixels, monitors an event for each pixel, and outputs at least a position, a time, and a polarity of the pixel where the event occurred as the information; Providing 3D measurement equipment 。 Effect of the Invention
[0020] According to one aspect of the present disclosure, the reference light directly reflected from a specific portion of the object is always received within the scanning time range of the reference light according to the distance measurement range, so that the influence of noise caused by the reference light reflected multiple times, etc. can be reduced by measuring the distance while excluding information from the light receiving unit outside the set scanning time range. Note that the distance measurement range means a range in which distance measurement is possible that is determined in advance according to the required specifications. According to another aspect of the present disclosure, by measuring distance while excluding information of the light receiving unit other than the region of interest, it is possible to reduce the influence of noise caused by multiple reflections of the reference light, etc. Also, since the light receiving unit outputs information of only the region of interest, deterioration of the latency of the light receiving unit due to excess noise is improved compared to a case where the information of the light receiving unit is limited only by the scanning time range of the reference light. [Brief description of the drawings]
[0021] [Figure 1] FIG. 2 is a plan view of a stereo camera illustrating the measurement principle of the stereo method. [Diagram 2] FIG. 2 is a plan view of a light-section system illustrating the measurement principle of the light-section method. [Diagram 3] 1 is a block diagram of a three-dimensional measuring apparatus according to a first embodiment. [Figure 4A] 11 is a plan view of the three-dimensional measuring apparatus illustrating a method for setting a scanning time range. FIG. [Figure 4B] 1 is a plan view of a three-dimensional measuring apparatus showing how the influence of noise caused by multiple-reflected reference light or the like is reduced. [Figure 5A] 11 is a plan view of a light receiving surface showing an example of a set section of a scanning time range. FIG. [Figure 5B] 11 is a plan view of a light receiving surface showing an example of a set section of a scanning time range. FIG. [Figure 5C] 11 is a plan view of a light receiving surface showing an example of a set section of a scanning time range. FIG. [Figure 6] 4 is a flowchart of the three-dimensional measuring apparatus according to the first embodiment. [Figure 7A] FIG. 2 is a plan view of the three-dimensional measuring apparatus showing a region of interest in the first embodiment. [Figure 7B] FIG. 11 is a plan view of a three-dimensional measuring apparatus showing a region of interest according to a second embodiment. [Figure 8] FIG. 11 is a block diagram of a three-dimensional measuring apparatus according to a second embodiment. [Figure 9A] FIG. 11 is an image diagram showing an example of setting a region of interest. [Figure 9B] FIG. 11 is an image diagram showing a modified example of setting a region of interest. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0022] Hereinafter, the embodiments of the present disclosure will be described in detail with reference to the accompanying drawings. In each drawing, the same or similar components are given the same or similar reference numerals. In addition, the embodiments described below do not limit the technical scope and meaning of the terms of the invention described in the claims.
[0023] The measurement principle of the three-dimensional measuring device of this embodiment will be described. For ease of understanding, the measurement principles of the stereo method and the light-section method will be described first. FIG. 1 is a plan view of a stereo camera 1 showing the measurement principle of the stereo method. The stereo camera 1 includes, for example, a left light receiving unit 2 and a right light receiving unit 3, which correspond to two cameras. The left light receiving unit 2 and the right light receiving unit 3 are arranged, for example, in an equal and parallel arrangement. That is, the two light receiving units are separated by a base length B, the optical axes of the two light receiving units are arranged in parallel, the left light receiving surface 4 and the right light receiving surface 5 are arranged in a plane perpendicular to the two optical axes, and the x direction and the y direction of each light receiving surface are oriented in the same direction. Each light receiving surface is, for example, an image sensor in which a plurality of pixels are two-dimensionally arranged, but may also be a line sensor in which a plurality of pixels are one-dimensionally arranged (for example, arranged only in the x direction).
[0024] Here, the position of the pixel on the left light receiving surface 4 that captures the image of point P of the object in the object space is x l Let the pixel position on the right photosensitive surface 5 be x r Then, the parallax between the left light receiving unit 2 and the right light receiving unit 3 is D=x l -x r If the origin of the XYZ coordinate system representing three-dimensional space is placed at the right focal point, the focal lengths of both light-receiving parts are f, and the pixel pitch of both light-receiving surfaces is 1, then the distance Z to point P on the object (depth to point P; the same applies below) can be calculated using the following formula.
[0025]
number
[0026] Since the baseline length B and focal length f are constants determined by the design of the stereo camera 1, if the image of point P on the right light-receiving surface 5 that corresponds to the image of point P on the left light-receiving surface 4 can be detected by image processing such as pattern matching, the disparity D can be found, and therefore the distance Z to the target point P can be found.
[0027] In the light section system, for example, the left light receiving unit 2 of the stereo camera 1 is replaced with a light projecting unit. FIG. 2 is a plan view of a light section system 6 illustrating the measurement principle of the light section method. The light section system 6 includes a light projecting unit 7, which corresponds to a projector, for example. The light projecting unit 7 projects a strip-shaped slit light onto an object while scanning, and the right light receiving unit 3 receives the slit light reflected from the object. Here, if the light projection origin (center of rotation) is at the left focal position of the stereo camera 1 and the projection angle from the left optical axis of the stereo camera 1 is θ, then the pixel position x on the virtual left light receiving surface 4 of the light projecting unit 7 is l is calculated from the following formula:
[0028]
number
[0029] In addition, the light projecting unit 7 rotates and projects a strip of slit light from the projection starting point at a constant angular velocity ω around the Y axis perpendicular to the XZ plane, and the slit light reaches the target point at time t 0 If the light passes through the left optical axis at time t and is projected onto point P on the object at a projection angle θ, the projection angle θ can be calculated using the following formula.
[0030]
number
[0031] Therefore, the reflected light from the slit light at point P is r If the light is received at this point, then the distance Z to the target point P can be calculated by substituting equations 2 and 3 into equation 1 as shown below.
[0032]
number
[0033] Base length B, focal length f, angular velocity ω, and time t 0 is a constant determined by the design of the light-section system 6, so the position x of the pixel on the right light-receiving surface 5 that projects the image of the slit light rIt can be seen that by determining the distance Z to point P on the object and the time t at which the image of the slit light was detected, it is possible to find the distance Z to point P on the object.
[0034] The three-dimensional measuring device of this embodiment utilizes the configuration and measurement principle of the light-section method. However, it should be noted that the above configuration and measurement principle are merely an example, and that the design can be appropriately changed according to the design of the system configuration, layout, and the like. For example, the light projecting unit 7 and the right light receiving unit 3 may be laid out without being made uniformly parallel, and instead of replacing the left light receiving unit 2 with the light projecting unit 7, the light projecting unit 7 may be prepared in addition to the left light receiving unit 2 and the right light receiving unit 3, and a system configuration combining the stereo method and the light-section method may be adopted. Furthermore, the light projecting unit 7 may be used to project a beam-shaped spot light or a block check pattern light onto the target object, instead of a strip-shaped slit light. It should be noted that the calculation method of the three-dimensional information also changes according to such design changes.
[0035] The configuration of the three-dimensional measuring device of the first embodiment will be described below. Fig. 3 is a block diagram of the three-dimensional measuring device 8 of the first embodiment. The three-dimensional measuring device 8 includes a light-projecting unit 7 that projects a reference light onto an object W while scanning the object W, and a light-receiving unit 3 that receives the reference light reflected by the object W. The light-projecting unit 7 corresponds to, for example, a projector, and the light-receiving unit 3 corresponds to, for example, a camera. It is assumed that the times of the light-projecting unit 7 and the light-receiving unit 3 are synchronized.
[0036] The light projecting unit 7 projects reference light such as slit light, spot light, or pattern light onto the object W. The light projecting unit 7 may project multiple reference light beams at a predetermined projection angle interval. Since the measurement time of the three-dimensional measuring device 8 is determined by the time it takes to scan the object W with the reference light beam, it is common to shorten the measurement time by increasing the scanning speed, but the response speed of the light receiving unit 3 is a constraint. Therefore, by projecting multiple reference light beams, it is possible to shorten the measurement time while maintaining the increased scanning speed under the constraint of the response speed of the light receiving unit 3.
[0037] The light receiving unit 3 includes, for example, an image sensor in which a plurality of pixels are arranged two-dimensionally, but may also include a line sensor in which a plurality of pixels are arranged one-dimensionally. The image sensor of the light receiving unit 3 is, for example, an event-based sensor. In the case of an event-based image sensor, the light receiving unit 3 independently and asynchronously monitors each pixel from moment to moment, and when it detects an event (for example, a change in luminance of a predetermined amount or more), it outputs event information including the position, time, polarity (for example, whether the pixel has become brighter or darker) of the pixel in which the event occurred. Alternatively, the image sensor of the light receiving unit 3 may be a general frame-based image sensor. In the case of a frame-based image sensor, the light receiving unit 3 outputs a frame image at a predetermined cycle by opening and closing a shutter for a predetermined time to expose the pixel. The frame image includes, for example, a frame number, luminance information of each pixel, etc.
[0038] The three-dimensional measuring device 8 also includes a three-dimensional information calculation unit 9 that calculates three-dimensional information of the object W by triangulation based on information from the light receiving unit 3. When the sensor of the light receiving unit 3 is an event-based sensor, a pixel that has experienced an event (e.g., a change in luminance of a predetermined level or more) captures an image of the reference light, and the three-dimensional information calculation unit 9 performs distance measurement based on the event information (e.g., the position, time, and polarity of the pixel that has experienced a change in luminance) output from the light receiving unit 3. Since the slit width of the slit light or the spot diameter of the spot light may correspond to multiple pixel sizes, distance measurement may be performed by determining the intermediate time between the time when the pixel begins to become bright and the time when it ends to become dark. On the other hand, when the sensor of the light receiving unit 3 is a frame-based sensor, the three-dimensional information calculation unit 9 detects the position and frame number (corresponding to time) of the pixel that has the maximum luminance from multiple frame images output from the light receiving unit 3, and performs distance measurement based on this detection information.
[0039] The three-dimensional measuring device 8 further includes a time range setting unit 10 that sets a scanning time range of the reference light corresponding to the distance measurement range for each predetermined section of the light receiving unit 3 (a plurality of pixels constituting the light receiving surface of the light receiving unit 3) in order to reduce the influence of noise caused by multiple reflections of the reference light, etc. The three-dimensional information calculation unit 9 excludes information of the light receiving unit 3 outside the set scanning time range and performs distance measurement based on information of the light receiving unit 3 within the set scanning time range, thereby suppressing erroneous distance measurement due to noise caused by multiple reflections of the reference light, etc.
[0040] The method of setting the scanning time range will be described in detail. FIG. 4A is a plan view of the three-dimensional measuring device 8 showing the method of setting the scanning time range. The distance measurement range in the figure is a distance measurement possible range that is determined in advance according to the required specifications. For example, if the depth of field of the three-dimensional measuring device 8 is designed so that a distance of 1000 mm to 2000 mm can be measured, the distance measurement range will be 1000 mm to 2000 mm. Since the light that enters the pixel 11 of the light receiving unit 3 always enters through the line of sight V, if the incident light is a single reflection light of the reference light and the point P of the object W that is single reflected is within the range of the distance measurement range, the light is always received within the scanning time range in which the reference light scans the intersection line segment QR between the line of sight V and the distance measurement range. Therefore, it is preferable to set the scanning time range by geometrically calculating the scanning time range in which the reference light scans the intersection line segment QR between the line of sight V of the pixel 11 and the distance measurement range.
[0041] Alternatively, if the distance measurement range is 1000 mm to 2000 mm, for example, the plate may be placed at a distance of 1000 mm, the slit light may be scanned, and the time when the image of the slit light passes each pixel may be recorded, and the plate may be placed at a distance of 2000 mm, the slit light may be scanned, and the time when the image of the slit light passes each pixel may be recorded, and the two obtained times may be the maximum and minimum values of the scanning time range. Since measurement variations may occur, it is practical to set the scanning time range by taking an average of multiple measurements or adding some margin. By performing distance measurement based on the information of the light receiving unit 3 in the set scanning time range in this way, it is possible to suppress erroneous distance measurement due to noise caused by multiple reflections of reference light, etc.
[0042] 4B is a plan view of the three-dimensional measuring device 8 showing how the influence of the reference light reflected multiple times is reduced. When the reference light reflected primarily from a surface S of the object W is reflected secondarily from a point P of the object W and enters a pixel 11, there is a high possibility that the reference light will enter the pixel 11 outside the set scanning time range. Therefore, by performing distance measurement while excluding information from the light receiving unit 3 outside the set scanning time range, it is possible to suppress erroneous distance measurement caused by the reference light reflected multiple times.
[0043] The scanning time range may be set for each pixel, with one pixel among the multiple pixels constituting the light receiving unit 3 as one section, or may be set for each section by grouping a group of neighboring pixels among the multiple pixels constituting the light receiving unit 3 together as one section for the purpose of saving setting memory and shortening measurement time. FIGS. 5A to 5C are plan views of the light receiving surface 5 showing an example of a set section of the scanning time range. Assuming that the assembly error of the three-dimensional measuring device 8, lens distortion, and the like can be ignored, when the image I of the slit light is formed parallel to the y axis of the light receiving surface 5 when the flat plate is scanned with the slit light in the x direction as shown in FIG. 5A, a group of pixels in one or more rows that simultaneously capture the image I of the slit light may be set as one section to set the scanning time range (for example, 0.2 s to 0.4 s). Furthermore, when a block check pattern light is used to scan a flat plate in the x direction as shown in FIG. 5B, and an image I of the pattern light is formed parallel to the y axis of the light receiving surface 5, two or more rows of pixels that simultaneously capture the image I of the pattern light may be grouped together as one section, and a scanning time range (e.g., 0.15 s to 0.4 s) may be set.
[0044] Furthermore, when a flat plate is scanned in the x and y directions with a spot light and an image I of the spot light is formed on four adjacent pixel groups on the light receiving surface 5 as shown in Fig. 5C, the four adjacent pixel groups that simultaneously capture the image I of the spot light may be collectively set as one section to set a scanning time range (e.g., 0.2 s to 0.4 s). The scanning time range thus set may be the scanning time range that has elapsed since the start of scanning in the case of an event-based image sensor, but may be the frame number range that has elapsed since the start of scanning in the case of a frame-based image sensor.
[0045] Referring again to FIG. 3, when the light projecting unit 7 projects a plurality of slit beams, the three-dimensional measuring device 8 may include a projection angle interval setting unit 12 that sets the projection angle interval according to the set scanning time range. The projection angle interval is set to an angle interval wider than the scanning angle φ at which the slit beam scans in the set scanning time range, for example, as shown in FIG. 4A and FIG. 4B. If a plurality of slit beams are projected with a projection angle interval narrower than the scanning angle φ, each pixel in a section in which the scanning time range of the scanning angle φ is set will receive a plurality of slit beams in that scanning time range, and therefore a method of identifying which slit beam has been received is required. However, by setting the projection angle interval of the plurality of slit beams to an angle interval wider than the scanning angle φ, each pixel in that section will receive only one slit beam in that scanning time range, and therefore there is no need to identify the slit beam. The projection angle interval may also be set in a similar manner when a plurality of block check pattern beams as shown in FIG. 5B are projected.
[0046] Moreover, regardless of whether the light receiving unit 3 is equipped with an event-based image sensor or a frame-based image sensor, the image sensor of the light receiving unit 3 may have a function of outputting only information within the region of interest. The region of interest may be a known region of interest (ROI), but it should be noted that the "region of interest" in this specification is not necessarily limited to a general ROI. For example, in the case of a frame-based image sensor, only the captured image within the region of interest is output, and in the case of an event-based image sensor, only event information occurring within the region of interest is output. When the light receiving unit 3 has a function of outputting only information within the region of interest, the three-dimensional measuring device 8 may have a region of interest moving unit 14 that moves the region of interest in response to the scanning of the reference light. The light receiving unit 3 moves the region of interest based on an input signal (e.g., a movement command) from the region of interest moving unit 14. For example, the region of interest moves over time so as to include a section (pixel or pixel group) in which a scanning time range including a certain time t during measurement is set. It is not necessary for the section (pixel or pixel group) in which the scanning time range is set to completely match the region of interest. This ensures that the region of interest does not miss the occurrence of an event or the output of maximum brightness. Such a region of interest can limit the pixels where an event occurs or the pixels that output the maximum brightness, thereby reducing the amount of data output from the light receiving unit 3. The three-dimensional information calculation unit 9 then performs distance measurement based on the event information limited by the region of interest, or performs distance measurement by detecting the position and frame number of the pixel with the maximum brightness from within the limited region of interest, thereby significantly shortening the measurement time. In addition, noise caused by multiple reflections of reference light, etc. is also limited by the region of interest, so erroneous distance measurement due to noise can also be suppressed.
[0047] 3 again, the three-dimensional information calculated by the three-dimensional information calculation unit 9 is output to the outside of the three-dimensional measuring device 8. The three-dimensional information is used by an external device 13, such as a so-called image processing device, a robot control device, or a vehicle control device. The external device 13 performs image processing based on the three-dimensional information in which the influence of noise caused by multiply reflected reference light and the like has been reduced, making it possible to perform, for example, position control, speed control, acceleration control, and the like.
[0048] The above-mentioned three-dimensional information calculation unit 9, time range setting unit 10, projection angle interval setting unit 12, and region of interest moving unit 14 may be implemented by an integrated circuit such as an ASIC (application specific integrated circuit) or an FPGA (field-programmable gate array), or may be implemented as a program executed by a processor such as a CPU (central processing unit) or an MPU (micro processing unit).
[0049] The operation of the three-dimensional measuring device 8 will be described below. FIG. 6 is a flow chart showing the operation of the three-dimensional measuring device 8. In step S1, the time range setting unit 10 sets the scanning time range of the reference light according to the distance measurement range for each predetermined section of the multiple pixels constituting the light receiving unit 3. In this case, when the scanning time range of the reference light is calculated geometrically, the user may input the distance measurement range via a user interface unit (not shown) such as a touch panel display or a keyboard, or a distance measurement range previously stored in memory may be used. When multiple reference beams are projected, in step S2, the projection angle interval setting unit 12 sets the projection angle interval according to the set scanning time range.
[0050] When projection and scanning of the reference light is started in step S3, in step S4, the three-dimensional information calculation unit 9 calculates three-dimensional information of the object by triangulation based on the information of the light receiving unit 3 in the set scanning time range. If the image sensor of the light receiving unit 3 is an event-based image sensor, the three-dimensional information of the object is calculated based on the position, time, and polarity of a pixel where an event occurred in the set scanning time range. If the image sensor of the light receiving unit 3 is a frame-based image sensor, the position and frame number of the pixel with the maximum brightness are detected from multiple frame images in the set frame number range, and the three-dimensional information of the object is calculated based on the position and frame number of the detected pixel. When the three-dimensional information is output to the outside in step S5, the process ends.
[0051] In this flowchart, steps S1 to S5 are described as a series of processes, but steps S1 and S2 may be performed when the three-dimensional measuring device is installed or calibrated, and steps S3 to S5 may be performed during measurement. Also, it should be noted that steps S2 and S5 are not necessarily required steps.
[0052] According to the three-dimensional measuring device 8 of the first embodiment, the reference light directly reflected from a specific portion of the object W is always received within a scanning time range corresponding to the distance measurement range, so that the influence of noise such as multiple reflections of the reference light can be reduced by excluding information from the light receiving unit 3 outside the set scanning time range when measuring the distance.
[0053] The three-dimensional measuring device 8 of the second embodiment will be described below. Please note that the same configuration and operation as those of the three-dimensional measuring device 8 of the first embodiment will not be described. FIG. 7A is a plan view of the three-dimensional measuring device 8 showing the region of interest of the first embodiment, and FIG. 7B is a plan view of the three-dimensional measuring device 8 showing the region of interest of the second embodiment. In both the three-dimensional measuring devices 8 of the first and second embodiments, while the reference light L scans the projection angle range θmax of the entire distance measurement range at a scanning speed ω, the region of interest moves in the moving direction d in response to (following) the scanning of the reference light L. However, the three-dimensional measuring devices 8 of the first and second embodiments differ from each other in the following points.
[0054] As shown in FIG. 7A, in the three-dimensional measuring device 8 of the first embodiment, focusing on one pixel 11, under the assumption that the time at which the reference light L is imaged on the pixel 11 must be within the scanning time range of the reference light L between the time t1 at which it is irradiated to point R on the farthest side of the distance measurement range and the time t2 at which it is irradiated to point Q on the closest side of the distance measurement range (i.e., the scanning time range of the reference light L according to the distance measurement range), the region of interest moves over time to include a section for which a scanning time range that includes a certain time during measurement is set.
[0055] In contrast, as shown in FIG. 7B, in the three-dimensional measuring device 8 of the second embodiment, focusing on a single time t, under the assumption that the image of the reference light L irradiated at a certain time t during measurement should be within an imaging range (i.e., the imaging range of the reference light L corresponding to the ranging range) between the imaging point (e.g., pixel 11) when reflected at a point Q on the closest side of the ranging range and the imaging point (e.g., pixel 15) when reflected at a point R on the farthest side of the ranging range, the region of interest moves over time to include the imaging range of the reference light L corresponding to the ranging range at a certain time t during measurement (e.g., the group of pixels from pixel 11 to pixel 15).
[0056] FIG. 8 is a block diagram of a three-dimensional measuring device 8 of the second embodiment. In both the three-dimensional measuring devices 8 of the first and second embodiments, the region of interest moves in synchronization with the scanning of the reference light. In the first embodiment, the region of interest moving unit 14 sends a movement command to the light receiving unit 3 to move the region of interest so as to include a section (for example, pixel 11 or a group of pixels in the vicinity of pixel 11) in which the scanning time range of the reference light L according to the distance measurement range is set. In contrast, in the second embodiment, the three-dimensional measuring device 8 includes a region of interest setting unit 16 that sets the region of interest in advance. The region of interest setting unit 16 sets the region of interest so as to include the imaging range of the reference light according to the distance measurement range at a certain time t during measurement, and the light receiving unit 3 itself moves the set region of interest based on an input signal (for example, a trigger signal) from the light projecting unit 7. The region of interest setting unit 16 sets at least one of the initial position, size (width and height), movement direction, and movement speed of the region of interest, and the light receiving unit 3 places the region of interest of the set size at the initial position and moves it from the initial position in a predetermined direction at a predetermined speed (for example, a constant speed). The light receiving unit 3 may input an input signal (e.g., a trigger signal) when the projection angle of the reference light L reaches a predetermined angle, and may move the region of interest. In addition, when moving the region of interest, the light receiving unit 3 may move the region of interest in synchronization with a clock signal of the image sensor (light receiving surface 5).
[0057] FIG. 9A is an image diagram showing an example of setting a region of interest. 0The size (width w and height h), moving direction d, and moving speed v are set based on design information of the three-dimensional measuring device 8. The design information of the three-dimensional measuring device 8 includes, for example, the arrangement of the light projecting unit 7 and the light receiving unit 3 (for example, their respective positions and orientations), the distance measurement range, the scanning direction of the reference light L, the scanning speed of the reference light L, the projection angle range of the reference light L, the clock frequency of the image sensor, and the like.
[0058] When setting the region of interest, the region of interest setting unit 16 first obtains the imaging range i of the reference light L. The region of interest setting unit 16 may have a function of inputting design information of the three-dimensional measuring device 8 (the arrangement (position and orientation of each) of the light projecting unit 7 and the light receiving unit 3, the distance measurement range, etc.) via a user interface unit (not shown) such as a touch panel display or a mouse, and geometrically calculating the imaging range i of the reference light L based on the design information, or may have a function of calculating the imaging range i of the reference light L by actually scanning the reference light L. In the latter case, for example, referring to FIG. 7B, a flat plate is placed on the closest side of the distance measurement range, the reference light L is scanned, and the position and time of the imaging point (e.g., pixel 11) where the reference light L is imaged are recorded, and a flat plate is placed on the farthest side of the distance measurement range, the reference light L is scanned, and the position and time of the imaging point (e.g., pixel 15) where the reference light L is imaged are recorded. Since the imaging range i of the reference light L according to the distance measurement range becomes larger toward the end of the light receiving surface 5 and is not constant throughout the scanning of the reference light L, the region of interest setting unit 16 calculates the number of pixels from the imaging point of the reference light L at the closest side of the distance measurement range (e.g., pixel 11) to the imaging point of the reference light L at the farthest side of the distance measurement range (e.g., pixel 15) for each time, and calculates the maximum number of pixels throughout the entire distance measurement range as the imaging range i of the reference light L.
[0059] The region of interest setting unit 16 sets the width w of the region of interest based on the imaging range i of the reference light L. The width w of the region of interest is the size of the region of interest in the scanning direction of the reference light L. The initial value of the width w of the region of interest may be the imaging range i of the reference light L (for example, the maximum number of pixels from pixel 11 to pixel 15 throughout the entire distance measurement range) itself, but since the scanning speed of the reference light L that forms an image on the light receiving surface 5 is not constant even if the scanning speed of the reference light L is a constant angular speed, it is preferable to leave a margin in the width w of the region of interest. For example, the region of interest setting unit 16 may set the size obtained by adding a predetermined margin m to the imaging range i of the reference light L as the width w of the region of interest. The margin m of the width of the region of interest may be a predetermined constant.
[0060] The region of interest setting unit 16 sets the height h of the region of interest based on the size of the light receiving surface 5. The height h of the region of interest is the size of the region of interest in a direction perpendicular to the scanning direction of the reference light L. The initial value of the height h of the region of interest may be the number of pixels of the light receiving surface 5 in a direction perpendicular to the scanning direction of the reference light L, but the region of interest setting unit 16 may be specified and set the height h of the region of interest as an arbitrary value equal to or less than the number of pixels of the light receiving surface 5 in a direction perpendicular to the scanning direction of the reference light L via a user interface unit or the like. For example, when measuring the three-dimensional shape of an object reflected in a known area on the light receiving surface 5, the height h of the region of interest can be limited to only the area where the object exists, thereby reducing the influence of noise.
[0061] The region of interest setting unit 16 sets the moving direction d of the region of interest based on the scanning direction of the reference light L. The region of interest setting unit 16 may be arbitrarily designated and set the moving direction d of the region of interest via a user interface unit or the like, or may obtain the scanning direction of the reference light L when executing the above-mentioned function of scanning the reference light L to calculate the imaging range i of the reference light L, and automatically set the scanning direction of the reference light L as the moving direction d of the region of interest. In the example of FIG. 9A, the reference light (slit light) is arranged so as to be projected horizontally on the light receiving surface 5, and the moving direction d of the region of interest is set to be upward or downward. On the other hand, when the reference light (slit light) is arranged so as to be projected vertically on the light receiving surface 5, the moving direction d of the region of interest is set to be leftward or rightward.
[0062] The region of interest setting unit 16 determines the initial position p of the region of interest using coordinate values of an orthogonal coordinate system (for example, a camera coordinate system (xy coordinate system shown in the figure)) fixed on the same plane as the light receiving surface 5. 0 For example, if the region of interest is rectangular, set the initial position p 0 The region of interest setting unit 16 determines the initial position p of the region of interest based on the scanning direction of the reference light L (or the moving direction d of the region of interest) and the size (width and height) of the region of interest. 0 For example, in the example of FIG. 9A, the reference light L (slit light) is arranged so as to be projected horizontally on the light receiving surface 5, and the reference light L scans the light receiving surface 5 in the upward or downward direction. Therefore, the region of interest setting unit 16 sets the position of the upper left corner of the region of interest with the lowest or highest pixel row on the light receiving surface 5 as the initial position p of the region of interest. 0 In addition, when the reference light L (slit light) is arranged so as to be vertically reflected on the light receiving surface 5 and the reference light L scans the light receiving surface 5 in the right or left direction, the position of the upper left corner of the region of interest with the leftmost or rightmost pixel row on the light receiving surface 5 as the center line is set as the initial position p 0 Alternatively, the region of interest setting unit 16 may set the initial position p 0 For example, when the reference light L (slit light) is arranged so as to be projected horizontally on the light receiving surface 5, the reference light L scans the light receiving surface 5 downward, and the three-dimensional shape of an object projected in a known region of the light receiving surface 5 is measured, the initial position p 0 The position of the upper left corner of the region of interest with the top pixel row of the region where the workpiece exists as the center line is the initial position p 0 This can limit the scan of the region of interest to the area where the object is located and reduce the effects of noise.
[0063] The region of interest setting unit 16 sets the moving speed v of the region of interest based on the scanning speed ω of the reference light L. When the region of interest is moved in synchronization with the clock signal of the image sensor, the region of interest setting unit 16 determines how many clocks of the image sensor's operation clock the time it takes for the reference light L to move one pixel on the light receiving surface 5 corresponds to based on the moving speed v, and the light receiving unit 3 may move the region of interest by one pixel for every clock number required for the reference light L to move one pixel on the light receiving surface 5. For example, the time t required for the reference light L to scan the entire distance measurement range is the projection angle range / scanning speed (t=θmax / ω), so if the number of pixels on the light receiving surface 5 in the scanning direction is n, the time Δt required for the image of the reference light L to move one pixel on the light receiving surface 5 is Δt≒t / n. In other words, if the clock frequency of the image sensor is F, the number of clocks c required for the reference light L to move one pixel on the light receiving surface 5 is c=F / v. The light receiving unit 3 then moves the region of interest by one pixel for every clock count c required for the reference light L to move one pixel across the light receiving surface 5. By moving the region of interest in this way in synchronization with the clock signal of the image sensor, it becomes possible to move the region of interest with a simpler configuration than when the light receiving unit 3 inputs an external signal as a trigger signal.
[0064] The light receiving unit 3 detects a region of interest having a set size (width w and height h) at an initial position p based on an input signal (e.g., a trigger signal) from the light projecting unit 7. 0 The region of interest is placed at the initial position p 0 From position p 1 As time passes, the three-dimensional information calculation unit 10 calculates the three-dimensional information of the target object by triangulation based on the information (event information or luminance image) of the light receiving unit 3 in the region of interest. The three-dimensional information calculation unit 10 can reduce the influence of noise caused by multiple reflections of the reference light, etc., by measuring the distance while excluding the information of the light receiving unit 3 outside the region of interest.
[0065] 9B is an image diagram showing a modified example of setting the regions of interest. When the light projecting unit 7 projects a plurality of reference beams L1 and L2 at a predetermined projection angle interval, the region of interest setting unit 16 sets the initial positions p 10 , p 20 It is advisable to set the initial positions p 10 , p 20 The other settings (size (width w and height h), movement direction d, movement speed v, etc.) may be the same. When the projection angles of the reference beams L1 and L2 reach a predetermined angle, the light receiving unit 3 receives an input signal (e.g., a trigger signal) from the light projecting unit 7, and moves the regions of interest 1 and 2 of the set size (width w and height h) to the initial positions p 10 , p 20 and moved in a moving direction d at a moving speed v. The light receiving unit 3 may output, but is not limited to, only information (event information or luminance image) of the logical product (AND) region between the section in which the scanning time range of the reference light described in the first embodiment is set and the region of interest. The three-dimensional information calculation unit 9 calculates three-dimensional information of the target object by triangulation based on the information.
[0066] Although not shown, the region of interest setting unit 16 may have a function of setting a supplier-side region of interest set by the supplier of the three-dimensional measuring device 8 and a user-side region of interest set by the user of the three-dimensional measuring device 8. The region of interest setting unit 16 is designated and sets the supplier-side region of interest and the user-side region of interest via a user interface unit or the like. In this case, the region of interest setting unit 16 may set a logical product (AND) region of the supplier-side region of interest and the user-side region of interest as a region of interest, in addition to the section in which the scanning time range of the reference light described above is set.
[0067] According to the three-dimensional measuring device 8 of the second embodiment, by measuring distance while excluding information of the light receiving unit 3 other than the region of interest, it is possible to reduce the influence of noise caused by the reference light reflected multiple times, etc. Also, since the light receiving unit 3 (i.e., the image sensor) outputs information (event information or luminance information) only of the region of interest, deterioration of the processing time of the image sensor due to excessive noise is improved compared to the case where the information output from the image sensor is limited only by the scanning time range of the reference light. In particular, since the event-based image sensor outputs only event information, it has low latency to begin with, but by outputting event information only of the region of interest, deterioration of the latency (delay time) of the image sensor due to excessive events is improved, and the advantages of the event-based image sensor can be enjoyed or maintained.
[0068] It should be noted that the programs executed by the aforementioned processors, integrated circuits, etc. may be provided by being recorded on a computer-readable non-transitory recording medium, such as a CD-ROM, or may be provided by being distributed from a server device on a WAN (wide area network) or LAN (local area network) via wired or wireless connections.
[0069] Although various embodiments have been described herein, it should be appreciated that the present invention is not limited to the above-described embodiments, but may be modified in various ways within the scope of the claims. [Explanation of symbols]
[0070] 1 Stereo camera 2 Left receiver 3 Right light receiving section (light receiving section) 4 Left photosensitive area 5 Right light receiving surface (light receiving surface) 6 Light cutting system 7 Light projector 8. Three-dimensional measuring device 9 Three-dimensional information calculation section 10 Time range setting section 11 pixels 12 Projection angle interval setting section 13 External device 14 Region of interest movement section B Baseline length D parallax f focal length I Reference light image L reference light P Point of the object Q: The closest imaging point in the measuring range R The image point at the farthest end of the measuring range QR Intersection of the pixel's line of sight and the distance measurement range S Surface of the object V line of sight W Object Z Distance to point P of the object θ Projection angle θmax projection angle range φ Scan angle ω scanning speed i Reference beam imaging range p0, p10, p20 Initial positions of the region of interest w Width of the region of interest m Width margin of region of interest h Height of the region of interest d. Direction of movement of the region of interest v The speed of movement of the region of interest F Image sensor clock frequency
Claims
1. a light projection unit that projects a reference light onto an object while scanning the object; a light receiving unit that receives the reference light reflected by the object; a time range setting unit that sets a scanning time range of the reference light between a time when the reference light is irradiated onto a point on the farthest side of a distance measurement range and a time when the reference light is irradiated onto a point on the nearest side of the distance measurement range for each predetermined section of the light receiving unit; a three-dimensional information calculation unit that calculates three-dimensional information of the object by triangulation based on information from the light receiving unit only within the set scanning time range; Equipped with The light receiving unit has a plurality of pixels, monitors an event for each pixel, and outputs at least the position, time, and polarity of the pixel where the event occurred as the information.
2. The three-dimensional measuring apparatus according to claim 1 , wherein the light projecting unit projects a plurality of the reference beams at predetermined projection angle intervals.
3. The three-dimensional measuring apparatus according to claim 1 , wherein the scanning time range is a scanning time range in which the reference light scans an intersection line segment between a line of sight of a pixel of the light receiving unit and the distance measurement range.
4. 4. The three-dimensional measuring device according to claim 1, wherein the scanning time range is set for each pixel of the light receiving unit, with one pixel of the light receiving unit being one section, or is set for each section, with a group of neighboring pixels of the light receiving unit being one section.
5. The three-dimensional measuring apparatus according to claim 2 , further comprising a projection angle interval setting unit that sets the projection angle interval in accordance with the set scanning time range.
6. 6. The three-dimensional measuring apparatus according to claim 1, wherein the light receiving unit has a function of outputting only the information within a region of interest among a plurality of pixels, and the region of interest moves over time to include the section in which the scanning time range including a certain time during measurement is set.
7. 6. The three-dimensional measuring device according to claim 1, wherein the light receiving unit has a function of outputting only the information within a region of interest among a plurality of pixels, and the region of interest moves over time so as to include an imaging range of the reference light according to the ranging range at a certain time during measurement.
Citation Information
Patent Citations
Laser line scanning 3D detection method and system based on scanning galvanometer and event camera
CN109458928A
Automatic detection of work line
JP1988149507A
Method and apparatus for measuring object three-dimensionally by light section method
JP1995260444A
Fillet welding position sensing device and method
JP1999033725A
Three-dimensional measuring apparatus
JP1999271030A
