Information processor and method

The method addresses focal length inaccuracies in TOF cameras by calculating lens thickness considerations, enhancing three-dimensional point cloud data precision and reducing the need for complex calibration processes.

JP2024116474APending Publication Date: 2024-08-28JVC KENWOOD CORP
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2023022109
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-02-16
Publication Date
2024-08-28

AI Technical Summary

Technical Problem

Existing TOF cameras inaccurately measure focal length due to neglecting lens thickness, leading to errors in three-dimensional point cloud data precision.

Method used

A method to accurately calculate focal length by considering the thickness of the lens, using a TOF sensor to measure distance, perform distortion correction, and calculate focal length based on distance values at the center and edges of the image, along with the optical system's properties.

Benefits of technology

Enables precise conversion of distance measurements into accurate three-dimensional point cloud data, reducing errors and improving precision without the need for multiple image acquisitions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024116474000001_ABST
    Figure 2024116474000001_ABST
Patent Text Reader

Abstract

To provide a technique capable of more accurately obtaining a focal distance.SOLUTION: An information processor 100 includes: an acquisition part 101 for acquiring a distance image of a subject; a correction part 106 for performing distortion correction on the distance image; a calculation part 102 for calculating a focal distance of an optical system in one of a horizontal direction and a vertical direction, on the basis of at least one of a horizontal distance measurement value on the end in a horizontal direction of the distance image subjected to the distortion correction and a vertical distance measurement value on the end in a vertical direction of the distance image subjected to the distortion correction, a central distance measurement value of a central part of the distance image subjected to the distortion correction, a distance between a light-receiving surface and an image side main plane of the optical system, a distance between the light-receiving surface and an incident pupil position of the optical system, and an effective size of at least one of a horizontal direction and a vertical direction of a time of flight (TOF) sensor; and a storage part 105 for storing the calculated focal distance.SELECTED DRAWING: Figure 10
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to an information processing device and method. [Background technology]

[0002] A TOF camera is known that measures the distance to a subject in a distance measurement area by utilizing the time of flight (TOF) of light, and acquires point cloud data of the three-dimensional coordinates of x, y, and z for the subject (see, for example, Patent Document 1). In general, the measured distance acquired by a TOF camera is converted into point cloud data of the three-dimensional coordinates of x, y, and z using a focal length set without considering the thickness of the lens. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] JP 2020-153865 A Summary of the Invention [Problem to be solved by the invention]

[0004] However, actual lenses have thickness, so if a focal length set without taking the lens thickness into consideration is used, there is a problem that there will be a large error with the actual focal length.

[0005] In view of the above, an object of the present invention is to provide a technique that makes it possible to obtain the focal length more accurately. [Means for solving the problem]

[0006] In order to solve the above problem, an information processing device of one embodiment of the present invention includes an acquisition unit that acquires a distance image of a subject from a TOF sensor that generates a distance image composed of multiple distance values ​​corresponding to the time of flight of light when projected light is reflected by the subject, passes through an optical system, and is received at a light receiving surface; a correction unit that performs distortion correction on the distance image; a calculation unit that calculates a focal length of the optical system in at least one of a horizontal distance value that is the distance value of the horizontal end of the distortion-corrected distance image and a vertical distance value that is the distance value of the vertical end of the distortion-corrected distance image, a central distance value that is the distance value of the central part of the distortion-corrected distance image, a distance from the light receiving surface to the image side principal plane of the optical system, a distance from the light receiving surface to the entrance pupil position of the optical system, and an effective size of the TOF sensor in at least one of the horizontal and vertical directions; and a memory unit that stores the calculated focal length.

[0007] A method according to another aspect of the present invention includes the steps of acquiring a distance image of a subject from a TOF sensor that generates a distance image composed of multiple distance values ​​corresponding to the time of flight of light that is projected after being reflected by the subject, passing through an optical system, and being received at a light receiving surface; performing distortion correction on the distance image; calculating a focal length of the optical system in at least one of a horizontal distance value that is the distance value of the horizontal end of the distortion-corrected distance image and a vertical distance value that is the distance value of the vertical end of the distortion-corrected distance image, a central distance value that is the distance value of the central part of the distortion-corrected distance image, the distance from the light receiving surface to the image side principal plane of the optical system, the distance from the light receiving surface to the entrance pupil position of the optical system, and the effective size of the TOF sensor in at least one of the horizontal and vertical directions; and storing the calculated focal length.

[0008] Another aspect of the program of the present invention is a program for causing a computer to execute the following steps: acquiring a distance image of a subject from a TOF sensor that generates a distance image composed of multiple distance values ​​corresponding to the time of flight of light when projected light is reflected by the subject, passes through an optical system, and is received at a light receiving surface; performing distortion correction on the distance image; calculating a focal length of the optical system in at least one of the horizontal and vertical directions based on at least one of a horizontal distance value that is the distance value of the horizontal end of the distortion-corrected distance image and a vertical distance value that is the distance value of the vertical end of the distortion-corrected distance image, a central distance value that is the distance value of the central part of the distortion-corrected distance image, the distance from the light receiving surface to the image side principal plane of the optical system, the distance from the light receiving surface to the entrance pupil position of the optical system, and the effective size of the TOF sensor in at least one of the horizontal and vertical directions; and storing the calculated focal length. Effect of the Invention

[0009] According to the present invention, it is possible to obtain the focal length more accurately. [Brief description of the drawings]

[0010] [Figure 1] FIG. 1 is a diagram illustrating a pinhole lens model on a horizontal plane. [Diagram 2] FIG. 2 is a diagram illustrating a pinhole lens model on a vertical plane. [Diagram 3] 1A and 1B are diagrams for explaining a method of converting distance measurements by a TOF sensor into three-dimensional point cloud data. [Figure 4] 1A and 1B are diagrams for explaining a method of converting distance measurements by a TOF sensor into three-dimensional point cloud data. [Diagram 5] 1 is a diagram illustrating a lens model on a horizontal plane taking into account the optical path length of the lens; [Figure 6] FIG. 2 is a diagram illustrating a lens model on a vertical plane taking into account the optical path length of the lens. [Figure 7]FIG. 2 is a diagram illustrating an example of the configuration of a TOF camera according to the first embodiment. [Figure 8] 5 is a flowchart showing a process of the information processing device relating to calibration according to the first embodiment. [Figure 9] 5 is a flowchart showing the processing of the information processing device when capturing an image of a subject to be photographed and obtaining three-dimensional point cloud data according to the first embodiment. [Figure 10] FIG. 10(a) is a diagram illustrating an example of a distance image obtained using a distorted lens, and FIG. 10(b) is a diagram illustrating an example of an image obtained by correcting the distortion of the distance image of FIG. 10(a). [Figure 11] FIG. 11 is a diagram illustrating a configuration of an information processing apparatus according to a second embodiment. [Figure 12] 1 is a flow chart showing a first step procedure for determining whether a TOF camera is aligned perpendicular to its optical axis. [Figure 13] 11A and 11B are diagrams illustrating examples of areas at the four corners of a distance image after distortion correction for a white chart. [Figure 14] 10 is a flowchart showing a procedure of a second stage for calculating a focal length in the second embodiment. [Figure 15] 13A and 13B are diagrams illustrating an example of a region at the center of the screen, regions located at the top and bottom ends from the center of the screen, and regions located at the left and right ends from the center of the screen in a distortion-corrected distance image of a white chart. [Figure 16] 11 is a flowchart showing the processing of an information processing device according to the second embodiment when capturing an image of a subject to be photographed and obtaining three-dimensional point cloud data. [Figure 17] FIG. 13 is a diagram illustrating an example of the configuration of a TOF camera according to a third embodiment. [Figure 18] FIG. 13 is a diagram illustrating an example of the configuration of a TOF camera according to a fourth embodiment. [Figure 19] FIG. 13 is a diagram illustrating an example of the configuration of a TOF camera according to a fifth embodiment. [Figure 20] 1 is a diagram illustrating an example of the reflection spectral characteristics of a visible light reflecting dichroic film. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0011] First embodiment In a TOF camera, the distance from the TOF sensor to each observation point of the subject is measured, and the multiple distance measurements d obtained are converted into point cloud data in three-dimensional coordinates of x, y, and z (hereinafter referred to as 3D point cloud data). In this case, a pinhole lens model, which has the simplest optical path of the lens, is generally used.

