Image learning device and image learning method

The image learning device and method address the challenge of sparse actual distance data by calculating and refining estimated distances using sparse data and camera pose changes, enhancing the accuracy of image-based distance estimation.

JP2024121518APending Publication Date: 2024-09-06FUJIFILM CORP
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
JP2023028663
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-02-27
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

Existing image-based distance estimation methods struggle with learning when using extremely sparse actual distance data, as they fail to effectively utilize such data for accurate distance estimation.

Method used

An image learning device and method that calculates estimated distances using sparse actual distance data, updating parameters based on differences between actual and estimated distances, and incorporating camera pose changes to refine the estimation process.

Benefits of technology

Enables effective learning of distance estimation even with sparse actual distance data, improving accuracy and adaptability in image-based distance estimation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024121518000001
    Figure 2024121518000001
Patent Text Reader

Abstract

To provide an image learning device and an image learning method capable of learning estimation of a distance, in which sparse actual distance data is used as correct answer data, in estimation of a distance to an observation image.SOLUTION: At least one observation image obtained by imaging an observation object by an image sensor, is acquired, and to the observation image, an estimated distance to the observation object on each of multiple positions in an imaging range of the image sensor, is calculated using a distance estimation parameter, then, on at least one position in the imaging range, a distance estimation parameter is updated on the basis of a difference between an actual distance obtained by measuring a distance to the observation object and an estimated distance.SELECTED DRAWING: Figure 8
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to an image learning device and an image learning method. [Background technology]

[0002] In order to obtain the 3D structure of the environment, machine learning techniques are sometimes used to estimate distances based on images. When training distance estimation, it is common to use the actual distance values ​​for each pixel in an image measured using a laser measuring device as the correct answer data.

[0003] For observed images, only extremely sparse real distance data can be obtained, such as when the real distance value exists in less than 1% of the image. There are examples of supervised learning in which relatively sparse real distance data (values ​​exist in 30-50% of the image, etc.) is used as the correct answer. However, when extremely sparse real distance data is used as the correct answer, learning may not progress using a similar method.

[0004] Patent Document 1 describes a method of performing a calibration for calibrating the relative position information between a pattern projector that projects a measurement pattern and a camera. Specifically, in the pattern light projection method, image processing is performed based on an image of a measurement pattern projected onto a measurement target to obtain a three-dimensional shape of the measurement target. Patent Document 2 describes a method of applying a machine learning algorithm to two-dimensional image data and point cloud data of an object detected in an image captured from an image capture device, estimating parameters for a three-dimensional bounding box, and defining coordinates. [Prior art documents] [Patent documents]

[0005] [Patent Document 1] JP 2017-217215 A [Patent Document 2] Special Publication No. 2020-534617 Summary of the Invention [Problem to be solved by the invention]

[0006] In Patent Document 1, the 3D shape of the measurement target is estimated, but since the 3D shape is obtained by projecting a measurement pattern during shooting and acquiring the distances of points distributed in a grid pattern in the image, there is no mention of estimating the distance from sparse actual distance data or learning the distance. In Patent Document 2, a 3D bounding box that is robust to sparse point cloud data is estimated using a machine learning algorithm, but there is no mention of specific examples of sparse point cloud data that can estimate 3D coordinates in a state where coordinate information and distance information are extremely scarce. In both Patent Documents 1 and 2, there is no mention or suggestion regarding the definition or criteria of sparse points. In light of the above, it is desirable to progress in learning a distance estimator that estimates the distance of an observation target in an image, even if the actual distance data is sparse, such as when the actual distance value that can be acquired is only one point in the image.

[0007] An object of the present invention is to provide an image learning device and an image learning method that are capable of learning distance estimation using sparse actual distance data as correct answer data in distance estimation for an observed image. [Means for solving the problem]

[0008] The image learning device of the present invention is equipped with a processor that acquires at least one observation image of an object to be observed captured by an image sensor, calculates an estimated distance to the object to be observed for each of a plurality of locations within the imaging range of the image sensor for the observation image using a distance estimation parameter, and updates the distance estimation parameter based on the difference between the actual distance measured to the object to be observed and the estimated distance for at least one location within the imaging range.

[0009] It is preferable to calculate the estimated distance only for a portion of the observed image.

[0010] It is preferable to calculate an estimated distance for the location where the actual distance was measured.

[0011] It is preferable to have a distance estimation model, and to use the distance estimation model to perform learning for calculating an estimated distance using distance estimation parameters and updating the distance estimation parameters based on a difference.

[0012] It is preferable to obtain a first observation image and a second observation image taken a certain time after the first observation image from a plurality of observation images taken in time series, calculate a camera pose change, which is the change in rotation and movement of the image sensor between the first observation image and the second observation image, reproject an estimated second image that estimates the state after a certain time has passed from the first observation image using the first observation image, the camera pose change, and the estimated distance, calculate a reprojection error between the second observation image and the estimated second image, and update the distance estimation parameters so as to minimize the reprojection error.

[0013] It is preferable to reproject an estimated first image, which estimates the state of the second observational image before a certain time has elapsed, using the second observational image, the camera pose change, and the estimated distance, and to update the distance estimation parameters so as to minimize the reprojection error between the first observational image and the estimated first image.

