Parallax information generation device and parallax information generation method

By projecting multiple phase-shifted pattern lights and binary pattern lights in the phase-shift method, combined with phase image and area segmentation processing, parallax information is generated, which solves the problem of extended calculation time in the phase-shift method and achieves more efficient three-dimensional measurement. deal with.

CN118786325AInactive Publication Date: 2024-10-15PANASONIC INTELLECTUAL PROPERTY MANAGEMENT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202380024689.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2022-03-30
Filing Date
2023-03-23
Publication Date
2024-10-15
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the phase shift method, as the spatial frequency increases, the number of projection amplitudes of the additionally projected spatial encoding pattern increases, and the calculation time of one frame becomes longer, making it difficult to improve the measurement accuracy.

Method used

The projection unit projects a plurality of periodic phase-shifted pattern lights and n binary pattern lights, the imaging unit captures phase-shifted images and binary images, the phase image generating unit generates a phase image, and the encoded image segmentation processing unit performs the binary image The code value assignment and area segmentation are performed, and the disparity information generation unit generates disparity information based on the phase image and the area segmentation results, thereby shortening the calculation time.

Benefits of technology

It is possible to estimate the period number of the sine wave pattern with a smaller number of projections, shortening the calculation time of one frame and improving the efficiency of high-speed processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118786325A_ABST
    Figure CN118786325A_ABST
Patent Text Reader

Abstract

A parallax information generation device (1) is provided with a phase image generation unit (41) for generating a relative phase image (Q1) from a phase-shifted image based on the projection of phase-shifted pattern light (Q0), a coded image division processing unit (42) for dividing the relative phase image (Q1) into a coded image (Q1) on the basis of a sequence generated from coded values, and a parallax information generation unit (43) for generating parallax information from the coded image (Q1). And a parallax information generation unit (43) that generates parallax information on the basis of the relative phase image and the result of the region division, and that performs region division for each period of the phase shift pattern light (Q0), said coded value being a coded value given for each pixel for a binary pattern image obtained by projection of the binary pattern light, and that generates parallax information on the basis of the relative phase image and the result of the region division. The binary pattern light is composed of a sequence in which 2n different coding values are assigned by combining n binary pattern lights, and different coding values are assigned at the boundary of the period of each of the phase shift pattern lights.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to a disparity information generating device and a disparity information generating method. Background Art

[0002] As a three-dimensional measurement method, a phase shift method is known in which a sine wave pattern whose intensity is spatially modulated is projected and a phase value of a spatial region is calculated for each pixel.

[0003] For example, Patent Document 1 discloses a visual inspection device in which a light projection control unit projects based on a phase shift method and processes a phase shift image captured by a camera unit, and a light projection control unit projects based on a spatial coding method and processes a spatially coded image captured by a camera unit, and combines the processing results of the phase shift image and the spatially coded image to generate a distance image.

[0004] Furthermore, in order to eliminate the ambiguity of the phase value in the phase shift method, a spatial coding pattern (Gray code) is additionally projected.

[0005] For example, Patent Document 2 discloses a three-dimensional measurement system, which projects a Gray code pattern image and a phase shift pattern image onto the measurement object through a projection unit, uses a camera unit to photograph the measurement object with the Gray code pattern image projected on it and the measurement object with the phase shift pattern image projected on it, and generates parallax image data and point group data representing a three-dimensional shape based on the photographed image data.

[0006] Patent Document 1: Japanese Patent No. 6334861

[0007] Patent Document 2: Japanese Patent Publication No. 2020-41822 Summary of the invention

[0008] -Technical problem to be solved by the invention-

[0009] In the phase shift method, in order to improve the measurement accuracy, measurement using a sine wave pattern with a high spatial frequency is required.

[0010] However, in the case of the method using time series coding shown in Patent Document 2, there is a problem that as the spatial frequency increases, the number of projection frames of the spatial coding pattern to be additionally projected increases, and the calculation time for one frame becomes longer.