[0012] Fig. 1 shows a pinhole lens model on the H (horizontal) plane when viewed from the y direction, and Fig. 2 shows a pinhole lens model on the V (vertical) plane when viewed from the x direction. FOVH in Fig. 1 and FOVV in Fig. 2 are the maximum angles of view that can be captured by the effective pixels of the TOF sensor 10. Hs in Fig. 1 and Vs in Fig. 2 are the sizes (distance dimensions) of the effective pixels in the horizontal and vertical directions of the TOF sensor 10, respectively. Hereinafter, the sizes of the effective pixels in the horizontal and vertical directions of the TOF sensor 10 may be simply referred to as the effective size.

[0013] The image received by the TOF sensor 10 passes through a single point at the center O of the lens 20. The number of effective pixels varies depending on the aspect ratio of the TOF sensor 10. For example, with an aspect ratio of 4:3, Hs:Vs is 4:3. Since the angle of view changes between the horizontal and vertical directions, the TOF sensor 10 defines a horizontal focal length fx (see FIG. 1; hereinafter referred to as horizontal focal length fx) and a vertical focal length fy (see FIG. 2; hereinafter referred to as vertical focal length fy) between the TOF sensor 10 and the lens 20. A method for setting the horizontal focal length fx and the vertical focal length fy will be described later.

[0014] 3 and 4 are diagrams for explaining a method of converting the distance measurement value d from the TOF sensor 10 to the subject into three-dimensional point cloud data x, y, and z using a pinhole lens model. 3 and 4 are diagrams of the lens as seen from the y and x directions, respectively. The TOF sensor 10 is a sequential scan sensor that scans in the horizontal direction in pixel units, and scans the next line in the vertical direction after scanning one line. The two-dimensional pixel data consisting of multiple distance measurement values ​​d obtained by the TOF sensor 10 in this way is also called a distance image.

[0015] When point P, which is an observation point of the subject, is captured by pixel S (point S) on the light receiving surface of the TOF sensor 10, a measured distance d from point S to point P is obtained based on the output of the TOF sensor 10. This measured distance d is converted into three-dimensional point cloud data x, y, and z. In this case, if the center position O of the lens 20 is the origin (x=0, y=0, z=0) of the three-dimensional point cloud data x, y, and z, Px in FIG. 3 becomes the point cloud data in the x direction of point P, and the distance Py in FIG. 4 becomes the point cloud data in the y direction of point P. If the pixel array on the light receiving surface of the TOF sensor 10 is a square pixel array, the pitch between pixels is Sp [mm], and the actual distance Sx [mm] of point S, which is Sh pixels away from the horizontal center of the light receiving surface of the TOF sensor 10 in the horizontal direction, is expressed by the following formula (1). Sx=Sh×Sp Equation (1)

[0016] Similarly, the actual distance Sy [mm] of point S that is Sv pixels away in the vertical direction from the vertical center of the light receiving surface of the TOF sensor 10 is expressed by the following equation (2). Sy = Sv × Sp Equation (2)

[0017] Point P is defined as an observation point of the subject at a position inclined horizontally and vertically by Θx and Θy, respectively, with respect to the optical axis of lens 20, as shown in Figures 3 and 4. If the measured distance d is expressed on the x, z plane in Figure 3, the measured distance d is converted to a distance dx expressed by the following equation (3). dx=d×cos(Θy) Equation (3)

[0018] 4, the triangle formed by the sides Sdy, Sy, and fy including point S and the triangle formed by the sides Pdy, Py, and Pz including point P are similar to each other, so Θy is expressed by the following formula (4). The distance Sdx is expressed by the following formula (5). Θy=arctan(Sy / fy) Equation (4) Sdx=fx / cos(Θx) Equation (5)

[0019] 3, the triangle formed by the sides Sdx, Sx, and fx including point S and the triangle formed by the sides Pdx, Px, and Pz including point P are similar to each other, so Θx is expressed by the following formula (6). The distance Sdx and the distances Pz and Px after point group transformation are expressed by the following formulas (7) to (9). Θx=arctan(Sx / fx) Equation (6) Pdx=dx-Sdx formula (7) Pz=Pdx×cos(Θx) Equation (8) Px=Pdx×sin(Θx) Equation (9)

[0020] Similarly, the distances dy, Sdy, Pdy, and the distance Py after point cloud transformation are respectively expressed by the following formulas (10) to (13). dy=d×cos(Θx) Equation (10) Sdy=fy / cos(Θy) Equation (11) Pdy=dy-Sdy Equation (12) Py=Pdy×sin(Θy) Equation (13)

[0021] Conventionally, the focal length f is set for the horizontal and vertical directions while disregarding the thickness of the lens, for example, based on the following known theoretical formula: where n is the refractive index of the lens, R1 is the radius of curvature of the entrance surface of the lens, and R2 is the radius of curvature of the exit surface of the lens. (n-1)((1 / R1)-(1 / R2))=1 / f

[0022] In this way, conventionally, the horizontal focal length fx and vertical focal length fy of the pinhole lens model are set without considering the thickness of the lens 20, and the distance measurement value d is converted into three-dimensional point cloud data x, y, and z. However, in the case of a TOF camera using multiple lenses or a TOF camera using a zoom lens, the physical length of the lens causes a difference between the entrance pupil position and the position of the image-side principal plane, and the maximum angle of view changes slightly, resulting in errors in the horizontal focal length fx and vertical focal length fy. As a result, there is a problem that three-dimensional point cloud data cannot be obtained with high accuracy from the distance measurement value.

[0023] In response to this, there is a method of capturing multiple images of a checkered pattern chart with different orientations and positions in space, treating the captured image data as a solution to the determinant of a pinhole lens model, and calculating the coefficients of the determinant from the multiple solutions to calibrate the horizontal focal length fx and the vertical focal length fy. However, this method requires multiple images to be captured with different orientations and angles of view, which requires a lot of work to calibrate. In addition, the captured images are easily affected by lighting and noise, making it difficult to accurately obtain the horizontal focal length fx and the vertical focal length fy.