[0014] The distance estimation parameters are preferably updated so that the difference between the actual distance and the estimated distance is a minimum value or less than a predetermined threshold.

[0015] It is preferable to calculate a scale factor that minimizes the error between the actual distance and the estimated distance multiplied by the scale factor or is equal to or smaller than a threshold, and to update the distance estimation parameters using the scale factor.

[0016] It is preferable that the observation subject is the digestive tract and the observed image is an endoscopic image.

[0017] It is preferable to use the value obtained by laser distance measurement for the actual distance.

[0018] The image learning method of the present invention includes the steps of obtaining at least one observation image of an object to be observed by an image sensor, calculating an estimated distance to the object to be observed for each of a plurality of locations within the imaging range of the image sensor using a distance estimation parameter for the observation image, and updating the distance estimation parameter based on the difference between the actual distance measured to the object to be observed and the estimated distance for at least one location within the imaging range. Effect of the Invention

[0019] According to the present invention, in distance estimation for an observed image, distance estimation can be learned using sparse actual distance data as correct answer data. [Brief description of the drawings]

[0020] [Figure 1] FIG. 2 is an explanatory diagram showing connected devices of the image learning device. [Diagram 2] FIG. 2 is an explanatory diagram of an endoscope system connected to an image learning device. [Diagram 3] FIG. 1A is an explanatory diagram of an indoor camera being used to capture an image of an observation target, and FIG. 1B is an explanatory diagram of an observation image captured indoors. [Figure 4] FIG. 1A is an explanatory diagram of photographing an object to be observed using an endoscopic camera, and FIG. 1B is an explanatory diagram of an observed image, which is an endoscopic image. [Diagram 5] FIG. 2 is a block diagram showing functions of the image learning device. [Figure 6] (A) is an explanatory diagram of an observation image captured of an object to be observed using a camera, (B) is an explanatory diagram of a dense actual distance data map in the observation image, and (C) is an explanatory diagram of a sparse actual distance data map in the observation image. [Figure 7] FIG. 13 is an explanatory diagram for matching sparse actual distance data with corresponding observed images. [Figure 8] FIG. 13 is an explanatory diagram illustrating distance estimation of an observed image using a distance estimator. [Figure 9]FIG. 13 is an explanatory diagram for inputting sparse actual distance data and estimated distance data to a comparison unit and calculating a loss indicating an error. [Figure 10] 13 is a flowchart of a series of processes for learning the distance estimator 33 by updating distance estimation parameters using sparse actual distance data. [Figure 11] FIG. 11 is a block diagram showing the functions of an image learning device according to a second embodiment. [Figure 12] 11 is an explanatory diagram for explaining extraction of a first observational image and a second observational image used in a reprojection process from time-series images. FIG. [Figure 13] FIG. 13 is an explanatory diagram illustrating distance estimation of an observed image by a distance estimator that has undergone unsupervised learning. [Figure 14] FIG. 2 is an explanatory diagram illustrating the estimation of the camera pose change between a first observed image and a second observed image by a camera pose estimator. [Figure 15] FIG. 13 is an explanatory diagram illustrating image reprojection using an estimated depth map, an observed image, and a camera pose change. [Figure 16] FIG. 13 is an explanatory diagram illustrating reprojection of two estimated images from two observed images. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0021] [First embodiment] 1 is a diagram showing an example of the configuration of an image learning system 10 that realizes an image learning method according to an embodiment of the present invention. The image learning system 10 includes an image learning device 11, a camera 12 having a distance measurement unit 12a, a database 13, a display 14, and a user interface (UI) 15. The image learning device 11 is electrically connected to the camera 12, the database 13, the display 14, and the user interface 15. The image learning device 11 acquires an image captured during an inspection from the camera 12 having the distance measurement unit 12a.

[0022] The camera 12 is an imaging device having an image sensor, and transmits an observation image generated by photographing an object to the image learning device 11. The distance measurement unit 12a acquires distance data of the observation image by laser distance measurement or the like during shooting, and transmits the observation image having the acquired distance data to the image learning device.

[0023] Database 13 is a device that stores acquired images and can transmit and receive data to and from image learning device 11, and may be a recording medium such as a Universal Serial Bus (USB) or a Hard Disk Drive (HDD). Image learning device 11 can perform image learning and distance estimation after shooting is completed, instead of image learning in real time. User interface 15 is an input device for inputting settings to image learning device 11, and includes a keyboard, mouse, etc.

[0024] 2, an endoscope system 16 that observes and captures an object such as the digestive tract may be connected to the image learning device 11 as the camera 12. The endoscope system 16 includes an endoscope 16a, a light source device 16b, and a processor device 16c, and the endoscope 16a has a distance measurement unit 12a that emits measurement light such as a laser at its tip 16d. When the endoscope system 16 is used as the camera 12, the functions of the processor device 16c and the image learning device 11 may be realized by the same device.

[0025] In this embodiment, when measuring the distance of the entire observed image, real distance data is collected using a method such as laser distance measurement with a low irradiation density for the shooting range R, and acquired as sparse real distance data. Sparse real distance data is real distance data that has values ​​only at some points, for example, less than 1% of the pixels in the entire image, one location, or a few locations. The real distance data includes at least the real distance value and information on the location in the observed image where the real distance value exists. Sparse real distance data includes cases where the measured real distance value is at one location in one observed image.