[0011] The technology disclosed in the present invention is developed to solve the above-mentioned technical problems, and its purpose is to provide a disparity information generating device, which shortens the calculation time of one frame compared with the existing method using time series coding.

[0012] 1. Technical solutions for solving technical problems 1

[0013] In order to solve the above technical problems, a parallax information generating device involved in one embodiment of the present disclosure includes a projection unit, a camera unit, a phase image generating unit, a coded image segmentation processing unit and a parallax information generating unit, wherein the projection unit projects a plurality of periodic phase-shifted pattern lights and n binary pattern lights onto a measurement object, wherein n is an integer greater than 2, the camera unit photographs the measurement object, the phase image generating unit generates a phase image from the phase-shifted image, and the phase-shifted image is an image obtained by photographing the measurement object projected with the plurality of phase-shifted pattern lights by the camera unit, and the coded image segmentation processing unit processes the binary image. A binary pattern image is provided, a coding value is assigned to each pixel, and region segmentation is performed based on a sequence generated by the coding value, wherein the binary pattern image is an image obtained by photographing the measurement object onto which n binary pattern lights are projected by the camera unit, and the parallax information generating unit generates parallax information based on the phase image and the result of the region segmentation, and the binary pattern light projected from the projection unit is configured to form a sequence in which 2n different coding values ​​are assigned to each period of the phase shift pattern light by combining n binary pattern lights, and different coding values ​​are assigned at boundaries of the periods of the phase shift pattern light.

[0014] -Effects of the Invention-

[0015] According to the present disclosure, compared with the conventional method using time series coding, the number of cycles of a sine wave pattern can be estimated with a smaller number of projection frames, so the calculation time for one frame can be shortened, thereby achieving high-speed processing. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 is a diagram schematically showing a situation where pattern light is projected and photographed on a measurement object;

[0017] Figure 2 is a block diagram showing a structural example of a parallax information generating device;

[0018] Figure 3 is a diagram showing an example of the flow of binary pattern light and area segmentation processing;

[0019] Figure 4 is a diagram showing the number of amplitudes of binary pattern light when the number of cycles is 24 or less;

[0020] Figure 5 is a flowchart showing an example of the operation of the parallax information generating device;

[0021] Figure 6 This is an illustration of the conversion from a captured image to a binary image;

[0022] Figure 7is an explanatory diagram of a modified example of the present embodiment;

[0023] Figure 8 It is an explanatory diagram of other modified examples of the present embodiment. DETAILED DESCRIPTION

[0024] Below, the embodiments of the present disclosure are described in detail according to the accompanying drawings. The description of the following embodiments is essentially for illustrative purposes only, and there is no intention to limit the invention of the present application, its application objects or its use. In other words, the numerical values, shapes, constituent elements, layout positions of constituent elements, and connection forms shown in the following embodiments are examples and are not used to limit the present disclosure. Therefore, the constituent elements of the following embodiments that are not recorded in the independent claims representing the highest-level concepts of the present disclosure are described as arbitrary constituent elements.

[0025] The parallax information generating device of the present disclosure uses the phase shift method. As described above, in the phase shift method, a sine wave pattern light whose intensity is spatially modulated is projected, and a phase value of a spatial region is calculated for each pixel.

[0026] The parallax information generating device disclosed in the present invention is characterized in that the number of projection frames of the spatial coding pattern (Gray code) projected to eliminate the ambiguity of the phase value in the phase shift method can be reduced compared to the number of frames in the prior art. As a result, as described above, the calculation time for one frame can be shortened, achieving high-speed processing.

[0027] In the following, in order to facilitate understanding of the contents, the phase shift method will be briefly described first, and then the specific structure and operation of the parallax information generating device 1 will be described.

[0028] <About the Phase Shift Method>

[0029] The phase shift method is a three-dimensional measurement method that projects multiple phase-shifted pattern lights that are intensity-modulated and periodic in space onto the measurement object and calculates the phase value of the spatial area for each pixel.