[0024] In view of the above, a method for calculating the focal length in the first embodiment of the present invention will be described below.

[0025] FIG. 5 illustrates a lens model that takes into account the optical path length of the lens when viewed from the y direction. In the lens model of FIG. 5, the distance from the light receiving surface T of the TOF sensor 10 to the subject is accurately obtained as a distance measurement value d. Therefore, the distance C from the center of the light receiving surface T of the TOF sensor 10 to the observation point Pc of the subject at the center of the angle of view is obtained by the distance measurement value d at the pixel in the center of the light receiving surface T that hits the optical axis of the TOF sensor 10. If the distance measurement value at the pixel in the center is dc, this distance measurement value dc is expressed by the following formula (14). The distance measurement value dc in the first embodiment is an example of a central distance measurement value. dc=C Equation (14)

[0026] The distance from the light receiving surface T of the TOF sensor 10 to the entrance pupil position of the lens 25, taking into consideration the optical path length, is defined as IE. The distance IE to the entrance pupil position uses a value that is determined in advance according to the lens 25. If the distance from the entrance pupil position to an observation point Pc at the center of the angle of view of the subject is defined as ad, the distance ad is expressed by the following formula (15). ad=C-IE formula (15)

[0027] Next, if the measured distance d of observation point P of a subject whose vertical position is the same as the optical axis of lens 25 and whose horizontal position is the maximum angle of view that can be captured by TOF sensor 10 in the horizontal direction is dp, then the distance dp is the optical path length of thick line HR in Fig. 5. The measured distance dp in the first embodiment is an example of a horizontal measured distance. If the thick line HR is divided into HRa, HRb, and HRc as in Fig. 5, HRa is expressed by the following equation (16). HRa=HR-HRb-HRc=dp-HRb-HRc Formula (16)

[0028] If AFOVH is the maximum angle of view that can be captured by the TOF sensor 10 in the horizontal direction and Ha is the distance between both ends of the maximum angle of view, then by using trigonometric functions, the angle of view AFOV / 2 and the distance Ha / 2 can be calculated as shown in the following equations (17) and (18). AFOVH / 2=arccos(ad / HRa)=arccos(ad / (dp-HRb-HRc)) Equation (17) Ha / 2=ad×tan(AFOVH / 2) Equation (18)

[0029] The distance from the light receiving surface T of the TOF sensor 10 to the rear principal plane of the lens 25, taking into consideration the optical path length, is defined as Rpp. The distance Rpp to the image principal plane is a value determined in advance according to the lens 25. The actual distance HRb is expressed by the following formula (19) based on the distance IE to the entrance pupil position and the distance Rpp to the image principal plane. HRb=IE-Rpp Equation (19)

[0030] The actual distance HRc is expressed by the following equation (20) using the square root based on the horizontal effective size Hs of the TOF sensor 10 and the distance Rpp. HRc=SQRT((Hs / 2)^2+Rpp^2) Equation (20)

[0031] The horizontal focal length fx is calculated by dividing the distance C=dc by the ratio of Ha to the horizontal effective size Hs of the TOF sensor 10, as shown in equation (21) below. fx=Hs / (Ha+Hs)×dc =Hs / (2×ad×tan(AFOVH / 2)+Hs)×dc =Hs / (2×(dc-IE)×tan(AFOVH / 2)+Hs)×dc Equation (21)

[0032] Here, AFOVH / 2 is expressed by the following equation (22) based on equations (17), (19), and (20). AFOVH / 2=arccos(ad / (dp-HRb-HRc)) =arccos((dc-IE) / (dp-(IE-Rpp)-SQRT((Hs / 2)^2+Rpp^2))) Equation (22)

[0033] In this way, from the values ​​of distances dc and dp measured using the actual lens 25, the horizontal focal length fx of the pinhole lens can be calculated by using the distances IE and Rpp to the entrance pupil position and image side principal plane of the lens 25, and the horizontal effective size Hs.

[0034] FIG. 6 illustrates a lens model that takes into account the optical path length of the lens when viewed from the x direction. AFOVV is the maximum angle of view that can be captured by the TOF sensor 10 in the vertical direction, and Vs is the size of the effective pixels in the vertical direction of the TOF sensor 10. dq is the measured distance d of an observation point Q of an object that is located at the same position in the horizontal direction as the optical axis of the lens 25 and at the maximum angle of view that can be captured by the TOF sensor 10 in the vertical direction. The measured distance dq in the first embodiment is an example of a vertical measured distance. The vertical focal length fy is calculated in the same manner as the horizontal focal length fx, and is expressed by the following formula (23). fy=Vs / (2×(dc-IE)×tan(AFOVV / 2)+Vs)×dc Equation (23)

[0035] Here, AFOVV / 2 is expressed by the following equation (24). AFOVV / 2=arccos((dc-IE) / (dq-(IE-Rpp)-SQRT((Vs / 2)^2+Rpp^2))) Equation (24)

[0036] In this way, from the values ​​of distances dc and dq measured using the actual lens 25, the vertical focal length fy of the pinhole lens can be calculated by using the distances IE and Rpp to the entrance pupil position and image side principal plane of the lens 25, and the vertical effective size Vs.

[0037] In the first embodiment, a horizontal focal length fx and a vertical focal length fy obtained by converting the focal length of a lens having thickness into a focal length assumed to be a pinhole lens are obtained by acquiring a distance measurement value dc in the center of the angle of view, a distance measurement value dp at the horizontal end of the angle of view, and a distance measurement value dq at the vertical end of the angle of view. By inputting the horizontal focal length fx and the vertical focal length fy thus obtained into the formulas (1) to (13), it is possible to obtain three-dimensional point cloud data, that is, the distances Px, Py, and Pz after point cloud conversion.

[0038] FIG. 7 illustrates the configuration of the TOF camera 1 of the first embodiment. The TOF camera 1 includes a TOF sensor 10, a lens 25, a light projecting unit 50 that projects light in response to, for example, a user pressing a capture button of the TOF camera 1, a display device 60 having, for example, an LCD or an organic EL, and an information processing device 100. The TOF sensor 10 generates a plurality of distance measurement values ​​corresponding to the flight time of light projected from the light projecting unit 50, which is reflected by a subject, passes through the lens 25, and is received by a light receiving surface. The lens 25 may be a single lens or a combination of a plurality of lenses. The lens 25 of the first embodiment is an example of an optical system.

[0039] The information processing device 100 includes an acquisition unit 101, a calculation unit 102, a conversion unit 103, a display unit 104, and a storage unit 105. These components can be realized by a combination of hardware resources and software resources, or by hardware resources alone. As hardware resources, a CPU, a ROM, a RAM, a GPU (Graphics Processing Unit), a DSP (Digital Signal Processor), an ISP (Image Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field-Programmable Gate Array), and other LSIs can be used. As software resources, programs such as firmware can be used.