[0026] As shown in Fig. 3(A), when the camera 12 is a general digital camera that photographs indoors and outdoors, an image sensor captures and photographs a specific object, such as a table and a chair, as an observation target T, and the distance measurement unit 12a, such as a laser measurement device, irradiates measurement light L to at least one point in the photographing range R to measure the actual distance to the observation target T. Also, photographing may be performed without capturing a specific observation target T, and the actual distance to be measured may be any point. Fig. 3(B) shows an indoor photographed image obtained by photographing the photographing range R, and is transmitted to the image learning device 11 as an observation image 40 together with the measured actual distance data.

[0027] As shown in FIG. 4(A), when an endoscope system 16 is used as the camera 12, the endoscope system 16 is inserted into the subject, and the inside of the digestive tract is observed from a tip 16d having an imaging optical system and an illumination optical system, and an image sensor captures and captures an observation target T such as a polyp. The distance measurement unit 12a irradiates at least one point in the imaging range R with measurement light L and measures the actual distance to the observation target T. Alternatively, instead of capturing a specific observation target T, the entire digestive tract may be imaged as the observation target, and the actual distance to be measured may be any point. FIG. 4(B) shows an endoscopic image obtained by imaging the imaging range R as an observation image 40, and is transmitted to the image learning device 11 together with the measured actual distance data.

[0028] When capturing the observation image 40, if the laser irradiation point moves during the exposure period, or if the laser irradiation point moves at least for each frame when generating the observation image 40 from multiple frames, multiple measurement points p can be obtained in one observation image 40, even in laser measurement that obtains actual distance data for one point.

[0029] Unless otherwise specified, white light is used as the illumination light, a video signal of 60 frames per second (60 fps) is acquired, and the shooting time is recorded. When the video signal is 60 fps, it is preferable to count the time in units of 1 / 100th of a second. When shooting indoor images and endoscopic images, it is also possible to shoot only the wall surface without capturing a specific object in the observation target T.

[0030] 5, in image learning device 11, a central control unit (not shown) constituted by an image control processor operates programs in a program memory to realize the functions of image acquisition unit 20, display control unit 22, input receiving unit (not shown), and learning model management unit 30. With the realization of the functions of learning model management unit 30, the functions of actual distance matching unit 32, distance estimator 33, comparison unit 34, and parameter update unit 35 are realized.

[0031] The image acquisition unit 20 receives data such as images captured by the camera 12. The acquired images are transmitted to the learning model management unit 30. In cases where image learning and distance estimation are not performed in real time but are performed after shooting is completed, the images are transmitted to the database 13. The display control unit 22 controls the display of still images or videos on the display 14. The input receiving unit is connected to the user interface 15.

[0032] The learning model management unit 30 acquires the observed image and the actual distance data from the camera 12 or the database 13 via the image acquisition unit 20. An observed image 40 having estimated distance information (described later) is displayed on the display 14 via the display control unit 22. In addition, the image learning device 11 has programs related to processes such as image processing stored in a program memory (not shown).

[0033] The actual distance matching unit 32 matches the actual distance data measured by the distance measuring unit 12a with the observed image 40. By matching, a measurement point where an actual distance value exists is detected in the observed image 40. In the case of laser distance measurement, the laser irradiation point can be detected as the measurement point.

[0034] The distance estimator 33 is a trained model, has a computer algorithm consisting of a neural network that learns using input learning data, and distinguishes input information and detects specific image information according to the learning content. The distance estimator 33 has updatable distance estimation parameters used to calculate an estimated distance between any pixel of the input image and the camera 12, and performs distance estimation for the input image using the distance estimation parameters.

[0035] The learning in the distance estimator 33 includes supervised learning, which learns from an image having real distance data as correct answer data, and unsupervised learning, which learns from an image having no real distance data. Since distance estimation involves either one or both of these estimations, the distance estimator 33 can update the distance estimation parameters by both learning methods.

[0036] Furthermore, the distance estimator 33 receives an input of a loss indicating a difference between actual distance data obtained by measuring the distance to the observation target T for at least one location within the shooting range and the calculated estimated distance from the parameter update unit 35, and updates the distance estimation parameters in the distance estimator 33. It is preferable that the location within the shooting range where the actual distance data and the estimated distance are calculated are the same.

[0037] The comparison unit 34 compares the value of the actual distance data with the corresponding estimated distance obtained by the distance estimator 33. The difference between the actual distance and the estimated distance through the comparison is calculated as a loss.

[0038] The parameter update unit 35 updates the distance estimation parameters in the distance estimator 33 based on the loss calculated by the comparison unit 34 so as to minimize the loss. The calculated loss may be sent to the distance estimator 33 as a parameter update instruction. Alternatively, instead of minimizing the loss, the loss may be updated so as to be equal to or less than a predetermined threshold. The predetermined threshold varies depending on the value of the actual distance.