[0030] As the periodic phase shift pattern light Q0, for example, a sinusoidal wave pattern is projected while shifting its phase by π / 2. Specifically, in the following equation (1), a total of four measurements (l=1, 2, 3, 4) are performed.

[0031] [Mathematical formula 1]

[0032]

[0033] In equation (1), A(x) is the amplitude of the sine wave pattern, Φ s (x) is the phase value of the sine wave pattern, and 0(x) is the amount of ambient light.

[0034] Based on the measured values ​​I0-I3, use the following formula (2) to calculate Φ s (x).

[0035] [Mathematical formula 2]

[0036]

[0037] Furthermore, the following equation (3) can be used to obtain the phase value Φ calculated by the above equation (2): s (x), and calculate the distance d(x) by triangulation.

[0038] [Mathematical formula 3]

[0039]

[0040] In the equation (3), b is the base line length between the projection unit 2 and the imaging unit 3, f is the focal length, and ωS is the spatial frequency. In the equation (3), the denominator on the right side represents the parallax value.

[0041] As shown above, in the phase shift method, the phase difference (relative value) repeats with a period of 2π. Therefore, the ambiguity of the phase value can be eliminated by finding the number of cycles (region number) k of the phase value, and the parallax D can be found using the formula (5) from the absolute phase φ' shown in the following formula (4). In other words, the relative value indicates how much the value of each pixel is shifted, and the absolute phase value can be found by using the region number k.

[0042] [Formula 4]

[0043] φ=φ s +2πk (4)

[0044] [Mathematical formula 5]

[0045]