[0040] The acquisition unit 101 acquires the distance measurement value of the TOF sensor 10. The calculation unit 102 calculates the focal length. The conversion unit 103 converts the distance measurement value into three-dimensional point cloud data. The display unit 104 displays the three-dimensional point cloud data on the display device 60. The display unit 104 may display the three-dimensional point cloud data on another display device outside the TOF camera 1. The storage unit 105 stores the distances IE to the entrance pupil position of the lens 25, the distance Rpp to the image side principal plane of the lens 25, the horizontal effective size Hs, the vertical effective size Vs, various thresholds, the focal length, and programs for executing various processes of the information processing device 100.

[0041] In the first embodiment, in the first step, for example, a white chart is prepared as a flat subject 5 having high reflectance (for example, 94% reflectance) to the light projected by the TOF camera 1, and the focal length is calibrated using the white chart. Fig. 8 is a flowchart showing a process S100 of the information processing device 100 for the calibration of the first embodiment.

[0042] In step S101, the acquisition unit 101 acquires a plurality of distance measurement values ​​of the white chart from the TOF sensor 10. For example, the acquisition unit 101 acquires a plurality of distance measurement values ​​related to the white chart from the TOF sensor 10, which are generated by detecting light projected from the light projector 50 onto the measurement range and reflected from the white chart on the light receiving surface of the TOF sensor 10. The plurality of distance measurement values ​​correspond to the flight time of the light projected from the light projector 50, reflected from the subject 5, passing through the lens 25, and being received by the light receiving surface of the TOF sensor 10.

[0043] In step S101, the distance between the TOF camera 1 and the white chart is adjusted so that the entire white chart is captured on the entire shooting screen of the TOF camera 1, and the white chart is photographed by the TOF camera 1 to obtain multiple distance measurements of the white chart.

[0044] In step S102, the calculation unit 102 calculates a horizontal focal length fx and a vertical focal length fy based on the acquired multiple distance measurements. For example, the calculation unit 102 extracts a distance measurement value dc at the center of the angle of view, a distance measurement value dp at the horizontal end of the angle of view, and a distance measurement value dq at the vertical end of the angle of view from the acquired multiple distance measurements, and calculates the horizontal focal length fx and the vertical focal length fy using the above formulas (21) and (23), etc.

[0045] In step S103, the calculated horizontal focal length fx and vertical focal length fy are stored in the storage unit 105. After step S103, the process S100 ends.

[0046] FIG. 9 is a flowchart of a process S200 of the information processing device 100 when capturing an image of a subject to be captured in the first embodiment to obtain three-dimensional point cloud data.

[0047] In step S201, the acquisition unit 101 acquires from the TOF sensor 10 a plurality of distance measurements of a subject to be photographed.

[0048] In step S202, the conversion unit 103 reads out the horizontal focal length fx and the vertical focal length fy stored in step S103 from the storage unit 105, and converts the multiple distance measurement values ​​into three-dimensional point cloud data based on the read horizontal focal length fx and vertical focal length fy. For example, the conversion unit 103 converts each distance measurement value into three-dimensional point cloud data by calculating Px, Py, and Pz for each distance measurement value using the above formulas (8), (9), and (13), based on the horizontal focal length fx and vertical focal length fy read out from the storage unit 105.

[0049] In step S203, the display unit 104 displays the three-dimensional point cloud data on the display device 60. The three-dimensional point cloud data is stored in the storage unit 105.

[0050] After step S203, the process S200 ends.

[0051] In this way, in the first embodiment, the calculation unit 102 calculates the horizontal focal length fx and the vertical focal length fy based on the distance IE to the entrance pupil position of the lens 25, the distance Rpp to the image-side principal plane of the lens 25, the horizontal effective size Hs, the vertical effective size Vs, and the distance measurements dc, dp, and dq. With this configuration, a highly accurate focal length can be obtained taking into account the thickness of the lens, so that it is possible to obtain 3D point cloud data with high accuracy. In addition, since it is not necessary to take multiple checkered pattern charts by changing the orientation or position in space as in the conventional method, it is possible to obtain an appropriate focal length more easily than in the conventional method.

[0052] The following describes modified examples.

[0053] In the embodiment, both the horizontal focal length fx and the vertical focal length fy are calculated, but at least one of the horizontal focal length fx and the vertical focal length fy may be calculated. For example, the acquisition unit 101 may acquire at least one of the distance measurements dp and dq, and the calculation unit 102 may calculate at least one of the horizontal focal length fx and the vertical focal length fy based on at least one of the distance measurements dp and dq, the distance measurement value dc, at least one of the horizontal effective size Hs and the vertical effective size Vs, and the distances IE and Rpp.

[0054] In the embodiment, the lens 25 may be one group consisting of one element (single lens) or one group consisting of multiple elements (cemented lens), as long as the entrance pupil position and the image-side principal plane can be specified.

[0055] In the embodiment, a plurality of distance measurement values ​​of a white chart are used, but the present invention is not limited to this, and a plurality of distance measurement values ​​of an arbitrary planar subject may be used.

[0056] Second embodiment A second embodiment of the present invention will be described below. In the drawings and description of the second embodiment, the same or equivalent components and members as those of the first embodiment are denoted by the same reference numerals. Explanations that overlap with the first embodiment will be omitted as appropriate, and the description will focus on the configurations that differ from the first embodiment.

[0057] FIG. 10(a) illustrates a distance image obtained using a distorted lens, and FIG. 10(b) illustrates an image obtained by correcting the distortion of the distance image in FIG. 10(a). The distance image is an image showing distance measurements for each pixel. If the lens of the TOF camera 1 is distorted, the TOF camera 1 detects light that has passed through the distorted lens to obtain distance measurements. Therefore, the obtained distance image has distortion as shown in FIG. 10(a). When the distorted distance image is electrically corrected, the angle of view is usually narrower than before the correction as shown in FIG. 10(b). Therefore, the focal length changes to be slightly larger than the focal length obtained by the original lens, and the error with the actual focal length increases, resulting in a problem that when the distance measurement value is converted into 3D point cloud data, the deviation from the actual distance dimension increases.

[0058] In order to determine the focal length taking distortion into account, a method of calibrating the focal length using a checkerboard pattern chart can be considered. However, as mentioned above, there are problems with the amount of work required for calibration and the fact that it is susceptible to the effects of lighting and noise.

[0059] In view of the above, a second embodiment will be described. Fig. 11 shows a functional block diagram of an information processing device 100 according to the second embodiment. As shown in Fig. 11, the information processing device 100 according to the second embodiment further includes a correction unit 106 that performs distortion correction on a distance image.

[0060] In the second embodiment, in the first step, a white chart with high reflectance (e.g., 94% reflectance) to the light projected by the TOF camera 1 is prepared, and it is confirmed whether the white chart is disposed perpendicular to the optical axis of the TOF camera 1. Fig. 12 is a flowchart showing the procedure S300 of the first step for confirming whether the TOF camera 1 is disposed perpendicular to the optical axis.

[0061] In step S301, the acquisition unit 101 acquires a distance image of the white chart from the TOF sensor 10. Here, the distance between the TOF camera 1 and the white chart is adjusted so that the entire white chart is captured on the entire shooting screen of the TOF camera 1, and the white chart is photographed by the TOF camera 1, thereby acquiring the distance image of the white chart.