[0039] This embodiment will be described taking an indoor image as an example, but the observation image 40 may be any of an endoscopic image, an indoor image, an outdoor image, etc. When the observation image 40 is obtained by performing real distance measurement by irradiating a single point with a laser for one frame, real distance data for one point is obtained for one image. On the other hand, when measurements are performed for multiple points by irradiating a laser during the capture of one image, or when one observation image 40 is created from multiple consecutive frames irradiated with a laser, real distance data for multiple points can be obtained for one observation image 40.

[0040] Fig. 6(A) is an observation image 40 with depth, obtained by photographing an observation target T by a camera 12 as an indoor photographed image. Fig. 6(B) is a dense real distance data map 42 that visualizes the 3D coordinates of the observation image 40 obtained by ideal real distance data obtained by acquiring dense real distance data when a 3D distance measuring device or the like is used in combination with the observation image 40. The dense real distance data map 42 expresses the distribution of the distance to the camera 12 in shades, with lighter colors indicating shorter distances and darker colors indicating longer distances. When dense real distance data is acquired for a space without obstructions, a gradation is projected according to the shape of the space, but when an observation target T or the like is captured within the shooting range R, its shape emerges.

[0041] 6(C), the distance data obtained by laser ranging, pattern ranging, etc. in this embodiment is sparse real distance data, such as one or a few points in an observed image, a density of less than 1% of the entire image, etc. When sparse real distance data is acquired, a sparse real distance data map 44 is obtained, which is a map that visualizes measurement points p, which are positions in the observed image 40 where real distance values ​​exist.

[0042] An embodiment of learning the estimated distance in this embodiment will be described. Learning using sparse real distance data is supervised learning using correct answer data. The real distance data can be used as correct answer data to update the distance estimation parameters. The estimated distance is calculated only for some points, such as measurement points in the observed image 40 that have at least one real distance value, i.e., only for points where the distance to the observation target is measured, and loss is calculated and the distance estimation parameters in the distance estimator 33 are updated.

[0043] As shown in Fig. 7, the actual distance matching unit 32 matches the observed image 40 acquired from the image acquisition unit 20 or the database 13 with the actual distance data held in the sparse actual distance data map 44 to see whether they correspond. The measurement point p is a point that has an actual distance value and can be expressed by xy coordinates (pixels) corresponding to the observed image 40. By matching, sparse actual distance data, i.e., the observed image 40 having information on the measurement point p and the actual distance value corresponding to the measurement point p, is obtained. In the matching, actual distance data with low accuracy due to movement of the laser irradiation point, etc., may be selected without being used for distance estimation.

[0044] 8, an observed image 40 having sparse actual distance data can be input to a distance estimator 33 to calculate an estimated distance between a measurement point p and the camera 12. An estimated distance data map 46 is generated. An estimated distance data map 46 is obtained that has an estimated point q having the same coordinates (same pixel) as each measurement point p and an estimated distance from the estimated point q to the camera 12. The estimated distance data map 46 corresponds to the observed image 40 and may be linked to the observed image 40.

[0045] By performing distance estimation on the observed image 40 having sparse actual distance data, it is possible to obtain pairs of actual distances and estimated distances that are likely to be useful for updating distance estimation parameters in learning. Note that pairs of actual distances and estimated distances may be obtained without creating the sparse actual distance data map 44 and the estimated distance data map 46. It is preferable that the coordinates of the estimated point q paired with the measurement point p are the same, and the value of the measurement point p may be used for the estimated point q in the estimated distance data.

[0046] 9, a sparse actual distance data map 44 and an estimated distance data map 46 are input to the comparison unit 34, and the corresponding actual distances and estimated distances are compared, and a loss indicating the difference is calculated using a loss function. For example, a squared error is calculated as one of the loss functions.

[0047] The loss is calculated by taking the set of measurement points p for which sparse actual distance data exists in the sparse actual distance data map 44 as D(p) and the set of estimated points q for which estimated distance data exists in the estimated distance data map 46 as D'(q). In this case, the estimated points q used in the calculation are those that match the pair of measurement points p, so D'(q) can be calculated as D'(p). The image learning device 11, which has taken multiple observation images of the same subject, can learn based on the sum of the losses. When the loss is L1, the loss obtained from the comparison can be calculated using the following formula (1) as Loss(total).

[0048] Loss(total)=Σ p L1{D(p),D´(p)} (1)

[0049] The image learning device 11 performs learning by repeatedly updating the distance estimation parameters using the distance estimator 33 having the updated distance estimation parameters and the loss of the actual distance and the estimated distance for the newly acquired observed image 40. This makes it possible to train the distance estimator 33 even if the actual distance data in the observed image 40 is sparse.

[0050] Note that the distance estimation parameters in the distance estimator 33 may be updated by determining whether or not all losses calculated by the comparison unit 34 have been minimized, and if the losses have not been minimized, learning may be performed, and if the losses have been minimized, learning may be terminated without updating the distance estimation parameters, or learning may proceed to learning using a new observed image 40. Also, instead of minimization, learning may be performed by determining whether the losses are equal to or less than a threshold value.