[0046] In addition, as a method for determining the area number k, there is a method of additionally projecting a Gray code pattern. In the previously known Gray code method, for example, as shown in Patent Document 2, the following processing is performed: a time-series black and white pattern is projected onto the measurement object, and the camera pixels are made to correspond to the area number k. As described above, in the prior art, when the number of cycles of the projected sine wave pattern is K, it is necessary to project a "log2K"-width Gray code pattern. Therefore, there is a problem that the number of projection frames increases as the number of cycles K increases (see Figure 4 In contrast, the parallax information generating device 1 of the present disclosure is characterized in that it is possible to estimate the number of cycles of a sine wave pattern using fewer projection frames than the conventional technology using time series encoding.

[0047] Next, a configuration example of the parallax information generating device 1 is shown and described in detail.

[0048] <Parallax Information Generating Device>

[0049] Figure 1 1 is a schematic diagram showing an example of arrangement of the projection unit 2 that projects pattern light onto the object G to be measured and the imaging unit 3 that images the object G to be measured. Figure 2 2 is a block diagram showing a configuration example of the parallax information generating device 1 .

[0050] like Figure 2 As shown, the parallax information generating device 1 includes a projecting unit 2, an imaging unit 3, and a computing unit 4. The computing unit 4 includes a phase image generating unit 41, a coded image segmentation processing unit 42, and a parallax information generating unit 43.

[0051] -Projection Department-

[0052] The projection unit 2 projects a periodic multi-wave phase shift pattern light Q0 and n-wave (n is an integer greater than or equal to 2) binary pattern light PT onto the measurement object G. The projection unit 2 can be implemented by a projection method of a general projector, for example, and can use DMD (Digital Micromirror Device), LCD (Liquid Crystal Display), LCOS (Liquid Crystal on silicon), etc.

[0053] For example, when the number of cycles K is 24, the projection unit 2 projects four phase-shifted pattern lights, two binary pattern lights PT, and one full-lamp pattern light as projection patterns onto the measurement object G. The camera unit 3 acquires four phase-shifted pattern images, two binary pattern images, one full-lamp pattern image, and one ambient light image during exposure. The projection unit 2 sequentially switches each pattern light during projection and exposure and projects the above images. Here, the full-lamp pattern light refers to an image obtained by irradiating the entire measurement object G with the same amount of light when the projection unit 2 is turned on. Ambient light refers to a pattern when the projection unit 2 is turned off. In other words, the ambient light image refers to an image acquired by exposing when the projection unit 2 is turned off.

[0054] As described above, the phase shift pattern light is projected by sequentially switching the phase of the sinusoidal wave pattern by shifting the phase by π / 2.

[0055] The binary pattern light is a pattern light for phase connection, and is configured to form a sequence of 2n different code values ​​assigned to each period T of the phase shift pattern light by combining n (n is an integer greater than 2) binary pattern lights. For ease of explanation, each period T is divided into regions, and each region is assigned a number kx (x=0, 1, 2, ...) for explanation.

[0056] For example, the binary pattern light is configured such that, when n binary patterns are aligned and overlapped with each other, a sequence of 2n different code values ​​is assigned to each period T of the phase shift pattern light.

[0057] Figure 3 The example of binary pattern light PT consisting of two patterns, the first pattern PT1 and the second pattern PT2, is shown. For example, the position where PT1 is black and PT2 is black is assigned a code value of "0", the position where PT1 is black and PT2 is white is assigned a code value of "1", the position where PT1 is white and PT2 is white is assigned a code value of "2", and the position where PT1 is white and PT2 is black is assigned a code value of "3". In this way, Figure 3 In the example, four different coding values ​​of "0123" are assigned to region k0. Similarly, four different coding values ​​are assigned to each region k, that is, "2031" is assigned to region k1, "3012" is assigned to region k2, and "1203" is assigned to region k3. In the following description, a coding block consisting of four different coding values ​​is sometimes referred to as a "coding column". It should be noted that for one coding bit, multiple pixels can be included (see Figure 3 Q2 in ).

[0058] The binary pattern light is configured such that different code values ​​are assigned to the boundaries of the phase shift pattern light Q0 (relative phase image Q1), that is, the boundaries of each region k (between code columns). Figure 3 In the example, different code values ​​such as "3-2" are assigned to the boundary between area k0 and area k1. Similarly, different code values ​​are assigned such as "1-3" to the boundary between area k1 and area k2, "2-1" to the boundary between area k2 and area k3, and "3-0" to the boundary between area k3 and area k4.

[0059] It is preferable that mutually different code sequences are allocated to all regions. For example, when the number of cycles K (hereinafter simply referred to as the number of cycles K) of the phase shift pattern light Q0 is 24, it is preferable that mutually different code sequences are allocated to each of the 24 regions k.

[0060] Figure 4 Indicates the number of amplitudes of the binary pattern light PT when the number of cycles K is less than 24. Figure 4In FIG. 1 , a solid line shows an example of the present embodiment, and a dotted line shows a comparative example using time series coding. Figure 4 As shown, in the comparative example, the number of projection frames of the binary pattern light PT increases as the number of cycles K increases. On the other hand, the number of projection frames of the binary pattern light PT in this embodiment can be two frames within the range of the number of cycles K≤24.

[0061] Specifically, the number of cycles K of the phase shift pattern light Q0 and the number of amplitudes n of the binary pattern light PT satisfy the relationship of the following equation (6).

[0062] [Mathematical formula 6]

[0063] K≤2^n! (6)

[0064] -Camera Department-

[0065] The imaging unit 3 captures an image of the measurement object G and is, for example, a camera.

[0066] When the imaging unit 3 sequentially switches and projects a plurality of phase shift pattern lights Q0 onto the measuring object G from the projection unit 2 during imaging and exposure, the imaging unit 3 images the measuring object G onto which the respective phase shift pattern lights Q0 are projected, and outputs the acquired images as phase shift images to the phase image generation unit 41. For example, when four phase shift pattern lights Q0 are projected from the projection unit 2 by shifting the phase by π / 2 each time, the imaging unit 3 outputs four phase shift images corresponding to the respective phase shift pattern lights Q0 to the phase image generation unit 41.

[0067] The imaging unit 3 captures the measurement object G onto which the binary pattern light PT is projected, and outputs the acquired image as a binary pattern image to the coded image segmentation processing unit 42. Specifically, when the projection unit 2 sequentially switches and projects n binary pattern lights PT onto the measurement object G, the imaging unit 3 captures the measurement object G onto which each binary pattern light PT is projected, and outputs the acquired image as a binary pattern image to the coded image segmentation processing unit 42. For example, when two binary pattern lights PT1 and PT2 are projected from the projection unit 2, the imaging unit 3 outputs two binary pattern images corresponding to each binary pattern light PT1 and PT2 to the coded image segmentation processing unit 42.

[0068] -Calculation Unit-

[0069] The operation unit 4 is composed of, for example, a CPU (processor) and a memory storing a program for operating the CPU and a processing result of the CPU. That is, the operation unit 4 includes a program for realizing the functions of the phase image generation unit 41, the coded image segmentation processing unit 42, and the parallax information generation unit 43. It should be noted that part or all of the functions of the phase image generation unit 41, the coded image segmentation processing unit 42, and the parallax information generation unit 43 can be realized by a hardware circuit or the like.

[0070] [Phase image generation unit]

[0071] The phase image generating unit 41 generates a phase image based on the plurality of phase shift images captured by the imaging unit 3. For example, as described above, when four phase shift images are output from the imaging unit 3, a relative phase image Q1 (see Figure 5 ).

[0072] [Encoded image segmentation processing unit]

[0073] The coded image segmentation processing unit 42 assigns a coded value to each pixel of the n binary pattern images captured by the camera unit 3. Specifically, Figure 6 As shown, the ambient light image captured under ambient light is subtracted from the binary pattern image, and the result of the subtraction is converted into a binary image. Then, the binary image PR1 of the binary pattern image captured when the first pattern PT1 is projected and the binary image PR2 of the binary pattern image captured when the second pattern PT2 is projected are combined and assigned coding values. The rules for assigning coding values ​​are the same as the projection pattern of the above-mentioned projection unit 2. For example, the coding value "0" is assigned to pixels where PR1 = black and PR2 = black, the coding value "1" is assigned to pixels where PR1 = black and PR2 = white, the coding value "2" is assigned to pixels where PR1 = white and PR2 = white, and the coding value "3" is assigned to the position where PR1 = white and PR2 = black. In this way, it can be obtained. Figure 3 and Figure 5 In other words, a unique sequence of coded values ​​can be obtained. It should be noted that, although the specific illustration is omitted, for the coded image, in the area where the measurement object G is photographed, the image is also deformed into an arc shape like the relative phase image Q1.

[0074] Then, the coded image segmentation processing unit 42 performs a region segmentation process in which the region segmentation is performed based on a sequence generated from the assigned coded values. Figure 3 As shown in Q2 of FIG. 1 , a region segmentation process is performed to search for the boundary of region k in the sequence constituting each row. In this way, for example, Figure 3 The position indicated by the dotted line in Q2 identifies the boundary between the region k1 and the region k2.

[0075] [Parallax information generation unit]

[0076] The parallax information generating unit 43 generates parallax information based on the phase image generated by the phase image generating unit 41 and the result of the region division acquired by the encoded image division processing unit 42 (hereinafter referred to as region division information Q3 ). Figure 3An example of the region division information Q3 is shown.

[0077] The parallax information generated by the parallax information generating unit 43 is used for distance calculation by triangulation. The calculation formula for obtaining the parallax is exemplified in the above-mentioned “Regarding the Phase Shift Method”.

[0078] <Operation of the parallax information generating device>

[0079] Here, use Figure 5 The operation of the parallax information generating device 1 is described in detail with reference to the flowchart of FIG.

[0080] Step S1-

[0081] In step S1, the full-lamp pattern light is projected from the projection unit 2 onto the measuring object G, and in this state, the measuring object G is photographed by the imaging unit 3 to obtain a full-lamp image. In addition, the measuring object G is photographed by the imaging unit 3 under ambient light to obtain an ambient light image. The full-lamp image and the ambient light image are output to the coded image segmentation processing unit 42 to be used in binarization processing and the like.

[0082] Step S2-

[0083] In step S2, a plurality of periodic phase-shifted pattern lights are projected from the projection unit 2 onto the measurement object G, and the camera unit 3 captures the state thereof to obtain the above-mentioned phase-shifted image. For example, the projection unit 2 sequentially switches and projects four phase-shifted pattern lights Q0 whose phases are shifted by π / 2 each time onto the measurement object G, and the camera unit 3 captures four phase-shifted images corresponding to the phase-shifted pattern lights Q0, and outputs the images to the phase image generation unit 41.

[0084] -Step S3-

[0085] In step S3, n binary pattern lights are projected from the projection unit 2 onto the measurement object G, and the camera unit 3 captures the state to obtain the above-mentioned binary pattern image. For example, the projection unit 2 sequentially switches and projects two binary pattern lights PT (first pattern PT1 and second pattern PT2) onto the measurement object G, and the camera unit 3 captures two binary pattern images corresponding to each binary pattern light PT, and outputs them to the coded image segmentation processing unit 42.

[0086] -Step S4-

[0087] In step S4, the phase image generation unit 41 performs relative phase calculation based on the multiple phase shift images captured by the imaging unit 3. Specifically, for example, the relative phase image Q1 is generated based on four phase shift images. In other words, the phase image generation unit 41 performs a process of generating the relative phase image Q1 based on the multiple phase shift images, wherein the multiple phase shift images are images captured by the imaging unit 3 when the multiple phase shift pattern lights Q0 are sequentially switched by the projection unit 2.

[0088] -Step S5-

[0089] In step S5, the coded image segmentation processing unit 42 performs binarization and coding. Specifically, the ambient light image is subtracted from the binary pattern image, the result of the subtraction is converted into a binary image, and a coding value is assigned to each pixel to generate a coded image. The method of assigning the coding value is as described above.

[0090] It should be noted that the specific method of binarization processing is not particularly limited. For example, the threshold value may be set by using the average value of the full light image and the ambient light image.

[0091] Step S6-

[0092] In step S6, the coded image segmentation processing unit 42 performs a region segmentation process, in which the region segmentation is performed based on a sequence generated by the assigned coded value. By performing the region segmentation process, region segmentation information Q3 is generated. Specifically, the above-mentioned region segmentation process is performed. Here, the coded image segmentation processing unit 42 can also extract edge information from the ambient light image for correction during region segmentation.

[0093] In other words, in step S5 and step S6, the coded image segmentation processing unit 42 performs the following processing: assigning a coded value to each pixel of the n binary pattern images, and performing region segmentation for each period of the phase shift pattern light Q0 based on a sequence generated by the coded value, wherein the n binary pattern images are images acquired by the imaging unit 3 respectively photographing the measuring object G onto which the n binary pattern lights PT are projected by the projection unit. The processing of step S5 and step S6 is equivalent to the coded image segmentation processing.

[0094] It should be noted that the processing of step S4 and the processing of step S5 and / or step S6 can be executed in parallel. By executing such multiple processing, it is possible to achieve high-speed processing.

[0095] -Step S7-

[0096] In step S7, parallax information is generated based on the relative phase image Q1 generated in step S4 and the result of the area division in step S6 (area division information Q3). The process of step S7 corresponds to the parallax information generation process.

[0097] As described above, according to the present embodiment, the binary pattern light projected from the projection unit 2 is configured to form a sequence of 2n different coding values ​​assigned to each period of the phase-shifted pattern light Q0 by combining n binary pattern lights, and different coding values ​​are assigned at the boundaries of the periods of the phase-shifted pattern light Q0.

[0098] As a result, compared with the conventional method using time series encoding, the number of cycles of the sine wave pattern can be estimated with a smaller number of projection frames, so the calculation time for one frame can be shortened, thereby achieving high-speed processing.

[0099] <Other Implementation Methods>

[0100] It should be noted that the present disclosure is not limited to the description of the above-mentioned embodiments, and various modifications can be made without departing from the gist of the present disclosure.

[0101] For example, the encoded image segmentation processing unit 42 may also infer an area where the difference between the brightness value of the binary pattern image and the brightness value of the ambient light image is below a specified value as a shadow area, and exclude pixels contained in the shadow area from the boundary search object in the area segmentation processing.

[0102] Figure 7 FIG. 2 is an explanatory diagram of a modified example of the present embodiment. Figure 7 In the example of FIG. 1 , an area (hereinafter referred to as a shadow area) not projected by the pattern light output from the projection unit 2 is formed on the side portion of the measuring object G (refer to FIG. 1 ). Figure 7 ). It can be imagined that the binary pattern light PT output from the projection unit 2 cannot be observed in the shadow area. In addition, the shadow area can be said to be an area where the observed brightness value does not change because the projection light does not irradiate the shadow area when the pattern light is projected from the projection unit 2. Therefore, the coded image segmentation processing unit 42 can also infer that the area where the difference between the brightness value of the binary pattern image and the brightness value of the ambient light image is below a predetermined threshold is a shadow area, and skip the shadow area when performing the search for the area segmentation processing.

