Depth data measuring head, measuring device and measuring method
Through the combination of actively projected stripe-encoded structured light and binocular imaging, combined with a high degree of synchronization of imaging and scanning, the problems of high power consumption, large size and poor anti-interference ability of the depth camera are solved, achieving high precision, high frame rate, low power Consumable pixel-level depth imaging improves the efficiency and accuracy of three-dimensional imaging.
Patent Information
- Application Number
- CN201910199180.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-03-15
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2039-03-15
AI Technical Summary
Existing depth cameras have problems in the field of three-dimensional imaging such as high power consumption, large size, poor anti-interference ability, and inability to achieve pixel-level or even sub-pixel-level real-time imaging.
Through the combination of actively projected stripe-encoded structured light and binocular imaging, the superimposable matching of multiple stripe-encoded patterns and binocular imaging do not need to rely on the characteristics of a specific imaging plane, combined with a high degree of synchronization of imaging and scanning, to reduce environmental light interference. Influence of depth measurement results, laser generators and micromirror devices are used to achieve highly flexible pixel-level depth imaging.
It achieves pixel-level depth imaging with high precision, high frame rate, and low power consumption, expands the available scenarios for depth measurement, and improves imaging speed and accuracy.
Smart Images

Figure CN111692987B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of three-dimensional imaging, and in particular to a depth data measuring head, a measuring device and a measuring method. Background Art
[0002] A depth camera is a device that collects depth information of a target object. This type of camera is widely used in 3D scanning, 3D modeling and other fields. For example, more and more smartphones are now equipped with depth cameras for face recognition.
[0003] Although three-dimensional imaging has been a hot topic of research in the field for many years, existing depth cameras still have many problems such as high power consumption, large size, poor anti-interference ability, and inability to achieve pixel-level or even sub-pixel-level real-time imaging.
[0004] Therefore, an improved depth data measurement scheme is needed. Summary of the invention
[0005] In view of this, the present invention proposes a depth data measurement head and measurement system, which provides a highly flexible pixel-level depth imaging solution by combining actively projected stripe coded structured light and binocular imaging, based on the characteristics of superimposable matching of multiple stripe coded patterns and binocular imaging without relying on a specific calibration imaging plane. The present invention also removes the influence of ambient light on the depth measurement results by highly synchronizing imaging and scanning, thereby further expanding the applicable scenarios of the present invention.
[0006] According to one aspect of the present invention, a depth data measurement head is proposed, comprising: a projection device for scanning and projecting structured light with stripe coding to a shooting area; a first and a second image sensor with a predetermined relative position relationship, for shooting the shooting area to obtain first and second two-dimensional image frames respectively under the illumination of the structured light; and a synchronization device for synchronously turning on the pixel columns in the stripe direction corresponding to the current scanning position in the first and second image sensors for imaging based on the scanning position of the projection device. Thus, the one-dimensional characteristics of the stripe image are utilized to control the range of the pixel columns for imaging at each moment, thereby reducing the adverse effects of ambient light on the measurement results. Since the correspondence between the pixel columns and the scanning light is affected by many factors such as the width, power, speed of the projected light, and the photosensitivity efficiency of the image sensor, the number of pixel columns synchronously turned on each time can be determined, for example, based on a calibration operation.
[0007] Preferably, the synchronization device may include a measuring device for measuring the scanning position of the projection device, and based on the measurement result of the measuring device, the synchronization of the pixel column imaging is started, thereby providing high-precision synchronization required for high frame rate through real-time measurement.
[0008] Preferably, the projection device may include a laser generator for generating linear and / or infrared lasers, and the laser generator is switched on and off at high speed to scan and project light and dark structured light corresponding to the stripe coding. Thus, precise control of the coding pattern can be achieved by simply switching the laser generator on and off.
[0009] Preferably, the projection device may include: a micromirror device that reciprocates at a predetermined frequency, and is used to scan and project the linear laser to the shooting area at the predetermined frequency, wherein the length direction of the linear laser is the length direction of the projected stripes. Thus, the high-speed, precise, compact and low-power characteristics of the micromirror device can be utilized to meet the industry's requirements for the above characteristics of the depth camera.
[0010] Taking into account the characteristics of the phase vibration of the micromirror device, a measuring device for measuring the vibration phase of the micromirror device in real time may be included in the synchronization device, and based on the measurement result of the measuring device, the synchronous start of the pixel column imaging is performed. This ensures the synchronization of scanning and imaging at extremely high frequencies. Preferably, the above-mentioned measuring device may be one or more photoelectric sensors, and the photoelectric sensors are arranged in any of the following ways: arranged on different emission paths of the projection device; arranged on different reflection paths within the projection device; and arranged on the emission and reflection paths inside and outside the projection device, respectively. The arrangement of the photoelectric sensors may be reasonably selected so that they can accurately measure the phase without affecting the normal projection of the structured light.
[0011] Preferably, each of the image sensors completes imaging of an image frame after the projection device performs a predetermined number of scanning projections, thereby compensating for the problem of insufficient intensity of the projected structured light through multiple scanning imaging.
[0012] Each pixel in the image sensor may include a structured light image frame storage unit that is synchronously turned on corresponding to the current scanning position. The storage unit may be, for example, a unit for storing charge and outputting 0 or 1 based on the charge storage amount, or may be a multi-level storage unit capable of outputting a grayscale image.
[0013] Preferably, each pixel in each image sensor includes a plurality of such structured light image frame storage units, each structured light image frame storage unit is used to image the stripe coded structured light of different patterns projected sequentially by the projection device, so as to generate a group of image frames for different patterns, wherein the group of image frames is used as a whole to perform a depth data calculation. Thus, it is more adapted to the characteristics of stripe coded imaging, for example, after generating the group of image frames, the pixel matching between the first and second image sensors can be performed directly based on the multiple 0 or 1 values stored in each pixel; or the digital operation module can directly perform digital operations based on multiple gray values to achieve pixel matching.
[0014] In addition, in order to image the ambient light (for example, a two-dimensional grayscale image), each pixel in the image sensor also includes an additional storage unit, which is used to be turned off when at least one structured light image frame storage unit of the pixel is turned on, and to be turned on during at least a partial period of time when the pixel is not irradiated by the structured light, so that the image sensor generates an ambient light image frame based on the additional storage unit.
[0015] According to another aspect of the present invention, a depth data measurement device is provided, comprising: a depth data measurement head as described in any one of the above items, and a processor connected to the depth data measurement head, for determining the depth data of the photographed object in the photographing area according to the predetermined relative positions of the first and second image sensors and the first and second two-dimensional image frames obtained by imaging the structured light. Preferably, at least part of the synchronization function of the synchronization device is implemented by the processor.
[0016] According to another aspect of the present invention, a depth data measurement method is proposed, comprising: scanning and projecting structured light with stripe coding to a shooting area; shooting the shooting area using first and second image sensors having a predetermined relative position relationship to respectively obtain first and second two-dimensional image frames under the illumination of the structured light, wherein, based on the scanning position of the structured light stripes, pixel columns in the stripe direction corresponding to the current scanning position in the first and second image sensors are synchronously turned on for imaging; and depth data of the object to be measured in the shooting area is obtained based on the first and second two-dimensional image frames.
[0017] Preferably, projecting structured light may include using a laser emitter to generate infrared light; and using a micromirror device to vibrate back and forth at a predetermined frequency, thereby scanning and projecting the linear laser toward the shooting area at the predetermined frequency, wherein the length direction of the linear laser is the length direction of the projected stripes.
[0018] Preferably, the measuring method may further include: measuring the vibration phase of the micromirror device in real time to obtain the scanning position of the structured light fringes.
[0019] Preferably, the measurement method may further include: determining the number of pixel columns to be synchronously turned on each time based on a calibration operation.
[0020] Preferably, the measuring method may further include: using a plurality of structured light image frame storage units included in each pixel in each image sensor to respectively image stripe coded structured lights of different patterns projected sequentially to generate a group of image frames for different patterns; and performing pixel matching between the first and second image sensors directly based on a plurality of 0 or 1 values stored in each pixel.
[0021] Preferably, the measuring method may further include: using an additional storage unit included in each pixel in each image sensor to perform imaging during at least a partial period of time when the image sensor is not illuminated by the structured light, so that the image sensor generates an ambient light image frame based on the additional storage unit.
[0022] The depth data measurement scheme of the present invention can provide a highly flexible pixel-level depth imaging scheme by combining actively projected stripe coded structured light and binocular imaging, based on the superposition of stripe coded patterns and the fact that binocular imaging does not rely on a specific imaging plane. Specifically, the present invention can also remove the influence of ambient light on the depth measurement results by highly synchronizing imaging and scanning, and use DMD to achieve high-speed scanning of linear light, thereby further expanding the applicable scenarios of the present invention and improving imaging speed and accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] The above and other objects, features and advantages of the present disclosure will become more apparent through a more detailed description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, wherein like reference numerals generally represent like components in the exemplary embodiments of the present disclosure.
[0024] Figure 1 The principle of depth imaging using fringe-coded structured light is shown.
[0025] Figure 2 Another example of projecting fringe-coded structured light is shown.
[0026] Figure 3 A schematic diagram of the composition of a depth data measuring head according to an embodiment of the present invention is shown.
[0027] Figure 4A -B shows Figure 3 An enlarged operation example of the projection device shown.
[0028] Figure 5 A simplified perspective schematic diagram of a projection device used in the present invention is shown.
[0029] Figure 6 A schematic diagram showing how pixel rows in an image sensor are turned on in turn.
[0030] Figure 7 An example of a pixel structure of an image sensor used in the present invention is shown.
[0031] Figure 8 Another example of the pixel structure of the image sensor used in the present invention is shown.
[0032] Fig. 9 A schematic diagram of a depth data measuring device according to an embodiment of the present invention is shown.
[0033] Fig.10 A schematic flow chart of a depth data measurement method according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0034] The preferred embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the preferred embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to make the present disclosure more thorough and complete, and to fully convey the scope of the present disclosure to those skilled in the art.
[0035] In order to meet the requirements of high precision, high frame rate, low power consumption and miniaturization in the field of three-dimensional imaging, the present invention proposes a depth data measurement head and measurement system, which combines actively projected stripe coded structured light with binocular imaging, and provides a highly flexible pixel-level depth imaging solution based on the characteristics of the superposition of stripe coded patterns and the fact that binocular imaging does not rely on a specific imaging plane. The present invention also removes the influence of ambient light on the depth measurement results through high synchronization of imaging and scanning, thereby further expanding the applicable scenarios of the present invention.
[0036] According to the principle of structured light measurement, whether the scanning angle α can be accurately determined is the key to the entire measurement system. The scanning angle of point and line structured light can be calculated and determined through mechanical devices such as rotating mirrors, and the significance of image encoding and decoding lies in determining the scanning angle of the coded structured light, that is, the surface structured light system. Figure 1The principle of depth imaging using stripe-coded structured light is shown. For ease of understanding, the coding principle of stripe structured light is briefly explained in the figure using two gray levels and three-bit binary time coding. The projection device can project three patterns as shown in the figure to the object under test in the shooting area in sequence. The three patterns are divided into 8 areas using two gray levels of light and dark respectively. Each area corresponds to its own projection angle, in which it can be assumed that the bright area corresponds to the code "1" and the dark area corresponds to the code "0". The coding values of a point on the scene in the projection space in the three coding patterns are combined in the order of projection to obtain the regional coding value of the point, thereby determining the area where the point is located and then decoding to obtain the scanning angle of the point.
[0037] In a binocular imaging system, the above decoding process can be simplified by directly matching the encoding values of each point in the first and second image sensors. In order to improve the matching accuracy, the number of projected patterns in the time encoding can be increased. Figure 2 Another example of projecting stripe coded structured light is shown. Specifically, the figure shows a five-bit binary time code of two gray levels. In the application scenario of binocular imaging, this means that, for example, each pixel in each left and right image frame contains 5 area code values of either 0 or 1, thereby enabling left and right image matching with higher accuracy (e.g., pixel level). When the projection rate of the projection device remains unchanged, compared to Figure 1 The three coded patterns, Figure 2 The example is equivalent to achieving higher precision image matching at a higher time domain cost. This is still quite desirable when the projection speed of the projection device is originally very high (such as the micromirror device preferably used in the present invention).
[0038] Figure 3 FIG. 2 shows a schematic diagram of the composition of a depth data measuring head according to an embodiment of the present invention. Figure 3 As shown, the depth data measuring head 300 includes a projection device 310 and two image sensors 320_1 and 320_2 .
[0039] The projection device 310 is used to scan and project structured light with stripe coding to the shooting area. For example, in three consecutive image frame projection cycles, the projection device 310 can successively project the following Figure 1 The three patterns shown in the figure can be used to generate depth data. The first and second image sensors 320_1 and 320_2, which can be respectively referred to as the first and second image sensors, have a predetermined relative position relationship and are used to capture the capture area to obtain the first and second two-dimensional image frames under the illumination of the structured light. Figure 1In the case of the three patterns shown in FIG. 1 , the first and second image sensors 320_1 and 320_2 can respectively image the shooting areas (eg, Figure 3 Imaging is performed on the imaging plane in the image and the area within a certain range before and after it.
[0040] like Figure 3 As shown, the projection device 310 can project a linear light extending in the x direction in the z direction (i.e., toward the shooting area). In different embodiments, the projection of the linear light can be formed (i.e., the emitted light itself is the linear light) or a light point moving in the x direction (i.e., the linear light obtained by scanning). The projected linear light can continue to move in the y direction to cover the entire imaging area. Figure 3 The lower perspective view of the captured area gives a more understandable illustration of the scanning of the line light.
[0041] In the embodiment of the present invention, the direction of the light emitting from the measuring head is designated as the z direction, the vertical direction of the shooting plane is designated as the x direction, and the horizontal direction is designated as the y direction. Therefore, the stripe structured light projected by the projection device may be the result of the linear light extending in the x direction moving in the y direction. Although in other embodiments, the stripe structured light obtained by the linear light extending in the horizontal y direction moving in the x direction may also be synchronized and imaged, in the embodiment of the present invention, vertical stripe light is still preferably used for illustration.
[0042] Furthermore, the measuring head 300 further includes a synchronization device 330. The synchronization device 330 is connected to the projection device 310 and the first and second image sensors 320_1 and 320_2 respectively to achieve accurate synchronization among the three. Specifically, the synchronization device 330 can synchronously open the pixel columns in the stripe direction corresponding to the current scanning position in the first and second image sensors 320_1 and 320_2 for imaging based on the scanning position of the projection device 310. Figure 3 As shown in FIG. 1 , the current stripe is scanning to the center area of the shooting area. To this end, in the image sensors 320_1 and 320_2, the pixel columns located in the center area (for example, 3 adjacent pixel columns) are turned on for imaging. As the stripe moves in the y direction (for example, Figure 3 As shown by the arrows in the lower perspective view, the pixel columns turned on for imaging in the image sensors 320_1 and 320_2 also move synchronously accordingly (as shown by the arrows in the lower perspective view). Figure 3In the upper left frame diagram, the one-dimensional characteristics of the fringe image can be used to control the range of the pixel columns for imaging at each moment, thereby reducing the adverse effects of ambient light on the measurement results. In order to further reduce the influence of ambient light, the projection device is particularly suitable for projecting light that is not easily confused with ambient light, such as infrared light. In addition, since the correspondence between the pixel columns and the scanning light is affected by many factors such as the width, power, speed, and photosensitivity efficiency of the projection light, the range of the pixel columns (and the corresponding number) that are synchronously turned on each time can be determined based on a calibration operation, for example.
[0043] Figure 4A -B shows Figure 3 The enlarged operation example of the projection device shown in FIG. Figure 3 As shown, in the projection device 310, the laser generator (such as Figure 4A -B) emits a laser beam through a projection mechanism (such as Figure 4A -B) scanning and projecting to the shooting area ( Figure 3 gray area in the image) to detect the object to be measured in the shooting area (for example, Figure 3 A pair of image sensors 320_1 and 320_2 images the shooting area, thereby obtaining image frames required for depth data calculation. Figure 3 As shown, the dotted line emitted by the projection device 310 is used to represent its projection range, and the dotted lines emitted by the image sensors 320_1 and 320_2 are used to represent their respective imaging ranges. The shooting area is usually located in the overlapping area of the projection and imaging ranges of the three.
[0044] In one embodiment, the laser generator can continuously emit laser light of the same intensity, and the projected stripe pattern is achieved by turning the laser generator on and off. In this case, since the laser generator only projects light of one intensity, each pixel of the image sensor only needs to record the "presence or absence" of light, so the equipped image sensor can be a black and white image sensor.
[0045] In another embodiment, the laser generator itself can emit a laser with varying light intensity, for example, a laser whose output light intensity is sinusoidally transformed according to the applied power. The above-mentioned sinusoidally transformed laser can be combined with stripe projection, thereby scanning and projecting a pattern with alternating light and dark and different brightness between bright stripes. In this case, the image sensor needs to have the ability to distinguish and image different light intensities, so it can be a multi-level grayscale image sensor. Obviously, grayscale projection and imaging can provide more accurate pixel-to-pixel matching than black and white projection and imaging, thereby improving the accuracy of depth data measurement.
[0046] In one embodiment, the laser generator 411 may be a linear laser generator that generates a linear light extending in the x direction ( Figure 4A -B in the direction perpendicular to the paper surface). The linear light is then projected onto the imaging plane by a reflection mechanism 412 that can swing along an axis in the x direction. The swing diagram of the reflection mechanism 412 is shown in FIG. Figure 4B As shown, reciprocating linear light scanning can be performed within the range AB of the imaging plane.
[0047] In one embodiment, the reflection mechanism 412 may be a micromirror device (also referred to as a digital micromirror device, DMD), and may be implemented as a MEMS (micro-electromechanical system). Figure 5 A simplified perspective schematic diagram of the projection device used in the present invention is shown. Figure 5 As shown, the point laser generated by the laser can be converted into linear light (corresponding to the linear laser generator 411 in FIG. 4 ) through a lens, and the linear light is then reflected by a micromirror device in the form of MEMS, and the reflected linear light is then projected to the external space through a light window. Micromirror devices have extremely high performance. For example, commercially available DMDs can perform highly stable reciprocating vibrations at a frequency of 2k, thus laying the foundation for high-performance depth imaging.
[0048] In other embodiments, the laser beam for scanning projection may also be a point laser beam, so the projection mechanism needs to change the projection direction in two-dimensional directions (x and y directions in the figure) accordingly. For example, the projection mechanism first scans a stripe of light in the x direction, then moves in the y direction, and continues to scan in the x direction at different y positions.
[0049] Whether it is directly projecting stripes of light moving in the y direction, or projecting point light that needs to move in the x direction to form stripes and shift in the y direction, the stripes presented on the shooting area are those that move in the y direction over time. As the light spot moves in the y direction, a specific pixel column among all the pixels on the image sensor used to record the image frame is turned on so that it can collect the light reflected back from the corresponding position. Figure 6 FIG. 1 shows a schematic diagram of pixel columns in an image sensor being turned on in turn. Figure 6As shown, when the stripes projected by the projection device move from the middle of the imaging area to one side, in the pixel array of the image sensor, the pixel columns turned on for imaging also move from the middle to one side. As a result, the pixel columns are imaged and recorded only during the period when the corresponding shooting area is scanned, and are not recorded at other times. Since the intensity of the projected laser is higher than the intensity of the ambient light, the structured light itself can be imaged very accurately when the ambient light cannot be accumulated under the synchronous start-up scheme of the present invention. Since conventional image sensors usually perform row exposure, for this reason, the image sensor used in the present invention for exposure column by column (or multiple columns at the same time) can be obtained based on the existing image sensor transposed 90°. After the transposition, it is necessary to add control for simultaneous exposure of the entire column.
[0050] It should be understood that Figure 3 and Figure 6 The pixel matrix shown in is only an example given to illustrate the synchronization principle of the present invention. In actual applications, the pixel matrix of the image sensor is often of a higher order (for example, 1000x1000), and the pixel columns that are turned on at the same time each time may also have different ranges according to calibration (for example, 3 columns are turned on each time, or different numbers of columns are turned on at different positions of the shooting area, etc.). In addition, the turning on of the pixel columns in the image sensor may only be related to the scanning position of the projection structure in the projection device, and has nothing to do with whether the stripe light is actually projected at present. In other words, the turning on and off of the laser emitter based on the distribution of the light and dark stripes of the projection structure will not affect the scanning projection action of the projection structure, nor will it affect the turning on of the pixel columns of the image sensor synchronized with the above-mentioned scanning projection action.
[0051] The projection device as above may include a micromirror device (DMD) that reciprocates at a predetermined frequency, and is used to scan and project a linear laser to the shooting area at a predetermined frequency. Since the vibration frequency of the micromirror device is extremely high, for example, 2k per second, which is equivalent to scanning a complete projection structure light in 250ns, it is necessary to synchronize the position of the light reflected by the micromirror device extremely accurately. The above-mentioned accuracy makes it impossible to directly use the start signal of the micromirror device for synchronization (because the delay is unreliable). Therefore, considering the characteristics of the phase vibration of the micromirror device, a measuring device for real-time measurement of the vibration phase of the micromirror device can be included in the synchronization device, and based on the measurement results of the measuring device, the pixel column imaging is synchronized and turned on. This ensures the synchronization of scanning and imaging at extremely high frequencies.
[0052] In one embodiment, the above measurement can be based on the outgoing light itself. Therefore, the above measurement device can be one or more photoelectric sensors (for example, two photodiodes PD), and the two photoelectric sensors are arranged in any of the following ways: arranged on different outgoing paths of the projection device; arranged on different reflection paths within the projection device; and arranged on the outgoing and reflection paths inside and outside the projection device respectively. The arrangement of the photoelectric sensors can be reasonably selected so that it can accurately measure the phase without affecting the normal projection of the structured light. Figure 5 As shown, the PD can be installed in the projection device, and the instantaneous vibration phase can be determined by measuring the reflection angle when the laser exits the light window. Since the vibration phase of the DMD is sinusoidally distributed, one PD can determine the sinusoidal distribution information, and more PDs help to measure the phase more accurately. In other embodiments, the PD can also be installed outside the projection device, for example, on the light window, such as near the edge of the light window to prevent the projection in the shooting area from being affected. In other embodiments, other methods can also be used to measure the phase, such as capacitance measurement.
[0053] In one embodiment, each image sensor completes imaging of an image frame after each scanning projection by the projection device. For example, after the DMD completes half a cycle of vibration to scan the stripe light in the x direction from one side of the shooting area to the other side, it completes an image frame (for example, Figure 1 or Figure 2 In the case where the projection power of the projection device is limited, or the object to be measured is far away from the measuring head, the amount of charge obtained by the image sensor after a single scan is usually not enough for imaging, and multiple scanning imaging is required. Therefore, each image sensor completes the imaging of an image frame after the projection device performs a predetermined number of scanning projections. For example, the DMD can scan the same structured light pattern in five consecutive vibration cycles, so that the image sensor obtains enough charge for imaging, and then scans the same next structured light pattern in the next five vibration cycles, and so on.
[0054] Specifically, each pixel in the image sensor may include a structured light image frame storage unit that is synchronously turned on corresponding to the current scanning position. Figure 7 FIG. 2 shows an example of a pixel structure of an image sensor used in the present invention. Figure 7 As shown, a pixel column 721 may include k pixels P1-P k Each pixel includes the same structure, that is, a photosensitive unit, a switch and a storage unit. Specifically, the pixel P1 722 may include a photodiode 724 used as a photosensitive unit, a switch 726 and a storage unit 728. k723 may include a photodiode 725 used as a photosensitive unit, a switch 727 and a storage unit 729. The storage unit is, for example, a unit for storing the charge generated by the charge photodiode based on the received light and outputting it as 0 or 1 based on the charge storage amount. Therefore, when the synchronization device determines that the pixel column of a certain area in the image sensor needs to be turned on based on the measurement result of the measuring device, the synchronization device turns on the switch of each pixel in the corresponding pixel column 721 so that the charge converted by the photodiode can be stored in the storage unit; at other times, the charge accumulation switch of the pixel is turned off, so that the structured light image frame storage unit of each pixel is not turned on for most of the time in an imaging frame, thereby minimizing the influence of ambient light.
[0055] In a preferred embodiment, each pixel in the image sensor includes a plurality of such structured light image frame storage units. Figure 8 FIG. 2 shows another example of the pixel structure of the image sensor used in the present invention. Figure 8 As shown, a pixel column 821 may include k pixels P1-P k Each pixel includes the same structure, that is, a photosensitive unit, N switches and N storage units, wherein each switch controls the charge storage of a storage unit. Specifically, pixel P1 822 may include a photodiode 824 used as a photosensitive unit, N switches 826 and N storage units 828. Pixel P k 823 may include a photodiode 825 used as a light sensing unit, N switches 827 , and N storage units 829 .
[0056] The storage unit is, for example, a unit for storing the charge generated by the charge photodiode based on the received light and outputting it as 0 or 1 based on the charge storage amount. Each structured light image frame storage unit is used to image the stripe coded structured light of different patterns projected sequentially by the projection device to generate a group of image frames for different patterns. The group of image frames can be used as a whole to perform a depth data calculation.
[0057] by Figure 2 For example, the projection device first projects a group of five patterns of image frames. Figure 2 The image sensor sequentially turns on the first set of switches and storage units in the corresponding pixel column 821 during the pattern scanning process. Then, the projection device projects Figure 2 The second pattern from the left in the image sensor. During the pattern scanning process, the image sensor sequentially turns on the second set of switches and storage units in the corresponding pixel column 821. Then, the projection device projects Figure 2 During the pattern scanning process, the image sensor sequentially turns on the third set of switches and storage units in the corresponding pixel column 821. Then, the projection device projects Figure 2 The second pattern from the right in the image sensor. During the pattern scanning process, the image sensor sequentially turns on the fourth group of switches and storage units in the corresponding pixel column 821. Finally, the projection device projects Figure 2 The first pattern on the far right of . During the pattern scanning process, the image sensor sequentially turns on the fifth group of switches and storage units in the corresponding pixel column 821. Thus, the imaging of image frames for a group of five patterns is completed. At this time, the five storage units of each pixel store values of 0 or 1. Therefore, based on the five values of each pixel, the pixels in the two image sensors can be directly matched, for example, pixel-level matching, through the equipped digital operation module. In other words, when the pixels of the image sensor itself are equipped with multiple storage units, the pixels between the images can be matched directly by converting the virtual image signal into a digital signal and performing processing such as addition, subtraction, multiplication and division directly on the digital operation module. Compared with the prior art that requires the image frames to be read one by one and then the software calculation of pixel matching by the processor, the digital operation scheme of the present application can greatly improve the speed of image processing, and thereby improve the generation rate of depth data.
[0058] In a preferred embodiment, the storage unit may be a storage unit capable of storing multi-level grayscale values. Accordingly, the laser generator may project stripe light whose intensity varies according to a certain rule so that the storage unit can perform grayscale imaging on it. By selecting a specific light intensity variation projection mode, combining an image sensor with multiple storage units and a front-end digital computing module, a high degree of pixel matching based on digital operation under grayscale imaging can be achieved, thereby further improving image clarity while ensuring high-speed depth data calculation.
[0059] In order to image the ambient light (for example, different two-dimensional imaging), each pixel in the image sensor also includes an additional storage unit, which is used to be turned off when at least one structured light image frame storage unit of the pixel is turned on, and to be turned on during at least a partial period of time when the pixel is not irradiated by the structured light, so that the image sensor generates an ambient light image frame based on the additional storage unit.
[0060] The present invention also discloses a measuring device using the above-mentioned measuring head. Specifically, a depth data measuring device may include the above-mentioned depth data measuring head, and a processor connected to the depth data measuring head, for determining the depth data of the photographed object in the photographing area according to the predetermined relative positions of the first and second image sensors and the first and second two-dimensional image frames obtained by imaging the structured light. In different embodiments, the measuring head may have a relatively independent package, or it may be packaged in the measuring device together with the processor.
[0061] Fig. 9A schematic diagram of a depth data measuring device according to an embodiment of the present invention is shown. As shown in the figure, the measuring device 900 may include the measuring head and a processor 940 as described above. The measuring head includes a projection device 910, two image sensors 920, and a synchronization device 930.
[0062] The processor 940 is connected to the measuring head, for example, connected to each of the imaging device 910, the two image sensors 920, and the synchronization device 930, and is used to determine the depth data of the object in the shooting area according to the predetermined relative positions of the first and second image sensors 920_1 and 920_2 and the first and second two-dimensional image frames obtained by imaging the structured light.
[0063] In one embodiment, at least part of the synchronization function of the synchronization device can be implemented by a processor. For example, the processor can determine the scanning position of the stripes in real time based on the data measured by the measuring device included in the synchronization device, and incorporate the synchronization function of the synchronization device to achieve synchronous control of various components, for example, directly based on the electrical signal without delay.
[0064] Fig.10 A schematic flow chart of a depth data measurement method according to an embodiment of the present invention is shown. The method can be implemented by the depth data measurement head and the measurement device of the present invention.
[0065] In step S1010, a structured light with stripe coding is projected to a shooting area. In step S1020, the shooting area is photographed using first and second image sensors with a predetermined relative position relationship to obtain first and second two-dimensional image frames respectively under the illumination of the structured light, wherein, based on the scanning position of the structured light stripes, the pixel columns in the stripe direction corresponding to the current scanning position in the first and second image sensors are synchronously turned on for imaging. In step S1030, the depth data of the object under test in the shooting area is obtained based on the first and second two-dimensional image frames.
[0066] In one embodiment, step S1010 may include using a laser emitter to generate infrared line light; and using a micromirror device to reciprocate at a predetermined frequency, thereby scanning and projecting the linear laser to the shooting area at the predetermined frequency, wherein the length direction of the linear laser is the length direction of the projected stripes.
[0067] In one embodiment, the measuring method may further include: measuring the vibration phase of the micromirror device in real time to obtain the scanning position of the structured light stripes.
[0068] In one embodiment, the measurement method may further include: determining the number of pixel columns that are synchronously turned on each time based on a calibration operation.
[0069] In one embodiment, the measurement method may further include: using multiple structured light image frame storage units included in each pixel in each image sensor to respectively image stripe coded structured lights of different patterns projected sequentially to generate a group of image frames for different patterns; and performing digital operations directly based on multiple values stored in each pixel to achieve pixel matching between the first and second image sensors.
[0070] In one embodiment, the measurement method may further include: using an additional storage unit included in each pixel in each image sensor to perform imaging during at least a partial period of time when the pixel is not illuminated by the structured light, so that the image sensor generates an ambient light image frame based on the additional storage unit.
[0071] The depth data measuring head, measuring device and measuring method according to the present invention have been described in detail above with reference to the accompanying drawings. The depth data measurement scheme of the present invention can provide a highly flexible pixel-level depth imaging scheme by combining actively projected stripe coded structured light and binocular imaging, based on the superposition of stripe coded patterns and the fact that binocular imaging does not rely on a specific imaging plane. Specifically, the present invention can also remove the influence of ambient light on the depth measurement results through high synchronization of imaging and scanning, and use DMD to achieve high-speed scanning of linear light, thereby further expanding the applicable scenarios of the present invention and improving imaging speed and accuracy.
[0072] In addition, the method according to the present invention may also be implemented as a computer program or a computer program product, which includes computer program code instructions for executing the above steps defined in the above method of the present invention.
[0073] Alternatively, the present invention may also be implemented as a non-temporary machine-readable storage medium (or computer-readable storage medium, or machine-readable storage medium) on which executable code (or computer program, or computer instruction code) is stored. When the executable code (or computer program, or computer instruction code) is executed by a processor of an electronic device (or computing device, server, etc.), the processor executes the various steps of the above-mentioned method according to the present invention.
[0074] Those skilled in the art will further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or a combination of both.
[0075] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system and method according to multiple embodiments of the present invention. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or code, and the part of the module, program segment or code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0076] The embodiments of the present invention have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terms used herein are selected to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A depth data measuring head, comprising: A projection device, used for scanning and projecting structured light with stripe coding to a shooting area; The first and second image sensors having a predetermined relative position relationship are used to photograph the photographing area to obtain first and second two-dimensional image frames respectively under the illumination of the structured light; as well as a synchronization device, for synchronously starting the pixel columns in the stripe direction corresponding to the current scanning position in the first and second image sensors for imaging based on the scanning position of the projection device, Wherein, the projection device comprises: A laser generator for generating linear light; A reflection mechanism swinging along the axis of the extending direction of the linear light is used to project the linear light to the shooting area. The laser generator performs light intensity conversion or high-speed switching to scan and project light with alternating light and dark structures corresponding to the stripe coding.
2. The measuring head according to claim 1, wherein: The synchronization device includes a measuring device for measuring the scanning position of the projection device, and based on the measurement result of the measuring device, the synchronous start of the pixel column imaging is performed.
3. The measuring head according to claim 1, wherein: Said The laser generator is used to generate a line of infrared light.
4. The measuring head according to claim 3, wherein: The laser generator generates linear light with brightness varying with time, so as to project structured light with alternating light and dark and with brightness of bright stripes varying.
5. The measuring head according to claim 3, wherein: The reflection mechanism is a micromirror device that reciprocates at a predetermined frequency, and is used to scan and project the linear light toward the shooting area at the predetermined frequency, wherein the length direction of the linear light is the length direction of the projected stripes.
6. The measuring head according to claim 5, wherein: The synchronization device includes a measuring device for measuring the vibration phase of the micromirror device in real time, and based on the measurement result of the measuring device, the synchronous start of the pixel column imaging is performed.
7. The measuring head according to claim 6, wherein: The measuring device is one or more photoelectric sensors, and the one or more photoelectric sensors are arranged in any of the following ways: Arranged on different emission paths of the projection device; arranged on different reflection paths within the projection device; and They are respectively arranged on the emission and reflection paths inside and outside the projection device.
8. The measuring head according to claim 1, wherein: The number of pixel columns to be synchronously turned on each time is determined based on a calibration operation.
9. The measuring head according to claim 1, wherein: Each of the image sensors completes imaging of an image frame after the projection device performs a predetermined number of scanning projections.
10. The measuring head according to claim 1, wherein: Each pixel in the image sensor includes a structured light image frame storage unit that is synchronously turned on corresponding to the current scanning position.
11. The measuring head according to claim 10, wherein: Each pixel in the image sensor includes a plurality of structured light image frame storage units, each of which is used to image the stripe-coded structured light of different patterns projected sequentially by the projection device to generate a group of image frames for different patterns, wherein the group of image frames is used as a whole to perform a depth data calculation.
12. The measuring head according to claim 11, wherein: The storage unit is a binary memory storing 0 or 1 values, and after generating the set of image frames, pixel matching between the first and second image sensors is performed directly based on a plurality of 0 or 1 values stored in each pixel.
13. The measuring head according to claim 11, wherein: The storage unit is a multi-level memory for storing grayscale values, and the measuring head also includes a digital operation module, which directly performs digital operations on the grayscale values stored in each pixel after generating the set of image frames to perform pixel matching between the first and second image sensors.
14. The measuring head according to claim 10, wherein: Each pixel in the image sensor also includes an additional storage unit, which is used to be turned off when at least one structured light image frame storage unit of the pixel is turned on, and to be turned on during at least a partial period of time when the pixel is not exposed to the structured light, so that the image sensor generates an ambient light image frame based on the additional storage unit.
15. A depth data measuring device, comprising: The depth data measuring head according to any one of claims 1 to 14, and A processor connected to the depth data measuring head is used to determine the depth data of the object in the shooting area according to the predetermined relative positions of the first and second image sensors and the first and second two-dimensional image frames obtained by imaging the structured light.
16. The device of claim 15, wherein: At least part of the synchronization function of the synchronization device is implemented by the processor.
17. A depth data measurement method, comprising: Scan and project structured light with stripe coding to the shooting area; Using first and second image sensors having a predetermined relative position relationship to shoot the shooting area to respectively obtain first and second two-dimensional image frames under the illumination of the structured light, wherein based on the scanning position of the structured light stripes, the pixel columns in the stripe direction corresponding to the current scanning position in the first and second image sensors are synchronously turned on for imaging; and Obtaining depth data of the object to be measured in the shooting area based on the first and second two-dimensional image frames, The step of scanning and projecting structured light with stripe coding to the shooting area includes: generating infrared light using a laser generator; and The linear light is projected by a reflection mechanism that swings along the axis in the extension direction of the linear light, wherein the laser generator performs light intensity conversion or high-speed switching to scan and project light with alternating light and dark structures corresponding to the stripe code.
18. The method of claim 17, wherein: Generating infrared light using laser transmitters includes: Generate infrared light using a laser generator, and Projecting the linear light by using a reflection mechanism that swings along an axis in the extending direction of the linear light comprises: The micromirror device is vibrated back and forth at a predetermined frequency, so that the linear light is scanned and projected toward the shooting area at the predetermined frequency, wherein the length direction of the linear light is the length direction of the projected stripes.
19. The method of claim 18, further comprising: The vibration phase of the micromirror device is measured in real time to obtain the scanning position of the structured light stripes.
20. The method of claim 17, further comprising: The number of pixel columns to be synchronously turned on each time is determined based on a calibration operation.
21. The method of claim 17, further comprising: Using a plurality of structured light image frame storage units respectively included in the pixels of each image sensor to image the stripe coded structured lights of different patterns projected sequentially, so as to generate a group of image frames for different patterns; as well as Digital operations are performed directly based on the multiple values stored in each pixel to achieve pixel matching between the first and second image sensors.
22. The method of claim 17, further comprising: An additional storage unit included in each pixel in each image sensor is used to image at least a portion of a period of time when the pixel is not illuminated by the structured light, so that the image sensor generates an ambient light image frame based on the additional storage unit.
