Projection imaging system, measurement device, and projection imaging method
11371837 · 2022-06-28
Assignee
Inventors
Cpc classification
H04N5/74
ELECTRICITY
G06T7/521
PHYSICS
G01B11/2513
PHYSICS
G01B11/25
PHYSICS
G01B11/2536
PHYSICS
International classification
G01B11/25
PHYSICS
G06T7/521
PHYSICS
Abstract
Projection device switches and projects a plurality of types of pattern images in a unit of projection frame. Imaging device images object to which the pattern image is projected and generates image data. Measurement device discriminates whether each imaging frame is a key frame of the image data obtained by capturing one of the pattern images or a blended frame of the image data obtained by capturing a plurality of the pattern images switched during an exposure period of one frame, and performs measurement based on a space coding method by using at least the image data of the key frame.
Claims
1. A projection imaging system, comprising: a projector switching and projecting a plurality of types of pattern images in a unit of projection frame; a camera imaging an object to which the pattern image is projected and generating image data in a unit of imaging frame; and a processor, when executing instructions stored in a non-transitory memory, that performs operations including: discriminating whether each imaging frame is a key frame of the image data obtained by capturing one of the pattern images or a blended frame of the image data obtained by capturing two of the pattern images switched during an exposure period of one frame, and performing measurement based on a space coding method by using at least the image data of the key frame.
2. The projection imaging system of claim 1, wherein the processor determines whether the imaging frame is the key frame or the blended frame based on a magnitude relationship between an amplitude of a pixel value and an amplitude threshold in the image data of each imaging frame.
3. The projection imaging system of claim 1, wherein the processor measures the number of pixels in which white and black are reversed by comparing a pixel value of each pixel and a first threshold for two image data out of the image data of three consecutive imaging frames, and determines whether the imaging frame is the key frame or the blended frame based on a magnitude relationship between the number of reversed pixels and a second threshold.
4. The projection imaging system of claim 1, wherein the processor determines whether the imaging frame is the key frame or the blended frame based on a relationship between a pixel value range and a reference range in a histogram of the image data of each imaging frame and a magnitude relationship between the number of pixels of a maximum pixel value and the number of references.
5. A projection imaging system, comprising: a projector switching and projecting a plurality of types of pattern images in a unit of projection frame; a camera imaging an object to which the pattern image is projected and generating image data in a unit of imaging frame; and a processor, when executing instructions stored in a non-transitory memory, that performs operations including: generating a key frame of image data obtained by capturing one of the pattern images from a blended frame of image data obtained by capturing two of the pattern images switched during an exposure period of one frame, and performing measurement based on a space coding method by using the image data of the key frame.
6. The projection imaging system of claim 5, wherein the processor discriminates whether the blended frame is a first blended frame of the image data obtained by capturing a pair of pattern images obtained by reversing white and black or a second blended frame other than the first blended frame, and generates image data of the key frame by processes different between the first blended frame and the second blended frame.
7. The projection imaging system of claim 6, wherein in the image data of the first blended frame composed of two colors of dark gray and light gray, the processor converts one of a pixel value of the dark gray and a pixel value of the light gray into a white pixel value and the other pixel value into a black pixel value, thereby generating the image data of the key frame.
8. The projection imaging system of claim 6, wherein in the image data of the second blended frame composed of four colors of white, black, dark gray, and light gray, the processor converts one of a pixel value of the dark gray and a pixel value of the light gray into a white pixel value and the other pixel value into a black pixel value, thereby generating the image data of the key frame.
9. A measurement device, comprising: a processor, when executing instructions stored in a non-transitory memory, that performs operations including: outputting a projection pattern to a projector which switches and projects a plurality of types of pattern images in a unit of projection frame; inputting image data from a camera which images an object to which the pattern image is projected and generates the image data in a unit of imaging frame; discriminating whether each imaging frame is a key frame of the image data obtained by capturing one of the pattern images or a blended frame of the image data obtained by capturing two of the pattern images switched during an exposure period of one frame; and performing measurement based on a space coding method by using at least the image data of the key frame.
10. A measurement device, comprising: a processor, when executing instructions stored in a non-transitory memory, that performs operations including: outputting a projection pattern to a projector which switches and projects a plurality of types of pattern images in a unit of projection frame; inputting image data from a camera which images an object to which the pattern image is projected and generates the image data in a unit of imaging frame; generating a key frame of image data obtained by capturing one of the pattern images from a blended frame of image data obtained by capturing two of the pattern images switched during an exposure period of one frame; and performing measurement based on a space coding method by using the image data of the key frame.
11. A projection imaging method, comprising: switching and projecting a plurality of types of pattern images in a unit of projection frame; imaging an object to which the pattern image is projected; generating image data in a unit of imaging frame; discriminating whether each imaging frame is a key frame of the image data obtained by capturing one of the pattern images or a blended frame of the image data obtained by capturing two of the pattern images switched during an exposure period of one frame; and performing measurement based on a space coding method by using at least the image data of the key frame.
12. A projection imaging method, comprising: switching and projecting a plurality of types of pattern images in a unit of projection frame; imaging an object to which the pattern image is projected; generating image data in a unit of imaging frame; generating a key frame of image data obtained by capturing one of the pattern images from a blended frame of image data obtained by capturing two of the pattern images switched during an exposure period of one frame; and performing measurement based on a space coding method by using the image data of the key frame.
Description
BRIEF DESCRIPTION OF DRAWINGS
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
(13)
(14)
(15)
(16)
(17)
(18)
(19)
(20)
(21)
(22)
(23)
(24)
(25)
(26)
(27)
(28)
(29)
(30)
(31)
(32)
DESCRIPTION OF EMBODIMENTS
(33) Hereinafter, each embodiment of the present invention will be described in detail with reference to the drawings. The accompanying drawings and the following description are provided in order to allow those skilled in the art to fully understand the present disclosure, and it is not intended to limit the subject of the description to the scope of claims.
First Embodiment
(34) <Configuration of Projection Imaging System>
(35) A configuration of projection imaging system 1 according to a first embodiment of the present invention will be described below with reference to
(36) Projection imaging system 1 includes projection device 11, imaging device 12, and measurement device 13.
(37) Projection device 11 is operated periodically and projects a plurality of types of pattern images of image data received from measurement device 13 to object 2 at a predetermined frame rate (a first frame rate) while sequentially switching the pattern images for each projection frame.
(38) Imaging device 12 is operated periodically and images object 2 to which the pattern image is projected by projection device 11 at a predetermined frame rate (a second frame rate) without synchronizing with projection device 11 to generate image data. Imaging device 12 transmits the generated image data of each imaging frame (hereinafter, referred to as a “frame image”) to measurement device 13.
(39) Measurement device 13 discriminates whether the frame image received from imaging device 12 is image data of a key frame or image data of a blended frame and performs measurement based on a space coding method by using at least the image data of the key frame. The key frame is an imaging frame in a period of a single projection frame and an imaging frame of image data obtained by capturing a single pattern image. In addition, the blended frame is an imaging frame of image data obtained by capturing two pattern images switched during an exposure period of one frame.
(40) <Configuration of Measurement Device>
(41) A configuration of measurement device 13 according to the present embodiment will be described below with reference to
(42) Measurement device 13 includes output unit 131, input unit 132, image buffer 133, storage 134, and CPU 135.
(43) Output unit 131 transmits image data of a pattern image generated by CPU 135 to projection device 11.
(44) Input unit 132 outputs the image data received from imaging device 12 to image buffer 133.
(45) Image buffer 133 temporarily stores the image data input from input unit 132.
(46) Storage 134 stores pattern information on a predetermined image pattern in advance. Storage 134 stores a control program executed by CPU 135.
(47) CPU 135 reads an image pattern from the pattern information stored in storage 134 and generates image data of the image pattern to output the generated image data to output unit 131. CPU 135 reads a frame image stored by image buffer 133, discriminates whether each frame image is image data of the key frame or the image data of the blended frame, and measures a correspondence between pixels of each of imaging device 12 and projection device 11 in respective points of the object using at least the image data of the key frame.
(48) CPU 135 includes projection pattern generator 1351, discrimination reference calculator 1352, image generator for measurement information calculation 1353, and measurement information calculator 1354. Projection pattern generator 1351, discrimination reference calculator 1352, image generator for measurement information calculation 1353, and measurement information calculator 1354 are configured as a functional block when CPU 135 executes the control program.
(49) Projection pattern generator 1351 generates a plurality of types of pattern images projected from projection device 11 to object 2 with reference to the image pattern stored in storage 134 and outputs the generated pattern images to output unit 131.
(50) Discrimination reference calculator 1352 reads the image data stored in image buffer 133 and obtains a projection range and a reference value based on a pixel value (luminance) of the read image data. Discrimination reference calculator 1352 discriminates whether each imaging frame is a key frame or a blended frame based on the reference value of the image data within the projection range and outputs the discrimination result to image generator for measurement information calculation 1353.
(51) Image generator for measurement information calculation 1353 generates a frame image used for the measurement based on a discrimination reference input from discrimination reference calculator 1352 and outputs the generated frame image to measurement information calculator 1354.
(52) Measurement information calculator 1354 measures a correspondence between pixels of each of imaging device 12 and projection device 11 in respective points of object 2 by using the frame image input from image generator for measurement information calculation 1353.
(53) <Projection Imaging Method>
(54) A projection imaging method according to the present embodiment will be described below with reference to
(55) First, projection device 11 consecutively projects predetermined pattern images while switching the pattern images for each projection frame (S1). Specifically, as illustrated in
(56) In addition, imaging device 12 consecutively images object 2 to which the pattern image is projected by projection device 11 and generates image data (S2). Imaging device 12 starts imaging so as to generate a first frame image while pattern image P1 is being projected at the latest.
(57) Next, measurement device 13 discriminates whether or not each frame image generated by imaging device 12 is a key frame or a blended frame (S3). A discrimination method of the key frame and the blended frame according to the present embodiment will be described below.
(58) Next, measurement device 13 generates a frame image for measurement by using the image data of the key frame (S4).
(59) Next, measurement device 13 calculates a correspondence between pixels of each of imaging device 12 and projection device 11 in respective points of object 2 by using the frame image (S5).
(60) <Discrimination Method of Key Frame/Blended Frame>
(61) Next, a discrimination method of the key frame and the blended frame according to the present embodiment will be described below with reference to
(62) As illustrated in
(63) As an example of
(64) Next, measurement device 13 creates a projection range mask which masks a region other than an effective region (a region (pixel) used in calculation). Specifically, measurement device 13 calculates a pixel value difference between respective pixels of the black frame and the white frame and compares the pixel value difference and threshold Th.sub.m. Then, measurement device 13 sets the pixel having a pixel value difference greater than threshold Th.sub.m as an effective region.
(65) Next, for each imaging frame, measurement device 13 performs normalization of the pixel values of the image data in order to correct variation in the image data due to projection unevenness or a difference in a color or reflectivity to be projected. Specifically, measurement device 13 calculates a pixel value f.sub.t′ for t-th imaging frame after the normalization in the effective region by the following Expression (1). In Expression (1), max represents the maximum value of the pixel value after the normalization and is “255” in general. In addition, min represents the minimum value of the pixel value after the normalization and is “0” in general. In addition, f.sub.t is a pixel value of the t-th imaging frame, f.sub.w is a pixel value of the white frame, and f.sub.b is a pixel value of the black frame.
(66)
(67)
(68) Next, measurement device 13 discriminates whether each imaging frame is a key frame or a blended frame based on the pixel value after the normalization. Specifically, measurement device 13 calculates amplitude A.sub.t of the pixel value for t-th imaging frame by the following Expression (2) and compares amplitude A.sub.t of the pixel value with amplitude threshold Th.sub.a. In Expression (2), N is the number of pixels in the effective region. Amplitude threshold Th.sub.a is calculated by the following Expression (3). In Expression (3), k is a coefficient and for example, “0.9”.
(69)
(70) Then, measurement device 13 discriminates the imaging frame in which amplitude A.sub.t of the pixel value is greater than amplitude threshold Th.sub.a as a key frame. Meanwhile, measurement device 13 discriminates the imaging frame in which amplitude A.sub.t of the pixel value is amplitude threshold Th.sub.a or less as a blended frame.
(71) For example, image data Q11, Q13, and Q15 of imaging frames D11, D13, and D15 illustrated in
(72) In addition, image data Q12 and Q16 of imaging frames D12 and D16 illustrated in
(73) In addition, image data Q14 of imaging frame D14 illustrated in
(74) <Effects>
(75) As such, in the present embodiment, it is discriminated that whether each imaging frame is a key frame or a blended frame based on the amplitude of the pixel value in each frame image and at least the image data of the key frame is extracted. Accordingly, the image data required for measurement based on the space coding method can be rapidly obtained without synchronizing between the projection device and the imaging device.
(76) In addition, according to the present embodiment, the key frame and the blended frame are discriminated by the normalization, such that the key frame and the blended frame can be accurately discriminated regardless of projection unevenness or a difference in a color or reflectivity to be projected.
(77) In the present embodiment, the effective region and thresholds Th.sub.w, Th.sub.m, and Th.sub.a are set by using pattern image P1 and pattern image P2, but these thresholds may be set by using a pair of pattern images obtained by reversing white and black of the image as illustrated in
Second Embodiment
(78) A configuration of the projection imaging system and a configuration of the measurement device according to a second embodiment of the present invention are the same as that in
(79) <Projection Imaging Method>
(80) A projection imaging method according to the present embodiment will be described below with reference to
(81) First, projection device 11 projects pattern image P1 whose entire surface is black to object 2 based on the image data received from measurement device 13 (S11). Next, imaging device 12 images object 2 (S12).
(82) Next, projection device 11 projects pattern image P2 whose entire surface is white to object 2 based on the image data received from measurement device 13 (S13). Next, imaging device 12 images object 2 (S14).
(83) Measurement device 13 obtains a projection range and a reference value by using image data captured when pattern image P1 is projected to object 2 and image data captured when pattern image P2 is projected to object 2, which are received from imaging device 12.
(84) Specifically, projection device 11 projects pattern image P1 and pattern image P2 to object 2 over a plurality of projection frames T (frame rate of 60 Hz) respectively, as illustrated in
(85) Next, projection device 11 consecutively projects predetermined pattern images while switching the pattern images for each projection frame T (S15). Specifically, as illustrated in
(86) Imaging device 12 consecutively images the object to which the pattern image is projected from projection device 11 (S16) and generates a frame image.
(87) Next, measurement device 13 discriminates whether each frame image generated by imaging device 12 is a key frame or a blended frame (S17). A discrimination method of the key frame and the blended frame according to the present embodiment will be described below.
(88) Next, measurement device 13 generates a frame image for measurement by using the image data of the key frame (S18).
(89) Next, measurement device 13 calculates a correspondence between pixels of each of imaging device 12 and projection device 11 in respective points of object 2 by using the frame image (S19).
(90) <Discrimination Method of Key Frame/Blended Frame>
(91) Next, a discrimination method of the key frame and the blended frame according to the present embodiment will be described below with reference to
(92) Measurement device 13 selects three consecutive frame images obtained by imaging device 12. Here, the reason why the three consecutive frame images are selected is that there is a case in which projection switching timing and imaging timing may match, and in this case, it is necessary to compare the image data skipped by one sheet with each other.
(93) For the two images of the selected three frame images, measurement device 13 measures the number of pixels in which white and black are reversed by comparing the pixel value of each pixel and threshold Th1, determines the other frame image having threshold Th2 (not illustrated) or greater as a key frame by the number of pixels reversed with respect to one frame image, and determines the other frame image having less than threshold Th2 as a blended frame by the number of pixels reversed with respect to one frame image.
(94) For example, measurement device 13 selects image data of imaging frames D11, D12, and D13 illustrated in
(95) In addition, for example, measurement device 13 selects imaging frames D13, D14, and D15 illustrated in
(96) <Effects>
(97) As such, in the present embodiment, it is discriminated that whether each imaging frame is a key frame or a blended frame based on the number of pixels reversed by white and black in two of the three consecutive frame images and at least the image data of the key frame is extracted. Accordingly, image data required for measurement based on the space coding method can be rapidly obtained without synchronizing between the projection device and the imaging device.
(98) In the present embodiment, the projection range and thresholds Th1 are set by using pattern image P1 and pattern image P2, but these threshold Th1 may be set by using a pair of images obtained by reversing white and black as illustrated in
Third Embodiment
(99) A configuration of the projection imaging system and a configuration of the measurement device according to a third embodiment of the present invention are the same as that in
(100) <Discrimination Method of Key Frame And Blended Frame>
(101) A discrimination method of the key frame and the blended frame according to the present embodiment will be described below with reference to
(102) Measurement device 13 obtains a projection range and a reference value by using imaged data when pattern image P1 is projected to object 2 and imaged data when pattern image P2 is projected to object 2.
(103) Specifically, as illustrated in
(104) Next, measurement device 13 calculate the histogram of each imaging frame and obtains pixel value range W and the number of pixels H.
(105) For example, as illustrated in
(106) In addition, as illustrated in
(107) In addition, as illustrated in
(108) <Effects>
(109) As such, in the present embodiment, it is discriminated that whether each imaging frame is a key frame or a blended frame based on the pixel value range in each frame image and at least the image data of the key frame is extracted. Accordingly, image data required for measurement based on the space coding method can be rapidly obtained without synchronizing between the projection device and the imaging device.
(110) In addition, according to the present embodiment, the key frame and the blended frame are discriminated by the normalization, such that the key frame and the blended frame can be accurately discriminated regardless of projection unevenness or a difference in a color or reflectivity to be projected.
Fourth Embodiment
(111) In the first to third embodiments described above, a case of generating a frame image for measurement using only the image data of the key frame extracted by a discrimination process without using the image data of the blended frame, after the key frame and the blended frame are discriminated, has been described.
(112) Whereas, in a fourth embodiment, a case of generating image data of a key frame using a blended frame after the key frame and the blended frame are discriminated, and generating a frame image for measurement using both of image data of the key frame extracted by a discrimination process and image data of the key frame generated from the blended frame, will be described.
(113) A configuration of the projection imaging system and a configuration of the measurement device according to the present embodiment are the same as that in
(114) <Frame Image Generating Method>
(115) A frame image generating method according to the present embodiment will be described below with reference to
(116) First, measurement device 13 generates image data of a key frame by using image data of a blended frame.
(117) For example, as illustrated in
(118) In addition, for example, measurement device 13 represents image data Q14 of blended frame D14 composed of four colors of white, black, dark gray, and light gray illustrated in
(119) Since gray is set as a single color when blended ratios of the image data of blended frame A and the image data of blended frame B are each 50%, the image data of the key frame is skipped without generating.
(120) Measurement device 13 adds the image data of the key frame generated by the above method to the respective preceding and subsequent image data of the key frame.
(121) Then, measurement device 13 generates a frame image by using the image data of the key frame.
(122) <Effects>
(123) As such, according to the present embodiment, the image data of the blended frame is processed to generate the image data of the key frame. Therefore, pseudo image data of the key frame can be obtained by adding the discriminated image data of the key frame and the generated image data of the key frame having a long exposure time, and thus image data of the key frame having reduced noise can be obtained.
(124) In the present embodiment, reference range W0 and the number of references H0 are obtained by using pattern image P1 and pattern image P2. However, as in the first embodiment, reference range W0 and the number of references H0 may be obtained by using a pair of images obtained by reversing white and black as illustrated in
Fifth Embodiment
(125) In a fifth embodiment of the present invention, a case in which no key frame is obtained by imaging will be described. A configuration of the projection imaging system and a configuration of the measurement device according to the present embodiment are the same as that in
(126) <Projection Imaging Method>
(127) A projection imaging method according to the present embodiment will be described below with reference to
(128) In the present embodiment, as illustrated in
(129) First, projection device 11 consecutively projects a predetermined pattern image (S21).
(130) Specifically, as illustrated in
(131) Next, imaging device 12 performs consecutive imaging (S22).
(132) Next, measurement device 13 performs the normalization described in the first embodiment or the third embodiment on each frame image data generated by imaging device 12 and discriminates whether each frame image generated by imaging device 12 is blended frame A or blended frame B (S23). Then, image data of the key frame is generated from the image data of the blended frame by the same method as the fourth embodiment. In this case, measurement device 13 adds the generated image data of a plurality of key frames as it is, or weighs and adds the generated image data of the respective plurality of key frames.
(133) Next, measurement device 13 generates a frame image for measurement by using the generated image data of the key frame (S24).
(134) Next, measurement device 13 calculates a correspondence between pixels of each of imaging device 12 and projection device 11 in respective points of object 2 by using the frame image (S25).
(135) As such, according to the present embodiment, even in a case where no image data of the key frame is obtained, the image data of the key frame can be obtained by using the image data of the blended frame.
(136) In the present embodiment, the projection range may be determined by using the captured image data when pattern image P1 and pattern image P2 are projected to the object.
(137) In addition, in the present embodiment, the generated image data of the key frame may be or may not be added.
Other Embodiments
(138) In a case where a frame rate of imaging device 12 is twice or more a frame rate of projection device 11, measurement device 13 can obtain the image data of the plurality of key frames to each projection frame, and thus the obtained image data of the plurality of the key frames may be added for each projection frame. For example, as illustrated in
(139) In addition, measurement device 13 may project one image for each pattern without projecting a pair of images obtained by reversing white and black. In this case, only the image data of blended frame B can be obtained.
(140) The present invention is not limited to the above embodiments in terms of the types, dispositions, numbers, and the like of members and can be appropriately modified to the extent not departing from the gist of the invention, such as appropriately replacing the constituents of the embodiments by those achieving the same effect.
INDUSTRIAL APPLICABILITY
(141) The present invention is suitable for the projection imaging system and the projection imaging method.
REFERENCE MARKS IN THE DRAWINGS
(142) 1 PROJECTION IMAGING SYSTEM 2 OBJECT 11 PROJECTION DEVICE 12 IMAGING DEVICE 13 MEASUREMENT DEVICE 131 OUTPUT UNIT 132 INPUT UNIT 133 IMAGE BUFFER 134 STORAGE 135 CPU 1351 PROJECTION PATTERN GENERATOR 1352 DISCRIMINATION REFERENCE CALCULATOR 1353 IMAGE GENERATOR FOR MEASUREMENT INFORMATION CALCULATION 1354 MEASUREMENT INFORMATION CALCULATOR