[0103] exist Figure 7 In the example, in the column recorded as "encoding", the code is used to indicate how the binary pattern light PT is irradiated, and in the column recorded as "observation", the code value based on the binary pattern image is indicated. In addition, the area indicated by "x" is estimated to be a shadow area. In this example, in the area segmentation processing, the area indicated by "x" is excluded from the search object. In this way, the processing can be accelerated.

[0104] For example, the coded image segmentation processing unit 42 may also, in the above-mentioned area segmentation processing, (1) estimate the shielded area of ​​the binary pattern image based on the sequence data of the binary pattern light PT, and (2) determine the boundary of the area segmentation of the shielded area based on the edge information of the measuring object G in the binary pattern image. The shielded area refers to the shooting range shielded by the measuring object G.

[0105] For example, in Figure 8 In the example, Figure 7Similarly, in the column recorded as "encoding", the code is used to indicate how the binary pattern light PT is irradiated, and in the column recorded as "observation", the code value based on the binary pattern image is indicated. In addition, the underlined part of the column recorded as "observation" is the shielded area. Figure 8 As shown in the example, the observed boundary position identified in the region segmentation process may deviate from the true boundary position (in Figure 8 It is recorded as “the boundary before the occlusion area is estimated”).

[0106] Then, the coded image segmentation processing unit 42 estimates the shielded area shielded by the measured object G in the binary pattern image based on the sequence data of the binary pattern used in the binary pattern light PT. Figure 8 In the example, the binary pattern sequence projected from the projection unit 2 is "2130103201", so it can be seen that there is no "1" between the fourth coded "0" from the left and the sixth coded "0". In this way, the coded image segmentation processing unit 42 infers that there is an obscured area between the fourth coded "0" from the left and the sixth coded "0" in the observed code. Then, when a sequence different from the appropriate sequence is found, the boundary is determined based on the edge information, and the search for the area segmentation process is continued again. It should be noted that in Figure 8 In the figure, the boundary after the above-mentioned estimated occlusion area is recorded as "boundary after occlusion area estimation".