[0051] As shown in FIG. 10, a flow chart showing a series of steps up to parameter update input to the distance estimator 33 that calculates the estimated distance of an observed image using sparse real distance data as correct answer data will be described. The image learning device 11 acquires an observed image 40 in which an observed object T is captured by an image sensor in a camera 12 or an endoscope system having the function of the camera 12, and an actual distance value at a point within the shooting range of the image sensor for the observed image 40 (step ST110). The actual distance collation unit 32 collates the observed image 40 with the actual distance value, and acquires actual distance data that specifies a measurement point p in the observed image (step ST120). The distance estimator 33 estimates the distance to the measurement point p, which is a plurality of points within the shooting range of the image sensor in the observed image 40, using the distance estimation parameters, and acquires an estimated distance (step ST130). The comparison unit 34 compares the acquired estimated distance with the actual distance, and calculates a loss indicating the difference (step ST140). The calculated loss information is sent to the parameter update unit 35, which updates the distance estimation parameter in the distance estimator 33 so that the loss is minimized or is equal to or less than a threshold (step ST150). After updating the parameters, the learning model management unit 30 selects whether or not to continue learning using a different observed image 40 (step ST160). If learning is to be continued (Y in step ST160), a new observed image 40 is acquired (step ST110) and learning is repeated. If learning is not to be continued (N in step ST160), the series of operations is terminated.

[0052] [Second embodiment] In the second embodiment, unsupervised learning using time-series images in which a camera pose change has occurred, such as a video or continuous still images, is performed in addition to supervised learning. In unsupervised learning, observation images before and after a camera pose change at an arbitrary time point are extracted from the time-series images, and learning is performed using a reprojection error calculated using an image reprojected onto at least one observation image. In the case of a video, the time-series images are received after the shooting is completed, but the image acquisition unit 20 may frame and acquire the video signal during real-time shooting before the video is created. Note that a description of other contents similar to those of the first embodiment will be omitted.

[0053] As shown in FIG. 11, the image learning device 11 in the second embodiment has the functions of a camera pose estimator 38 and an image reprojection unit 39 in addition to the functions of the image learning device 11 in the first embodiment (see FIG. 2). The learning model management unit 30 acquires time-series images from a camera 12 capable of video shooting or continuous shooting, or from a database 13. The distance estimator 33 calculates an estimated distance. The camera pose estimator 38 outputs a camera pose change amount capable of estimating a camera pose change in a plurality of input observation images. The image reprojection unit 39 reprojects an estimated image that estimates the state of the observation image after the camera pose change using the observation image before the camera pose change, the camera pose change amount, and the estimated distance.

[0054] 12, the image acquiring unit 20 extracts at least two observational images from the time-series images 50. The image acquiring unit 20 may determine the observational images to be extracted based on image information. The extracted observational images are transmitted to the learning model managing unit 30. The time-series images 50 may be any of images captured by an endoscope, images captured indoors, images captured outdoors, and the like.

[0055] The observation images to be extracted are two observation images in which a change in camera pose has occurred, one of which is a source image and the other a target image. The target image is reprojected based on the source image, the estimated distance of the source image, and the amount of change in the camera pose to generate an estimated image. The reprojection error is calculated by comparing the generated estimated image with the target image. The source image and the target image may be images captured consecutively in a time series image, or may be images after any time has passed. The shooting times of the source image and the target image have a difference in shooting time according to the frame rate, and it is preferable that the image acquisition unit 20 acquires information on the shooting time as image information. In addition, the passage of a certain period of time may be set as an extraction condition during extraction. The reprojection error is preferably calculated as a deviation in the estimated distance by comparing the estimated distance in the reprojected estimated image with the estimated distance in the target image. In addition, the reprojection error may be a deviation in the position, orientation, or shape of the observation target in the estimated image and the target image, or a deviation in the position of the measurement point p reprojected on the estimated image and the measurement point p in the target image.

[0056] When two observation images are extracted from the time-series images 50, the observation image before the camera pose change is the first observation image 51, and the observation image after the camera pose change is the second observation image 52. Unsupervised learning is performed using the set of the first observation image 51 and the second observation image 52. For example, the first observation image 51 is the source image, and the second observation image 52 is the target image. The camera pose change is the change in the attitude of the image sensor from the source image to the target image, and the estimated distance to be calculated is the estimated distance of the source image. Note that between the source image and the target image for which the amount of change in the camera pose is estimated, there is at least one change in the image sensor, either rotation or movement, and an image capturing a common observation target is used.

[0057] The camera pose estimator 38 is a trained model, and has a computer algorithm consisting of a neural network that learns using input learning data. By inputting a number of observation images acquired from a time series of images, it outputs the amount of change in the camera pose between the times at which the two observation images were taken. As the amount of change in the camera pose, it inputs observation images taken before and after the change in the camera pose, and estimates the amount of change in rotation and translation in the image sensor. It outputs the estimated value as the amount of change in the camera pose.

[0058] The image reprojection unit 39 reprojects an estimated image of the target image from the source image, the camera pose change output by the camera pose estimator 38, and the estimated distance output by the distance estimator 33. That is, the image reprojection unit 39 applies information on the change in attitude of the image sensor from the estimated source image to the target image and the estimated distance to the source image to generate an estimated image that estimates the state of the target image. Note that the application of the estimated distance may be performed by the image reprojection unit 39 acquiring the estimated distance, or may be performed by the comparison unit 34 acquiring the estimated distance corresponding to the estimated image reprojected from the image reprojection unit 39 from the distance estimator 33.