[0062] In step S302, the correction unit 106 performs distortion correction on the acquired distance image. The distortion correction is performed using, for example, the following commonly used equations (25) and (26). X'=x / (1+k1×r^2+k2×r^4+k3×r^6) Equation (25) Y'=y / (1+k1×r^2+k2×r^4+k3×r^6) Equation (26) Here, in equations (25) and (26), r is the image height from the center of the screen, k1, k2, and k3 are distortion correction coefficients adjusted due to lens distortion, x is the horizontal position from the center of the screen, y is the vertical position from the center of the screen, X' is the horizontal position from the center of the screen after correction, and Y' is the vertical position from the center of the screen after correction. Hereinafter, when the distortion correction coefficients are described without distinguishing between k1, k2, and k3, they may be simply written as k.

[0063] In step S303, calculation unit 102 calculates the LU distance average value, RU distance average value, LD distance average value, and RD distance average value for each of 5×5 pixel areas LU, RU, LD, and RD (see FIG. 13) at the four corners of the screen for the distortion-corrected distance image of the white chart. The LU distance average value, RU distance average value, LD distance average value, and RD distance average value are the average values ​​of the distance measurements obtained in the areas LU, RU, LD, and RD, respectively. Note that the size of the areas does not have to be 5×5 and may be set arbitrarily.

[0064] In step S304, the calculation unit 102 calculates an average value LRUD_AVE=(LU+RU+LD+RD) / 4 of the LU distance average value, the RU distance average value, the LD distance average value, and the RD distance average value, and calculates differences between the average value LRUD_AVE and each of the LU distance average value, the RU distance average value, the LD distance average value, and the RD distance average value. For example, the calculation unit 102 calculates LUd=LU-LRUD_AVE, RUd=RU-LRUD_AVE, LDd=LD-LRUD_AVE, and RDd=RD-LRUD_AVE.

[0065] In step S305, the display unit 104 compares the differences LUd, RUd, LDd, and RDd calculated for each of the regions LU, RU, LD, and RD with an arbitrary threshold value Nt, and causes the display device 60 to display the captured white chart in a display mode according to the comparison result. For example, when LUd>Nt, the display unit 104 displays the part of the image of the white chart that corresponds to the region LU in red. For example, when LUd<-Nt, the display unit 104 displays the part of the image of the white chart that corresponds to the region LU in blue. For example, when LUd≦Nt and LUd≧-Nt, the display unit 104 displays the part of the image of the white chart that corresponds to the region LU in green. The display unit 104 also displays RUd, LDd, and RDd in different colors according to the comparison result based on the threshold value Nt, in the same manner as in the case of LUd described above. While viewing the screen colored in this manner, the user adjusts the pan and tilt of TOF camera 1 so that all of the areas LU, RU, LD, and RD turn green, and fixes TOF camera 1 when all of the areas LU, RU, LD, and RD turn green.

[0066] After step S305, the procedure S300 ends. By steps S301 to S305, it becomes possible to check whether the white chart is placed perpendicular to the optical axis of the TOF camera 1.

[0067] Next, the procedure for calculating the focal length in the second embodiment will be described as the second step. Fig. 14 is a flow chart showing step S400 of the second step for calculating the focal length in the second embodiment. Step S400 in Fig. 14 is performed in a state where the white chart is placed perpendicular to the optical axis of the TOF camera in step S300 in Fig. 12 and the TOF camera is fixed.

[0068] In step S401, the acquisition unit 101 acquires a distance image of a white chart. Step S401 is for acquiring a distance image using a white chart, and is similar to step S301, so a description thereof will be omitted.

[0069] In step S402, the correction unit 106 performs distortion correction on the acquired distance image. Step S402 is similar to step S302, and therefore a description thereof will be omitted.

[0070] In step S403, the calculation unit 102 calculates the Co average distance value, the VU average distance value, the VD average distance value, the HL average distance value, and the HR average distance value for a 2×2 pixel area Co in the center of the screen, 4×2 pixel areas VU and VD located from the center of the screen to the top and bottom edges, and 2×4 pixel areas HL and HR located from the center of the screen to the left and right edges, for the distance image after distortion correction of the white chart (see FIG. 15). At this time, if there is a lot of noise in the distance measurement values ​​of each area, the average distance value for each area may be calculated using a moving average for each pixel between frames to suppress the noise.

[0071] In step S404, the calculation unit 102 sets the average value of the HL distance average value and the HR distance average value HLR_AVE=(HL+HR) / 2 as dp, the average value of the VU distance average value and the VD distance average value VUD_AVE=(VU+VD) / 2 as dq, and the average value C of the central area of ​​the screen as dc, and calculates the horizontal focal length fx and the vertical focal length fy converted into a pinhole lens model using equations (21) and (23), etc.

[0072] In step S405, the storage unit 105 stores the calculated horizontal focal length fx and vertical focal length fy.

[0073] After step S405, the procedure S400 ends.

[0074] FIG. 16 is a flowchart of a process S500 in the second embodiment when capturing an image of a subject 5 to obtain three-dimensional point cloud data.

[0075] In step S501, the acquisition unit 101 acquires a distance image of the subject 5 to be photographed from the TOF sensor 10. Step S501 is similar to step S301 except that the subject is not a white chart but an actual subject to be photographed, and therefore a description thereof will be omitted.

[0076] In step S502, the correction unit 106 performs distortion correction on the acquired distance image. Step S502 is similar to step S302, and therefore a description thereof will be omitted.

[0077] In step S503, the conversion unit 103 reads out the stored horizontal focal length fx and vertical focal length fy from the storage unit 105, and calculates Px, Py, and Pz for each distance measurement value in the distortion-corrected distance image of the subject 5 to be photographed using the above formulas (8), (9), and (13) based on the read out horizontal focal length fx and vertical focal length fy, and converts each distance measurement value into 3D point cloud data. In this way, 3D point cloud data with distance dimensions closer to the actual distance can be obtained. Since the focal length of the lens does not change significantly depending on the distance to the subject 5, 3D point cloud data with distance dimensions closer to the actual distance can be obtained even when various subjects 5 are photographed.

[0078] In step S503, the display unit 104 displays the three-dimensional point cloud data on the display device 60. The three-dimensional point cloud data is stored in the storage unit 105.

[0079] After step S503, the process S500 ends. In the case of a still image, the process may end here, but in the case of generating a point cloud as a moving image, the process S500 is performed for each frame.

[0080] As described above, according to the second embodiment, the horizontal focal length fx and the vertical focal length fy are obtained using a distance image obtained by correcting distortion of a distance image actually obtained by the lens 25 of the TOF camera 1, so that the focal length converted into a pinhole lens model taking into account the actual distortion correction can be obtained. Also, since an appropriate focal length can be obtained simply by adjusting the position of the TOF camera 1 using a white chart and taking an image, the workload for determining an appropriate focal length can be reduced.

[0081] In step S403, the average of the distance average values ​​of the areas at both the top and bottom and both the left and right ends of the screen is used to reduce the effects of noise, but this is not limited to this, and the average distance value of each area at one of the top and bottom ends and one of the left and right ends or the distance measurement values ​​at one of the top and bottom ends and one of the left and right ends may also be used.