[0107] Then, the coded image segmentation processing unit 42 may also determine the boundary of the region segmentation of the shielded region based on the edge information of the measurement object G and the entire scene acquired from the ambient light image. It should be noted that the detection method of the edge information of the measurement object G is not particularly limited, and a conventionally known method can be used. In this way, the positional offset caused by the formation of the shielded region can be reduced as much as possible, and the segmentation (search) process can be performed.

[0108] -Industrial Applicability-

[0109] The parallax information generating device disclosed in the present invention can shorten the calculation time for one frame and realize high-speed processing, and is therefore extremely useful.

[0110] -Explanation of symbols-

[0111] 1. Disparity Information Generating Device

[0112] 2 Projection Department

[0113] 3. Camera Department

[0114] 4 Operation unit

[0115] 41 Phase image generation unit

[0116] 42 Encoded image segmentation processing unit

[0117] 43. Parallax information generation unit

[0118] G Measurement object

[0119] Q0 Phase shift pattern light

[0120] Q1 relative phase image.

Claims

1. A disparity information generating device, Features: The parallax information generating device includes a projection unit, an imaging unit, a phase image generating unit, a coded image segmentation processing unit, and a parallax information generating unit. The projection unit projects a plurality of periodic phase-shifted pattern lights and n binary pattern lights onto the measurement object, wherein n is an integer greater than or equal to 2. The imaging unit captures the measurement object. The phase image generating unit generates a relative phase image from a plurality of phase shift images, wherein the plurality of phase shift images are images obtained by respectively photographing the measuring object onto which the plurality of phase shift pattern lights are projected by the imaging unit. The coded image segmentation processing unit assigns a coded value to each pixel of n binary pattern images, and performs region segmentation according to each period of the phase shift pattern light based on a sequence generated by the coded value, wherein the n binary pattern images are images obtained by respectively photographing the measurement object onto which the n binary pattern lights are projected by the imaging unit. The parallax information generating unit generates parallax information based on the relative phase image and the result of the area segmentation. The binary pattern light projected from the projection unit is configured to form a sequence of 2n different encoding values ​​assigned to each period of the phase shift pattern light by combining n binary pattern lights, and different encoding values ​​are assigned at boundaries of periods of the phase shift pattern light.