[0059] The distance estimator 33 has a function of switching between a process of performing distance estimation for an estimated point q corresponding to a measurement point p in an input image and a process of performing distance estimation for each pixel in the input image. The comparison unit 34 compares the acquired target image with an estimated image and calculates an inter-image error. Learning is performed using the sum of losses obtained by adding a loss indicating a reprojection error to a loss indicating the difference between the actual distance and the estimated distance calculated in the same manner as in the first embodiment (see formula (1)).

[0060] As shown in FIG. 13, the distance estimator 33 obtains a first estimated depth map 54 that visualizes unscaled estimated distance information of a first observed image 51 and a second estimated depth map 55 that visualizes unscaled estimated distance information of a second observed image 52 by estimating the distance for each pixel of the extracted observed image. The estimated depth map shows the distribution of distances to the camera 12 in shades of gray, with lighter colors indicating shorter distances and darker colors indicating longer distances. Since this is a calculation of unscaled estimated distances, the distribution of distances in the estimated depth map indicates relative distances within the image. The estimated depth map may be output as an image.

[0061] In scaleless distance estimation, it is difficult to calculate the estimated distance in an absolute scale (mm, cm, etc.), but by combining it with sparse actual distance data acquired when capturing the observation image 40, it is possible to apply a scale to the estimated depth.

[0062] As shown in FIG. 14, in estimating the camera pose change by the camera pose estimator 38, the first observational image 51 and the second observational image 52 are input from the image acquisition unit 20, and the amount of rotation and the amount of parallel translation of the camera 12 between the first observational image 51 and the second observational image 52 are calculated as the camera pose change amount.

[0063] When the camera pose change amount and the estimated distance are obtained, an estimated image can be generated by reprojecting the target image, and a pair of the estimated image and the target image corresponding to the estimated image is created to calculate the reprojection error. The reprojection error is obtained by comparing the target image and the estimated image in the comparison unit 34, and the parameter update unit 35 updates the distance estimation parameters so as to minimize the reprojection error or to a value equal to or less than a threshold value.

[0064] As shown in FIG. 15, in the reprojection of the second observational image 52, the first observational image 51, the second estimated depth map 55, and a camera pose change amount having at least a rotation amount and a translation amount are input to the image reprojection unit 39. The image reprojection unit 39 generates an estimated second image 52a by reprojecting the second observational image 52 from the first observational image 51 based on the estimated depth of the second observational image 52 and the calculated camera pose change amount. The estimated second image 52a is transmitted to the comparison unit 34. The comparison unit 34 acquires the second observational image 52 and the estimated second image 52a and compares them. A reprojection error is calculated as a loss by the comparison.

[0065] As shown in FIG. 16, reprojection may be performed from the first observation image 51 and the second observation image 52 with the source image and the target image reversed, and an estimated first image 51a and an estimated second image 52a may be generated to calculate two reprojection errors. In the calculation of the loss indicating the reprojection error using the first observation image 51 and the second observation image 52 of this embodiment, the reprojection error is calculated. From the second observation image 52 acquired later in the time series, the first estimated depth map 54 obtained by performing the scaleless distance estimation of the first observation image 51, the rotation amount from the second observation image 52 to the first observation image 51 output by the camera pose estimator 38, and the camera pose change amount including at least the translation amount are calculated. As a result, when the same number of observation images 40 are used, the distance estimation parameters can be updated with high accuracy.

[0066] The parameter update unit 35 can update the distance estimation parameters related to unsupervised learning by transmitting the reprojection error calculated as the loss to the distance estimator 33. The distance estimation parameters are updated so as to minimize the reprojection error or to a value that makes the reprojection error equal to or less than a threshold value. The calculation of the loss by unsupervised learning using the estimated image and the loss by supervised learning of the first embodiment is performed in parallel. In the case of minimization, the distance estimator 33 performs learning to update the distance estimation parameters so as to minimize the sum of the input losses. In addition, in this case, it is preferable to update the distance estimation parameters so as to minimize the reprojection error itself. Similarly, the distance estimation parameters may be updated to a value equal to or less than a threshold value. In addition, at least two observation images before and after the camera pose change are extracted from the time series images, but three or more may be extracted to calculate multiple reprojection errors.

[0067] The second embodiment combines unsupervised learning and supervised learning using a time series image 50 and an observed image 40 having sparse actual distance data, making it possible to perform highly accurate distance estimation for the entire observed image, even for observed images having sparse actual distance data.

[0068] [Third embodiment] In the third embodiment, a distance estimator 33 fits distance estimation parameters to a trained model that has undergone unsupervised learning, etc., using sparse actual distance data. Note that a description of other contents that are the same as those in the first or second embodiment will be omitted.

[0069] In unsupervised learning, since distance estimation on an absolute scale is difficult, sparse actual distance data is used to adjust the scale factor S. In updating the distance estimation parameters, the distance estimator 33 is trained using the difference between the actual distance and the estimated distance in the first embodiment, and the reprojection error of the estimated image corresponding to the observed image in the second embodiment, but in this embodiment, the scale factor S used when performing distance estimation, which is included in the distance estimation parameters, is used for comparing the actual distance and the estimated distance.