[0082] In the second embodiment, both the horizontal focal length fx and the vertical focal length fy are calculated, but at least one of the horizontal focal length fx and the vertical focal length fy may be calculated. For example, the calculation unit 102 may calculate at least one of the horizontal focal length fx and the vertical focal length fy based on at least one of the horizontal distance measurement value at the horizontal end portion and the vertical distance measurement value at the vertical end portion of the distortion-corrected distance image, the central distance measurement value, at least one of the horizontal effective size Hs and the vertical effective size Vs, and the distance IE and Rpp.

[0083] In the second embodiment, a distance image of a white chart is used, but this is not limiting, and a distance image of an arbitrary planar object may be used. Furthermore, the information processing device 100 may input the distance image and infrared light image corrected for distortion by the correction unit 106 to the display unit 104 without passing them through the conversion unit 103, and display them on the display device 60. At this time, the information processing device 100 may display on the display device 60 the regions LU, RU, LD, and RD as well as Co, VU, VD, HL, and HR for which the distance average values ​​are calculated in steps S303 and S403.

[0084] Third embodiment Hereinafter, a third embodiment of the present invention will be described. In the drawings and description of the third embodiment, the same or equivalent components and members as those of the second embodiment are denoted by the same reference numerals. Explanations that overlap with the second embodiment will be omitted as appropriate, and the configurations that differ from the second embodiment will be described in detail.

[0085] The method of the second embodiment described above is effective for a fixed focal length lens, but is not necessarily effective for a zoom lens, because the focal length and the appropriate distortion correction coefficient change every time the zoom position changes. Usually, the wide end side of the distance image of a zoom lens is distorted in a barrel shape, and when the distance image is subjected to distortion correction, it is slightly enlarged and the angle of view becomes slightly narrower. In this case, unless the focal length is slightly increased, the distance measurement value will not be strictly correct when converted into three-dimensional point cloud data. Also, usually, in a zoom lens, barrel distortion gradually decreases toward the telephoto end. Some lenses have pincushion distortion at the telephoto end, and the pincushion distortion is also slightly enlarged by distortion correction, so unless the focal length is slightly increased, the distance measurement value will not be strictly correct when converted into three-dimensional point cloud data. Therefore, calibration and point cloud generation corresponding to the zoom lens are necessary. In view of the above, the third embodiment will be described.

[0086] 17 illustrates the configuration of a TOF camera 1 according to the third embodiment. The TOF camera 1 according to the third embodiment includes a zoom lens 26 capable of performing a zoom operation to change the focal length. The information processing device 100 according to the third embodiment further includes a zoom control unit 107 that controls the zoom operation of the zoom lens 26. The zoom lens 26 according to the third embodiment is an example of an optical system.

[0087] The zoom control unit 107 outputs a zoom control value ZC for controlling the zoom operation of the zoom lens 26 attached to the TOF camera 1 to the zoom lens 26. The zoom control value ZC is given, for example, by an 8-bit value from 0 to 255, and is a value divided into 256 parts from the wide end to the telephoto end. An actuator (not shown) of the zoom lens 26 executes a zoom operation according to the zoom control value ZC.

[0088] The zoom control unit 107 further outputs the zoom control value ZC to the correction unit 106. The correction unit 106 performs optimal distortion correction for each input zoom control value ZC based on the distance image obtained using the zoom lens 26. For example, the storage unit 105 holds 256 distortion correction coefficients k of equations (25) and (26) that perform curved distortion correction according to a commonly used image height, corresponding to the zoom control value ZC divided into 256, and the correction unit 106 reads out from the storage unit 105 the distortion correction coefficient k that optimally corrects the lens distortion during zooming indicated by the zoom control value ZC, and corrects the distortion of the distance image using the distortion correction coefficient.

[0089] The procedure for calculating the focal length for each zoom control value ZC will be described below. First, in the first step, step S300 in Fig. 12 is executed to confirm whether the white chart is placed perpendicular to the optical axis of the TOF camera 1, and the position of the TOF camera 1 is determined.

[0090] 15 for each zoom control value ZC, the horizontal focal length fx and the vertical focal length fy are calculated. In the third embodiment, the horizontal focal length fx is associated with the zoom control value ZC as 256 horizontal focal lengths fx[ZC] (i.e., fx[0] to fx

[0255] ), and the vertical focal length fy is associated with the zoom control value ZC as 256 fy[ZC] (i.e., fy[0] to fy

[0255] ), which are stored in the storage unit 105.

[0091] For example, when the zoom control value ZC=0 at the wide end, the information processing device 100 executes step S400 in Fig. 15 to calculate the horizontal focal length fx and the vertical focal length fy when the zoom control value ZC=0. The horizontal focal length fx and the vertical focal length fy calculated when the zoom control value ZC=0 are stored in the storage area of ​​the storage unit 105 for fx[ZC]=fx[0] and fy[ZC]=fy[0].

[0092] Next, the zoom control value ZC is incremented by 1 to ZC=1, and the zoom lens 26 is shifted one step from the wide-angle end to the telephoto side. The information processing device 100 executes step S400 to calculate the horizontal focal length fx and the vertical focal length fy when the zoom control value ZC=1. The calculation results are stored in the storage areas of the storage unit 105 for fx[ZC]=fx[1] and fy[ZC]=fy[1].

[0093] This calculation of the horizontal focal length fx and the vertical focal length fy for each zoom control value ZC is repeated until the position of the zoom lens 26 reaches the telephoto end. As a result, the horizontal focal length fx[ZC] and the vertical focal length fy[ZC] from the wide end to the telephoto end are stored in the storage unit 105.

[0094] When actually photographing the subject 5 to be photographed, the information processing device 100 executes process S500 in FIG. 16, and instantly reads out the horizontal focal length fx[ZC] and vertical focal length fy[ZC] corresponding to the zoom control value ZC from the memory unit 105 each time the zoom lens 26 is controlled, and performs point cloud conversion based on the focal lengths.

[0095] In this way, in the third embodiment, the correction unit 106 performs distortion correction based on the zoom control value. With this configuration, even if a zoom operation is performed, a point cloud that is closer to the actual distance can be obtained with optimal distance dimensions.

[0096] Fourth embodiment Hereinafter, a fourth embodiment of the present invention will be described. In the drawings and description of the fourth embodiment, the same or equivalent components and members as those of the third embodiment are denoted by the same reference numerals. Explanations that overlap with the third embodiment will be omitted as appropriate, and the description will focus on the configurations that differ from the third embodiment.

[0097] If an appropriate focal length can be applied to each lens having a different focal length movable range, it is possible to realize a more versatile TOF camera 1. Therefore, the fourth embodiment shows a TOF camera 1 in which the lens mount is, for example, a C mount and lenses having different focal length movable ranges can be replaced.

[0098] 18 illustrates the configuration of a TOF camera 1 of the fourth embodiment. The TOF camera 1 of the fourth embodiment includes an interchangeable lens 27 that is an interchangeable zoom lens, a C mount 28 for mounting the interchangeable lens 27 to the TOF camera 1, and an input device 70 for receiving user input. The interchangeable lens 27 of the fourth embodiment is selected from zoom lenses having different focal length movable ranges according to the user's application, and is mounted on the TOF camera 1. The interchangeable lens 27 of the fourth embodiment is an example of an optical system.

