Method and apparatus for acquiring and correlating 2D image data with 3D image data from optical triangulation - Patents.com
By employing multiple light sources and adjusted exposure periods, the method aligns 2D image data with 3D data in 3D machine vision systems, addressing speckle noise and improving defect detection in 3D models.
Patent Information
- Application Number
- JP2023011042
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2022-01-28
- Filing Date
- 2023-01-27
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2043-01-27
AI Technical Summary
Existing 3D machine vision systems using optical triangulation face challenges in aligning 2D image data with 3D image data, particularly due to speckle noise from laser light and limited surface information capture, making it difficult to identify defects and textures accurately.
A method and apparatus that utilize multiple light sources, including diffuse and specular lights, to capture 2D image data separately or concurrently with 3D image data by adjusting exposure periods and sensor positions, ensuring higher intensity at specific sensor locations to align 2D data with 3D data points.
Enhances the alignment and variety of 2D image data capture, reducing speckle noise and improving the detection of surface defects and textures, thereby enhancing the accuracy of 3D models.
Smart Images

Figure 0007541135000001 
Figure 0007541135000019 
Figure 0007541135000006
Abstract
Description
[Technical field]
[0001] SUMMARY OF THE DISCLOSURE Embodiments herein relate to methods and apparatus for acquiring and correlating 2D image data with 3D image data from light triangulation. [Background technology]
[0002] Industrial vision cameras and systems for factory and logistic automation may be based on three-dimensional (3D) machine vision, where 3D images of scenes and / or objects are captured. A 3D image refers to an image that includes information about pixels in only two dimensions (2D), e.g., intensity and / or color, as in the case of traditional images, but also "height" or "depth" information. That is, each pixel of the image may include information that is associated with the pixel's position in the image and maps to the position of what is imaged, e.g., the object. Processing may then be applied to extract information about the object's properties, i.e., the 3D properties of the object, from the 3D image and convert, e.g., into various 3D image formats. Such information about height may be referred to as range data, where range data may thus correspond to data from height measurements of the object being imaged, or in other words from range or distance measurements of the object. Alternatively or additionally, the pixel may include information about material properties, e.g., regarding the scattering of light in the imaged area, or the reflection of certain wavelengths of light, etc.
[0003] Thus, the pixel value may for example relate to the intensity, and / or range data, and / or material properties of the pixel.
[0004] Line scan image data occurs when image data of an image is scanned or provided one line at a time, for example by a camera having a sensor configured to detect and provide image data one pixel line at a time. A special case of line scan imagery is image data provided by a so-called "sheet of light", e.g., a laser line, 3D triangulation. Although lasers are often preferred, other light sources capable of providing a "sheet of light" may also be used, e.g., light that remains focused and does not diverge much, or in other words, light that is "structured", e.g., light provided by a laser or a light emitting diode (LED).
[0005] 3D machine vision systems are often based on such light sheet triangulation. In such systems, there is a light source that illuminates the object with a specific light pattern, such as a light sheet as a specific light pattern that produces a light or laser line on the object and along which linear 3D characteristics of the object corresponding to the contours of the object can be captured. By scanning the object with such a line, i.e., line scanning, with the line and / or object moving, 3D characteristics of the entire object can be captured corresponding to multiple contours.
[0006] A 3D machine vision system or device that uses a sheet of light for triangulation is sometimes referred to as a system or device for 3D imaging based on light, or a sheet of light, triangulation, or simply laser triangulation when laser light is used.
[0007] Typically, to create a 3D image based on optical triangulation, reflected light from an object to be imaged is captured by an image sensor of a camera, and intensity peaks are detected in the image data. The peaks occur at positions corresponding to locations on the imaged object where there is incident light, e.g., corresponding to a laser line, reflected from the object. The positions in the image of the detected peaks are then mapped to positions on the object from which the light producing the peaks was reflected.
[0008] Laser triangulation camera systems, i.e. imaging systems based on optical triangulation, project a laser line onto an object to create a height curve from the surface of the target object. By moving the object relative to the involved cameras and light sources, information about the height curve from different parts of the object is captured by images, which can then be combined and used with knowledge of the relevant geometry of the system to create a three-dimensional representation of the object, i.e. to provide 3D image data. This technique may be described as acquiring an image of a light, typically a laser line, as it is projected onto and reflected by the object, and then extracting the location of the reflected laser line in the image. This is successfully accomplished, for example, by locating intensity peaks in the image frame using conventional peak-finding algorithms. Typically, but not necessarily, the imaging system is set up such that intensity peaks can be searched for row by row of sensors, and the location in the row maps to height or depth.
[0009] In many applications, it is desirable to have not only 3D image data, such as the height and depth of the object, but also traditional 2D image data of the object, for example, to provide texture to a 3D model of the object formed from the 3D image data, so that the model can be made to look like a real-world object. Additionally or alternatively, it is important to obtain certain 2D information from the surface of the object, for example, for quality assurance reasons. It may be particularly important to obtain such information for the same positions as the 3D image data, i.e., so that the 2D image data is for and / or aligned with 3D positions that correspond to the actual positions on the object from which both the 3D image data and the 2D image data were captured. In the case of optical triangulation, it is therefore important to obtain 2D image data associated with the intensity peak positions. With the 2D image data associated with the 3D image data positions, it is possible, for example, to analyze the 2D image surface of the 3D model of the object to identify, for example, text, scratches, marks, and / or color changes, etc., as well as to be able to identify where these are located on the actual object if they are also associated with height changes, etc. For example, certain types of scratches in some places may be more significant than in other places. Objects with problematic scratches may be marked and / or sorted and / or the scratches may be repaired.
[0010] Grayscale 2D image data from reflectance and intensity can be obtained, for example, using the same light, e.g., laser, as is used in optical triangulation to provide 3D image data. However, in the case of lasers, due to the special properties of laser light, so-called speckle noise often occurs, which then occurs in the 2D image. It can also be seen that the 2D information that can be obtained in this way from the surface of an object is rather limited. Summary of the Invention [Means for solving the problem]
[0011] In view of the above, it is an object of the present invention to provide one or more improvements or alternatives to the prior art, such as providing an improved method of how 2D image data can be related to 3D image data resulting from optical triangulation.
[0012] According to a first aspect of an embodiment herein, this object is achieved by a method for acquiring 2D image data and associating it with 3D image data, the 3D image data being based on a first intensity peak position resulting from an optical triangulation performed by an imaging system including a first light source for illuminating a measure object with a first light and an image sensor for detecting the first light reflected from the measure object, the optical triangulation conventionally including illuminating a first portion of the measure object with the first light and detecting the first light reflected from the first portion by the image sensor during a first exposure period (EXP1) resulting in a first image (IM1) with a first intensity peak occurring at a first sensor position (SP1), and illuminating another second portion of the measure object adjacent to the first portion with the first light and detecting the first light reflected from the second portion by the image sensor during another second exposure period (EXP2) resulting in a second image with a second intensity peak occurring at a second sensor position (SP2). The imaging system further includes one or more additional second light sources for illuminating the measurement object with one or more second lights.
[0013] The method includes illuminating a measurement object with the one or more second lights and detecting any reflected second lights from the measurement object by an image sensor during one or more third exposure periods (EXP3), resulting in one or more third images (IM3).
[0014] The method further includes selecting, for each SP1 in IM1, a respective third sensor position (SP3) in IM3, and providing the illumination using one or more second lights such that during EXP3, any reflected second light from the measurement object results in a higher intensity at the selected SP3 than the reflected first light.
[0015] The method further includes acquiring 2D image data of each selected SP3 within said IM3, and associating the acquired 2D image data with the SP1 selected for it by each selected SP3, whereby the acquired 2D image data becomes associated with the 3D image data.
[0016] According to a second aspect of an embodiment of the present specification, this object is achieved by a computer program comprising instructions which, when executed by one or more processors, cause one or more devices to perform the method according to the first aspect.
[0017] According to a third aspect of an embodiment of the present specification, this object is achieved by a carrier comprising a computer program according to the second aspect.
[0018] According to a fourth aspect of the embodiment of the present specification, this object is achieved by one or more devices for acquiring 2D image data and associating it with 3D image data. The 3D image data is based on a first intensity peak position resulting from an optical triangulation performed by an imaging system including a first light source for illuminating a measurement object with a first light and an image sensor for detecting the first light reflected from the measurement object. The optical triangulation includes, as in the conventional case, illuminating a first portion of the measurement object with the first light and detecting the first light reflected from the first portion by the image sensor during a first exposure period (EXP1) resulting in a first image (IM1) with a first intensity peak occurring at a first sensor position (SP1), and illuminating another second portion of the measurement object adjacent to the first portion with the first light and detecting the first light reflected from the second portion by the image sensor during another second exposure period (EXP2) resulting in a second image with a second intensity peak occurring at a second sensor position (SP2). The imaging system further includes one or more additional second light sources for illuminating the measurement object with one or more second lights.
[0019] The device is configured to illuminate a measurement object with the one or more second lights and detect any reflected second lights from the measurement object by an image sensor during one or more third exposure periods (EXP3), resulting in one or more third images (IM3).
[0020] The device is further configured to select, for each SP1 in IM1, a respective third sensor position (SP3) in IM3, and to provide the illumination using one or more second lights such that during EXP3, any reflected second light from the measurement object results in a higher intensity at the selected SP3 than the reflected first light.
[0021] Further, the device is configured to acquire 2D image data of each selected SP3 in the IM3, and to associate the acquired 2D image data with the SP1 selected for it by each selected SP3, whereby the acquired 2D image data becomes associated with 3D image data.
[0022] The embodiments herein enable the provision of 2D image data associated with and aligned at the sensor position or pixel level with the 3D image data from optical triangulation. This is not limited to acquiring the 2D image data from illumination with the same light source used to acquire the 3D image data. As a result, a greater variety of 2D image data may be acquired based on using different types of light sources and / or illumination, including, for example, illumination from different positions and directions.
[0023] In some embodiments, the 2D image data may be obtained from the same image frame and exposure as the associated 3D image data, and in some embodiments, may be obtained from a separate exposure and separate, but related, image frame, utilizing the time period between subsequent image frames from optical triangulation. While said embodiments using the same image frame and exposure allow for less data processing and easier implementation with existing systems, said embodiments using separate exposures and image frames for the 2D data allow for alternative types of illumination and, therefore, more types of 2D image data, thereby also supporting more applications.
[0024] The embodiments herein include, for example, Speckle-noise-free reflectance-based 2D image data in laser triangulation-based 3D imaging systems. 2D image data based on reflectance from alternative light source geometries in an optical triangulation-based 3D imaging system; and Based on reflectance, it allows for improved detection of surface defects in 2D image data that is aligned with and, for example, registered with, the 3D image data from optical triangulation.
[0025] Example embodiments of the present invention will now be described in more detail with reference to the accompanying schematic drawings, which are briefly described below. [Brief description of the drawings]
[0026] [Figure 1] FIG. 1 illustrates a schematic diagram of an example of a prior art imaging system in which embodiments herein may also be used and / or based. [Figure 2A] FIG. 1 illustrates a simplified example of an imaging system that may be configured to perform embodiments herein. [Figure 2B] 1 is a flow chart to generally illustrate an embodiment of a method according to an embodiment herein. [Figure 3A] FIG. 1 shows a schematic diagram of the situation for one main subgroup of embodiments herein. [Figure 3B] FIG. 1 shows a schematic diagram of the situation for one main subgroup of embodiments herein. [Figure 4A] FIG. 1 is a schematic diagram illustrating an example according to an embodiment of the present disclosure. [Figure 4B] FIG. 1 is a schematic diagram illustrating an example according to an embodiment of the present disclosure. [Figure 4C] FIG. 1 is a schematic diagram illustrating an example according to an embodiment of the present disclosure. [Figure 4D] FIG. 1 is a schematic diagram illustrating an example according to an embodiment of the present disclosure. [Diagram 5] FIG. 13 is a diagram illustrating an example in which there is a difference between sensor positions SP1 and SP3. [Figure 6A] FIG. 1 illustrates a schematic diagram of an example of an imaging system that may be configured to perform an embodiment of the present disclosure. [Figure 6B]FIG. 1 illustrates a schematic diagram of an example of an imaging system that may be configured to perform an embodiment of the present disclosure. [Figure 6C] FIG. 1 illustrates a schematic diagram of an example of an imaging system that may be configured to perform an embodiment of the present disclosure. [Figure 6D] FIG. 1 illustrates a schematic diagram of an example of an imaging system that may be configured to perform an embodiment of the present disclosure. [Figure 6E] FIG. 1 illustrates a schematic diagram of an example of an imaging system that may be configured to perform an embodiment of the present disclosure. [Figure 7A] FIG. 2 illustrates an image of a measurement object based on 2D image data generated without application of an embodiment herein. [Figure 7B] FIG. 2 illustrates an image of a measurement object based on 2D image data generated with application of embodiments herein. [Figure 8A] FIG. 13 illustrates another exemplary image of a measurement object based on 2D image data generated without application of an embodiment herein. [Figure 8B] FIG. 13 illustrates another exemplary image of a measurement object based on 2D image data generated with application of embodiments herein. [Figure 9] 2C is a schematic block diagram illustrating an embodiment of one or more devices that may be configured to perform the methods and actions described with respect to FIG. 2B. [Figure 10] 2C is a schematic diagram illustrating some embodiments of a computer program and its carrier for causing a device to perform the methods and actions described with respect to FIG. 2B. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0027] The embodiments herein are exemplary embodiments. It should be noted that these embodiments are not necessarily mutually exclusive. Elements from one embodiment may be implicitly assumed to be present in other embodiments, and it will be clear to one skilled in the art how those elements may be used in other exemplary embodiments.
[0028] When an optical triangulation light source, typically a laser, is used to acquire a reflectance image, i.e. an image based on 2D data of the measured object, disadvantages include speckle noise in the image and the inability to gather alternative surface information other than that which is possible from the light used in optical triangulation.
[0029] On the other hand, if an image of the measurement object is acquired separately from the optical triangulation, obtaining a desirable alignment with the 3D image of the measurement object as resulting from the optical triangulation is extremely difficult, if at all possible, in all applications.
[0030] A "multi-scan" approach may be used, where, for example, a separate row or rows of the imager used, i.e., the image sensor, may be used to collect 2D image data, but this still requires a resampling process without any good alignment with the 3D image data. Furthermore, it is difficult to create a good focus, both for the optical triangulation for which most of the imager is used, and for the separate 2D image data readout. Optical triangulation setups typically have a maximum focus only around the periphery of the laser face using Scheimpflug focusing, as well as the ability and desire to use a large aperture opening to allow more light to reach the imager.
[0031] It would therefore be desirable to have a method for acquiring 2D image data that is not limited to using the light used in optical triangulation as such, and at the same time is able to better align the 2D image data with the 3D image data from optical triangulation.
[0032] The embodiments herein relate to a solution for the above.
[0033] FIG. 1 shows a schematic representation of an example of an imaging system of the type described in the background, namely an imaging system 100 for 3D machine vision, based on optical triangulation to capture information about 3D properties of a target object. The system can be used to provide images in which the embodiments described further below can operate. The system 100 is shown in the figure in a normal operating situation, i.e. typically after a calibration has been performed, and thus the system is calibrated. The system 100 is configured to perform optical triangulation, here in the form of a sheet of optical triangulation, as described in the background. The system 100 further comprises a light source 110, e.g. a laser, for illuminating the object to be imaged with a particular light pattern 111, illustrated and shown in the figure as a sheet of light. The light can be, but does not have to be, a laser light. In the illustrated example, the target object is illustrated by a first measurement object 120 in the form of a car, and a second measurement object 121 in the form of a gear structure. When the specific light pattern 111 is incident on the object, this corresponds to a projection of the specific light pattern 111 on the object, which may be seen when the specific light pattern 111 intersects with the object. For example, the specific light pattern 111, illustrated in the illustrated example as a sheet of light, gives rise to a light beam 112 on the first measurement object 120. The specific light pattern 111 is reflected by the object, more specifically by a portion of the object at the intersection, i.e., in the illustrated example, at the light beam 112. The measurement system 100 further includes a camera 130 including an image sensor (not shown in FIG. 1). The camera and image sensor are positioned with respect to the light source 110 and the object to be imaged, such that the specific light pattern, when reflected by the object, becomes incident light on the image sensor. The image sensor is a device, typically implemented as a chip, for converting incident light into image data. The portion of the object, which by reflection causes said incident light on the image sensor, may thereby be captured by the camera 130 and the image sensor, and corresponding image data may be produced and provided for further use.For example, in the illustrated example, a particular light pattern 111 becomes reflected in a ray 112 on a portion of the car roof of the first measurement object 120 towards the camera 130 and image sensor, which may thereby produce image data and provide it with information about said portion of the car roof. Using knowledge of the geometry of the measurement system 100, e.g., how image sensor coordinates relate to coordinates of a coordinate system 123 related to the object being imaged and its context, e.g., world coordinates such as Cartesian, the image data may be converted into information about the 3D properties, e.g., 3D shape or contour, of the object being imaged in a suitable format. The information about the 3D properties, e.g., the 3D shape or contour, may include data representing the 3D properties in any suitable format.
[0034] For example, by moving the light source 110 and / or the object to be imaged, such as the first measurement object 120 or the second object 121, so that multiple portions of the object are illuminated and cause reflected light to be generated on the image sensor, in effect typically scanning the object, image data describing a more complete 3D shape of the object can be produced, e.g. corresponding to multiple successive contours of the object, such as the illustrated contour images 141-1 to 141-N of the first measurement object 120, where each contour image shows the outline of the first object 120 from which a particular light pattern 111 was reflected when the image sensor of the camera unit 130 detected the light that gave rise to the contour image. As shown in the figure, a conveyor belt 122 or the like may be used to move the object through the particular light pattern 111, and the light source 110 and camera unit 130 are typically fixed, or the particular light pattern 111 and / or camera 130 may be moved over the object so that all parts of the object, or at least all parts facing the light source 110, are illuminated and the camera receives light reflected from all parts of the object that it is desired to image.
[0035] As can be seen from the above, for example, an image frame provided by the camera 130 and its image sensor of the first measurement object 120 may correspond to any one of the contour images 141-1 to 141-N. As mentioned in the background, each location of the first object's outline shown in any one of the contour images 141-1 to 141-N is typically determined based on identifying intensity peaks in the image data captured by the image sensor and finding the locations of these intensity peaks. The system 100 and conventional peak finding algorithms are typically configured to search for intensity peaks by pixel column in each image frame. If the sensor coordinates are u,v, e.g., u corresponds to a pixel location along a row in the image sensor as shown in the figure, and v corresponds to a pixel location along a column, then for each location, there is u of the image frame searched for peak locations along v, and the identified peaks in the image frames may result in one clean contour image as shown in the figure, and the entire image frames and contour images may be used to create a 3D image of the first object 120.
[0036] 2A shows a simplified first example of an imaging system 205 that can be configured to perform, i.e., to implement, embodiments of the present specification. The imaging system 205 is based on optical triangulation to capture information about 2D and 3D properties of one or more measurement objects. The system shown corresponds to a basic configuration and includes: a first light source 210 for illuminating the measurement object 220 with a first light 211, typically a laser light, as part of optical triangulation for 3D imaging of the measurement object 220; a second light source 250 for illuminating the measurement object 220 with a second light 251 for 2D imaging of the measurement object 220; a camera 230 with an image sensor 231 arranged to detect the first light reflected from the measurement object 220 as part of said optical triangulation for 3D imaging, and to detect the second light reflected from the measurement object 220 for said 2D imaging.
[0037] The camera 230, the image sensor 231, and the first light source 210 are configured and positioned relative to each other for optical triangulation. The system 205 may correspond to the system 100 in Fig. 1 for the purposes of optical triangulation, i.e. with respect to how the first light source 210, the camera 230, the image sensor 231 are positioned relative to each other and the measurement object 220, etc., and further configured to perform according to embodiments herein and as further described below. The image sensor 231 should of course also be sensitive to the second light, but this will typically be the case for all conventional image sensors used for optical triangulation.
[0038] Thus, the measurement object 220 may correspond to the first measurement object 120 and is shown to be located at least partially within the field of view 232 of the camera 230. The first light source 210 is configured to illuminate the measurement object 220 with a first light 211, typically in the form of structured light, such as a particular light pattern, e.g., a sheet of light, and / or a beam of light, such as a laser, that is reflected by the measurement object 220, and the reflected first light is captured by the camera 230 and the image sensor 231. Another example of structured light that may be used as the first light is a light edge, i.e. an edge of an area or part where there is illumination.
[0039] The measurement object 220 may be illuminated in this way and images may be captured as in conventional optical triangulation. Said optical triangulation as such may therefore involve, as in the prior art, movement of the first light source 210 and / or the measurement object 220 relative to each other, so that at different successive times different successive parts of the measurement object 220 are illuminated by the first light source 210 and the first light 211. The reflected first light 211 from the measurement object 220 is detected by the image sensor 231. In optical triangulation, typically, but not necessarily, the camera 230 and the first light source 210 are fixed relative to each other and the measurement object 220 moves relative to them. Through said detection by the image sensor 231, each image frame is associated with the respective time when the image frame was detected, i.e. captured, and with the respective part of the measurement object 220 from which the image sensor 231 detected the reflected first light 211 at the respective time.
[0040] The camera 230 is a prior art camera and may correspond, for example, to the camera 130 in the system 100 of FIG. 1, and the image sensor 231 may be the same or a similar image sensor described above with respect to FIG. 1. It may be desirable to transfer, e.g., transmit, the image frames provided by the camera 230 and the image sensor 231, and / or information derived from the image frames, to a computing device 233, such as, for example, a computer or the like, for further processing outside the camera 230. Such further processing may additionally or alternatively be performed by a separate computing unit or device (not shown), i.e., separate from the image processor 231, but still included within, e.g., integrated with, the camera 230, or a unit including the camera 230. The computing device 233, e.g., a computer or other device (not shown), may be configured to control devices involved in the optical triangulation and / or involved in the embodiments herein, such that the optical triangulation and / or other actions related to the embodiments herein are caused to occur.
[0041] The first light source 110 and the camera 230 are typically positioned at a predetermined fixed location with a known relationship to each other for optical triangulation. The second light source 250 may also be at a fixed location relative to the camera 230 and the first light source 210, but the exact location and relationship to the camera 230 and the image sensor 231 is not utilized as in the case of optical triangulation for the embodiments herein, and thus the second light source may be positioned more freely for purposes of providing second light and illumination in accordance with various embodiments herein as further described below.
[0042] FIG. 2B is a flow chart for illustrating an embodiment of a method according to an embodiment of the present specification. The following actions, which may form a method, are for obtaining 2D image data and associating it with 3D image data. The 3D image data is based on a first intensity peak position resulting from optical triangulation performed by an imaging system, for example, imaging system 205. The first intensity peak position may therefore be an intensity peak position as determined in conventional optical triangulation. They are described and illustrated further below with respect to the embodiments of the present specification and in separate figures and examples. The imaging system includes a first light source for illuminating a measurement object with a first light and an image sensor for detecting the first light reflected from the measurement object. In the following, the first light source and the first light may be exemplified by the first light source 210 and the first light 211, and the measurement object and the image sensor may be exemplified by the measurement object 220 and the image sensor 231.
[0043] As in conventional optical triangulation, optical triangulation involves:
[0044] Illuminating a first portion of a measurement object 220 with a first light 211 and detecting first light reflected from the first portion by an image sensor 231 during a first exposure period, resulting in a first image (IM1) having a first intensity peak occurring at a first sensor position (SP1).
[0045] The first light 211 is used to illuminate another second portion of the measurement object 220 adjacent to the first portion, and the first light reflected from the second portion is detected by the image sensor 231 during another second exposure period (EXP2), resulting in a second image (IM2) having a second intensity peak occurring at a second sensor position (SP2).
[0046] Thus, the first image and the second image correspond to successive image frames with intensity peaks that are used for optical triangulation.
[0047] The exposure periods, images, and sensor positions SP1 and SP2 are further described and illustrated below in separate figures and examples.
[0048] Furthermore, the imaging system, e.g., imaging system 205, preferably further comprises one or more additional second light sources for illuminating the measurement object 220 with one or more second lights different from said first light. In the following, the second light source and the second light may be exemplified by second light source 250 and second light 251. Descriptions, further examples and details of the second light source and the second light are provided below in separate figures and examples.
[0049] 2B may be performed by one or more devices, such as camera 230 and / or computing device 233, or by imaging system 205 and / or suitable devices therein or connected thereto. Methods and devices for performing the actions thereof are further described below.
[0050] Please note that the following actions may be taken in any suitable order and / or may overlap in whole or in part, when this is possible and suitable.
[0051] Action 201 The measurement object 220 is illuminated using the one or more second lights 251, and any reflected second lights from the measurement object 220 are detected by the image sensor 231 during one or more third exposure periods (EXP3), resulting in one or more third images (IM3), respectively.
[0052] Illumination may be provided such that during the first exposure period (EXP1), any reflected second light results in a lower intensity at the first sensor location (SP1) and the second sensor location (SP2) than the intensity from the reflected first light. This ensures that second light interference of the first light intensity peaks is kept low, as will be further described and illustrated below with respect to Figures 4A-4D.
[0053] The images IM1-3 and exposure periods EXP1-3 are described and discussed below with respect to Figures 3A-3B for two main groups of embodiments, respectively.
[0054] Action 202 For each first sensor position (SP1) in the first image, a respective third sensor position (SP3) in the one or more third images (IM3) may be selected, and the illumination with one or more second lights 251 may be provided such that during the one or more third exposure periods (EXP3), any reflected second light from the measurement object 220 results in a higher intensity at the selected third sensor position (SP3) than the reflected first light 211. This ensures that the reflected second light is not obscured and / or undesirably interfered with by the reflected first light at SP3.
[0055] In some embodiments, the third sensor location (SP3) is selected with a predefined or predetermined relationship with the first sensor location (SP1) resulting from the optical triangulation. For example, it may be pre-determined that each SP3 should be selected with a predefined relationship with each SP1, such as at a predefined distance from each SP1 and / or in a predefined direction. For example, the respective SP3 should be selected at a predefined number of pixels from the respective SP1, or should be a pixel or position at a predefined distance. The predefined direction may correspond to the scanning direction applied for the optical triangulation, i.e., a direction on the image sensor that maps to the scanning direction. For example, as in the case of the example illustrated herein with the x, y, z real world coordinate system and u, v sensor coordinates, the scanning direction along y maps to a direction along v on the image sensor 231. The predefined or predetermined direction may also be described as a direction corresponding to a direction in which the first light intensity with an intensity peak at SP1 has the closest and / or largest drop when moving away from SP1, or it is the first light intensity gradient direction from SP1 and the intensity peak therein.
[0056] Sensor positions SP1-3, including the selection of the third sensor position SP3 and what differs between the two main groups of embodiments, are further described and illustrated below with respect to Figures 4A-4D.
[0057] Action 203 2D image data from each third sensor position (SP3) in the one or more third images, i.e., the third sensor position selected in action 202, is acquired, and the acquired image data is associated with the first sensor position (SP1) for which each third sensor position (SP3) was selected. As a result, the acquired 2D image data becomes associated with the 3D image data, since the 3D image data from the optical triangulation is based on the first intensity peak position at the first sensor position (SP1).
[0058] As used herein, "2D image data" refers to image data at a location or pixel of an image sensor, e.g., image sensor 231, resulting from exposure to light, or at a corresponding location in an image generated by the image sensor. The 2D image data typically corresponds to light intensity and / or color. In embodiments herein, the 2D image data of a location or pixel includes information about a corresponding location on the measurement object that reflected the second light, i.e., the 2D image data of a location corresponds to image data with information about how the corresponding location of the imaged measurement object reflects the second light.
[0059] As used herein, "3D image data based on intensity peak positions resulting from optical triangulation" should be understood as data that includes at least depth information relative to the image sensor for the corresponding positions on the measurement object that reflected the first light where the intensity peak positions occur. For example, in the contour images 141-1...141-N shown with respect to Fig. 1, the identified intensity peak positions are shown in sensor coordinates u, v, and the intensity peak position v for each position u includes information about the depth of the imaged object 120, more specifically, depth information about the positions on the object 120 that reflected the light 112 where the intensity peak position v occurs.
[0060] In practice, the 3D image data relating to the position on the measurement object where the first light was reflected may be the 3D position of the intensity peak position in u, v, t that maps to a position in x, y, z on the measurement object, or it may be the corresponding 3D position in coordinates x', y', z' of a 3D model of the measurement object, which model has been provided from calculations based on u, v, t and known operating conditions and relationships used in optical triangulation.
[0061] Thus, the embodiments herein relate to providing 2D image data associated with 3D image data from optical triangulation. The 2D image data is associated with the same position on the measurement object from which the 3D image data comes, because the 2D image data is acquired with respect to, and preferably together with, the acquisition of the image frame with the first intensity peak used for optical triangulation, and by using the same image sensor, as described above and further described and exemplified below, but is not limited to acquiring the 2D image data from the same light source illumination as that used to acquire the 3D image data. As a result, a wide variety of 2D image data associated with the 3D image data can be acquired based on using different types of light and / or illumination, including illumination from different directions and positions, as also described separately further below.
[0062] In embodiments using the second light 251, or for example several second light sources, the multiple lights may be provided by LEDs, at least some of which are advantageously diffuse and / or on which the second light source 250 may be based. That is, at least one of the second light sources may provide a diffuse second light. The diffuse light is in contrast to the first light 211, which is typically highly directional, such as a laser light. The diffuse light allows for reflectance without laser speckle. Another advantage with a diffuse second light is a simpler system setup, where it is easier to achieve a suitable intensity in SP3, and also in SP1. The diffuse light is also closer to the illumination that normally occurs, and therefore may be better for capturing the desired 2D image data for the measurement object. Some embodiments may also be easier to implement with a diffuse second light.
[0063] 3A-3B each show a schematic representation of the situation for two main subgroups of embodiments herein, relative to the method described above with respect to FIG. 2B. In short, FIG. 3A is for the first main subgroup of embodiments, where the third image (IM3) is the same as the first image (IM1), and therefore the third exposure period (EXP3) is the same as the first exposure period (EXP1). FIG. 3B is instead for the second main subgroup of embodiments, where the third image (IM3) is separate from the first image (IM1) and the second image (IM2), and where the third exposure period (EXP3) is a new separate exposure period after the first exposure period (EXP1), more specifically between EXP1 and EXP2, and therefore IM3 is between IM1 and IM2 in time, i.e. between the images used for optical triangulation.
[0064] FIG. 3A more specifically and generally shows a third exposure period 361-3a corresponding to EXP3, which is the same as the first exposure period 361-1a corresponding to EXP1. Also shown is a third image 340-3a corresponding to IM3, which is therefore the same image as the first image 340-1a corresponding to IM1. Also shown is a second image 340-2a corresponding to IM2, along with a second exposure period 361-2a corresponding to EXP2. The shown images IM1 and IM2 therefore correspond to images used for optical triangulation. The first image 340-1a is associated with a capture time t1, and the second image 340-2a is associated with a capture time t2. The difference T between t2 and t1 3D , i.e., T 3D =t2-t1 is a time period 363a corresponding to the time period between subsequent images as part of optical triangulation for providing 3D image data. The indicated length in time of the exposure period is merely to illustrate that there is an extension in time, and the time period T between subsequent image frames used in optical triangulation. 3D Note that this does not imply any desired relationship with
[0065] The exposure period, and the time period between subsequent images, may be as in conventional optical triangulation, although in some embodiments it may be important to adjust the exposure period to achieve suitable detection of both the reflected first light 211 and the reflected second light 251 in the same image.
[0066] In embodiments according to the first main subgroup of embodiments, a respective third sensor location (SP3) is selected in action 202 of the method in Figure 2B using a respective difference (d) in sensor coordinates to a respective first sensor location (SP1) in the first image 340-1, i.e., in IM1. These embodiments, including said respective differences, are further described and discussed below in connection with Figures 4A, 4D, and 5.
[0067] FIG. 3B more specifically and generally illustrates a third exposure period 361-3b corresponding to EXP3, which is a new and / or separate exposure period between the first exposure period 361-1b corresponding to EXP1 and the second exposure period 361-2b corresponding to EXP2. The third exposure period 361-3b is thus now an exposure period for a third image 340-3b corresponding to IM3, which is a separate image from the other, first image 340-1b corresponding to IM1. It should be seen that the figure illustrates an example in which the one or more third exposure periods (EXP3) and one or more third images (IM3) are only one, i.e., one third exposure period and one third image. However, in other examples and embodiments, not illustrated in the figures herein, there are two or more subsequent EXP3 and IM3 between EXP1, IM1 and EXP2, IM2.
[0068] A first image 340-1b having a first exposure period 361-1b, a second image 340-2b having a second exposure period 361-2b, T 3DThe time periods 363b corresponding to may be as their counterparts in FIG. 3A and / or as in the case of conventional optical triangulation. Thus, the images IM1 and IM2 shown correspond to the images used for optical triangulation of the method described above with respect to FIG. 2B, and the image IM3 is for capturing the reflected second light 251. Another difference compared to the first main group of embodiments is that in the second main subgroup of embodiments, the first light 211 may, and advantageously is, prevented from illuminating the measurement object 220 during one or more exposure periods (EXP3), for example by being switched off, attenuated or directed elsewhere, such as during 361-3b. This is possible thanks to the separate IM3 for capturing the reflected second light 251, which may be used to eliminate the risk of light disturbance from the first light, e.g. a laser, in one or more third images.
[0069] The second main subgroup of embodiments is further described and discussed below in conjunction with FIGS. 4B-4C and 5.
[0070] Figures 4A-4D show schematic examples of some embodiments of the present specification, specifically, Figures 4A and 4D show examples of the first main subgroup of embodiments, and Figures 4B-4C show examples of the second main subgroup of embodiments.
[0071] FIG. 4A, relating to the first main subgroup of embodiments, shows the light intensity along the image sensor coordinate v, which corresponds to the reflected light from the measurement object, e.g. the measurement object 220, such as that included in IM1, detected by the image sensor 231 during EXP1. As mentioned above, in the embodiments according to the first main subgroup, IM3=IM1 and EXP3=EXP1. The contributions from the reflected first light 211 and the reflected second light 251 are shown separately in the figure for the sake of explanation. The contribution from the reflected first light, i.e. the first light 211 reflected from the measurement object 220 and detected by the image sensor 231, corresponds in the figure to the first light intensity distribution 413a. The contribution from the reflected second light, i.e. the second light 251 reflected from the measurement object 220 and detected by the image sensor 231, corresponds in the figure to the second light intensity distribution 453a. In other words, the first light intensity distribution 413a is an example of the reflected first light 211, i.e., the reflected first light, and the second light intensity distribution 453a is an example of the reflected second light 251, i.e., the reflected second light. In practice, the light intensity distributions 413a and 453a are superimposed corresponding to adding the distributions shown, thereby forming a single light intensity distribution corresponding to that sensed by the image sensor.
[0072] The first light intensity distribution 413a is typically fairly narrow and has an intensity peak position 471a corresponding to SP1, as is the case when the illumination is a light beam, such as a laser line on the measurement object, and the second light intensity distribution 453a is typically at a substantially constant level, as is the case when the second light is provided as diffuse light illuminating the measurement object.
[0073] With reference to action 202, it was mentioned above in relation to Fig. 3A that a respective third sensor position (SP3) is selected in the first image 340-1, i.e. in IM1, with a respective difference (d) in sensor coordinates to a respective first sensor position (SP1). A third sensor position 473a corresponding to SP3 is shown in Fig. 4A. Said difference d is shown as difference 475a in the figure.
[0074] Moreover, it was mentioned above that under action 202, the illumination with one or more second lights 251 may be provided such that during the one or more third exposure periods (EXP3), i.e. only one EXP3 equal to EXP1 in the embodiments according to the first main subgroup, any reflected second light from the measurement object, such as the second light with the second light intensity distribution 453a, results in a higher intensity than the reflected first light 211 at the selected third sensor position (SP3). This is illustrated in FIG. 4A, where the second light intensity distribution 453a exceeds the first light intensity distribution 413a at the third sensor position 473a, i.e. at SP3. Thus, the difference in light intensity contributions from the first and second lights at SP3, i.e. I DIFF (SP3), which is shown in the figure as light intensity difference 479a.
[0075] In contrast, the second light intensity distribution 453a is below the first light intensity distribution 413a at the first sensor location 471a, i.e., at SP1. This is also in line with what was indicated above in relation to FIG. 3A and action 201, i.e., illumination may be provided such that during the first exposure period (EXP1), any reflected second light should result in a lower intensity than the intensity from the reflected first light at the first sensor location (SP1). Thus, the difference in light intensity from the first and second lights at SP1, i.e., I DIFF There is also a difference in intensity (SP1), shown in the figure as light intensity difference 477a.
[0076] From the figure it should be seen why SP3 should be selected with the difference d as described above for the embodiments according to the first main subgroup, i.e. the first light and the second light are detected in the same image, i.e. IM1 and IM3 are the same. The reason is that the second light should dominate in SP3 and should preferably be as little influenced as possible by the first light, but it may be difficult to completely avoid when IM3=IM1. Of course, SP3 should also be located close enough to SP1 so that the 2D image data in SP3 is considered to be related to the 3D image data based on SP1. This will be explained separately below, in particular in relation to FIG. 5.
[0077] Similarly, the reflected first light should advantageously dominate at SP1 so that the intensity peak, and therefore the light triangulation, is not adversely affected. The intensity peak position should be identifiable, e.g., conventionally, despite any presence of the second light. The first light intensity peak should preferably be as little affected as possible by the second light.
[0078] In some embodiments, for example, in the case of diffuse light and even a distribution of the second light, for a given SP3, the increased I DIFF (SP1) is the reduced I DIFF (SP3). It is then about finding a suitable balance between these and / or selecting SP3 appropriately. In most practical situations, for example when there is even a second light distribution, this is not a problem, because the second light intensity level can typically be kept well below the first light peak intensity level, which also drops rapidly when moving away from SP1, without any problems, i.e. the peak is very narrow. If required for a particular application, a person skilled in the art will be able to select a suitable SP3 and a second light intensity level for SP3, for example through routine inspection and experimentation.
[0079] Figures 4B-4C show light intensity along the image sensor coordinate v corresponding to reflected light from a measurement object, e.g. measurement object 220, detected by the image sensor 231 for the second main subgroup of embodiments. Figure 4B shows the detected reflected first light 211 contained in EXP1 and e.g. in IM1, and Figure 4C shows the detected reflected second light 251 contained in EXP3 and e.g. in IM3, which in these embodiments is separate from IM1, as explained above. Figure 4B shows the first light intensity distribution 413b, which corresponds to and may be the same as the first light intensity distribution 413a. Figure 4C shows the second light intensity distribution 453b, which corresponds to and may be the same as the second light intensity distribution 453a. In these embodiments, although not shown in the figures, in the case of a further third image, IM3, further views such as FIG. 4C may be provided with further second light intensity distributions resulting from detection of second light reflected during a further EXP3 of the image resulting in said further IM3.
[0080] A first sensor location 471b, corresponding to SP1, is shown in Figure 4B. A third sensor location 473b, corresponding to SP3, is shown in Figure 4C.
[0081] With reference to FIG. It has been mentioned above that the first light 211 can be, and is advantageously, prevented from illuminating the measurement object 220 during one or more exposure periods (EXP3), for example the third exposure period 361-3b. Thereby, no first light can be captured in IM3, which is clearly the case in FIG. 4C. Similarly, as also mentioned above, the second light 251 can be prevented from illuminating the measurement object 220 during the first exposure period 361-1b, i.e. EXP1, and therefore may not be captured in IM1, as can be seen in FIG. 4B. As can be seen by comparing FIG. 4B-FIG. 4C with FIG. 4A, this means that the reflected first light and the second light do not interfere with each other, regardless of where SP3 is selected relative to SP1. Therefore, since only the reflected first light or the second light is present in the image at the same time, it is not necessary to place SP3 at a distance d from SP1 as in the case of FIG. 4A, but instead SP3 can be, for example, the same sensor position as SP1, as shown in FIG. 4B-FIG. 4C, making it extremely easy to select SP3. In other words, the respective third sensor position SP3 in said one or more third images (IM3), for example 340-3, can be selected at the same respective first sensor position SP1, for example 471b, as the intensity peak in the first image (IM1), for example 340-1. Of course, the distance at the sensor position v corresponding to d is typically acceptable in these embodiments as well.
[0082] It should be noted that optical triangulation is typically performed with continuous movement of the measurement object and / or camera / light source relative to each other, so that IM3 at other times than IM1, e.g., at time t3, which is later than IM1 at time t2, means that there has been some change in the measurement object position that nevertheless maps to one and the same sensor position. In other words, SP3, even at the same sensor position as SP1, may still map with some offset to the actual object position on the measurement object that reflected the light occurring at the intensity peak position SP1. However, generally, in principle, in all conventional and practical optical triangulation systems, the difference in object position between two consecutive images used in optical triangulation, such as between IM1 and IM3, will typically be smaller than any d used for the embodiment described with respect to FIG. 4A. However, still at the same sensor position, e.g., for the same u, v, IM3 may be provided as soon as possible after IM1, so that the distance caused by the movement between t1 and t3 is minimized. For example, the one or more third exposure periods (EXP3) may be adjacent to the first exposure period (EXP1), e.g., as close as possible before or after EXP1. In embodiments where EXP3 is several exposure periods, these may be consecutive and follow each other as immediately as possible and as close as possible to EXP1.
[0083] Of course, SP3 may also be selected with some offset in the sensor position to compensate for movements and changes in the measurement object position between t1 and t3, but thus will typically not be required. In general, in embodiments according to the first main subgroup, compared to the second main subgroup, a larger offset needs to be accommodated between the measurement object position that maps to SP1 and the measurement object position that maps to SP3.
[0084] A solution to completely remove any offset would be to ensure that there is no relative movement between the measurement object 220 and the image sensor 231 between IM1 and IM3, for example by temporarily stopping the relative movement used in the optical triangulation, e.g. stopping at t1 and starting again at t3. However, this is typically undesirable for practical reasons and would typically also cause a reduction in the optical triangulation system throughput if implemented, for example by adapting an existing optical triangulation system.
[0085] FIG. 4D, just like FIG. 4A, is merely another example relating to the first main subgroup of embodiments.
[0086] Shown is an example where two sensor positions SP3-1 and SP3-2 are used for SP3, illustrated in the figure by third sensor positions 473-1c, 473-2c, respectively. These are preferably on either side of SP1, such as at the same distance from SP1. As shown, where SP3-1 473-1c is at a distance d1 475-1c from SP1 and SP3-2 473-2c is at a distance d2 475-2c from SP1, d1 may be equal to d2, but this is not required. The acquired 2D image data may be provided as an average of the 2D image data from SP3-1 and SP3-2, which may improve the relevance of the 2D image data for SP3, especially when SP1 is located between SP3-1 and SP3-2. This can be seen as sampling and acquiring 2D image data based on the second light for SP3 from two nearby positions on either side of SP1 to make the second image data more relevant, when offsets corresponding to d, or d1 and d2, cannot be avoided in the first main subgroup of embodiments.
[0087] The principle with two or more SP3 for each SP1, such as one on each side, can of course also be used with other second light distributions than the one shown in FIG. 4D, for example with a flatter second light distribution such as that shown in FIG. 4A.
[0088] A further difference compared to that shown in FIG. 4A is that the contribution of the second light intensity in SP1 may be less, since the second light is illuminating the measurement object, e.g., the measurement object 220, with a narrower light distribution on the measurement object 220. In the illustrated example, the light intensity distribution 453c may correspond to two narrow second light illumination areas on each side of the first light illumination on the measurement object, e.g., from the use of two second light sources. The narrow light distribution may be as narrow as the first light as shown in the figure, with a maximum or peak on each side of the first intensity peak SP1, etc. The second light and the second light intensity distribution may correspond to two light rays or bands on the measurement object, e.g., the measurement object 220, on each side of the light ray corresponding to the first light 211. Such an embodiment may be considered to take advantage of the fact that the second light is actually only required to provide the second light illumination in SP3. Using a narrower second light distribution than in FIG. 4A may allow the interference of the second light in SP1 to be reduced, while still providing sufficient illumination in SP3. In an embodiment such as FIG. 4D with a narrow second light distribution, a second light intensity peak may be advantageously provided at SP3, i.e., SP3 is then selected at SP3-1 and SP3-2 in the illustrated example. This may allow obtaining 2D image data with a smaller d and thus more relevant to SP1, compared to the case with a wider and flatter second light distribution as in FIG. 4A. For example, compared to FIG. 4A, I DIFF (SP1) 477c is the same SP1 for I DIFF (SP1) It can be larger than 477a, I DIFF (SP3-2) 479c is the same SP3 for I DIFF (SP3) It can be larger than 479a.
[0089] FIG. 5 shows diagrammatically an example where there is a difference between sensor positions SP1 and SP3 and a corresponding difference between the measurement object positions OP1 and OP3 to which the involved sensor positions map.
[0090] The measurement object is here a measurement object 520 with a wedge-like shape in the real world coordinate system x, y, z. A first light ray 512 is shown on the measurement object 520. The first light may be as in the example above. A zoom-in of the surface area on the measurement object 520 is shown, also covering a part of the light ray 512, with a first object point (OP1) 581 illuminated by the light ray 512. OP1 581 maps to a first sensor position SP1 571, corresponding to such SP1 described above and shown here in sensor coordinates u, v. In the lower figure, shown with u, v on the axis is therefore how an image IM taken as part of the light triangulation, for example IM1, may look in sensor coordinates, if only the first intensity peak position identified in v is shown for all u. There is therefore a light intensity peak position line 513 shown in sensor coordinates u, v, which maps to the light ray 512 in real world coordinates x, y, z. The mapping is typically derived from predetermined operating conditions and relationships used for optical triangulation, such as in conventional optical triangulation.
[0091] When SP3 is selected as described above for the first subgroup of embodiments at a distance d from SP1, SP3 actually maps to another point on the measurement object 520, for example a third object point OP3 583 at a distance Δ585 from OP1 581. Because SP3 is selected in relation to the light triangulation and intensity peak position SP1, the SP3 position at which the 2D image data is acquired can be controlled and all 2D image data for all SP3 can be consistently acquired at the same distance d, i.e., offset, to their respective SP1. As already indicated above, in most, if not all, practical applications, a second light can be provided that allows a sufficiently small distance d for the associated 2D image data at SP3. Also, since the distance d is known, it can be adjusted or corrected, at least to some extent, in some applications and in some circumstances, if this is desirable.
[0092] However, in either case it turns out to be desirable to have d as small as possible, since this means that Δ will also be as small as possible and therefore OP2 will be closer to OP1, which typically means that 2D data acquired at SP3 will be more relevant to SP1 and its corresponding OP1. In other words, 3D image data imaging OP1 can be related to more relevant 2D image data for OP1.
[0093] In the figure, d in sensor coordinates MAX 579, which corresponds to the maximum allowable offset for 2D data to be considered related to 3D data. MAX ) may be possible. What may be considered acceptable is application specific, e.g., how the imaging systems involved are configured for optical triangulation and the requirements for 2D image data. MAX may be represented, for example, in a predetermined number of pixels. MAX For example, in the figure, MAXThe corresponding maximum allowable distance in the real world, Δ MAX It can correspond to.
[0094] Thus, in embodiments herein, such as those described above in relation to the method with respect to FIG. 2A , the third sensor position SP3 may be positioned such that a respective difference (d) between the respective third sensor position (SP3) and the respective first sensor position (SP1) in sensor coordinates, with adjustment for real-world movement of a measurement object, e.g., one of measurement objects 220 or 520, between the first image (IM1) and the one or more third images (IM3), corresponds to an application specific maximum allowed offset for 2D image data to be considered related to 3D image data, e.g., d MAX 579.
[0095] The "with adjustment for any real-world movement of the measurement object" part relates to the second main subgroup of embodiments, i.e., those with IM3 separate from IM1 and IM2, in which, as disclosed above with respect to Figures 4B-4C, typically the movement of the measurement object between, for example, SP1 in IM1 and SP3 in IM3. Thus, even when SP3=SP1, SP3 in IM3 may not map to the same object position as SP1 in IM1. From the above, it can be seen that this also corresponds to a difference in sensor coordinates. For the first main subgroup of embodiments, where IM3=IM1, there is no real-world movement involved between the images.
[0096] 6A-6E are schematic illustrations of various imaging system examples that may be configured to perform, i.e., may be used to implement, embodiments of the present specification. The systems are particularly of how different second lights may be provided for embodiments of the present specification. The imaging system examples shown may be considered as more detailed examples, variations, and / or extensions of the more general imaging system 205 disclosed above with respect to FIG. 2B. Thus, in the following, the focus will be only on the details that are different compared to the imaging system 205, specifically the second light, and how the respective imaging system examples support and / or may be used to implement embodiments of the present specification.
[0097] 6A illustrates generally an imaging system 205a, where a second light source 250a provides second light 251a from substantially the same direction and location as the first light source 210 provides the first light 211. As illustrated, the provided second light 251a may be diffuse light.
[0098] Thus, referring to the method described above with respect to FIG. 2B , the second light source may include at least one light source, e.g., 250a, providing second light, e.g., second light 251a, from the same direction and / or location as the first light source 210 providing the first light 211.
[0099] Embodiments based on imaging system 205a are easy to implement and provide sufficient second light illumination for many applications, for example, a single illumination unit having both a first light source and a second light source can be provided and used.
[0100] FIG. 6B diagrammatically illustrates an imaging system 205b in which a second light source 250b provides second light 251b from a direction defined by an angle θ252b causing second light illumination on the measurement object (220, 520), e.g., its surface, resulting in specular second light reflection on the camera 230 and image sensor 231, and thereby illumination on a third sensor position SP3.
[0101] Thus, referring to the method described above with respect to FIG. 2B, the second light source may include at least one light source, e.g., 250b, providing second light, e.g., 251b, from a direction defined by, e.g., 252b, causing a second light illumination on the measurement object 220 resulting in a specular second light reflection that illuminates at least some of the third sensor positions (SP3).
[0102] To set up the imaging system 205b to cause a desired specular second light reflection, e.g., to find a suitable position and orientation of the second light source 250b, the specular second light reflection should be at or near the measurement object position that maps to the third sensor position (SP3), i.e., where the first light illuminates the measurement object, i.e., the specular reflection may be aimed to occur at the location where the first light, e.g., a laser, will illuminate the measurement object during light triangulation. If there is a known offset, e.g., a predetermined distance d where SP3 will be located relative to SP1, the location for the specular reflection may take this into account, but it typically means a very small difference in object position.
[0103] The embodiment based on the imaging system 205b may be particularly advantageous when it is desirable to be able to inspect a flat surface of a measurement object, for example a measurement object with a single or main flat surface that is important to inspect. The imaging system 205b may be set up such that the second light source will cause a specular reflection on such a surface, so that the reflected light falls on SP3 on the image sensor. The specular reflection may be particularly good for capturing image information about surface gloss variations and / or about very shallow surface variations, e.g. damage such as scratches, and their orientation. By applying the embodiment, such variations may be visible as a darkening in an otherwise bright image of the measurement object surface.
[0104] 6C shows a schematic of an imaging system 205c, where second light sources 250c-1 and 250c-2 provide second light 251c-1 and 251c-2 from opposite directions as dark field illumination along the surface of the measurement object 220. If there are any protrusions on the surface, these will cause second light reflections that illuminate the camera 230 and image sensor 231, including the third sensor position SP3.
[0105] FIG. 6D shows a schematic top view of how a second light source or a single second light source 250c' can surround the measurement object 220 so that second light 251c' can be provided as dark field illumination from multiple directions and sides.
[0106] Thus, referring to the method described above with respect to FIG. 2B, the second light source may include one or more light sources, e.g., 250c, that provide second light, e.g., 251c, as dark field illumination along the surface of the measurement object 220 such that any illuminated protruding structures on the surface will cause a second light reflection that illuminates at least some of the third sensor positions (SP3).
[0107] Such dark field illumination can be particularly advantageous for identifying surface roughness or structures, if any, that cause the surface roughness, e.g., roughness caused by bumps or scratches in the surface. With dark field illumination, any structures that cause roughness are typically visible as brightness in an otherwise dark image of the measurement object surface.
[0108] 6E illustrates a schematic of an imaging system 205e in which second light sources 250e-1 and 250e-2 provide second light 251e-1 and 251e-2 at two different angles, e.g., 120 degrees and 90 degrees, toward the camera 230 and image sensor 231. The second light may alternatively or additionally be from opposite directions, e.g., left and right in the figure.
[0109] 2B, the second light source may provide second light, e.g., 251e-1, 251e-2, from at least two different directions, e.g., 252e-1, 252e-2, respectively, causing second light illumination on the measurement object 220 resulting in second light reflections illuminating at least some of the third sensor positions SP3. The two directions may be different with respect to the object surface orientation, such that the surface orientation may be estimated, e.g., using any conventional photometric stereo method.
[0110] Further, with reference to the methodology described above with respect to FIG. 2B,
[0111] The second light in the embodiments herein may be of the same and / or different wavelengths of light as the first light. The second light typically includes one or more wavelengths of visible light, but in some embodiments includes or corresponds to wavelengths outside and / or near the range of (human) visual light, such as ultraviolet (UV) light. Non-visual light, such as UV, may be used, for example, in some embodiments with fluorescent measurement objects, i.e., when the measurement object includes a fluorescent material that makes its surface or a portion thereof fluorescent. In such embodiments, a UV blocking filter may be used with the camera during at least the one or more third exposure periods, so that only fluorescence from the measurement object is captured in the one or more third images (IM3). In such embodiments, the presence of fluorescent materials, for example, such on the measurement object surface, appears bright in the one or more third images (IM3). That is, in such embodiments, reflected second light refers to light that is reflected back while fluorescing and changing wavelength to a wavelength with less energy.
[0112] In some embodiments, the second light source, e.g., second light source 250a, or multiple such second light sources, or second light sources 250e-1, 250e-2, provides second light of different wavelengths, e.g., 251a, or 251e-1 and 251e-2, where the second light illuminating measurement object 220 differs in optical wavelength between two or more of the third exposure periods 361-3. Thus, these embodiments are for use with multiple third exposure periods (EXP3), and thus with the second main subgroup of embodiments.
[0113] Specifically, multiple third exposure periods (EXP3) and multiple third images (IM3), using different wavelengths of light in the different exposures, but alternatively or additionally with second light provided from different directions during different third exposure periods, may be used to extract additional or further information from the measurement object, capture information in the 2D image data, and thereby enable this information to be related to the 3D image data from optical triangulation, for the purposes of the embodiments herein.
[0114] With multiple secondary light sources in the embodiments herein, it is further possible to use and provide a sequence of third images (IM3), where, for example, a separate secondary light source may be used for each third image IM3 between IM1 and IM2. Each such third image may sample diffuse, specular, and dark field reflectance data from the surroundings of SP1.
[0115] To obtain further information about the measurement object from the reflected second light, image data can be obtained from multiple neighboring positions, e.g., rows, relative to SP3 in the one or more third images (IM3). This allows, for example, to create intensity images with a higher sampling density in the direction of movement, i.e., scanning, than is used in optical triangulation, and / or to alternate between different illumination types, e.g., specular and dark field illumination, in alternating cycles without losing resolution in the scanning direction.
[0116] 7A-7B show exemplary images of a measurement object based on 2D image data generated without and with application of embodiments herein. FIG. 7A shows the result when a first light source, e.g. a laser, corresponding to the first light source 110, is used to generate 2D image data of the measurement object. FIG. 7B shows the result when a second light source, e.g. corresponding to the second light source 250, with diffuse light from an LED as in the case of embodiments herein, is used to generate 2D data of the same measurement object. In the first case, in FIG. 7A, the laser speckle effect is present and visible. In contrast, in FIG. 7B, a much improved image without the laser speckle effect is shown based on embodiments herein.
[0117] 8A-8B show other exemplary images of a measurement object based on 2D image data generated without and with application of an embodiment herein. The imaged surface of the measurement object is painted semi-glossy and has some minor shallow damage in the form of very small scratches and slightly "rugged up" areas. FIG. 8A shows the result when a first light source, a laser, for example, corresponding to the first light source 110, is used to generate the 2D image data of the surface, i.e. the image in FIG. 8A is based on a first light reflectance. FIG. 8B shows the result when a second light source, for example, corresponding to the second light source 250, as in the case of an embodiment herein, is used. In particular, a second light with specular reflection was used, i.e. according to an embodiment herein as described with respect to FIG. 6B. In other words, the image in FIG. 8B is based on a second light specular reflectance.
[0118] As can be seen, the minor, shallow damage is not visible and not adequately captured by the 2D image data on which the image of FIG. 8A is based, whereas the minor, shallow damage is clearly visible and therefore adequately captured by the 2D image data on which the image of FIG. 8B is based.
[0119] 9 is a schematic block diagram to illustrate an embodiment of one or more devices 900, i.e., device 900, which may correspond to the devices already described above for performing embodiments herein, such as for performing the methods and / or actions described above with respect to FIG. 2B. Device 900 may correspond to a suitable device included in and / or forming any of the imaging systems disclosed herein, such as, for example, computing device 233 and / or camera 230, or any one of imaging systems 205, 205a-e.
[0120] The schematic block diagram is for illustrating an embodiment of how device 900 may be configured to perform the methods and actions described above with respect to Fig. 2B. Thus, device 900 is for acquiring and associating said 2D image data with said 3D image data, which is based on said first intensity peak position resulting from optical triangulation performed by an imaging system, e.g., any one of imaging systems 205, 205a-e.
[0121] The device 900 may include a processing module 901, such as a processing means, e.g., one or more processing circuits such as a processor, one or more hardware modules including circuitry, and / or one or more software modules for performing the methods and / or actions.
[0122] The device 900 may further include a memory 902 that may include, e.g., have entered or stored therein, a computer program 903. The computer program 903 includes "instructions" or "code" that is executable directly or indirectly by the device 900 to perform the methods and / or actions described above. The memory 902 may include one or more memory units and may further be arranged to store data, such as configurations, data, and / or values involved in or for performing the functions and actions of the embodiments herein.
[0123] Additionally, device 900 may include, as an example hardware module, processing circuitry 904 involved in processing and, e.g., encoding, data, which may include or correspond to one or more processors or processing circuits. Processing module 901 may include, e.g., be "embodied in" or "implemented by," processing circuitry 904. In these embodiments, memory 902 may include computer programs 903 executable by processing circuitry 904, such that device 900 is operable or configured to perform the methods and / or actions thereof.
[0124] Typically, device 900, e.g., processing module 901, includes an input / output (I / O) module 905 configured to participate in, e.g., by executing, any communication to and / or from other units and / or devices, such as transmitting information to and / or receiving information from other devices. I / O module 905 may be exemplified by an obtaining module, e.g., a receiving module, and / or a providing module, e.g., a transmitting module, when applicable.
[0125] Further, in some embodiments, the device 900, e.g., the processing module 901, includes one or more of an illumination module, a sensing module, a selection module, a providing module, an acquisition module, an association module as example hardware and / or software modules for performing actions of embodiments herein, which may be implemented in whole or in part by the processing circuitry 904.
[0126] Therefore, the result is as follows:
[0127] The device 900, and / or the processing module 901, and / or the processing circuitry 904, and / or the I / O module 905, and / or the illumination module, and / or the sensing module may be operable or configured to illuminate the measurement object with the one or more second lights and detect any reflected second lights from the measurement object by the image sensor during the one or more third exposure periods.
[0128] The device 900, and / or the processing module 901, and / or the processing circuitry 904, and / or the I / O module 905, and / or the selection module, and / or the providing module may be operable or configured to select, for a respective first sensor position SP1 in the first image, a respective third sensor position SP3 in the one or more third images, and provide the illumination using one or more second lights such that, during the one or more third exposure periods, any reflected second light from the measurement object results in a higher intensity at the selected third sensor position SP3 than the reflected first light.
[0129] The device 900, and / or the processing module 901, and / or the processing circuitry 904, and / or the I / O module 905, and / or the acquisition module, and / or the association module may be operable or configured to acquire the 2D image data of the respective third sensor position SP3 in the one or more third images, and to associate the acquired 2D image data with the first sensor position SP1 for which the respective third sensor position SP3 was selected.
[0130] FIG. 10 is a schematic diagram illustrating some embodiments of a computer program and its carrier for causing the device 900 to perform the methods and actions described above.
[0131] The computer program may be a computer program 903, which, when executed by the processing circuitry 904 and / or the processing module 901, comprises instructions that cause the device 900 to execute as described above. In some embodiments, a carrier, or more specifically a data carrier, for example a computer program product, containing the computer program is provided. The carrier may be one of an electronic signal, an optical signal, a radio signal, and a computer-readable storage medium, for example a computer-readable storage medium 1001 as shown diagrammatically in the figure. Thus, the computer program 903 may be stored on the computer-readable storage medium 1001. By carrier, a transitory propagating signal may be excluded, and the data carrier may be correspondingly referred to as a non-transitory data carrier. Non-limiting examples of data carriers that are computer-readable storage media are memory cards or memory sticks, disk storage media such as CDs or DVDs, or mass storage devices typically based on hard drives or solid-state drives (SSDs). The computer-readable storage medium 1001 may be used to store data accessible over a computer network 1002, for example the Internet or a local area network (LAN). The computer program 903 may further be provided as a pure computer program or may be included in one or more files. The one or more files may be stored on the computer-readable storage medium 1001 and available, for example, through download, for example, via a server, for example, on a computer network 1002 as shown in the figure. The server may be, for example, a web or file transfer protocol (FTP) server. The one or more files may be, for example, executable files, for direct or indirect download to and execution on the device, for example, by execution by the processing circuitry 904, to cause the device to perform as described above.One or more files may also, or alternatively, be for intermediate download and compilation, involving the same or another processor causing the device 900 to perform as described above to make the files executable before further download and execution.
[0132] It should be noted that any of the processing modules and circuits described above may be implemented as software and / or hardware modules, e.g., in existing hardware and / or as an application specific integrated circuit (ASIC), field programmable gate array (FPGA), etc. It should also be noted that any of the hardware modules and / or circuits described above may be included in, for example, a single ASIC or FPGA, or may be distributed among several separate hardware components, whether individually packaged or assembled into a system on a chip (SoC).
[0133] Those skilled in the art will also appreciate that the modules and circuitry described herein may refer to combinations of hardware modules, software modules, analog and digital circuitry, and / or one or more processors configured with software and / or firmware stored, for example, in memory, that when executed by one or more processors, may configure and / or cause a device, sensor, etc. to perform the methods and actions described above.
[0134] Identification by any identifier herein may be implicit or explicit. Identification may be unique in a certain context, for example, for a certain computer program or program provider.
[0135] As used herein, the term "memory" may refer to a data memory for storing digital information, typically a hard disk, a magnetic storage, medium, a portable computer diskette or disk, a flash memory, a random access memory (RAM), etc. Additionally, the memory may be an internal register memory of a processor.
[0136] It should also be noted that any enumerated terminology, such as first device, second device, first surface, second surface, etc., should be considered as such to be open-ended, and that the terminology, as such, does not imply any hierarchical relationship. In the absence of any explicit information to the contrary, the enumerated naming should be considered merely a way of achieving distinct names.
[0137] As used herein, the phrase "configured to" may mean that a processing circuit is configured or adapted to perform one or more of the actions described herein, using a software or hardware configuration.
[0138] As used herein, the term "number" or "value" may refer to any kind of number, such as a binary, real, imaginary, or rational number. Additionally, a "number" or "value" may be one or more characters, such as a letter or a string of letters. Additionally, a "number" or "value" may be represented by a string of bits.
[0139] As used herein, the phrases "may" and "in some embodiments" are typically used to indicate that the described features can be combined with any of the other embodiments disclosed herein.
[0140] In the drawings, features that may only be present in some embodiments are typically depicted using dotted or dashed lines.
[0141] When the word "comprise" or "comprising" is used, the word should be interpreted as being open-ended, i.e., meaning "consist at least of."
[0142] The embodiments of the present specification are not limited to the embodiments described above. Various alternatives, modifications, and equivalents may be used. Therefore, the above embodiments should not be interpreted as limiting the scope of the present disclosure, which is defined by the appended claims. [Explanation of symbols]
[0143] 100 Imaging system, system, measurement system 110 Light source, first light source 111 Specific Light Patterns 112 Rays, Light 120 first measurement object, first object, imaged object, object 121 second measurement object, second object 122 Conveyor Belt 123 Coordinate System 130 Camera, camera unit 141-1~141-N Contour image 205 Imaging systems, systems, devices 205a, 205b, 205c, 205e Imaging systems 210 First Light Source 211 First light, reflected first light, detected reflected first light 220, 520 Measuring object 230 Cameras, devices 231 Image sensors, image processors 232 Field of View 233 Computing devices, devices 250, 250c', 250c-1, 250c-2, 250e-1, 250e-2 Secondary light source 250a, 250b Second light source, light source 250c light source 251 Secondary light, reflected secondary light, detected reflected secondary light, diffuse secondary light 251a, 251b, 251c, 251c', 251c-1, 251c-2, 251e-1, 251e-2 Second Light 252b Angle θ, direction 252e-1, 252e-2 direction 340-1, 340-1a, 340-1b First Image 340-2, 340-2a, 340-2b Second Image 340-3, 340-3a, 340-3b 3rd image 361-1, 361-1a, 361-1b First exposure period 361-2, 361-2a, 361-2b Second exposure period 361-3, 361-3a, 361-3b Third exposure period 363a, 363b time period 413 Reflected First Light 413a first light intensity distribution, light intensity distribution 413b First light intensity distribution 453 Reflected Second Light 453a Second light intensity distribution, light intensity distribution 453b Second light intensity distribution 453c Light intensity distribution 471, 571 First sensor position SP1, first intensity peak position 471a Intensity peak position, first sensor position 471b 1st sensor position 473, 573 3rd sensor position SP3 473a, 473b 3rd sensor position 473-1c Third Sensor Location, SP3-1 473-2c Third Sensor Location, SP3-2 The difference between 475 and 575 475a Difference 475-1c distance d1 475-2c distance d2 477a Light intensity difference, IDIFF (SP1) 477c I DIFF (SP1) 479a Light intensity difference, I DIFF (SP3) 479c I DIFF (SP3-2) 512 Ray, First Light 513 Light Intensity Peak Position Line, Reflected First Light 579 d MAX , a given maximum distance 581 First object point (OP1), OP1 583 Third object point OP3 585 Distance Δ 589 Δ MAX 900 devices 901 Processing module, processor 902 Memory 903 Computer Programs 904 Processing circuit configuration, processor 905 Input / Output (I / O) Module, I / O Module 1001 Computer-readable storage medium 1002 Computer Network
Claims
1. A method for acquiring 2D image data and associating it with 3D image data, the 3D image data being based on a first intensity peak position (471, 571) resulting from optical triangulation performed by an imaging system (205) including a first light source (210) for illuminating a measurement object (220, 520) with a first light (211, 512) and an image sensor (231) for detecting a first light (413, 513) reflected from the measurement object (220, 520), the optical triangulation comprising illuminating a first portion of the measurement object (220, 520) with the first light (211, 512) and detecting the first light (413, 513) reflected from the first portion by the image sensor (231) during a first exposure period (361-1). detecting a first portion of the measurement object (220, 520) adjacent to the first portion with the first light (211, 512) and detecting the first light reflected from the second portion by the image sensor (231) during another second exposure period (361-2) to generate a second image (340-2) having a second intensity peak occurring at a second sensor position SP2, wherein the imaging system (205) further includes one or more additional second light sources (250) for illuminating the measurement object (220, 520) with one or more second lights (251), and the method further comprises: - illuminating (201) the measurement object (220, 520) with the one or more second lights (251) and detecting (201) any reflected second light (453) from the measurement object (220, 520) by the image sensor (231) during one or more third exposure periods (361-3), resulting in one or more third images (340-3); - selecting (202) a respective third sensor position SP3 (473, 573) in the one or more third images (340-3) for each first sensor position SP1 (471, 571) in the first image (340-1) and illuminating (202) the measurement object (220, 520) with the one or more second lights (251) such that, during the one or more third exposure periods (361-3), any reflected second light from the measurement object (220, 520) results in an intensity at the selected third sensor position SP3 (473, 573) that is higher than the reflected first light (413, 513); - acquiring (203) 2D image data of a respective selected third sensor position SP3 (473, 573) in said one or more third images (340-3) and associating (203) said acquired 2D image data with said respective first sensor position SP1 (471, 571) from which said respective selected third sensor position SP3 (473, 573) was selected; A method comprising:
2. 2. The method of claim 1, wherein the selected third sensor position SP3 (473, 573) is selected such that a respective difference (475, 575) in sensor coordinates between the respective selected third sensor position SP3 (473, 573) and the respective first sensor position SP1 (471, 571), with adjustment for real-world movement of any of the measurement object (220, 520) between the first image (340-1) and the one or more third images (340-3), is within a predetermined maximum distance (579) corresponding to an application-specific maximum allowable offset for 2D data to be considered related to 3D data.
3. 3. The method of claim 1 or 2, wherein the one or more third exposure periods (361-3) are the first exposure periods (361-1), the one or more third images (340-3) are the first image (340-1), and each selected third sensor position SP3 (473, 573) in the first image (340-1) is selected using a respective difference (475, 575) in sensor coordinates to the respective first sensor position SP1 (471, 571).
4. 3. The method of claim 1, wherein the one or more third exposure periods (361-3) are a separate exposure period or periods between the first exposure period (361-1) and the second exposure period (361-2).
5. 5. The method of claim 4, wherein the first light (211, 512) is prevented from illuminating the measurement object (220, 520) during the one or more third exposure periods (361-3).
6. 5. The method of claim 4, wherein the one or more second lights (251) are prevented from illuminating the measurement object (220, 520) during the first exposure period (361-1) and the second exposure period (361-2).
7. 5. The method of claim 4, wherein the respective selected third sensor positions SP3 (473, 573) in the one or more third images (340-3) are selected at the same respective first sensor positions SP1 (471, 571) as the intensity peak in the first image (340-1).
8. 5. The method of claim 4, wherein the second light source (250) provides second light (251) of a different wavelength, and the second light (251) illuminating the measurement object (220, 520) differs in optical wavelength during two or more of the third exposure periods (361-3).
9. The method of claim 1 or 2, wherein at least one of the second light sources (250) provides a diffuse second light (251).
10. 3. The method of claim 1 or 2, wherein the second light source (250) comprises at least one light source (250a) that provides a second light (251a) from the same direction and / or location as the first light source (210) provides the first light (211).
11. 3. The method of claim 1 or 2, wherein the second light source (250) includes at least one light source (250b) providing second light (251b) from a direction (252b) causing a second light illumination on the measurement object (220, 520) resulting in a specular second light reflection that illuminates at least some of the selected third sensor positions SP3 (473, 573).
12. The method of claim 1 or 2, wherein the second light source (250) includes one or more light sources (250c) that provide second light (251c) as dark field illumination along a surface of the measurement object (220, 520) such that any illuminated protruding structures on the surface cause a second light reflection that illuminates at least some of the selected third sensor positions SP3 (473, 573).
13. 3. The method according to claim 1 or 2, wherein the second light source (250) provides second light (251e-1, 251e-2) from at least two different directions (252e-1, 252e-2), respectively, causing second light illumination on the measurement object (220, 520) resulting in second light reflections that illuminate at least some of the selected third sensor positions SP3 (473, 573).
14. A computer program (903) comprising instructions which, when executed by one or more processors (901, 904), cause one or more devices (900) to perform the method according to claim 1 or 2.
15. One or more devices (900, 230, 233, 205) for acquiring 2D image data and associating it with 3D image data, the 3D image data being based on a first intensity peak position (471, 571) resulting from optical triangulation performed by an imaging system (205) including a first light source (210) for illuminating a measurement object (220, 520) with a first light (211, 512) and an image sensor (231) for detecting a reflected first light (413, 513) from the measurement object (220, 520), the optical triangulation comprising illuminating a first portion of the measurement object (220, 520) with the first light (211, 512) and detecting the reflected first light (413, 513) from the first portion by the image sensor (231) during a first exposure period (361-1). and illuminating another second portion of the measurement object (220, 520) adjacent to the first portion with the first light (211, 512) and detecting the first light reflected from the second portion by the image sensor (231) during another second exposure period (361-2) to generate a second image (340-2) having a second intensity peak occurring at a second sensor position SP2, wherein the imaging system (205) further includes one or more additional second light sources (250) for illuminating the measurement object (220, 520) with one or more second lights (251), and the one or more devices: illuminating (201) the measurement object (220, 520) with the one or more second lights (251) and detecting (201) any reflected second lights (453) from the measurement object (220, 520) by the image sensor (231) during one or more third exposure periods (361-3) to generate one or more third images (340-3); selecting (202) a respective third sensor position SP3 (473, 573) in the one or more third images (340-3) for each first sensor position SP1 (471, 571) in the first image (340-1), and illuminating (202) the measurement object (220, 520) with the one or more second lights (251) such that any reflected second light from the measurement object (220, 520) has a higher intensity at the selected third sensor position SP3 (473, 573) than the reflected first light (413, 513) during the one or more third exposure periods (361-3); acquiring (203) 2D image data for each selected third sensor position SP3 (473, 573) in said one or more third images (340-3), and associating (203) said acquired 2D image data with said each selected third sensor position SP3 (473, 573) to said each selected first sensor position SP1 (471, 571); One or more devices (900, 230, 233, 205) configured to:
Citation Information
Patent Citations
Three-dimensionally inputting device
JP2000346634A
Signal processing method and system
JP2006261436A
Shape measuring device, control method of shape measuring device, and program
JP2012251893A
Method and device for providing intensity peak position in image data from light triangulation in three-dimensional imaging system
JP2021034044A
Variable frame rate depth camera assembly
US10574938B1