[0070] The comparison unit 34 calculates an error E between the actual distance in the sparse actual distance data and a value obtained by multiplying the estimated distance obtained from the estimated point corresponding to the sparse actual distance by a scale factor S. The parameter update unit 35 calculates a scale factor S that minimizes the error E or makes the error E equal to or smaller than a threshold value based on the relationship between the value of the scale factor and the error E in the distance estimator 33. The distance estimator 33 updates the distance estimation parameters using the obtained scale factor S and performs learning.

[0071] For example, the error E can be calculated using the following formula (2) where p is the measurement point of the actual distance value, D(p) is the sparse actual distance data, D'(p) is the estimated distance data, and S is the scale coefficient. Unless otherwise specified, D'(q) is used as D'(p) since the corresponding measurement point p is used for the estimated point q. Note that the measurement point p constitutes a set of points where sparse actual distance values ​​exist.

[0072] E=Σ p (D(p)-S*D'(p)) 2 (2)

[0073] In unsupervised learning, when sufficient learning has been performed, it may be time-consuming and laborious to newly perform supervised learning and acquire a large amount of real distance data. Therefore, by specifying the scale factor S using the sparse real distance data used in this embodiment, the burden on the user and the time required for learning can be reduced. The update of the distance estimation parameters using the scale factor S may be combined with the contents of the first or second embodiment.

[0074] In this embodiment, the image learning device 11 has been described as performing distance estimation processing when the camera 12 acquires an endoscopic image, an indoor image, or an outdoor image. However, the present invention is not limited to this, and the distance estimator 33 may also be trained on images acquired by medical devices such as an ultrasound imaging device or a radiography device, or by other imaging devices.

[0075] In each embodiment, the hardware structure of the processing units that execute various processes, such as the central control unit, the input receiving unit, the image acquisition unit 20, the display control unit 22, the actual distance matching unit 32 in the learning model management unit 30, the distance estimator 33, the comparison unit 34, the parameter update unit 35, the camera pose estimator 38, and the image reprojection unit 39, is various processors as shown below. The various processors include a CPU (Central Processing Unit), which is a general-purpose processor that executes software (programs) and functions as various processing units, a programmable logic device (PLD), which is a processor whose circuit configuration can be changed after manufacture such as an FPGA (Field Programmable Gate Array), and a dedicated electric circuit, which is a processor having a circuit configuration designed specifically for executing various processes.

[0076] One processing unit may be configured with one of these various processors, or may be configured with a combination of two or more processors of the same type or different types (for example, multiple FPGAs, or a combination of a CPU and an FPGA). Also, multiple processing units may be configured with one processor. As an example of configuring multiple processing units with one processor, first, as represented by a computer such as a client or server, one processor is configured with a combination of one or more CPUs and software, and this processor functions as multiple processing units. Second, as represented by a system on chip (SoC), there is a form in which a processor is used that realizes the functions of the entire system including multiple processing units with one IC (Integrated Circuit) chip. In this way, the various processing units are configured using one or more of the above various processors as a hardware structure.

[0077] Furthermore, the hardware structure of these various processors is, more specifically, an electric circuit (Circuitry) in the form of a combination of circuit elements such as semiconductor elements. Also, the hardware structure of the storage unit is a storage device such as an HDD (Hard Disc Drive) or an SSD (Solid State Drive). Furthermore, from the above description, the image learning device and image learning method described in the following Supplementary Notes 1 to 11 can be understood.

[0078] [Appendix 1] A processor is provided. The processor, Acquire at least one observation image of the observation target by an image sensor; calculating an estimated distance to the observation target for each of a plurality of points within a shooting range of the image sensor using a distance estimation parameter for the observation image; An image learning device that updates the distance estimation parameter based on a difference between an actual distance measured to the object to be observed and the estimated distance for at least one location within the shooting range.

[0079] [Appendix 2] The processor, 2. The image learning device according to claim 1, wherein the estimated distance is calculated only for a portion of the observed image.

[0080] [Appendix 3] The processor, 3. The image learning device according to claim 2, wherein the estimated distance is calculated for a location where the actual distance is measured.

[0081] [Appendix 4] A distance estimation model is provided. The processor, 4. The image learning device according to claim 1, further comprising: a distance estimation model that calculates the estimated distance using the distance estimation parameter; and a learning process that updates the distance estimation parameter based on the difference.

[0082] [Appendix 5] The processor, obtaining a first observational image and a second observational image taken a certain time after the first observational image from the plurality of observational images taken in time series; calculating a camera pose change that is a change in rotation and translation of the image sensor between the first observational image and the second observational image; reprojecting an estimated second image obtained by estimating a state after the certain time has elapsed from the first observed image using the first observed image, the camera pose change amount, and the estimated distance; Calculating a reprojection error between the second observed image and the estimated second image; 5. The image learning device of claim 1, wherein the distance estimation parameters are updated so as to minimize the reprojection error.

[0083] [Appendix 6] The processor, reprojecting an estimated first image obtained by estimating a state of the second observed image before the certain time has elapsed, using the second observed image, the camera pose change amount, and the estimated distance; 6. The image learning device according to claim 5, wherein the distance estimation parameters are updated so as to minimize a reprojection error between the first observed image and the estimated first image.

[0084] [Appendix 7] The processor, 7. The image learning device according to claim 1, wherein the distance estimation parameter is updated so that a difference between the actual distance and the estimated distance becomes a minimum value or is equal to or smaller than a predetermined threshold value.

[0085] [Appendix 8] The processor, calculating a scale coefficient such that an error between the actual distance and a value obtained by multiplying the estimated distance by the scale coefficient is a minimum value or is equal to or smaller than a threshold value; 6. The image learning device of claim 5, wherein the scale factor is used to update the distance estimation parameters.

[0086] [Appendix 9] 9. The image learning device according to claim 1, wherein the observation object is a digestive tract and the observation image is an endoscopic image.

[0087] [Appendix 10] The processor, 10. The image learning device according to claim 1, wherein a value obtained by distance measurement using a laser is used as the actual distance.

[0088] [Appendix 11] acquiring at least one observation image of an object to be observed by an image sensor; calculating an estimated distance to the observation target for each of a plurality of points within a capturing range of the image sensor using a distance estimation parameter for the observation image; An image learning method comprising a step of updating the distance estimation parameter based on a difference between an actual distance measured to the object to be observed and the estimated distance for at least one location within the shooting range. [Explanation of symbols]

[0089] 10 Image Learning System 11 Image learning device 12 Camera 12a Distance measurement section 13 Database 14 Display 15 User Interface 16 Endoscope System 16a Endoscope 16b Light source device 16c processor unit 16d Tip 20 Image acquisition section 22 Display control unit 30 Learning Model Management Department 32 Actual distance acquisition unit 33 Distance estimator 34 Comparison section 35 Parameter Update Section 38 Camera Pose Estimator 39 Image reprojection section 40 Observation images 42 Dense real distance data map 44 Sparse real distance data map 46 Estimated Distance Data Map 50 Time series images 51 First Observation Image 51a Estimated first image 52 Second observation image 52a Estimated second image 54 First Estimated Depth Map 55 Second Estimated Depth Map L measurement light p measurement point q estimated point R Shooting range T Observation target

Claims

1. A processor is provided. The processor, Acquire at least one observation image by capturing an image of an observation target using an image sensor; calculating an estimated distance to the observation target for each of a plurality of points within a shooting range of the image sensor using a distance estimation parameter for the observation image; An image learning device that updates the distance estimation parameter based on a difference between an actual distance measured to the object to be observed and the estimated distance for at least one location within the shooting range.

2. The processor, The image learning device according to claim 1 , wherein the estimated distance is calculated only for a portion of the observed image.

3. The processor, The image learning device according to claim 2 , wherein the estimated distance is calculated for a location where the actual distance is measured.

4. A distance estimation model is provided. The processor, The image learning device according to claim 1 , wherein the distance estimation model is used to calculate the estimated distance using the distance estimation parameter, and to perform learning to update the distance estimation parameter based on the difference.

5. The processor, obtaining a first observational image and a second observational image taken a certain time after the first observational image from the plurality of observational images taken in time series; calculating a camera pose change, which is a change in rotation and translation of the image sensor between the first observed image and the second observed image; reprojecting an estimated second image obtained by estimating a state after the certain time has elapsed from the first observed image using the first observed image, the camera pose change amount, and the estimated distance; Calculating a reprojection error between the second observed image and the estimated second image; The image learning device according to claim 1 , wherein the distance estimation parameters are updated so as to minimize the reprojection error.

6. The processor, reprojecting an estimated first image obtained by estimating a state of the second observed image before the certain time has elapsed using the second observed image, the camera pose change amount, and the estimated distance; The image learning device according to claim 5 , wherein the distance estimation parameters are updated so as to minimize a reprojection error between the first observed image and the estimated first image.

7. The processor, 7. The image learning device according to claim 1, wherein the distance estimation parameter is updated so that a difference between the actual distance and the estimated distance becomes a minimum value or is equal to or smaller than a predetermined threshold value.

8. The processor, calculating a scale coefficient such that an error between the actual distance and a value obtained by multiplying the estimated distance by the scale coefficient is a minimum value or is equal to or smaller than a threshold value; The image learning device according to claim 5 , wherein the scale factor is used to update the distance estimation parameters.

9. The image learning device according to claim 1 , wherein the observation object is a digestive tract, and the observed image is an endoscopic image.

10. The processor, 2. The image learning device according to claim 1, wherein a value obtained by distance measurement using a laser is used as the actual distance.

11. acquiring at least one observation image of an object to be observed by an image sensor; calculating an estimated distance to the observation target for each of a plurality of points within a capturing range of the image sensor using a distance estimation parameter for the observation image; An image learning method comprising a step of updating the distance estimation parameter based on the difference between an actual distance measured to the object to be observed and the estimated distance for at least one location within the shooting range.

Citation Information

Patent Citations

  • Method for processing distance information of two-dimensional image target detection result

    CN113393517A

  • Information processing device, information processing method, and program

    JP2019125116A

  • Learning method, program, and image processing apparatus

    JP2021165944A

  • Learning device, depth information acquisition device, endoscope system, learning method and program

    JP2022172654A

  • Method and apparatus for estimating distance of object based on visible area ratio

    KR102428744B1