Estimation device, method and program
The estimation device addresses scale drift in SLAM by using a statistical model to convert blur values into accurate distances, enhancing the precision of position and orientation estimation for moving objects.
Patent Information
- Application Number
- JP2021142611
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-09-01
- Publication Date
- 2024-09-09
- Estimated Expiration
- 2041-09-01
AI Technical Summary
Existing SLAM techniques using monocular imaging devices suffer from scale drift errors in estimating the position and orientation of moving objects, leading to inaccurate 3D mapping due to low accuracy in distance measurements based on actual scales.
An estimation device that utilizes a statistical model to estimate blur values and their uncertainties from images captured by a monocular camera, converting these values into accurate distances and orientations using a blur value conversion process, thereby improving the precision of position and orientation estimation.
The method enables high-accuracy estimation of the position and orientation of moving objects by using blur values and uncertainties to correct for scale drift, allowing for robust and precise 3D mapping based on real-world scales.
Smart Images

Figure 0007547297000019 
Figure 0007547297000014 
Figure 0007547297000006
Abstract
Description
[Technical field]
[0001] An embodiment of the present invention relates to an estimation device, a method, and a program. [Background technology]
[0002] In recent years, a technology called Simultaneous Localization and Mapping (SLAM) has become known that simultaneously estimates the position and orientation of a moving object, such as an automobile or a robot, and creates a three-dimensional map of the area around the moving object, based on images captured by an imaging device (e.g., a camera) installed on the moving object.
[0003] However, especially in SLAM, which uses images captured by a monocular imaging device, the scale of the estimated position and orientation of the moving object (and the 3D map created) is indefinite, resulting in scale drift, in which errors accumulate each time the process is performed.
[0004] In order to reduce the effects of such scale drift, it is useful, for example, to obtain a distance based on the real scale from a moving body to a subject included in the above-mentioned image and estimate the position and orientation of the moving body using the estimated distance; however, if the accuracy of the distance based on the real scale is low, the estimation accuracy of the position and orientation of the moving body decreases. [Prior art documents] [Patent documents]
[0005] [Patent Document 1] JP 2019-011971 A [Non-patent literature]
[0006] [Non-Patent Document 1] Mur-Artal, Raul, and Juan D. Tardos. "Orb-slam2: An open-source slam system for monocular, stereo, and rgb-d cameras." IEEE Transactions on Robotics 33.5 (2017): 1255-1262. Summary of the Invention [Problem to be solved by the invention]
[0007] Therefore, an object of the present invention is to provide an estimation device, method, and program capable of estimating the position and orientation of a moving object with high accuracy. [Means for solving the problem]
[0008] The estimation device according to the embodiment includes a first acquisition means, a second acquisition means, an extraction means, and an estimation means. The first acquisition means acquires first and second images including the same object captured consecutively by an imaging device installed on a moving body. The second acquisition means acquires a first distance to the object included in the captured first image and an uncertainty of the first distance. The extraction means extracts a useful second distance from the captured first distance based on the uncertainty of the captured first distance. The estimation means estimates the position and orientation of the moving body when the second image was captured by the imaging device based on the captured first and second images and the extracted second distance. The second acquisition means includes a third acquisition means that acquires a blur value indicating a blur occurring in a subject in the first image and an uncertainty of the blur value as distance information regarding a first distance to the subject and an uncertainty of the distance information, and a conversion means that converts the blur value into a first distance corresponding to the blur value and converts the uncertainty of the blur value into uncertainty of the first distance corresponding to the blur value. [Brief description of the drawings]
[0009] [Figure 1] FIG. 1 is a diagram showing an example of the configuration of an estimation system according to a first embodiment. [Diagram 2] FIG. 2 is a diagram showing an example of a hardware configuration of an imaging apparatus. [Diagram 3] FIG. 2 is a diagram showing an example of a hardware configuration of an estimation apparatus. [Figure 4]FIG. 1 is a diagram for explaining an overview of a statistical model. [Diagram 5] 11 is a diagram showing the relationship between the distance to a subject and the blur caused in an image by chromatic aberration when a single lens is used. [Figure 6] 11 is a diagram showing the relationship between the distance to the subject and the blur caused in an image by chromatic aberration when an achromatic lens is used. [Figure 7] 1 is a diagram showing the relationship between the size of the opening of an aperture mechanism provided in an optical system of an imaging device and the shape of a PSF. [Figure 8] FIG. 2 is a diagram showing an example of a PSF shape occurring in an image of each channel. [Figure 9] FIG. 13 is a diagram showing another example of a PSF shape occurring in the image of each channel. [Figure 10] A diagram showing the relationship between the nonlinearity of the PSF shape and the shape of the aperture of the iris mechanism. [Figure 11] FIG. 4 is a diagram for explaining a first method for estimating blur from an image. [Figure 12] FIG. 4 is a diagram showing an example of information input to a statistical model in the first method. [Figure 13] FIG. 11 is a diagram for explaining a second method for estimating blur from an image. [Figure 14] FIG. 13 is a diagram showing an example of information input to a statistical model in the second method. [Figure 15] 11A and 11B are diagrams for explaining a third method for estimating blur from an image. [Figure 16] 1A and 1B are diagrams for specifically explaining the correlation between blurring occurring in an image and the distance to a subject included in the image. [Figure 17] FIG. 13 is a diagram for explaining an example of a learning process of a statistical model. [Figure 18] 11 is a flowchart showing an example of a processing procedure of a learning process of a statistical model. [Figure 19] FIG. 11 is a flowchart showing an example of a processing procedure of the estimation device when estimating the position and orientation of a moving body. [Figure 20] FIG. 13 is a diagram showing the relationship between blur value and distance based on a perspective projection model. [Figure 21]13 is a diagram showing the relationship between a blur value and a distance corresponding to the blur value, as well as the relationship between the distance and distance uncertainty. [Figure 22] 10 is a flowchart showing an example of an initialization process according to the second embodiment. [Diagram 23] 5 is a flowchart showing an example of a tracking process in the present embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] Each embodiment will be described below with reference to the drawings. (First embodiment) First, a first embodiment will be described. Fig. 1 shows an example of the configuration of an estimation system according to this embodiment. As shown in Fig. 1, the estimation system 1 includes an imaging device 2 and an estimation device 3.
[0011] The imaging device 2 is a monocular camera installed on a moving object (not shown), and captures a plurality of images (hereinafter referred to as time-series images) continuously, for example, while the moving object is moving.
[0012] In this embodiment, the mobile body is assumed to be, for example, an automobile, a robot, or an unmanned aerial vehicle (flying body) such as a drone, but may be any other mobile body as long as it moves autonomously.
[0013] The estimation device 3 estimates the position and orientation of a moving body on which the imaging device 2 is installed from time-series images captured by the imaging device 2. Note that the position and orientation of the moving body in this embodiment corresponds to, for example, the position and orientation of the moving body from a starting position (i.e., the moving distance and orientation of the moving body).
[0014] The estimation device 3 is communicably connected to the imaging device 2, and includes an image acquisition unit 31, a distance acquisition unit 32, an extraction unit 33, and an estimation unit .
[0015] The image acquisition unit 31 acquires time-series images captured by the imaging device 2. As described above, the time-series images are captured continuously while, for example, a moving object is moving, and therefore, it is assumed that at least two chronologically close images among the time-series images include the same subject.
[0016] The distance acquisition unit 32 acquires one image (hereinafter referred to as the first image) from the time-series images acquired by the image acquisition unit 31, and acquires the distance to the subject included in the first image and the uncertainty of the distance. In this embodiment, the distance between the plane including the lens aperture plane of the imaging device 2 and the subject represented by a point in three-dimensional space is referred to as the distance to the subject or simply the distance. This distance is a scalar quantity having a dimension of length, and when based on a real scale, it is expressed by a numerical value accompanied by a unit of length such as meters.
[0017] Here, the distance acquisition unit 32 is assumed to hold in advance a statistical model used for acquiring the distance to the subject and the uncertainty of the distance from an image captured by the imaging device 2. This statistical model is generated by learning blur that occurs in an image affected by the aberration of the optical system of the imaging device 2 (described later) and changes nonlinearly depending on the distance to the subject included in the image, and is constructed so that, when an image is input, a blur value indicating the blur occurring in the subject in the image is estimated and the uncertainty of the blur value (degree of uncertainty) is calculated (i.e., the blur value and the uncertainty of the blur value are output).
[0018] The statistical model described above can be generated by applying various known machine learning algorithms such as a neural network or a random forest. In addition, the neural network applicable in this embodiment may include, for example, a convolutional neural network (CNN), a fully connected neural network, and a recurrent neural network.
[0019] According to such a statistical model, the distance acquisition section 32 can acquire the blur value outputted from the statistical model and the uncertainty of the blur value by inputting, for example, the first image into the statistical model.
[0020] Here, although details will be described later, since the blur indicated by the blur value output from the statistical model is a physical clue regarding the distance to the subject where the blur occurs, the distance acquisition unit 32 converts the acquired blur value into a distance (distance to the subject) corresponding to the blur value. In addition, the distance acquisition unit 32 converts the uncertainty of the acquired blur value into the uncertainty of the distance corresponding to the blur value. In this way, the distance acquisition unit 32 acquires the distance to the subject included in the first image and the uncertainty of the distance.
[0021] The extraction unit 33 extracts useful distances from among the distances acquired by the distance acquisition unit 32 based on the uncertainty of the distances acquired by the distance acquisition unit 32 .
[0022] The estimation unit 34 estimates the position and orientation of the moving body when the second image was captured by the imaging device 2, based on the above-mentioned first image and an image (hereinafter referred to as the second image) that is chronologically close to the first image, and the useful distance extracted by the extraction unit 33. Note that although the position and orientation of the moving body when the first image was captured differ from the position and orientation of the moving body when the second image was captured, the second image is an image that includes the same subject as the first image.
[0023] That is, the estimation device 3 according to this embodiment is configured to obtain, from a time-series image captured by the imaging device 2 (monocular camera), a blur value indicating a blur occurring in a subject in the image and the uncertainty of the blur value using a statistical model, and estimate the position and orientation of a moving object based on a real scale using a distance converted from the blur value and the uncertainty of the blur value and a useful distance extracted based on the uncertainty of the distance.
[0024] 1, the estimation system 1 has been described as including the imaging device 2 and the estimation device 3, which are separate devices, but the imaging device 2 and the estimation device 3 may be configured as an integrated device. Furthermore, the estimation system 1 in this embodiment may be realized as an embedded system built into various electronic devices, etc.
[0025] Fig. 2 shows an example of a hardware configuration of the imaging device 2. As shown in Fig. 2, the imaging device 2 includes a lens 201, an image sensor 202, a non-volatile memory 203, and a communication device 204. The lenses 201 and 202 correspond to an optical system (monocular camera) of the imaging device 2.
[0026] Light reflected from a subject is incident on the lens 201. The light that is incident on the lens 201 is transmitted through the lens 201. The light that is transmitted through the lens 201 reaches the image sensor 202 and is received (detected) by the image sensor 202. The image sensor 202 converts the received light into an electrical signal (photoelectric conversion) to generate an image made up of a plurality of pixels.
[0027] The image sensor 202 is realized by, for example, a CCD (Charge Coupled Device) image sensor and a CMOS (Complementary Metal Oxide Semiconductor) image sensor. The image sensor 202 includes, for example, a first sensor (R sensor) that detects light in a red (R) wavelength band, a second sensor (G sensor) that detects light in a green (G) wavelength band, and a third sensor (B sensor) that detects light in a blue (B) wavelength band. The image sensor 202 can receive light in the corresponding wavelength bands by the first to third sensors and generate sensor images (R image, G image, and B image) corresponding to each wavelength band (color component). That is, the image captured by the imaging device 2 is a color image (RGB image), and the image is composed of an R image, a G image, and a B image.
[0028] In the present embodiment, the image sensor 202 is described as including the first to third sensors, but it is sufficient that the image sensor 202 is configured to include at least one of the first to third sensors. Moreover, the image sensor 202 may be configured to include, for example, a sensor for generating a monochrome image, instead of the first to third sensors.
[0029] In this embodiment, an image generated based on light transmitted through the lens 201 (i.e., an image captured by the imaging device 2) is an image that is affected by the aberration of the optical system (the lens 201 included in the optical system), and includes blurring caused by the aberration. Details of the blurring caused in the image will be described later.
[0030] Although not shown in FIG. 2, the imaging device 2 (its optical system) further includes a focus adjustment mechanism (lens driving circuit) for controlling the focus position by, for example, adjusting the position of the lens 201, and an aperture mechanism (aperture control circuit) having an opening for adjusting the amount of light (amount of incoming light) taken into the optical system of the imaging device 2.
[0031] The non-volatile memory 203 is a storage medium for storing images captured by the imaging device 2 described above.
[0032] The communication device 204 is a device configured to perform wired or wireless communication. The communication device 204 performs communication with an external device via a network. The external device includes the estimation device 3. In this case, the imaging device 2 transmits an image captured by the imaging device 2 to the estimation device 3 via the communication device 204.
[0033] Fig. 3 shows an example of a hardware configuration of the estimation device 3. As shown in Fig. 3, the estimation device 3 includes a CPU 301, a non-volatile memory 302, a RAM 303, a communication device 304, and the like.
[0034] The CPU 301 is a processor for controlling the operations of various components in the estimation device 3. The CPU 301 may be a single processor or may be configured with multiple processors. The CPU 301 executes various programs loaded from the non-volatile memory 302 to the RAM 303. These programs include an operating system (OS) and various application programs. The application programs include the estimation program for estimating the position and orientation of the above-mentioned moving object.
[0035] The non-volatile memory 302 is a storage medium used as an auxiliary storage device. The RAM 303 is a storage medium used as a main storage device. Although only the non-volatile memory 302 and the RAM 303 are shown in Fig. 3, the estimation device 3 may include other storage devices such as a hard disk drive (HDD) and a solid state drive (SSD).
[0036] In this embodiment, some or all of the image acquisition unit 31, distance acquisition unit 32, extraction unit 33, and estimation unit 34 shown in Fig. 1 are realized by causing the CPU 301 (i.e., the computer of the estimation device 3) to execute the above-mentioned estimation program, that is, by software. This estimation program may be stored in a computer-readable storage medium and distributed, or may be downloaded to the estimation device 3 via a network. Some or all of these units 31 to 34 may be realized by hardware such as an integrated circuit (IC), or may be realized by a combination of software and hardware.
[0037] The communication device 304 is a device configured to perform wired or wireless communication. The communication device 304 performs communication with an external device via a network. The external device includes the imaging device 2. In this case, the estimation device 3 receives an image captured by the imaging device 2 from the imaging device 2 via the communication device 304.
[0038] In this embodiment, as described above, the position and orientation of a moving object are estimated using the blur value output from a statistical model to which an image is input and the uncertainty of the blur value (the distance converted from the blur value and the uncertainty of the distance), and this statistical model will be described below.
[0039] First, an overview of the above statistical model will be described with reference to Fig. 4. In this embodiment, an image affected by the aberration of the above optical system (lens 201) is generated by the imaging device 2 (image sensor 202), and the image is input to the statistical model.
[0040] According to the statistical model in this embodiment, a blur value (blur information) indicating the blur occurring in an input image according to the distance to a subject contained in the image as described above is estimated, and the blur value is output.
[0041] Furthermore, according to the statistical model in this embodiment, the uncertainty of the blur value indicating the blur occurring in the image is calculated as described above, and the uncertainty is output. In this case, the statistical model is assumed to have learned to calculate the uncertainty of the predicted value (blur value) by using, for example, Bayesian inference. The statistical model may also be learned to calculate the uncertainty of the blur value using variance (variation error of the predicted value). In this embodiment, the uncertainty of the blur value calculated by the statistical model is represented by, for example, a real number equal to or greater than 0, and the larger the value, the higher the uncertainty of the blur value. Note that the calculation method of the uncertainty of the blur value is not limited to a specific method, and various known methods can be applied.
[0042] Here, as described above, in the image captured by the imaging device 2 in this embodiment, blurring occurs due to the aberration (lens aberration) of the optical system of the imaging device 2. Hereinafter, a description will be given of the blurring occurring in the image captured by the imaging device 2. First, of the blurring caused by the aberration of the optical system of the imaging device 2, chromatic aberration will be described.
[0043] 5 shows the relationship between the distance to the subject and the blur that occurs in an image due to chromatic aberration. In the following description, the position at which the image capturing device 2 is in focus is referred to as the focus position.
[0044] Since the refractive index of light passing through the lens 201 with aberration differs for each wavelength band, for example, if the subject is not in focus, the light of each wavelength band will not converge to one point but will reach different points. This appears as chromatic aberration (blur) on the image.
[0045] The upper part of FIG. 5 shows a case where the position of the subject relative to the imaging device 2 (image sensor 202) is farther away than the focus position (that is, the position of the subject is deeper than the focus position).
[0046] In this case, for light 401 in the red wavelength band, a relatively small blur b R On the other hand, for light 402 in the blue wavelength band, a relatively large blur b B In addition, for the light 403 in the green wavelength band, the blur b R Ignorant b B Therefore, in an image captured when the subject is positioned farther away than the focal point, a blue blur is observed outside the subject in the image.
[0047] On the other hand, the lower part of FIG. 5 shows a case where the subject position relative to the imaging device 2 (image sensor 202) is closer than the focus position (that is, the subject position is in front of the focus position).
[0048] In this case, for light 401 in the red wavelength band, a relatively large blur b R On the other hand, for light 402 in the blue wavelength band, an image including a relatively small blur b BIn addition, for the light 403 in the green wavelength band, the blur b R Ignorant b B Therefore, in an image captured when the subject is closer than the focal point, a red blur is observed outside the subject in the image.
[0049] 5 shows an example in which the lens 201 is a simple single lens, but generally, a lens on which chromatic aberration has been corrected (hereinafter referred to as an achromatic lens) may be used in the imaging device 2. An achromatic lens is a lens that combines a low-dispersion convex lens and a high-dispersion concave lens, and is a lens that corrects chromatic aberration and has the smallest number of lenses.
[0050] Fig. 6 shows the relationship between the distance to the subject and the blur caused in the image due to chromatic aberration when the above-mentioned achromatic lens is used as the lens 201. Although an achromatic lens is designed to align the focal positions of blue wavelengths and red wavelengths, chromatic aberration cannot be completely eliminated. For this reason, when the subject is located farther away from the focal position, green blur occurs as shown in the upper part of Fig. 6, and when the subject is located closer to the focal position, purple blur occurs as shown in the lower part of Fig. 6.
[0051] 5 and the middle part of Fig. 6 show a case where the position of the subject with respect to the imaging device 2 (image sensor 202) coincides with the focal position. In this case, an image with little blur is generated in the image sensor 202 (first to third sensors).
[0052] Here, the optical system of the imaging device 2 is equipped with an aperture mechanism as described above, and the shape of the blur occurring in an image captured by the imaging device 2 also differs depending on the size of the opening of the aperture mechanism. The shape of the blur is called a PSF (Point Spread Function) shape, and indicates the diffusion distribution of light occurring when a point light source is captured.
[0053] The upper part of Fig. 7 shows, from the left, PSF shapes occurring in the center of an image captured by an imaging device 2 (its optical system) using a lens with a focal length of 50 mm, with the focus position set to 1500 mm and the F-number (aperture) set to F1.8, in order of the subject's position being closer to the imaging device 2. The lower part of Fig. 7 shows, from the left, PSF shapes occurring in the center of an image captured by an imaging device 2 (its optical system) using a lens with a focal length of 50 mm, with the focus position set to 1500 mm and the F-number (aperture) set to F4, in order of the subject's position being closer to the imaging device 2. Note that the centers of the upper and lower parts of Fig. 7 show PSF shapes when the subject's position coincides with the focus position.
[0054] The PSF shapes shown at corresponding positions in the upper and lower parts of Figure 7 are PSF shapes when the position of the subject relative to the imaging device 2 is the same, but even when the position of the subject is the same, the PSF shape in the upper part (PSF shape that occurs in an image captured with an F-value of F1.8) and the PSF shape in the lower part (PSF shape that occurs in an image captured with an F-value of F4) are different.
[0055] Furthermore, as shown by the leftmost and rightmost PSF shapes in Figure 7, even if the distance from the subject position to the focus position is approximately the same, the PSF shape will be different when the subject position is closer to the focus position and when the subject position is farther away from the focus position.
[0056] The phenomenon in which the PSF shape differs depending on the size of the aperture of the diaphragm mechanism and the position of the subject relative to the imaging device 2 as described above also occurs in each channel (RGB image, R image, G image, and B image). Fig. 8 shows the PSF shapes occurring in the images of each channel captured by the imaging device 2 using a lens with a focal length of 50 mm when the focal position is 1500 mm and the F-number is F1.8, divided into a case where the subject position is closer (in front) than the focal position and a case where the subject position is farther (in back) than the focal position. Fig. 9 shows the PSF shapes occurring in the images of each channel captured by the imaging device 2 using a lens with a focal length of 50 mm when the focal position is 1500 mm and the F-number is F4, divided into a case where the subject position is closer than the focal position and a case where the subject position is farther than the focal position.
[0057] As described above, the statistical model used in this embodiment is generated by learning the blur that changes nonlinearly depending on the distance to the subject contained in the image, and the blur that is converted nonlinearly includes blur caused by chromatic aberration in the optical system of the imaging device 2 described in Figures 5 and 6 above, and blur caused depending on the size of the opening (i.e., F-number) of the aperture mechanism that adjusts the amount of light taken in by the optical system of the imaging device 2 described in Figures 7 to 9.
[0058] The PSF shape also differs depending on the shape of the aperture of the diaphragm mechanism. Here, FIG. 10 shows the relationship between the nonlinearity (asymmetry) of the PSF shape and the shape of the aperture of the diaphragm mechanism. The above-mentioned nonlinearity of the PSF shape is likely to occur when the shape of the aperture of the diaphragm mechanism is other than a circle. In particular, the nonlinearity of the PSF shape is more likely to occur when the shape of the aperture is an odd polygon or an even polygon arranged asymmetrically with respect to the horizontal or vertical axis of the image sensor 202.
[0059] Although detailed description is omitted here, the PSF shape also has position dependency. That is, the nonlinearly varying blur in this embodiment may include blur that varies depending on the position in the image captured by the image capture device 2.
[0060] In the estimation device 3 (estimation system 1) according to this embodiment, a blur value indicating the blur occurring in the image is estimated (predicted) using a statistical model generated by focusing on the fact that the blur (color, size, and shape) occurring in the image is a physical clue regarding the distance to the subject. Note that in this embodiment, the blur value estimated by the statistical model (i.e., output from the statistical model) is a scalar quantity indicating the amount of blur including the color, size, and shape of the blur occurring in the image.
[0061] Hereinafter, an example of a method for estimating (a blur value indicating) blur from an image using a statistical model in this embodiment will be described. Here, first to third methods will be described.
[0062] First, the first method will be described with reference to Fig. 11. In the first method, a local region (image patch) 501a is extracted from an image 501.
[0063] In this case, for example, the entire area of the image 501 may be divided into a matrix and partial areas after the division may be extracted sequentially as local areas 501a, or the image 501 may be recognized and local areas 501a may be extracted so as to cover the area where the subject (image) is detected. Also, the local areas 501a may partially overlap with other local areas 501a.
[0064] Next, for each extracted local region 501a, information about the local region 501a (information about the image 501) is input to a statistical model to estimate a blur value indicating the blur occurring according to the distance to the subject in the local region 501a.
[0065] The statistical model to which information about the local region 501a is thus input estimates a blur value 502 for each pixel constituting the local region 501a.
[0066] Here, for example, if a particular pixel belongs to both the first local region 501a and the second local region 501a (i.e., the regions including the pixel overlap between the first local region 501a and the second local region 501a), the blur value estimated for the pixel belonging to the first local region 501a may differ from the blur value estimated for the pixel belonging to the second local region 501a.
[0067] For this reason, for example, when multiple partially overlapping local regions 501a are extracted as described above, the blur value of a pixel constituting an overlapping region of the multiple local regions 501a may be, for example, an average value of a blur value estimated for a partial region (pixels) of one of the overlapping local regions 501a and a blur value estimated for a partial region (pixels) of the other local region 501a. Alternatively, it may be determined by majority vote of blur values estimated for each partial region of three or more partially overlapping local regions 501a.
[0068] FIG. 12 shows an example of information on the local region 501a input to the statistical model in the first method described above.
[0069] 12, gradient data of a local region 501a extracted from an image 501 is input to the statistical model. The gradient data of the local region 501a is generated from each of the R image, G image, and B image included in the image 501, and includes gradient data of the R image, gradient data of the G image, and gradient data of the B image.
[0070] The gradient data indicates the difference (difference value) between the pixel value of each pixel and the pixel adjacent to the pixel. For example, when the local region 501a is extracted as a rectangular region of n pixels (X-axis direction) by m pixels (Y-axis direction), gradient data is generated in which the difference values between each pixel in the local region 501a and, for example, the pixel immediately to the right are calculated and arranged in a matrix of n rows by m columns.
[0071] The statistical model estimates a blur value indicating blur occurring in each image using gradient data of the R image, gradient data of the G image, and gradient data of the B image. Although Fig. 12 shows a case where gradient data of each of the R image, G image, and B image is input to the statistical model, the gradient data of the image 501 (RGB image) may be input to the statistical model.
[0072] Next, the second method will be described with reference to Fig. 13. In the second method, as information on the local region 501a in the first method, gradient data for each local region (image patch) 501a and position information of the local region 501a in the image 501 are input to a statistical model.
[0073] The position information 501b may indicate, for example, the center point of the local region 501a, or may indicate a predetermined side such as the upper left side. Furthermore, position information on the image 501 of each pixel constituting the local region 501a may be used as the position information 501b.
[0074] By further inputting position information 501b into the statistical model as described above, it is possible to estimate a blur value 502 that takes into account the difference between the blur of the subject image formed by light passing through the center of lens 201 and the blur of the subject image formed by light passing through the edge of lens 201, for example.
[0075] That is, according to the second method, it is possible to estimate the blur value from the image 501 based on the correlation with the position on the image.
[0076] FIG. 14 shows an example of information on the local region 501a input to the statistical model in the above-mentioned second method.
[0077] For example, when a rectangular area of n pixels (X-axis direction) by m pixels (Y-axis direction) is extracted as the local area 501a, an X coordinate value (X-coordinate data) on the image 501 corresponding to, for example, the center point of the local area 501a and a Y coordinate value (Y-coordinate data) on the image 501 corresponding to, for example, the center point of the local area 501a are obtained.
[0078] In the second method, the X-coordinate data and Y-coordinate data thus obtained are input to a statistical model together with the gradient data of the R, G, and B images described above.
[0079] Further, the third method will be described with reference to Fig. 15. In the third method, unlike the first and second methods described above, extraction of a local region 501a from the image 501 is not performed. In the third method, for example, information on the entire region of the image 501 (gradient data of the R image, G image, and B image) is input to a statistical model.
[0080] Compared with the first and second methods for estimating the blur value 502 for each local region 501a, the third method may result in higher uncertainty (uncertainty) in the estimation using a statistical model, but can reduce the processing load required for the estimation.
[0081] In the following description, the information input to the statistical model in the above-mentioned first to third methods will be referred to as information relating to the image for the sake of convenience.
[0082] Here, the blur value is estimated for each pixel in the description, but the blur value may be estimated for each predetermined region including at least one pixel.
[0083] Furthermore, when a blur value is estimated for each pixel in the statistical model as described above (i.e., a blur value is output for each pixel), the statistical model similarly calculates (outputs) the above-mentioned uncertainty for each pixel.
[0084] Hereinafter, with reference to FIG. 16, a specific description will be given of the correlation between the blurring that occurs in an image in this embodiment and the distance to a subject included in the image.
[0085] 16, the size of the blur that occurs when the subject is closer (closer) than the focus position is shown by a negative value on the X axis, and the size of the blur that occurs when the subject is farther (farther) than the focus position is shown by a positive value on the X axis. That is, in FIG. 16, the color and size of the blur are shown by positive and negative values.
[0086] FIG. 16 shows that the absolute value of the size (pixels) of the blur increases as the subject moves away from the focus position, both when the subject is closer to the focus position and when the subject is farther from the focus position.
[0087] 16, it is assumed that the focal position of the optical system that captured the image is about 1500 mm. In this case, for example, a blur of about -4.8 pixels corresponds to a distance of about 1000 mm from the optical system (i.e., the imaging device 2), a blur of 0 pixels corresponds to a distance of 1500 mm from the optical system, and a blur of 4.8 pixels corresponds to a distance of about 750 mm from the optical system.
[0088] Here, for convenience, the case where the size (pixels) of the blur is shown on the X-axis has been described, but as described above with reference to Fig. 7 to Fig. 9, the shape of the blur generated in the image (PSF shape) also differs depending on whether the subject is closer than the focus position or farther away from the focus position. Therefore, the values shown on the X-axis in Fig. 16 (i.e., blur values) are values that actually reflect the shape of the blur (PSF shape).
[0089] There is a correlation (a one-to-one correspondence) between the distance to the subject and the color, size, and shape of the blur, as shown, for example, by line segment d1 in FIG. 16, so estimating the distance is synonymous with estimating the color, size, and shape of the blur (the blur value indicating the color, size, and shape).
[0090] For example, a configuration in which the distance is directly estimated by a statistical model can be considered, but a configuration in which the blur value is estimated by a statistical model is more versatile because it makes it possible to use the same statistical model even when the focus position in the optical system is changed.
[0091] Here, the above-mentioned statistical model is generated by executing a process (learning process) for learning the blur (blur that changes nonlinearly depending on the distance to the subject) that occurs in the subject in the image. The learning process for generating this statistical model (hereinafter simply referred to as the learning process of the statistical model) will be briefly described below.
[0092] First, an example of a statistical model learning process will be described with reference to Fig. 17. Here, a statistical model learning process using an image captured by the imaging device 2 will be described, but the statistical model learning process may be performed using an image captured by another device (such as a camera) having an optical system similar to that of the imaging device 2. In the following description, an image used in the statistical model learning process will be referred to as a learning image for convenience.
[0093] In any of the above-mentioned first method described with reference to Fig. 11, the second method described with reference to Fig. 13, and the third method described with reference to Fig. 15, the learning process of the statistical model is basically performed by inputting information about the learning image to the statistical model and feeding back the error between the blur value estimated by the statistical model and the correct value to the statistical model. Here, the feedback means updating the parameters (e.g., weighting coefficients) of the statistical model so that the error is reduced.
[0094] When the first method is applied as the method for estimating the blur value from the image described above, even during the learning process of the statistical model, for each local area (image patch) extracted from the learning image, information (gradient data) about the local area is input to the statistical model, and the blur value of each pixel in each local area is estimated by the statistical model. The error obtained by comparing the blur value estimated in this way with the correct value is fed back to the statistical model.
[0095] Similarly, when the second method is applied as a method for estimating blur values from an image, during the learning process of the statistical model, for each local region (image patch) extracted from the learning image, gradient data and position information are input to the statistical model as information about the local region, and the statistical model estimates the blur value of each pixel in each local region. The error obtained by comparing the blur value estimated in this way with the correct value is fed back to the statistical model.
[0096] In addition, when the third method is applied as a method for estimating distance from an image, information (gradient data) on the entire region of the learning image is input to the statistical model at once during the learning process of the statistical model, and the blur value of each pixel in the learning image is estimated by the statistical model. The error obtained by comparing the estimated blur value with the correct value is fed back to the statistical model.
[0097] When information about the learning image is input to the statistical model as described above, the uncertainty of the blur value is calculated in the same manner as described above with reference to Fig. 4. In the learning process of the statistical model in this case, the error obtained by dividing the error between the blur value and the correct value by the square of the uncertainty is fed back. In this case, since the error becomes zero when the uncertainty is infinite, the square of the uncertainty is added to the error as a penalty.
[0098] According to the above-described statistical model learning process, the parameters (eg, weighting coefficients) of the statistical model are updated so that the error corrected for the uncertainty is reduced.
[0099] Here, for example, if there is no error between the blur value estimated by the statistical model and the correct value, but the uncertainty is high, it can be inferred that the blur value may have been estimated by chance. In this case, it can be recognized that the learning of the blur value (correct value) is insufficient.
[0100] In this way, when the uncertainty calculated by the statistical model is used, it is possible to reduce bias in learning.
[0101] The statistical model in this embodiment is generated by repeatedly executing a learning process using learning images captured while changing the distance from the imaging device 2 to the subject with the focus position fixed (i.e., learning images with a known distance to the subject) When the learning process for one focus position is completed, a more accurate statistical model can be generated by executing the learning process for other focus positions in the same way.
[0102] In addition, the ground truth value used when learning the statistical model in this embodiment is the blur value converted from the actual distance to the subject when the learning image was captured as described above (i.e., the blur value indicating the color, size, and shape of the blur corresponding to the actual distance).
[0103] Next, an example of a processing procedure of a learning process of a statistical model will be described with reference to the flowchart of Fig. 18. Note that the processing shown in Fig. 18 may be executed in, for example, the estimation device 3, or in another device or the like.
[0104] First, information about a previously prepared learning image is input to the statistical model (step S1). This learning image is, for example, an image generated by the image sensor 202 based on light transmitted through the lens 201 provided in the imaging device 2, and is an image affected by the aberration of the optical system (lens 201) of the imaging device 2. Specifically, the learning image has blur that changes nonlinearly depending on the distance to the subject.
[0105] In the learning process of the statistical model, learning images are prepared in advance, in which the subject is captured at each distance with as fine a granularity as possible from the lower limit (forward) to the upper limit (back) of the distance that can be acquired (estimated) by the estimation device 3. In addition, it is preferable to prepare various images of different subjects as learning images.
[0106] In addition, when the above-mentioned first method is applied as a method for estimating a blur value from an image, gradient data of the R image, G image, and B image for each local region of the learning image are input into the statistical model as information about the learning image.
[0107] When the above-mentioned second method is applied as a method for estimating a blur value from an image, the gradient data of the R image, G image, and B image and the position information of the local area on the learning image are input to the statistical model as information about the learning image for each local area of the learning image.
[0108] When the above-mentioned third method is applied as a method for estimating blur values from an image, gradient data of the R image, G image, and B image for the entire region of the learning image are input to the statistical model as information about the learning image.
[0109] In this embodiment, the gradient data of the R, G, and B images are described as being input to the statistical model, but when estimating a blur value from the viewpoint of the shape of the blur (PSF shape) occurring in the image, at least one of the gradient data of the R, G, and B images may be input to the statistical model. On the other hand, when estimating a blur value from the viewpoint of the color and size of the blur occurring in the captured image due to chromatic aberration, at least two of the gradient data of the R, G, and B images may be input to the statistical model.
[0110] When information about the learning image is input to the statistical model, the blur value is estimated by the statistical model (step S2).
[0111] Furthermore, when the process of step S2 is executed, the statistical model calculates the uncertainty for the blur value estimated in step S2 (step S3).
[0112] The blur value estimated in step S2 is compared with the correct value obtained when the learning image was captured (step S4).
[0113] The comparison result (error) in step S4 is corrected using the uncertainty calculated in step S3 and fed back to the statistical model (step S5), whereby the parameters in the statistical model are updated so that the error is reduced (i.e., the blur occurring in the learning image according to the distance to the subject is learned).
[0114] 18 is repeatedly executed for each learning image, thereby generating a statistical model with high estimation accuracy. The statistical model generated in this manner is held in the estimation device 3 (distance acquisition unit 32).
[0115] Next, an example of a processing procedure of the estimation device 3 when estimating the position and orientation of a moving object will be described with reference to the flowchart in FIG.
[0116] In this embodiment, the imaging device 2 installed on the moving body continuously captures multiple images while the moving body is moving, and the image acquisition unit 31 included in the estimation device 3 acquires the multiple images continuously captured by the imaging device 2 as time-series images.
[0117] The image acquisition unit 31 acquires a first image included in the time-series images acquired as described above (step S11). The first image acquired in step S11 is assumed to be an image captured by the imaging device 2 from a position serving as a starting point in the three-dimensional space in which the moving object moves (for example, an image captured first when the moving object starts moving, etc.).
[0118] The first image is, for example, a color image composed of an R image, a G image, and a B image (that is, composed of three channels of RGB), but may be a Bayer array image, etc. The first image may also be a monochrome image (a one-channel grayscale image).
[0119] When the process of step S11 is executed, the estimation unit 34 detects a plurality of feature points (a group of feature points) from the first image acquired in step S11 (step S12). The feature points detected in step S12 include edges and corners (of the subject) on the first image detected based on local feature amounts (e.g., luminance difference, etc.) in the first image. As the feature amount for detecting the feature points, for example, an ORB or the like can be used. Hereinafter, the feature points detected from the first image in step S12 will be referred to as feature points of the first image for convenience.
[0120] Next, the distance acquisition unit 32 acquires the distance to the subject included in the first image and the uncertainty of the distance, using a statistical model held in the distance acquisition unit 32 (step S13).
[0121] In step S13, processing equivalent to the processing in steps S1 to S3 shown in Fig. 18 is executed. That is, in step S13, the distance acquisition unit 32 acquires a blur value and an uncertainty of the blur value output from the statistical model by inputting information about the first image to the statistical model.
[0122] When information about the first image is input to the statistical model, a blur value and the uncertainty of the blur value are output for each pixel constituting the first image. In step S13, however, based on the coordinates (X coordinate and Y coordinate on the first image) of each feature point of the first image, the blur value and the uncertainty of the blur value (hereinafter referred to as the blur value and uncertainty of the feature point) output from the statistical model for the pixel corresponding to the feature point (feature point pixel) may be acquired.
[0123] In addition, although the statistical model has been described here as outputting a blur value and the uncertainty of the blur value for each pixel constituting the first image, the statistical model may be constructed to output, for example, a blur value image in which the blur value estimated for each pixel is assigned as the pixel value of the pixel, and an uncertainty image in which the uncertainty of the blur value calculated for each pixel is assigned as the pixel value of the pixel. Even in such a case, the distance acquisition unit 32 can acquire the pixel values of feature point pixels on the blur value image and the uncertainty image as the blur value and uncertainty of the feature point.
[0124] 16, the blur value has a one-to-one correspondence with the distance to the subject where the blur is generated and is indicated by the blur value. Therefore, the distance acquisition unit 32 converts the blur value and the uncertainty of the blur value acquired in step S13 into a distance corresponding to the blur value and the uncertainty of the distance (step S14).
[0125] First, the process of converting the blur value into the distance corresponding to the blur value in step S14 will be described. Fig. 20 shows the relationship between the blur value and the distance based on the perspective projection model, and the relationship between the blur value and the distance to the subject can be expressed by the following formula (1).
number
[0126] That is, according to equation (1), the blur value b can be converted into the distance u to the subject by using the pixel pitch p, the diameter of the aperture of the aperture mechanism based on the aperture value F (aperture diameter of the lens 201) a, the distance v between the lens 201 and the image sensor 202, and the focal length f of the lens 201.
[0127] As described above, the distance (distance to the subject) converted from the blur value is accompanied by a unit of length used in real space and is based on a real scale.
[0128] Next, a process of converting the uncertainty of the blur value into the uncertainty of the distance corresponding to the blur value in step S14 will be described. Fig. 21 shows the relationship between the blur value indicating the color, size, and shape of the blur and the distance corresponding to the blur value, as well as the relationship between the distance and the uncertainty of the distance.
[0129] Here, it is assumed that the uncertainty of the blur value is fixed in Fig. 21. That is, Fig. 21 shows that, although the uncertainty of the blur value is constant, the uncertainty of the distance corresponding to the uncertainty of the blur value changes according to the distance.
[0130] Specifically, since the relationship between the blur value and the distance is nonlinear, the relationship between the uncertainty of the blur value and the uncertainty of the distance is also nonlinear, but the uncertainty of the distance has a dependency on the square of the distance (a relationship proportional to the square of the distance). In other words, even when the uncertainty of the blur value is the same, the greater the distance corresponding to the blur value (the distance converted from the blur value), the greater the uncertainty of the distance, and the greater the uncertainty (estimation error) of the distance when the distance to the subject is particularly long.
[0131] Therefore, in this embodiment, the uncertainty of the blur value is converted into the uncertainty of the distance by using the following equation (2), which is an approximation equation relating to the uncertainty of the blur value and the uncertainty of the distance taking into account the above-mentioned relationship.
number
[0132] As shown in the above formula (2), the uncertainty δb of the blur value can be converted to the uncertainty δu of the distance by using the aperture value F, the distance to the subject u, the focal length f of the lens 201, and the pixel pitch p. This uncertainty δu of the distance has a width of the same dimension (unit) as the distance u, and is based on the real scale.
[0133] It should be noted that the pixel pitch p, the diameter a of the aperture of the aperture mechanism, the distance v between the lens 201 and the image sensor 202, the focal length f of the lens, and the aperture value F used in the above equations (1) and (2) are assumed to be calculated in advance at the time when the time-series images are captured.
[0134] By executing the process of step S14 described above, the distance acquisition unit 32 can acquire the distance for each feature point in the first image and the uncertainty of the distance.
[0135] Here, the distance converted from the blur value in step S14 described above is used to estimate the position and orientation of the moving body. However, since the distance affects the estimation accuracy of the position and orientation of the moving body, a distance with large uncertainty cannot be said to be useful in the estimation.
[0136] Therefore, the extraction unit 33 executes threshold processing based on the uncertainty of the distance converted from the uncertainty of the blur value in step S14 (step S15).
[0137] Specifically, the extraction unit 33 extracts, as useful distances, distances whose uncertainty is less than a threshold (a predetermined value) among the distances for each feature point in the first image. Note that in step S15, for example, a process may be performed to replace a distance whose uncertainty is equal to or greater than a threshold with an invalid value.
[0138] When the process of step S15 is executed, the estimation unit 34 calculates the three-dimensional coordinates of the feature point of the first image based on the distance (useful distance) of the feature point extracted by executing the process of step S15 (step S16). In this step S16, a process is executed to convert the coordinates of the feature point corresponding to the useful distance (the camera coordinates on the first image) into three-dimensional coordinates using the useful distance (i.e., a distance that is not an illegal value) and the internal parameters of the imaging device 2 obtained in advance (e.g., focal length, etc.). Note that the three-dimensional coordinates of the feature point of the first image calculated in step S16 represent a three-dimensional position based on a position serving as a starting point in the three-dimensional space in which the moving object moves (i.e., the position of the moving object when the first image is captured). In addition, the three-dimensional coordinates are calculated using a distance based on a real scale (a distance converted from a blur value output from a statistical model), and therefore are based on a real scale.
[0139] When the processes of steps S11 to S16 described above are executed, information on each feature point detected in step S12 is held inside the estimation device 3. This information on the feature point includes the coordinates of the feature point on the first screen, the feature amount used to detect the feature point, the distance of the feature point (the distance converted from the blur value output from the statistical model for the feature point), and the three-dimensional coordinates of the feature point.
[0140] Next, the image acquisition unit 31 acquires a second image included in the time-series images (step S17). The second image acquired in step S17 is assumed to be an image closest in time to the first image (for example, an image captured next to the first image), but may be an image that includes the same subject (feature point) as the first image.
[0141] When the process of step S17 is executed, the estimation unit 34 detects a plurality of feature points (a group of feature points) from the second image acquired in step S17 (step S18). Note that the process of step S18 corresponds to the process of step S12 described above, and therefore a detailed description thereof will be omitted here.
[0142] Next, the estimation unit 34 selects, for example, an image (here, the first image acquired in step S11) that is closest in time series among images in which feature points have already been detected, and performs correspondence between the feature points detected from the first image (the feature points of the first image) and the feature points detected from the second image (the feature points of the second image). In this case, the feature points of the first image whose three-dimensional coordinates have been calculated in the above-mentioned step S16 are associated with the feature points of the second image. This correspondence between feature points can be performed, for example, using the distance between the feature amounts described above, or may be performed by other methods.
[0143] The estimation unit 34 estimates the position and orientation of the moving object when the second image is captured by the imaging device 2 using a plurality of pairs of the corresponding feature points as described above (step S19). Note that in step S19, the position and orientation of the moving object can be found, for example, by solving a PnP (Perspective n-point) problem for the camera coordinates on the second image of the feature points of the second image (feature points corresponding to the feature points of the first image) and the three-dimensional coordinates of the feature points of the first image (feature points corresponding to the feature points of the second image) calculated in step S16.
[0144] As described above, the three-dimensional coordinates of the feature points of the first image used in step S19 are based on the real scale, and therefore the position and orientation of the moving body estimated in step S19 are based on the real scale. As described above, if the first image is an image captured by the imaging device 2 from a starting position, the position and orientation of the moving body estimated in step S19 represents, based on the real scale, the position and orientation of the moving body when the second image is captured by the imaging device 2 with the starting position as a reference.
[0145] After the process of step S19 has been executed, the processes of steps S20 to S23, which correspond to the processes of steps S13 to S16 described above, are executed on the second image.
[0146] The three-dimensional coordinates calculated in steps S16 and S23 shown in FIG. 19 can be used to create a three-dimensional map in a technique called SLAM.
[0147] The estimation unit 34 calculates the three-dimensional coordinates of the feature point of the second image based on the distance (useful distance) of the feature point extracted by executing the process of step S22 (step S23). In this step S23, a process is executed to convert the coordinates of the feature point corresponding to the useful distance (the camera coordinates on the second image) into three-dimensional coordinates using the useful distance (i.e., a distance that is not an illegal value), the internal parameters of the imaging device 2 (e.g., focal length, etc.) obtained in advance, and the position and orientation of the moving body when the second image was captured. Note that the three-dimensional coordinates of the feature point of the second image calculated in step S23 represent a three-dimensional position based on a position that is a starting point in the three-dimensional space in which the moving body moves (i.e., the position of the moving body when the second image was captured). In addition, since the three-dimensional coordinates are calculated using a distance based on a real scale (a distance converted from a blur value output from a statistical model), they are based on a real scale. Although detailed description will be omitted, when the processes of steps S17 to S23 are executed for the second image described above, information on each of the feature points of the second image is held inside the estimation device 3.
[0148] When the process of step S23 is executed, it is determined whether or not the process has been executed for all images included in the time-series images (step S24).
[0149] If it is determined that the process has not been performed for all images included in the time-series images (NO in step S24), the process returns to step S17 and is repeated. In this case, in step S17, the image captured next to the second image described above is acquired as a new second image, and the processes in and after step S18 are executed. In addition, in step S19 in this case, the position and orientation of the moving object when the new second image was captured by the imaging device 2 is estimated based on the image that is closest in time series among the images in which feature points have already been detected (i.e., images in which the three-dimensional coordinates of the feature points have already been calculated) and the new second image acquired in the repeatedly executed step S17.
[0150] On the other hand, if it is determined that the process has been executed for all images included in the time-series images (YES in step S24), the process shown in FIG. 19 is ended.
[0151] According to the process shown in FIG. 19, it is possible to estimate the position and orientation of a moving object based on the actual scale at the time of capturing each image included in the time-series images captured continuously.
[0152] 19 has been described as the processing of steps S13 and S20 being executed, but for example, in a case where time-series images are captured in advance by the imaging device 2 and stored inside the estimation device 3, the processing of steps S13 and S20 may be executed in advance as pre-processing before the processing of Fig. 19 is executed. With such a configuration, it is possible to reduce the processing load of the estimation device 3 when estimating the position and orientation of a moving object.
[0153] Also, in FIG. 19, it has been described that the process shown in FIG. 19 is terminated when it is determined that the process has been performed for all images included in the time-series image. However, the process shown in FIG. 19 may be terminated when, for example, an administrator of the estimation system 1 instructs (commands) the termination of the process, or may be terminated at a predetermined timing.
[0154] As described above, in this embodiment, first and second images (time-series images) including the same subject are acquired by successively capturing images by an imaging device 2 installed on a moving body, a distance (first distance) to the subject included in the acquired first image and the uncertainty of the distance are acquired, a useful distance (second distance) is extracted from the distances based on the uncertainty of the acquired distance, and the position and orientation of the moving body at the time the second image was captured by the imaging device 2 is estimated based on the first and second images and the extracted useful distance (three-dimensional coordinates calculated based on the useful distance).
[0155] In this embodiment, with this configuration, the position and orientation of the moving object can be estimated with high accuracy.
[0156] Specifically, in this embodiment, the process shown in Fig. 19 is executed to estimate the position and orientation of the moving body (image capture device 2) at the time of capturing each image based on time-series images (multiple images captured consecutively), for example, based on a world coordinate system with the position and orientation of the moving body at the time of capturing the first image of the time-series images as a reference, but the position and orientation of the moving body is estimated using a distance converted from a blur value indicating blur generated according to a subject in the image, and is therefore based on a real scale from the viewpoint of including a unit of length used in real space. Note that the blur value indicating blur generated according to a subject in the image is acquired using a statistical model generated by learning blur that changes nonlinearly according to the distance to the subject included in the image, which occurs in an image affected by the aberration of the optical system of the image capture device 2.
[0157] Furthermore, in this embodiment, the position and orientation of the above-mentioned moving body is estimated using a useful distance (i.e., a distance with high accuracy in distance space) extracted from the distance converted from the blur value, so that the accuracy of the estimated position and orientation of the moving body can be improved.
[0158] Moreover, in this embodiment, the distance to the subject and the uncertainty of the distance are obtained for each feature point (first feature point) detected from the first image, the three-dimensional coordinates of the feature point based on the real scale are calculated based on a useful distance extracted from the distances obtained for each feature point, and the feature point whose three-dimensional coordinates have been calculated is associated with the feature point detected from the second image (second feature point), thereby estimating the position and orientation based on the real scale.
[0159] In this embodiment, the three-dimensional coordinates of the feature points are thus directly calculated from the distance (the distance converted from the blur value), so that it is possible to obtain the three-dimensional coordinates from one image (i.e., to create a three-dimensional map) without referring to other images, for example, by fundamental matrix estimation, triangulation, etc. If the scale of the three-dimensional map is indefinite, it is difficult to use the three-dimensional map to generate a travel path for a moving object. However, in this embodiment, it is possible to obtain three-dimensional coordinates (three-dimensional map) based on a highly accurate actual scale, so that application to such applications is possible.
[0160] That is, in this embodiment, even if the number of images included in the time-series images is small, it is possible to quickly and robustly calculate three-dimensional coordinates and estimate the position and orientation of a moving object with high accuracy.
[0161] In this embodiment, the position and orientation of a moving body is estimated using the distance (three-dimensional coordinates calculated based on the distance) extracted based on the uncertainty of the distance converted from the uncertainty of the blur value. However, a configuration is also conceivable in which the position and orientation of a moving body is estimated using the distance converted from the blur value extracted based on the uncertainty of the blur value.
[0162] However, as described above, even if the blur uncertainties are equal, the greater the distance, the greater the distance uncertainty (the distance uncertainty is proportional to the square of the distance). Therefore, in this embodiment, a useful distance is extracted based on the distance uncertainty converted from the blur value uncertainty.
[0163] In this embodiment, with such a configuration, it is possible to avoid a decrease in the estimation accuracy due to, for example, a distance (a distance corresponding to the blur value) in which the uncertainty of the blur value is less than a threshold value but the uncertainty of the distance is equal to or greater than a threshold value being used to estimate the position and orientation of a moving body.
[0164] In the present embodiment, the distance to the subject and the uncertainty of the distance are described as being acquired using a statistical model, but the distance and the uncertainty of the distance may be acquired by other methods. Below, first and second modified examples are described as modified examples of the present embodiment related to acquiring the distance to the subject and the uncertainty of the distance.
[0165] First, a first modified example will be described. In the first modified example, a distance sensor such as LiDAR (Light Detection And Ranging) (hereinafter, simply referred to as LiDAR) is used to acquire the distance to the subject and the uncertainty of the distance. Note that LiDAR refers to a sensor used to measure the distance to the subject based on the reflected wave of a laser light irradiated on the subject, for example, and received from the subject.
[0166] In this case, the distance acquisition unit 32 acquires the reflected wave received by the LiDAR and the intensity of the reflected wave (laser reflection intensity) at the same time that an image is captured by the imaging device 2. In this case, the distance acquisition unit 32 converts the acquired reflected wave into a distance to the subject, and converts the intensity of the reflected wave into the uncertainty of the distance. Note that the correspondence between the intensity of the reflected wave and the uncertainty converted from the intensity of the reflected wave may be held (defined), for example, in a table prepared in advance. In such a table, it is sufficient to hold a correspondence such that, for example, when the intensity of the reflected wave is low, the uncertainty becomes large, and when the intensity of the reflected wave is high, the uncertainty becomes small.
[0167] Here, the distance acquisition unit 32 has been described as converting the reflected wave into the distance to the subject, but the distance acquisition unit 32 may also be configured to acquire the distance converted from the reflected wave (i.e., the distance measured based on the reflected wave) from the LiDAR.
[0168] Note that the processing other than obtaining the distance to the subject and the uncertainty of the distance using LiDAR is the same as that described in the present embodiment, and therefore detailed explanations thereof will be omitted here.
[0169] Here, the description is given assuming that a LiDAR that emits laser light is used, but a distance sensor that measures the distance to a subject by emitting electromagnetic waves other than laser light may also be used.
[0170] Furthermore, in the above-described first modified example, the LiDAR may be a part of the estimation system 1 (estimation device 3), or may be provided outside the estimation system 1 (estimation device 3).
[0171] Next, a second modified example will be described. In the second modified example, the distance to a subject and the uncertainty of the distance are acquired using a plurality of imaging devices including, for example, the imaging device 2. Note that the relative positions and orientations between the plurality of imaging devices used in the second modified example (i.e., the relationship between the distance and orientation between the plurality of imaging devices based on the real scale) are assumed to be known.
[0172] In this case, the distance acquisition unit 32 acquires at least two images (hereinafter referred to as stereo images) captured simultaneously by a plurality of imaging devices (i.e., from a plurality of viewpoints). Based on the acquired stereo images, the distance acquisition unit 32 acquires the parallax and the uncertainty of the parallax in the stereo images for each pixel constituting one image included in the stereo images. Note that the parallax in the stereo images is acquired, for example, by a stereo corresponding point search based on epipolar geometry. In addition, in the second modified example, the distance acquisition unit 32 is assumed to have stored in advance a table that holds a correspondence relationship between the matching similarity and the parallax uncertainty (precision) used in the stereo corresponding point search, for example. The distance acquisition unit 32 can acquire the parallax uncertainty from the above-mentioned matching similarity by referring to such a table.
[0173] The distance acquisition unit 32 calculates the distance to the subject based on a theoretical relationship between the parallax in the acquired stereo images and the distance to the subject. The uncertainty of the parallax is converted into the uncertainty of the distance by a prepared approximation formula such as the above formula (2).
[0174] Note that the processing other than obtaining the distance to the subject and the uncertainty of the distance using multiple image capturing devices is similar to that of the present embodiment described above, and therefore a detailed description thereof will be omitted here.
[0175] Here, the multiple imaging devices have been described as including the imaging device 2, but the second modified example may be configured to acquire the distance to the subject and the uncertainty of the distance, for example, using a compound eye camera separate from the imaging device 2. In this case, the compound eye camera may be a part of the estimation system 1 (estimation device 3), or may be provided outside the estimation system 1 (estimation device 3).
[0176] As described above, in this embodiment, it is sufficient that the distance to a subject contained in an image and the uncertainty of the distance are acquired, and this embodiment is not limited to a configuration in which the distance and the uncertainty of the distance are acquired using the statistical model described above.
[0177] In this embodiment, the distance whose uncertainty is less than the threshold value is extracted as the useful distance, but the useful distance may be extracted using information other than the uncertainty of the distance.
[0178] Specifically, the useful distance may be extracted based on the distance, for example. In this case, a distance less than a threshold may be extracted as a useful distance based on the viewpoint that the greater the distance, the greater the uncertainty of the distance, as described above.
[0179] Also, for example, the blur value described in this embodiment, the reflected wave described in the first modified example, and the parallax described in the second modified example can each be said to be information on the distance to the subject (hereinafter referred to as distance information), and the uncertainty of the blur value described in this embodiment, the intensity of the reflected wave described in the first modified example, and the uncertainty of the parallax described in the second modified example can each be said to be the uncertainty of the distance information, and a useful distance may be extracted based on the distance information or the uncertainty of the distance information. In this case, for example, a configuration can be used in which a blur value (size of blur) or a distance where the uncertainty of the blur value is less than a threshold value (distance converted from the blur value) is extracted as a useful distance.
[0180] Furthermore, since feature points are detected based on brightness differences, etc., as described above, in order to extract the distance of an appropriate feature point as a useful distance, a configuration may be used in which a useful distance is extracted based on the brightness.
[0181] As described above, in this embodiment, a useful distance may be extracted based on the uncertainty of the distance and at least one of the distance, the distance information, the uncertainty of the distance information, and the brightness (information).
[0182] Second embodiment Next, a second embodiment will be described. In this embodiment, the description of the same parts as those in the first embodiment will be omitted, and the description will be mainly focused on the parts different from the first embodiment. In addition, since the configuration of the estimation system (imaging device and estimation device) according to this embodiment is the same as that in the first embodiment, the description will be made with reference to Figs. 1 to 3 as appropriate.
[0183] This embodiment differs from the first embodiment described above in that the position and posture of a moving object with an indefinite scale, which is estimated by performing monocular SLAM processing using at least two images included in a time-series image captured by an imaging device 2 (monocular camera) and feature points detected from each of the two images, is corrected (scale correction) using a useful distance.
[0184] The operation of the estimation device according to this embodiment will be described below. The estimation device 3 according to this embodiment operates to execute an initialization process for two images among the time-series images (a plurality of images captured consecutively) captured by the imaging device 2, and then repeatedly execute a tracking process for the images captured after the two images.
[0185] An example of the above-mentioned initialization process will be described with reference to the flowchart in Fig. 22. As in the first embodiment described above, the imaging device 2 installed on a moving body continuously captures a plurality of images while the moving body is moving, and the image acquisition unit 31 included in the estimation device 3 acquires the plurality of images continuously captured by the imaging device 2 as time-series images.
[0186] The image acquisition unit 31 acquires the first and second images included in the time-series images acquired as described above (step S31). The first and second images are, for example, two images that are chronologically closest in the time-series images. Here, it is assumed that the first image is the first image in the time-series images, and the second image is the image captured chronologically next to the first image.
[0187] When the process of step S31 is executed, the estimation unit 34 detects a plurality of feature points (a group of feature points) from each of the first and second images acquired in step S31 (step S32). Note that the process of step S32 corresponds to the process of step S12 shown in Fig. 19 described above, and therefore a detailed description thereof will be omitted here.
[0188] Next, the estimation unit 34 estimates the position and orientation of the moving object when the second image was captured by the imaging device 2 and the three-dimensional coordinates of the feature points of the second image by performing correspondence between the feature points of the first and second images detected in step S32 (i.e., based on the correspondence between the feature points) (step S33). The process of step S33 is executed using, for example, a fundamental matrix (fundamental matrix estimation by an 8-point algorithm) based on a set of coordinates of the corresponding feature points (camera coordinates on the first and second images).
[0189] In this step S33, for example, the position and orientation of the moving body when the second image is captured is estimated based on the position and orientation of the moving body when the first image is captured, but the process of this step S33 corresponds to the monocular SLAM process described above. That is, the position and orientation of the moving body estimated in step S33 is not based on the unit in the real space, and the scale is indefinite. The same applies to the three-dimensional coordinates estimated in step S33.
[0190] After the process of step S33 is executed, the processes of steps S34 to S37, which correspond to the processes of steps S20 to S23 shown in FIG. 19, are executed.
[0191] Next, the estimation unit 34 determines a parameter (hereinafter, referred to as a scale correction parameter) for correcting the scale of the position and orientation of the moving object estimated in step S33, based on the three-dimensional coordinates (indefinite scale) of the feature points of the second image estimated in step S33 and the three-dimensional coordinates (actual scale) of the feature points of the second image calculated in step S37 (step S38). The scale correction parameter is determined so as to minimize an error between the three-dimensional coordinates obtained by multiplying the three-dimensional coordinates with indefinite scale estimated in step S33 by the scale correction parameter, and the three-dimensional coordinates based on the actual scale calculated in step S37.
[0192] The estimation unit 34 multiplies the position (scale indefinite) of the moving body estimated in step S33 by the scale correction parameter determined in step S38 described above, thereby correcting the position and orientation of the moving body to one based on the actual scale (step S39).
[0193] When the above-described initialization process is performed, information on each of the feature points of the second image is held inside the estimation device 3.
[0194] In FIG. 22, for the sake of convenience, the processes of steps S31 to S37 are described as being executed in sequence. However, for example, the process of step S33 may be executed in parallel with the processes of steps S34 to S37, or may be executed between the process of step S37 and the process of step S38.
[0195] Next, an example of the above-mentioned tracking process will be described with reference to the flowchart in Fig. 23. The image acquisition unit 31 included in the estimation device 3 acquires a third image included in the time-series images captured by the imaging device 2 (step S41). Note that the third image is an image closest in time series to the second image in the above-mentioned initialization process, and is, for example, an image captured next to the second image.
[0196] When the process of step S41 is executed, the estimation unit 34 detects a plurality of feature points (a group of feature points) from the third image acquired in step S41 (step S42). Note that the process of step S42 corresponds to the process of step S12 shown in Fig. 19 described above, and therefore a detailed description thereof will be omitted here.
[0197] Next, the process of step S43 is executed, which corresponds to the process of step S19 shown in Fig. 19. Although a detailed description is omitted, in this step S43, the position and orientation of the moving object are estimated based on the actual scale when the third image was captured by the imaging device 2, using the third image (the camera coordinates of the feature points on the third image) and the second image that is closest in time series to the third image (the three-dimensional coordinates of the feature points).
[0198] When the process of step S43 is executed, the estimation unit 34 calculates the three-dimensional coordinates (hereinafter referred to as the first three-dimensional coordinates) of the feature points of the third image based on the principle of triangulation using the position and orientation of the moving body when the second image corrected in the initialization process was captured and the position and orientation of the moving body when the third image estimated in step S43 was captured (step S44). The process of step S44 is executed for a feature point that is not associated with a feature point of the second image (i.e., the three-dimensional coordinates are not held). Note that the position and orientation of the moving body when the second image was captured and the position and orientation of the moving body when the third image estimated in step S43 were captured are based on the real scale, so the first three-dimensional coordinates calculated in step S44 are based on the real scale.
[0199] After the process of step S44 is executed, the processes of steps S45 to S48 corresponding to the processes of steps S20 to S23 shown in Fig. 19 are executed on the third image. In the following description, the three-dimensional coordinates of the feature point of the third image calculated in step S48 are conveniently referred to as second three-dimensional coordinates.
[0200] Here, the position and orientation of the moving body estimated in the above step S43 is based on a real scale, but in reality there is an effect of estimation error, and the error accumulates by repeatedly executing the process for each image included in the time-series image, and the estimation accuracy of the position and orientation of the moving body may deteriorate (i.e., scale drift may occur). Note that there is a possibility that an error may occur in the first three-dimensional coordinates calculated in step S44 using such a position and orientation of the moving body.
[0201] For this reason, the estimation unit 34 executes the processes of steps S49 and S50, which correspond to the processes of steps S38 and S39 shown in FIG. 22 described above.
[0202] That is, in step S49, a scale correction parameter is determined based on the first three-dimensional coordinates calculated in step S44 and the second three-dimensional coordinates calculated in step S48. This scale correction parameter is determined so as to minimize the error between the three-dimensional coordinates obtained by multiplying the first three-dimensional coordinates calculated in step S44 by the scale correction parameter and the second three-dimensional coordinates calculated in step S48.
[0203] In addition, in step S50, the position and orientation of the moving object are corrected by multiplying the position of the moving object estimated in step S43 by the scale correction parameter determined in step S49 described above (step S50).
[0204] When the process of step S50 is executed, the process of step S51, which corresponds to the process of step S24 shown in FIG. 19, is executed.
[0205] If it is determined in step S51 that the process has not been performed for all images included in the time-series images (NO in step S51), the process returns to step S41 and is repeated. In this case, in step S41, for example, an image captured next to the third image described above is acquired as a new third image, and the process from step S42 onwards is executed. That is, the process of steps S41 to S50 shown in Fig. 23 is repeatedly executed for each image included in the time-series images.
[0206] According to the tracking process shown in FIG. 23 described above, it is possible to estimate the position and orientation of a moving object based on the actual scale at the time of capturing each image included in the time-series images captured continuously.
[0207] In FIG. 23, for the sake of convenience, the processes of steps S41 to S51 have been described as being executed in sequence, but, for example, the processes of steps S43 and S44 may be executed in parallel with the processes of steps S45 to S48, or may be executed between the processes of step S48 and step S49.
[0208] As described above, in this embodiment, first and second images including the same subject successively captured by the imaging device 2 installed on the moving body are acquired, a plurality of feature points are detected from the acquired first and second images, and the plurality of feature points detected from the first and second images are associated with each other to estimate the position and orientation of the moving body having an indefinite scale at the time the second image was captured by the imaging device 2. Also, in this embodiment, a distance (first distance) to a subject included in the second image and an uncertainty of the distance are acquired, a useful distance (second distance) is extracted from the distances based on the acquired uncertainty of the distance, and the position and orientation of the moving body having an indefinite scale described above is corrected to a position and orientation of the moving body based on a real scale based on the extracted second distance (3D coordinates calculated based on the second distance).
[0209] In this embodiment, with this configuration, it is possible to estimate with high accuracy the position and orientation of a moving object based on the actual scale at the time each image is captured, based on time-series images that are captured continuously.
[0210] Furthermore, in this embodiment, the position and orientation of the moving object are successively corrected based on the distance (three-dimensional coordinates) that is also useful in the tracking process described above, so that the scale drift described above can be avoided.
[0211] In this embodiment, the position and orientation of a moving body with an indefinite scale and the three-dimensional coordinates of the feature points are estimated based on the correspondence between feature points. However, in this embodiment, the position and orientation of a moving body with an indefinite scale may be estimated by other methods as long as the configuration is such that the three-dimensional coordinates of the feature points used for scale correction can be obtained.
[0212] 23 are repeatedly executed for each image included in the time-series images, the scale correction process (steps S49 and S50) does not have to be executed for all images (i.e., for each frame) and may be executed only for a predetermined number of images (i.e., at a predetermined frame interval). The interval at which the scale correction process is executed may be dynamically changed (determined) based on, for example, the amount of movement of the moving body (imaging device 2) or the like.
[0213] Furthermore, the first and second modified examples described in the first embodiment may be applied to this embodiment.
[0214] According to at least one of the embodiments described above, it is possible to provide an estimation device, a method, and a program capable of estimating the position and orientation of a moving object with high accuracy.
[0215] Although some embodiments of the present invention have been described, these embodiments are presented as examples and are not intended to limit the scope of the invention. These embodiments can be implemented in various other forms, and various omissions, substitutions, and modifications can be made without departing from the spirit of the invention. These embodiments and their modifications are included in the scope of the invention and its equivalents described in the claims, as well as in the scope and spirit of the invention. [Explanation of symbols]
[0216] 1...estimation system, 2...imaging device, 3...estimation device, 31...image acquisition section, 32...distance acquisition section, 33...extraction section, 34...estimation section, 201...lens, 202...image sensor, 203...non-volatile memory, 204...communication device, 301...CPU, 302...non-volatile memory, 303...RAM, 304...communication device.
Claims
1. a first acquisition means for acquiring first and second images including the same subject successively captured by an imaging device installed in a moving body; A second acquisition means for acquiring a first distance to the subject included in the acquired first image and an uncertainty of the first distance; an extraction means for extracting a useful second distance from the acquired first distances based on an uncertainty of the acquired first distance; an estimation means for estimating a position and orientation of the moving object when the second image was captured by the imaging device, based on the acquired first and second images and the extracted second distance; Equipped with The second acquisition means is a third acquisition means for acquiring a blur value indicating a blur occurring in an object in the first image and an uncertainty of the blur value as distance information regarding a first distance to the object and an uncertainty of the distance information; a conversion means for converting the blur value into a first distance corresponding to the blur value, and converting an uncertainty of the blur value into an uncertainty of the first distance corresponding to the blur value; Includes Estimation device.
2. 2. The estimation device according to claim 1, wherein the blur value and the uncertainty of the blur value are output from a statistical model generated by learning blur that occurs in an image affected by aberration of an optical system of the imaging device and that changes nonlinearly depending on a distance to a subject included in the image, by inputting the first image into the statistical model.
3. A first acquisition means for acquiring first and second images including the same subject successively captured by an imaging device installed on a moving body; A second acquisition means for acquiring a first distance to the subject included in the acquired first image and an uncertainty of the first distance; an extraction means for extracting a useful second distance from the acquired first distances based on an uncertainty of the acquired first distance; an estimation means for estimating a position and orientation of the moving object when the second image was captured by the imaging device, based on the acquired first and second images and the extracted second distance; Equipped with The second acquisition means is a third acquiring means for acquiring a reflected wave from the object and an intensity of the reflected wave as distance information regarding a first distance to the object and an uncertainty of the distance information; a conversion means for converting the reflected wave into a first distance to the subject corresponding to the reflected wave, and converting an intensity of the reflected wave into an uncertainty of the first distance calculated from the reflected wave; Includes Estimation device.
4. A first acquisition means for acquiring first and second images including the same subject successively captured by an imaging device installed on a moving body; A second acquisition means for acquiring a first distance to the subject included in the acquired first image and an uncertainty of the first distance; an extraction means for extracting a useful second distance from the acquired first distances based on an uncertainty of the acquired first distance; an estimation means for estimating a position and orientation of the moving object when the second image was captured by the imaging device, based on the acquired first and second images and the extracted second distance; Equipped with The second acquisition means is a third acquisition means for acquiring a parallax and an uncertainty of the parallax in an image including an object captured from a plurality of viewpoints by at least two imaging devices as distance information related to a first distance to the object and an uncertainty of the distance information; a conversion means for converting the parallax into a first distance corresponding to the parallax and converting the uncertainty of the parallax into an uncertainty of the first distance corresponding to the parallax; Includes Estimation device.
5. The estimation device according to any one of claims 1 to 4, wherein the extraction means extracts the second distance based on an uncertainty of the first distance and at least one of the first distance, the distance information, an uncertainty of the distance information, and a brightness of the first image.
6. 6. The estimation device according to claim 1, wherein the extraction means extracts, as the second distance, a first distance for which the uncertainty is less than a predetermined value.
7. The estimation means detects a plurality of first feature points from the first image and detects a plurality of second feature points from the second image; the second acquisition means acquires a first distance to the subject and an uncertainty of the first distance for each of the first feature points; The extraction means extracts a useful second distance from the first distances acquired for each of the first feature points based on an uncertainty of the acquired first distance; The estimation means calculates three-dimensional coordinates of the first feature point based on a real scale on the basis of the extracted second distance, and estimates a position and orientation of the moving object based on a real scale by associating the first feature point whose three-dimensional coordinates have been calculated with a second feature point detected from the second image. The estimation device according to any one of claims 1 to 6.
8. a first acquisition means for acquiring first and second images including the same subject successively captured by an imaging device installed in a moving body; an estimation means for detecting a plurality of feature points from the acquired first and second images and estimating a position and orientation of the moving object, the scale of which is indefinite when the second image was captured by the imaging device, by matching the plurality of feature points detected from the first and second images; a second acquisition means for acquiring a first distance to the subject included in the acquired second image and an uncertainty of the first distance; an extraction means for extracting a useful second distance from the acquired first distances based on an uncertainty of the acquired first distance; a correction means for correcting the estimated position and orientation of the moving body having an indefinite scale to a position and orientation of the moving body based on a real scale, based on the extracted second distance; Equipped with The second acquisition means is a third acquisition means for acquiring a blur value indicating a blur occurring in an object in the second image and an uncertainty of the blur value as distance information regarding a first distance to the object and an uncertainty of the distance information; a conversion means for converting the blur value into a first distance corresponding to the blur value, and converting an uncertainty of the blur value into an uncertainty of the first distance corresponding to the blur value; Includes Estimation device.
9. 9. The estimation device according to claim 8, wherein the blur value and the uncertainty of the blur value are output from a statistical model generated by learning blur that occurs in an image affected by aberration of an optical system of the imaging device and that changes nonlinearly depending on a distance to a subject included in the image, by inputting the second image into the statistical model.
10. A first acquisition means for acquiring first and second images including the same subject successively captured by an imaging device installed on a moving body; an estimation means for detecting a plurality of feature points from the acquired first and second images and estimating a position and orientation of the moving object, the scale of which is indefinite when the second image was captured by the imaging device, by matching the plurality of feature points detected from the first and second images; a second acquisition means for acquiring a first distance to the subject included in the acquired second image and an uncertainty of the first distance; an extraction means for extracting a useful second distance from the acquired first distances based on an uncertainty of the acquired first distance; a correction means for correcting the estimated position and orientation of the moving body having an indefinite scale to a position and orientation of the moving body based on a real scale, based on the extracted second distance; Equipped with The second acquisition means is a third acquiring means for acquiring a reflected wave from the object and an intensity of the reflected wave as distance information regarding a first distance to the object and an uncertainty of the distance information; a conversion means for converting the reflected wave into a first distance to the subject corresponding to the reflected wave, and converting an intensity of the reflected wave into an uncertainty of the first distance calculated from the reflected wave; Includes Estimation device.
11. A first acquisition means for acquiring first and second images including the same subject successively captured by an imaging device installed on a moving body; an estimation means for detecting a plurality of feature points from the acquired first and second images and estimating a position and orientation of the moving object, the scale of which is indefinite when the second image was captured by the imaging device, by matching the plurality of feature points detected from the first and second images; a second acquisition means for acquiring a first distance to the subject included in the acquired second image and an uncertainty of the first distance; an extraction means for extracting a useful second distance from the acquired first distances based on an uncertainty of the acquired first distance; a correction means for correcting the estimated position and orientation of the moving body having an indefinite scale to a position and orientation of the moving body based on a real scale, based on the extracted second distance; Equipped with The second acquisition means is a third acquisition means for acquiring a parallax and an uncertainty of the parallax in an image including an object captured from a plurality of viewpoints by at least two imaging devices as distance information related to a first distance to the object and an uncertainty of the distance information; a conversion means for converting the parallax into a first distance corresponding to the parallax and converting the uncertainty of the parallax into an uncertainty of the first distance corresponding to the parallax; Includes Estimation device.
12. The estimation device according to any one of claims 8 to 11, wherein the extraction means extracts the second distance based on an uncertainty of the first distance and at least one of the first distance, the distance information, an uncertainty of the distance information, and a brightness of the first image.
13. 13. The estimation device according to claim 8, wherein the extraction means extracts, as the second distance, the first distance for which the uncertainty is less than a predetermined value.
14. acquiring first and second images including the same object successively captured by an imaging device installed in a moving object; obtaining a first distance to the object included in the obtained first image and an uncertainty of the first distance; extracting useful second distances from the obtained first distances based on an uncertainty of the obtained first distances; estimating a position and orientation of the moving object when the second image was captured by the imaging device based on the acquired first and second images and the extracted second distance; Equipped with The step of obtaining a first distance and an uncertainty of the first distance includes: acquiring a blur value indicating a blur occurring in an object in the first image and an uncertainty of the blur value as distance information regarding a first distance to the object and an uncertainty of the distance information; converting the blur values to a first distance corresponding to the blur values and converting the uncertainty of the blur values to an uncertainty of the first distance corresponding to the blur values; Includes method.
15. The method according to claim 14 , wherein the blur value and the uncertainty of the blur value are output from a statistical model generated by learning blur that occurs in an image affected by aberration of an optical system of the imaging device and that changes nonlinearly depending on a distance to a subject included in the image, by inputting the first image into the statistical model.
16. A step of acquiring first and second images including the same subject successively captured by an imaging device installed on a moving body; obtaining a first distance to the object included in the obtained first image and an uncertainty of the first distance; extracting useful second distances from the obtained first distances based on an uncertainty of the obtained first distances; estimating a position and orientation of the moving object when the second image was captured by the imaging device based on the acquired first and second images and the extracted second distance; Equipped with The step of obtaining a first distance and an uncertainty of the first distance includes: acquiring a reflected wave from the object and an intensity of the reflected wave as distance information regarding a first distance to the object and an uncertainty of the distance information; converting the reflected wave into a first distance to the object corresponding to the reflected wave, and converting an intensity of the reflected wave into an uncertainty of the first distance calculated from the reflected wave; Includes method.
17. A step of acquiring first and second images including the same subject successively captured by an imaging device installed on a moving body; obtaining a first distance to the object included in the obtained first image and an uncertainty of the first distance; extracting useful second distances from the obtained first distances based on an uncertainty of the obtained first distances; estimating a position and orientation of the moving object when the second image was captured by the imaging device based on the acquired first and second images and the extracted second distance; Equipped with The step of obtaining a first distance and an uncertainty of the first distance includes: acquiring a parallax and an uncertainty of the parallax in an image including an object captured from a plurality of viewpoints by at least two image capturing devices as distance information related to a first distance to the object and an uncertainty of the distance information; converting the disparity to a first distance corresponding to the disparity and converting the uncertainty of the disparity to an uncertainty of the first distance corresponding to the disparity; Includes method.
18. 18. The method of any one of claims 14 to 17, wherein the extracting step comprises extracting the second distance based on an uncertainty of the first distance and at least one of the first distance, the distance information, an uncertainty of the distance information, and a brightness of the first image.
19. The method according to any one of claims 14 to 18, wherein the extracting step comprises extracting as a second distance a first distance for which the uncertainty is less than a predetermined value.
20. The estimating step includes a step of detecting a plurality of first feature points from the first image and a step of detecting a plurality of second feature points from the second image; obtaining the first distance and the uncertainty of the first distance includes obtaining a first distance to the object and an uncertainty of the first distance for each of the first feature points; the extracting step includes a step of extracting a useful second distance from the first distances acquired for each of the first feature points based on an uncertainty of the acquired first distance; The estimating step includes a step of calculating three-dimensional coordinates of the first feature point based on a real scale based on the extracted second distance, and estimating a position and orientation of the moving object based on a real scale by associating the first feature point whose three-dimensional coordinates have been calculated with a second feature point detected from the second image. The method according to any one of claims 14 to 19.
21. acquiring first and second images including the same object successively captured by an imaging device installed in a moving object; detecting a plurality of feature points from the acquired first and second images, and estimating a position and orientation of the moving object, the scale of which is indefinite when the second image was captured by the imaging device, by matching the plurality of feature points detected from the first and second images; obtaining a first distance to the object included in the obtained second image and an uncertainty of the first distance; extracting useful second distances from the obtained first distances based on an uncertainty of the obtained first distances; correcting the estimated position and orientation of the moving body having an indefinite scale to a position and orientation of the moving body based on a real scale based on the extracted second distance; Equipped with The step of obtaining a first distance and an uncertainty of the first distance includes: acquiring a blur value indicating a blur occurring in an object in the second image and an uncertainty of the blur value as distance information regarding a first distance to the object and an uncertainty of the distance information; converting the blur values to a first distance corresponding to the blur values and converting the uncertainty of the blur values to an uncertainty of the first distance corresponding to the blur values; Includes method.
22. A program executed by a computer of the estimation device, The computer includes: acquiring first and second images including the same object successively captured by an imaging device installed in a moving object; obtaining a first distance to the object included in the obtained first image and an uncertainty of the first distance; extracting useful second distances from the obtained first distances based on an uncertainty of the obtained first distances; estimating a position and orientation of the moving object when the second image was captured by the imaging device based on the acquired first and second images and the extracted second distance; Run the command, The step of obtaining a first distance and an uncertainty of the first distance includes: acquiring a blur value indicating a blur occurring in an object in the first image and an uncertainty of the blur value as distance information regarding a first distance to the object and an uncertainty of the distance information; converting the blur values to a first distance corresponding to the blur values and converting the uncertainty of the blur values to an uncertainty of the first distance corresponding to the blur values; Includes program.
Citation Information
Patent Citations
Image processor, and control method thereof
JP2015207090A
Estimation system and automobile
JP2019011971A
Image processing apparatus and ranging device
JP2019049457A
Image processor, range finder, method and program
JP2020148483A