[0099] The storage unit 105 of the fourth embodiment holds, for example, 256 distortion correction coefficients k corresponding to each zoom control value ZC for each of three types of interchangeable lenses 27 having different focal length movable ranges. For example, the storage unit 105 has a first area 105a that stores 256 distortion correction coefficients k corresponding to each zoom control value ZC of a first type of interchangeable lens 27, a second area 105b that stores 256 distortion correction coefficients k corresponding to each zoom control value ZC of a second type of interchangeable lens 27, and a third area 105c that stores 256 distortion correction coefficients k corresponding to each zoom control value ZC of a third type of interchangeable lens 27.

[0100] The procedure for calculating the focal length for each interchangeable lens 27 will be described below. For example, the user sets index numbers 1 to 3 in the first to third areas 105a to 105c, respectively, via the input device 70, and specifies the index number corresponding to the attached interchangeable lens 27 among the three types of interchangeable lenses 27. The index number indicates the type of interchangeable lens 27. For example, it is assumed that index number 1 is specified for the first area 105a. After this specification, the procedure for calculating the focal length for each zoom control value ZC described in the third embodiment is performed. The correction unit 106 reads out the distortion correction coefficient k corresponding to the specified index number 1 and the zoom control value ZC input from the zoom control unit 107 from the first area 105a of the storage unit 105, and corrects the distance image. For example, when the zoom control value ZC=0, the calculation unit 102 executes steps S403 and S404 in Fig. 14 for the zoom control value ZC=0 to calculate the horizontal focal length fx[INDEX][ZC]=fx[1][0] and the vertical focal length fy[INDEX][ZC]=fy[1][0]. The storage unit 105 stores the obtained focal lengths fx[1][0] and fy[1][0] in the first area 105a corresponding to the index number 1 and the zoom control value ZC=0. These procedures are repeated for each zoom control value ZC at the index number 1, and the horizontal focal length fx[INDEX][ZC] and the vertical focal length fy[INDEX][ZC] for the index number 1 and each zoom control value ZC are stored in the first area 105a corresponding to the index number 1 and each zoom control value ZC.

[0101] Next, for example, after the user replaces the interchangeable lens 27 with the interchangeable lens 27 corresponding to the index number 2 and specifies the index number 2 via the input device 70, a procedure for calculating the focal length for each zoom control value ZC is performed. The correction unit 106 reads out the distortion correction coefficient k corresponding to the specified index number 2 and the zoom control value ZC input from the zoom control unit 107 from the second area 105b of the storage unit 105, and corrects the distance image. For example, when the zoom control value ZC=0, the calculation unit 102 executes steps S403 and S404 of FIG. 14 for the zoom control value ZC=0 to calculate the horizontal focal length fx[INDEX][ZC]=fx[2][0] and the vertical focal length fy[INDEX][ZC]=fy[2][0]. The storage unit 105 stores the obtained focal lengths fx[2][0] and fy[2][0] in the second area 105b corresponding to the index number 2 and the zoom control value ZC=0. These procedures are repeated for each zoom control value ZC at index number 2, and the horizontal focal length fx[INDEX][ZC] and vertical focal length fy[INDEX][ZC] for index number 2 and each zoom control value ZC are stored in the second area 105b corresponding to index number 2 and each zoom control value ZC.

[0102] Next, after the user replaces the interchangeable lens 27 with the interchangeable lens 27 corresponding to the index number 3 and specifies the index number 3 via the input device 70, a procedure for calculating the focal length for each zoom control value ZC is performed. The correction unit 106 reads out the distortion correction coefficient k corresponding to the specified index number 3 and the zoom control value ZC input from the zoom control unit 107 from the third area 105c of the storage unit 105, and corrects the distance image. For example, when the zoom control value ZC=0, the calculation unit 102 executes steps S403 and S404 of FIG. 14 for each zoom control value ZC, and calculates the horizontal focal length fx[INDEX][ZC]=fx[3][0] and the vertical focal length fy[INDEX][ZC]=fy[3][0] for the zoom control value ZC=0. The storage unit 105 stores the obtained focal lengths fx[3][0] and fy[3][0] in the third area 105c corresponding to the index number 3 and the zoom control value ZC=0. These procedures are repeated for each zoom control value ZC at index number 3, and the horizontal focal length fx[INDEX][ZC] and vertical focal length fy[INDEX][ZC] for index number 3 and each zoom control value ZC are stored in the third area 105c corresponding to index number 3 and each zoom control value ZC.

[0103] When actually photographing a subject, by specifying the index number of the attached interchangeable lens 27, the conversion unit 103 instantly reads out the horizontal focal length fx[INDEX][ZC] and vertical focal length fy[INDEX][ZC] corresponding to the zoom control value ZC from the memory unit 105 each time the interchangeable lens 27 is controlled, and performs point cloud conversion based on the focal lengths.

[0104] Thus, in the fourth embodiment, the correction unit 106 performs distortion correction based on not only the zoom control value ZC but also the type of the selected interchangeable lens 27. With this configuration, it is possible to obtain a point cloud that is closer to the actual distance with an optimal distance dimension according to the selected interchangeable lens 27.

[0105] In the fourth embodiment, an example in which three types of interchangeable lenses 27 are used has been shown, but the number of types is not limited to three, and may be two or more.

[0106] Fifth embodiment Hereinafter, the fifth embodiment of the present invention will be described. In the drawings and description of the fifth embodiment, the same or equivalent components and members as those of the fourth embodiment are denoted by the same reference numerals. Explanations that overlap with the fourth embodiment will be omitted as appropriate, and the description will focus on the configurations that differ from the fourth embodiment.

[0107] If the 3D point cloud data is generated by further utilizing the RGB color image of the subject, a 3D model closer to the real thing can be reproduced. However, the arrangement of RGB in the color image obtained from the reflected light from the subject differs depending on the lens distortion, zoom control value ZC, and focal length movable range described above. Therefore, even if the distance image is appropriately converted into a 3D point cloud taking into account the lens distortion, zoom control value ZC, and focal length movable range as in the above fourth embodiment, the RGB color image of the subject may not be appropriately arranged in the 3D point cloud data. In view of the above, the fifth embodiment will be described.

[0108] FIG. 19 illustrates the configuration of the TOF camera 1 of the fifth embodiment. The TOF camera 1 of the fifth embodiment includes a prism 80 that separates light passing through the interchangeable lens 27, and an RGB sensor 15 that generates an RGB color image of the subject from visible light reflected from the subject. The color image is an image that indicates the RGB color values ​​of each pixel. The prism 80 includes a visible light reflecting dichroic film 81. The visible light reflecting dichroic film 81 has, for example, the reflection spectral characteristics shown in FIG. 20, and reflects visible light with a wavelength of 400 to 700 [nm] and outputs it to the RGB sensor 15, while transmitting near-infrared light (for example, infrared light with a wavelength of 940 [nm]) projected from the light projecting unit 50 and outputs it to the TOF sensor 10. The TOF sensor 10 and the RGB sensor 15 of the fifth embodiment are arranged on the same optical axis using the prism 80. The color image of the subject detected by the RGB sensor 15 has the same angle of view and the same number of pixels as the range image detected by the TOF sensor 10 .