2. The parallax information generating device according to claim 1, Features: The period number K of the phase-shift pattern light and the amplitude number n of the binary pattern light satisfy the following relationship. [Mathematical formula 1] K≤2^n! 3. The parallax information generating device according to claim 1, Features: The encoded image segmentation processing unit infers an area where the difference between the brightness value of the binary pattern image and the brightness value of the ambient light image captured by the camera unit under ambient light is below a specified threshold as a shadow area, and excludes pixels contained in the shadow area from the search object of the boundary of the area segmentation.

4. The parallax information generating device according to any one of claims 1 to 3, Features: The encoded image segmentation processing unit estimates the shielded area based on the binary pattern light during the area segmentation, and determines the boundary of the area segmentation in the shielded area based on the edge information of the measuring object in the binary pattern image. The shielded area is a shooting range shielded by the measuring object in the binary pattern image.

5. A method for generating disparity information, Features: The disparity information generating method comprises a first step, a second step and a third step. In the first step, the measuring object onto which the plurality of phase shift pattern lights are projected by the projection unit is photographed by the imaging unit, and a relative phase image is generated by the computing unit from the plurality of phase shift images as the photographed images. In the second step, the camera unit is used to respectively photograph the measurement object on which n binary pattern lights are projected by the projection unit, and a coding value is assigned to each pixel of the n binary pattern images as the photographed images in the calculation unit, and region segmentation is performed based on a sequence generated by the coding value, wherein n is an integer greater than or equal to 2. In the third step, disparity information is generated in a computing unit based on the relative phase image and the result of the area segmentation. The binary pattern light projected from the projection unit is configured to form a sequence of 2n different encoding values ​​assigned to each period of the phase shift pattern light by combining n binary pattern lights, and different encoding values ​​are assigned at boundaries of periods of the phase shift pattern light.

6. The method for generating disparity information according to claim 5, Features: The following two processes are performed in parallel: the process of generating the relative phase image from the plurality of phase-shifted images in the first step; and the process of assigning the coding value to each pixel of the n binary pattern images and performing region segmentation based on the sequence generated by the coding value in the second step.