[0109] Visible ambient light and near-infrared light projected from light-projecting unit 50 are reflected from the subject, pass through interchangeable lens 27, and enter prism 80. Of the light that enters prism 80, visible light is reflected by visible-light-reflecting dichroic film 81 and enters RGB sensor 15, and near-infrared light passes through visible-light-reflecting dichroic film 81 and enters TOF sensor 10.

[0110] The method of calculating the focal length using the distance measurement value of the TOF sensor 10 is the same as that in the fourth embodiment, and therefore the description thereof will be omitted. In the following, a method of appropriately arranging the RGB color image of the subject in the generated 3D point cloud data while taking into account lens distortion and the like will be described.

[0111] In order to correct the lateral chromatic aberration of the interchangeable lens 27 in addition to correcting the distortion of the interchangeable lens 27, the storage unit 105 of the fifth embodiment holds 256 distortion correction coefficients k of equations (25) and (26) for each of the R, G, and B channels, which is obtained by dividing the zoom control value ZC by 256. That is, the storage unit 105 stores 256 distortion correction coefficients k for each of R, G, and B. Furthermore, the storage unit 105 of the fifth embodiment sets an index number for each interchangeable lens 27, as in the fourth embodiment, and holds 256 distortion correction coefficients k corresponding to the zoom control value ZC for each index number.

[0112] The acquisition unit 101 acquires a color image of the subject from the RGB sensor 15. The correction unit 106 reads out from the storage unit 105 a distortion correction coefficient k corresponding to an index number and a zoom control value ZC specified by a user via the input device 70, and performs distortion correction on the color image using equations (25) and (26). The conversion unit 103 generates three-dimensional point cloud data reflecting the color of the subject by arranging the color image, in which the chromatic aberration and distortion have been corrected, in the three-dimensional point cloud data. The display unit 104 causes the display device 60 to display the three-dimensional point cloud data reflecting the color of the subject.

[0113] In the fifth embodiment, the correction unit 106 corrects the distortion of the color image, and the conversion unit 103 arranges the color image after the distortion correction in the 3D point cloud data to generate 3D point cloud data reflecting the color of the subject. According to this configuration, by using the color image after the distortion correction, the color image can be appropriately arranged in the 3D point cloud data, so that a more realistic 3D model can be provided.

[0114] In the fifth embodiment, the correction unit 106 performs distortion correction on a color image based on the index number and the zoom control value ZC, but is not limited to this, and distortion correction may be performed without using the index number and the zoom control value ZC.

[0115] Sixth embodiment Hereinafter, a sixth embodiment of the present invention will be described. In the drawings and description of the sixth embodiment, the same or equivalent components and members as those of the fifth embodiment will be denoted by the same reference numerals. Explanations that overlap with the fifth embodiment will be omitted as appropriate, and the following description will focus on the configurations that differ from the fifth embodiment.

[0116] The storage unit 105 of the sixth embodiment stores a distance IE to the entrance pupil position and a distance Rpp to the image-side principal plane corresponding to each zoom control value ZC. The calculation unit 102 of the sixth embodiment reads out the distances IE and Rpp corresponding to each zoom control value ZC, and calculates the horizontal focal length fx and the vertical focal length fy based on the read-out distances IE and Rpp using equations (21) and (23) and the like.

[0117] Here, the distance IE to the entrance pupil position and the distance Rpp to the image-side principal plane change depending on the zoom control value ZC. According to the sixth embodiment, the horizontal focal length fx and the vertical focal length fy can be calculated using appropriate distances IE and Rpp for each zoom control value ZC, which can further improve the accuracy of the focal lengths.

[0118] The above-described embodiment is merely an example, and it will be understood by those skilled in the art that various modifications are possible in the combination of each component and each treatment process, and that such modifications are also within the scope of the present invention. [Explanation of symbols]

[0119] 1 TOF camera, 10 TOF sensor, 15 RGB sensor, 20 pinhole lens, 25 lens, 26 zoom lens, 27 interchangeable lens, 50 light projection unit, 60 display device, 70 input device, 80 prism, 100 information processing device, 101 acquisition unit, 102 calculation unit, 103 conversion unit, 104 display unit, 105 memory unit, 106 correction unit.

Claims

1. an acquisition unit that acquires a distance image of a subject from a TOF sensor that generates a distance image composed of a plurality of distance values ​​corresponding to a time of flight of light from when the projected light is reflected by the subject, passes through an optical system, and is received by a light receiving surface; a correction unit that performs distortion correction on the distance image; a calculation unit that calculates a focal length of the optical system in at least one of a horizontal distance value that is a distance value of a horizontal end of the distortion-corrected distance image and a vertical distance value that is a distance value of a vertical end of the distortion-corrected distance image, a central distance value that is a distance value of a central portion of the distortion-corrected distance image, a distance from the light receiving surface to an image side principal plane of the optical system, a distance from the light receiving surface to an entrance pupil position of the optical system, and an effective size of the TOF sensor in at least one of the horizontal and vertical directions; A storage unit that stores the calculated focal length; An information processing device comprising:

2. the optical system is a zoom lens capable of performing a zoom operation to change a focal length, the information processing device includes a zoom control unit that outputs a zoom control value for controlling the zoom operation, The correction unit performs the distortion correction based on the zoom control value. The information processing device according to claim 1 .

3. the optical system is a zoom lens selected from a plurality of zoom lenses each having a different focal length movable range, the correction unit performs the distortion correction further based on the type of the selected zoom lens. The information processing device according to claim 2 .

4. The information processing device further includes a conversion unit that converts the plurality of distance values ​​into three-dimensional point cloud data based on the focal length stored in the storage unit, the acquisition unit acquires a color image of the subject from an RGB sensor that generates a color image of the subject from visible light reflected from the subject; The correction unit corrects distortion of the color image, the conversion unit generates the three-dimensional point cloud data reflecting the color of the subject by arranging the distortion-corrected color image in the three-dimensional point cloud data. The information processing device according to claim 1 .

5. acquiring a distance image of the subject from a TOF sensor that generates a distance image composed of a plurality of distance values ​​corresponding to a time of flight of light from when the projected light is reflected by the subject, passes through an optical system, and is received by a light receiving surface; performing distortion correction on the distance image; calculating a focal length of the optical system in at least one of a horizontal distance value which is a distance value of a horizontal end of the distortion-corrected distance image and a vertical distance value which is a distance value of a vertical end of the distortion-corrected distance image, a central distance value which is a distance value of a central portion of the distortion-corrected distance image, a distance from the light receiving surface to an image side principal plane of the optical system, a distance from the light receiving surface to an entrance pupil position of the optical system, and an effective size of the TOF sensor in at least one of the horizontal and vertical directions; storing the calculated focal length; A method comprising:

Citation Information

Patent Citations

  • Three-dimensional information acquisition device, information processor, and system

    JP2020153865A