Obstacle detection device, system, method, and program
The obstacle detection system uses differential smoothing of depth data based on image and depth features to accurately identify obstacles, addressing noise-related misrecognition and movement delays, ensuring precise detection of static and dynamic obstacles.
Patent Information
- Application Number
- PCT/JP2023/012889
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-29
- Publication Date
- 2024-10-03
AI Technical Summary
Existing obstacle detection methods using depth sensors face challenges in accurately detecting obstacles due to noise from temporal fluctuations, particularly misrecognizing low obstacles as floor surfaces and dynamic obstacles' positions being delayed due to uniform smoothing techniques.
The system employs an image data acquisition unit, difference calculation unit, depth data acquisition unit, and depth smoothing processor to differentially smooth depth data based on past data, using image and depth data to determine obstacle presence with adaptive smoothing coefficients for dynamic and static obstacles.
This approach enables accurate detection of obstacles regardless of height or movement, improving detection accuracy for both static and dynamic obstacles even with low-accuracy depth sensors.
Smart Images

Figure JP2023012889_03102024_PF_FP_ABST
Abstract
Description
Obstacle detection device, system, method, and program
[0001] The present invention relates to an obstacle detection device, system, method, and program.
[0002] One method for detecting the position of an obstacle on a floor surface is to detect an obstacle on the floor surface using a distance sensor (see, for example, Patent Document 1). The method described in Patent Document 1 calculates the height of an observation point based on information about the observation point observed by the distance sensor, compares the calculated height of the observation point with a predetermined floor surface judgment value (floor surface judgment section) that represents the height of the floor surface, determines an observation point whose height and floor surface judgment value match as a floor surface observation point, and determines an observation point whose height and floor surface judgment value do not match as a non-floor surface observation point, maps the determined floor surface observation points and non-floor surface observation points on a grid map that is divided into a plurality of predetermined two-dimensional grids, and recognizes a group of grids on the grid map that relate to the non-floor surface observation points as obstacles to detect the position of the obstacle on the floor surface.
[0003] JP 2011-134234 A
[0004] Ryota Fuji, Yunhwa Huang, "Human Action Recognition Using Temporal Processing of Time-Series Skeleton Data," Proceedings of the 81st National Conference of Information Processing Society of Japan, 2019 (1), 165-166, 2019-02-28
[0005] The following analysis is provided by the present inventors.
[0006] However, depth data from a depth sensor such as a distance sensor contains a large amount of noise due to time fluctuations. Therefore, in the method of detecting an obstacle on a floor surface using the depth sensor described above, if the depth data obtained from the depth sensor is used as is, noise can cause the actual floor surface to be mistakenly recognized as an obstacle, the actual obstacle to be mistakenly recognized as the floor surface, or the actual floor surface or obstacle to be recognized as neither the floor surface nor the obstacle, resulting in many areas where the positions of the actual obstacle and floor surface cannot be correctly detected. In particular, low obstacles are often mistakenly recognized as the floor surface due to noise.
[0007] To avoid such misidentification, a possible approach to detecting obstacles on a floor surface using a depth sensor as described above is to apply a technique for temporally smoothing the depth data acquired from the depth sensor (see, for example, Non-Patent Document 1). According to a method for detecting obstacles on a floor surface using a depth sensor and temporal smoothing processing, temporal smoothing of the depth data can eliminate noise caused by time fluctuations, thereby enabling accurate detection of the position of static obstacles that are low in height and do not move. However, if the degree of temporal smoothing is uniformly large, for moving dynamic obstacles, the change in the height of the observation point accompanying the movement of the dynamic obstacle is also temporally smoothed. This results in the dynamic obstacle being recognized as existing at a position slightly earlier in time (past position) than its actual position at the current time, resulting in many areas where the actual position of the dynamic obstacle cannot be accurately detected. On the other hand, if the degree of temporal smoothing is uniformly small, the influence of noise caused by time fluctuations remains, resulting in many areas where the actual positions of objects (floor surface, dynamic obstacle, static obstacle) cannot be accurately detected.
[0008] A main object of the present invention is to provide an obstacle detection device, system, method, and program that can contribute to detecting an obstacle with high accuracy regardless of the height or movement of the obstacle.
[0009] The obstacle detection device relating to a first viewpoint includes an image data acquisition unit configured to acquire image data of an object present in a predetermined area; a difference calculation unit configured to calculate a difference in light or color features between the latest image data acquired by the image data acquisition unit and previous image data a predetermined time before the latest image data; a depth data acquisition unit configured to acquire depth data that detects the depth from the predetermined viewpoint to an observation point on the surface of an object present in the predetermined area; a depth smoothing processing unit configured to differentially smooth the depth in the latest depth data for each corresponding position using the difference calculated by the difference calculation unit and previous depth data from the latest depth data acquired by the depth data acquisition unit a predetermined time before the latest depth data; and an obstacle determination unit configured to determine whether or not an obstacle is present at each position by comparing the depth differentially smoothed by the depth smoothing processing unit with a predetermined first threshold for each corresponding position.
[0010] The obstacle detection system relating to the second viewpoint includes a depth sensor configured to detect the depth from itself to an observation point on the surface of an object present in a specified area and output depth data, an imaging device configured to capture an image of an object present in the specified area and output image data, and an obstacle detection device relating to the first viewpoint.
[0011] The obstacle detection method according to the third aspect includes the steps of: an obstacle detection device acquiring image data of an object present in a predetermined area; the obstacle detection device calculating a difference in light or color features between the acquired latest image data and previous image data a predetermined time before the latest image data; the obstacle detection device acquiring depth data that detects the depth from the predetermined viewpoint to an observation point on the surface of an object present in the predetermined area; the obstacle detection device differentially smoothing the depth in the latest depth data for each corresponding position using the calculated difference and previous depth data from the acquired latest depth data a predetermined time before; and the obstacle detection device comparing the differentially smoothed depth with a predetermined first threshold for each corresponding position to determine whether an obstacle is present at each position.
[0012] The program relating to the fourth viewpoint causes the obstacle detection device to perform the following processes: acquiring image data of an object present in a specified area; calculating the difference in light or color features between the acquired latest image data and past image data a specified time before the latest image data; acquiring depth data that detects the depth from the specified viewpoint to an observation point on the surface of an object present in the specified area; using the calculated difference and past depth data from the acquired latest depth data a specified time before the latest depth data, differentially smoothing the depth in the latest depth data for each corresponding position; and comparing the differentially smoothed depth with a predetermined first threshold for each corresponding position to determine whether an obstacle is present at each position.
[0013] The program can be recorded on a computer-readable storage medium. The storage medium can be a non-transient medium such as a semiconductor memory, a hard disk, a magnetic recording medium, or an optical recording medium. The present disclosure can also be embodied as a computer program product. The program is input to a computer device from an input device or an external device via a communication interface, stored in a storage device, and drives a processor according to predetermined steps or processes. The processing results, including intermediate states as needed, can be displayed at each stage on a display device, or the computer device can communicate with the outside world via the communication interface. For example, a computer device for this purpose typically includes a processor, a storage device, an input device, a communication interface, and, if necessary, a display device, all of which can be connected to each other via a bus.
[0014] The first to fourth aspects can contribute to detecting an obstacle with high accuracy regardless of the height or movement of the obstacle.
[0015] 1 is a block diagram schematically illustrating the configuration of an obstacle detection system according to a first embodiment. 2 is an image diagram schematically illustrating an example of a usage mode of the obstacle detection system according to the first embodiment. 3 is an image diagram of (A) latest image data, (B) latest image grid map, (C) previous image grid map, and (D) latest dynamic grid map, which are schematically illustrating changes in image data related to a moving obstacle in the obstacle detection system according to the first embodiment. 4 is an image diagram of (A) latest depth data, (B) latest depth grid map, (C) previous depth smoothed grid map, (D) latest dynamic grid map, and (E) latest depth smoothed grid map, which are schematically illustrating changes in depth data related to a moving obstacle in the obstacle detection system according to the first embodiment. 5 is an image diagram of (A) latest image data, (B) latest image grid map, (C) previous image grid map, and (D) latest dynamic grid map, which are schematically illustrating changes in image data related to a static obstacle in the obstacle detection system according to the first embodiment. 1 is an image diagram of (A) latest depth data, (B) latest depth grid map, (C) previous depth smoothed grid map, (D) latest dynamic grid map, and (E) latest depth smoothed grid map, which schematically show changes in depth data related to a static obstacle in the obstacle detection system according to embodiment 1. FIG. 1 is an image diagram of (A) actual movement of a dynamic obstacle, (B) a depth smoothed grid map of the comparative example, and (C) a depth smoothed grid map of the example, which schematically show differences in smoothing between the example and the comparative example. FIG. 2 is a flow chart diagram schematically showing the operation of an obstacle detection device in the obstacle detection system according to embodiment 1. FIG. 3 is a flow chart diagram schematically showing details of the operation of step A6 of FIG. 8 of the obstacle detection device in the obstacle detection system according to embodiment 1. FIG. 4 is a block diagram schematically showing the configuration of an obstacle detection device according to embodiment 2. FIG. 5 is a block diagram schematically showing the configuration of hardware resources.
[0016] Hereinafter, embodiments will be described with reference to the drawings. Note that, when reference numerals are used in this application, they are intended solely to facilitate understanding and are not intended to limit the present invention to the illustrated embodiments. Furthermore, the following embodiments are merely illustrative and do not limit the present invention. Furthermore, connecting lines between blocks in the drawings, etc., referred to in the following description, include both bidirectional and unidirectional lines. Unidirectional arrows are used to schematically indicate the flow of main signals (data) and do not exclude bidirectionality. Furthermore, although not explicitly shown, input and output ports exist at the input and output ends of each connecting line in the circuit diagrams, block diagrams, internal configuration diagrams, connection diagrams, etc., shown in this disclosure. The same applies to input / output interfaces. A program is executed via a computer device, which includes, for example, a processor, a storage device, an input device, a communication interface, and, if necessary, a display device. The computer device is configured to communicate with internal or external devices (including computers) via the communication interface, whether wired or wireless.
[0017] [Embodiment 1] An obstacle detection system according to embodiment 1 will be described with reference to the drawings. FIG. 1 is a block diagram schematically illustrating the configuration of the obstacle detection system according to embodiment 1. FIG. 2 is an image diagram schematically illustrating an example of a usage mode of the obstacle detection system according to embodiment 1. FIG. 3 is an image diagram of (A) latest image data, (B) latest image grid map, (C) previous image grid map, and (D) latest dynamic grid map, which schematically illustrate changes in image data related to a moving obstacle in the obstacle detection system according to embodiment 1. FIG. 4 is an image diagram of (A) latest depth data, (B) latest depth grid map, (C) previous depth smoothed grid map, (D) latest dynamic grid map, and (E) latest depth smoothed grid map, which schematically illustrate changes in depth data related to a moving obstacle in the obstacle detection system according to embodiment 1. FIG. 5 is an image diagram of (A) latest image data, (B) latest image grid map, (C) previous image grid map, and (D) latest dynamic grid map, which schematically illustrate changes in image data related to a static obstacle in the obstacle detection system according to embodiment 1. 6 is an image diagram of (A) latest depth data, (B) latest depth grid map, (C) previous depth smoothing grid map, (D) latest dynamic grid map, and (E) latest depth smoothing grid map, which schematically shows changes in depth data related to a static obstacle in the obstacle detection system according to embodiment 1. FIG. 7 is an image diagram of (A) actual movement of a dynamic obstacle, (B) depth smoothing grid map of the comparative example, and (C) depth smoothing grid map of the example, which schematically shows the difference in smoothing between the example and the comparative example.
[0018] The obstacle detection system 1 is a system that detects the position of an obstacle (e.g., a moving obstacle 6, a static obstacle 7) on a floor surface 3 using a depth sensor 40 and an imaging device 50 installed at a predetermined position (e.g., a ceiling 4) (see FIGS. 1 and 2). The obstacle detection system 1 includes an obstacle detection device 10, the depth sensor 40, and the imaging device 50.
[0019] The obstacle detection device 10 detects the position of an obstacle (a moving obstacle 6, a stationary obstacle 7) on a floor surface 3 using depth data and image data acquired from a depth sensor 40 and an imaging device 50 (see FIGS. 1 and 2 ). Here, the depth data is three-dimensional data that expresses the distance from the depth sensor 40 to an observation point on the surface of an object (including the obstacle and the floor) in terms of depth. Examples of the depth data include depth image data, which is an image of distance data, and point cloud data, which is a collection of three-dimensional observation points (coordinate points) on the surface of the object. The image data is data that expresses an object photographed by the imaging device 50 as a two-dimensional image. Examples of the image data include optical image data, grayscale image data, RGB (Red-Green-Blue) image data, infrared image data, ultraviolet image data, and X-ray image data. The depth data and image data may have the same resolution (e.g., 1280 × 720) and the same aspect ratio (e.g., 16:9). The obstacle detection device 10 is a device equipped with a computer function, such as a server or a personal computer. The obstacle detection device 10 is communicably connected to the depth sensor 40 and the imaging device 50 via a network (not shown). By executing a predetermined program stored therein, the obstacle detection device 10 can virtually be configured to include an image data acquisition unit 11, an image grid division unit 12, an image grid map storage unit 13, a difference calculation unit 14, a dynamic grid detection unit 15, a depth data acquisition unit 21, a depth grid division unit 22, a depth smoothing processing unit 31, a depth smoothing grid map storage unit 32, an obstacle determination unit 33, a noise removal unit 34, and a detection frame addition unit 35.
[0020] The image data acquisition unit 11 is a functional unit that acquires the latest image data (latest image data; see, for example, FIGS. 3A and 5A) from the imaging device 50 (see FIG. 1). The image data acquisition unit 11 can acquire the latest image data in synchronization with the acquisition of the latest depth data by the depth data acquisition unit 21. The image data acquisition unit 11 outputs the acquired image data to the image grid division unit 12.
[0021] The image grid division unit 12 is a functional unit that divides the image data from the image data acquisition unit 11 into multiple two-dimensional grids to create an image grid map (see, for example, FIGS. 3B and 5B) (see FIG. 1). When creating the image grid map, the image grid division unit 12 selects, for each grid, a representative value (e.g., maximum, median, or minimum value) of a light or color feature (e.g., brightness, hue, value, saturation, illuminance, intensity, or radiation amount) within the grid as the feature of the grid to create the image grid map. The image grid division unit 12 outputs the created image grid map to the image grid map storage unit 13 and the difference calculation unit 14. Note that the image grid division unit 12 may not perform division if the image data and the depth data have the same low resolution and aspect ratio.
[0022] The image grid map storage unit 13 is a functional unit that stores the image grid map from the image grid division unit 12 (see FIG. 1). When the latest image grid map (latest image grid map; see, for example, FIGS. 3B and 5B) is input from the image grid division unit 12, the image grid map storage unit 13 outputs the image grid map (previous image grid map; see, for example, FIGS. 3C and 5C) immediately before the latest image grid map (which may be a predetermined time before; the same applies below) to the difference calculation unit 14. When the image grid map storage unit 13 stores a new latest image grid map, it may erase the previous image grid map that is already stored. Note that "previous" here means one frame before the latest, but may also mean several frames before the latest in cases where frames advance in a short period of time, such as in a high-speed camera. "Predetermined time before" includes "previous."
[0023] The difference calculation unit 14 is a functional unit that compares the latest image grid map from the image grid division unit 12 with the immediately preceding image grid map from the image grid map storage unit 13 to calculate, for each grid, the difference (absolute value) of the feature amount (light or color feature amount) of the grid at the corresponding position, thereby creating a difference grid map (see FIG. 1 ). The difference calculation unit 14 outputs the created difference grid map to the dynamic grid detection unit 15.
[0024] The dynamic grid detection unit 15 is a functional unit that detects grids (dynamic grids) in which the difference between each grid in the difference grid map from the difference calculation unit 14 is equal to or greater than a preset threshold, and creates a dynamic grid map (see, for example, FIGS. 3D and 5D) (see FIG. 1). The dynamic grid detection unit 15 outputs the created dynamic grid map to the depth smoothing processing unit 31.
[0025] The depth data acquisition unit 21 is a functional unit that acquires the latest depth data (latest depth data; see, for example, FIGS. 4A and 6A) from the depth sensor 40 (see FIG. 1). The depth data acquisition unit 21 can acquire the latest depth data in synchronization with the acquisition of the latest image data by the image data acquisition unit 11. The depth data acquisition unit 21 outputs the acquired depth data to the depth grid division unit 22.
[0026] The depth grid division unit 22 is a functional unit that divides the depth data from the depth data acquisition unit 21 into multiple two-dimensional grids to create a depth grid map (see, for example, FIGS. 4B and 6B) (see FIG. 1). The size of the grids divided by the depth grid division unit 22 can be the same as the size of the grids divided by the image grid division unit 12. Note that the depth grid division unit 22 may not divide the depth data if the image data and the depth data have a common low resolution and aspect ratio. When creating the depth grid map, the depth data acquisition unit 21 selects a representative value (e.g., maximum value, median value, minimum value) of the depth within each grid as a feature of the grid to create the depth grid map. The depth grid division unit 22 outputs the created depth grid map to the depth smoothing processing unit 31.
[0027] The depth smoothing processing unit 31 stores the latest dynamic grid map (see, for example, FIG. 4D and FIG. 6D ) from the dynamic grid detection unit 15 and the immediately preceding depth smoothing grid map (see, for example, FIG. 4D and FIG. 6D ) from the depth smoothing grid map storage unit 32. n, see, for example, FIG. 4C and FIG. 6C), the latest depth grid map (latest depth grid map; z new , see, for example, FIG. 4B and FIG. 6B), the depths of the grids are differentially smoothed to obtain the latest depth smoothed grid map (latest depth smoothed grid map; z n+1 , see FIG. 1 ). The depth smoothing processing unit 31 determines, for each grid, whether or not a grid (position) to be smoothed in the latest depth grid map is a dynamic grid based on the latest dynamic grid map. When a grid to be smoothed in the latest depth grid map is a dynamic grid, the depth smoothing processing unit 31 performs a smoothing process using a predetermined formula (see, for example, Formula 1), a smoothing coefficient for the dynamic grid (first smoothing coefficient; for example, α=0.3), the latest depth grid map (z new ), and the previous depth smoothed grid map (z n When the grid to be smoothed in the latest depth grid map is a static grid (non-dynamic grid), the depth smoothing processing unit 31 smooths the depth of the grid to be smoothed using a predetermined formula (for example, see Formula 1), a smoothing coefficient for the static grid (second smoothing coefficient; for example, α=0.99), the latest depth grid map (z new ), and the previous depth smoothed grid map (z n ) to smooth the depth of the grid to be smoothed. The depth smoothing processing unit 31 generates the latest depth-smoothed grid map (z n+1 The depth smoothing processing unit 31 creates the latest depth smoothing grid map (z n+1) to the depth smoothing grid map storage unit 32 and the obstacle determination unit 33. The smoothing coefficients for the dynamic grid and the static grid are greater than or equal to 0 and less than 1. The smoothing coefficient for the dynamic grid is smaller than the smoothing coefficient for the static grid. The smoothing coefficients for the dynamic grid and the static grid may be fixed values or may vary depending on changes in the environment (e.g., changes in overall light or color features over time). The smoothing coefficient for the dynamic grid is set to be closer to 0 as the depth data accuracy increases, and is set to be farther from 0 as the depth data accuracy decreases. Note that although the smoothing coefficient has two levels, one for the dynamic grid and one for the static grid, it may also have three or more levels. For example, in a situation where shadows flicker, only the brightness may change and the color may not change. Therefore, four levels of smoothing coefficients may be used, such as a smoothing coefficient when neither brightness nor color changes, a smoothing coefficient when only brightness changes, a smoothing coefficient when only color changes, and a smoothing coefficient when both brightness and color change.
[0028] [Formula 1]
[0029] In addition, when the smoothing coefficient for the dynamic grid and the smoothing coefficient for the static grid are the same, the larger the smoothing coefficient (the closer α is to 1), the more accurately the floor 3 and static obstacle 7 can be detected, but the actual position (the most recent position) of the dynamic obstacle 6 becomes less likely to be reflected, and the dynamic obstacle 6 will be recognized as being in a position further in the past, making it impossible to detect the correct position of the dynamic obstacle 6 (see FIG. 7B). In addition, when the smoothing coefficient for the dynamic grid and the smoothing coefficient for the static grid are the same, the smaller the smoothing coefficient (the closer α is to 0), the more susceptible to the influence of noise due to time fluctuations in the depth data, and the greater the number of areas where objects (floor 3, dynamic obstacle 6, static obstacle 7) cannot be detected correctly.
[0030] The depth smoothing grid map holding unit 32 is a functional unit that holds the depth smoothing grid map from the depth smoothing processing unit 31 (see FIG. 1). The depth smoothing grid map holding unit 32 holds the latest depth smoothing grid map (latest depth smoothing grid map; z n+1 4(E) and 6(E)) is input, the depth smoothing grid map immediately before the latest depth smoothing grid map (the previous depth smoothing grid map; z n 4(C) and 6(C)) to the depth smoothing processing unit 31. When the depth smoothing grid map storage unit 32 stores a new latest depth smoothing grid map, the depth smoothing grid map storage unit 32 may erase the previous depth smoothing grid map that has already been stored.
[0031] The obstacle determination unit 33 is a functional unit that determines whether an obstacle exists in each grid by comparing the depth (distinctly smoothed depth) of each grid in the depth-smoothing grid map from the depth-smoothing processing unit 31 with a preset threshold (a floor depth reference value at the corresponding grid position) and creates an obstacle grid map (see FIG. 1 ). The obstacle determination unit 33 determines a grid whose depth in the depth-smoothing grid map matches the floor depth reference value as a floor, and determines a grid whose depth does not match as an obstacle. The obstacle determination unit 33 creates an obstacle grid map by adding an obstacle-related flag (e.g., colored) to grids determined to be obstacles and adding a floor-related flag (e.g., colorless) to grids determined to be floors. The obstacle determination unit 33 outputs the created obstacle grid map to the noise removal unit 34.
[0032] The noise removal unit 34 is a functional unit that removes noise from the obstacle grid map from the obstacle determination unit 33 (see FIG. 1 ). Examples of noise removal methods that can be used include opening processing, which performs contraction and expansion processing on the image related to the obstacle grid map to remove noise, moving average filtering, which replaces grid values with the average value of surrounding grids, and median filtering, which replaces grid values with the median value of surrounding grids. The noise removal unit 34 outputs the obstacle grid map from which noise has been removed to the detection frame adding unit 35. If noise removal is not necessary, the noise removal unit 34 may output the obstacle grid map from the obstacle determination unit 33 to the detection frame adding unit 35 without removing noise.
[0033] The detection frame adding unit 35 is a functional unit that adds detection frames surrounding obstacles to the obstacle grid map from the noise removal unit 34 (or the obstacle determination unit 33) and outputs the map to the outside (see FIG. 1 ). The detection frame adding unit 35 clusters the grids related to obstacles based on the grids related to the obstacles in the obstacle grid map, and adds detection frames surrounding the clustered grids. The obstacle grid map with detection frames output from the detection frame adding unit 35 can be used, for example, in a system that controls a robot that moves on a floor surface, when calculating a path that avoids the position of an obstacle. If detection frames are not necessary, the detection frame adding unit 35 may output the obstacle grid map from the noise removal unit 34 to the outside without adding detection frames.
[0034] The depth sensor 40 is a sensor that detects the depth from a predetermined viewpoint (the depth sensor 40 itself) to an observation point on the surface of an object (floor surface 3, dynamic obstacle 6, static obstacle 7) present in a predetermined area (see FIG. 1 ). The depth sensor 40 can be installed in a predetermined position (e.g., the ceiling 4, a high position on a wall, etc.) that allows a bird's-eye view of the floor surface 3. Examples of the depth sensor 40 that can be used include a compound eye camera, a three-dimensional camera, a three-dimensional laser scanner, a light detection and ranging (LIDAR), and a time-of-flight (ToF) sensor. The depth sensor 40 outputs depth data related to the detected depth to the obstacle detection device 10.
[0035] The imaging device 50 is a device that captures images of objects (floor surface 3, dynamic obstacles 6, and static obstacles 7) present in a predetermined area (see FIG. 1 ). The imaging device 50 can be installed in a predetermined position (e.g., on the ceiling 4, high on a wall, etc.) that allows a bird's-eye view of the floor surface 3. The imaging device 50 can be installed near the depth sensor 40. The imaging device 50 may be any device that can capture changes in light or color characteristics (brightness, chromaticity, hue, brightness, saturation, illuminance, intensity, radiation, etc.), and may be, for example, an optical camera, a grayscale camera, an RGB camera, an infrared camera, an ultraviolet camera, an X-ray camera, etc. The imaging device 50 outputs the captured image data to the obstacle detection device 10.
[0036] Next, the operation of the obstacle detection device in the obstacle detection system according to the first embodiment will be described with reference to the drawings. Fig. 8 is a flow chart diagram that schematically shows the operation of the obstacle detection device in the obstacle detection system according to the first embodiment. Please refer to Fig. 1 for the configuration of the obstacle detection system.
[0037] First, the image data acquisition unit 11 of the obstacle detection device 10 acquires the latest image data from the imaging device 50, and the depth data acquisition unit 21 of the obstacle detection device 10 acquires the latest depth data from the depth sensor 40 (step A1).
[0038] Next, the image grid division unit 12 of the obstacle detection device 10 divides the image data from the image data acquisition unit 11 into multiple two-dimensional grids to create an image grid map, and the depth grid division unit 22 of the obstacle detection device 10 divides the depth data from the depth data acquisition unit 21 into multiple two-dimensional grids to create a depth grid map (step A2).
[0039] Next, the image grid map storage unit 13 of the obstacle detection device 10 stores the image grid map from the image grid division unit 12 (step A3).
[0040] Next, the difference calculation unit 14 of the obstacle detection device 10 compares the latest image grid map from the image grid division unit 12 with the immediately preceding image grid map from the image grid map storage unit 13 to calculate, for each grid, the difference (absolute value) between the feature amounts (light or color feature amounts) of the grids at corresponding positions, thereby creating a difference grid map (step A4).
[0041] Next, the dynamic grid detection unit 15 of the obstacle detection device 10 detects grids (dynamic grids) whose differences are equal to or greater than a preset threshold based on the differential grid map from the difference calculation unit 14, and creates a dynamic grid map (step A5).
[0042] Next, the depth smoothing processor 31 of the obstacle detection device 10 creates a latest depth smoothed grid map by differentially smoothing the latest depth grid map from the depth grid divider 22 for each grid based on the latest dynamic grid map from the dynamic grid detector 15 and the previous depth smoothed grid map from the depth smoothing grid map holder 32 (step A6). Details of the operation of step A6 will be described later (see FIG. 9).
[0043] Next, the depth smoothing grid map storage unit 32 of the obstacle detection device 10 stores the depth smoothing grid map from the depth smoothing processing unit 31 (step A7).
[0044] Next, the obstacle determination unit 33 of the obstacle detection device 10 compares the depth of each grid in the depth-smoothing grid map from the depth-smoothing processing unit 31 with a preset threshold value to determine whether or not an obstacle exists in each grid, and creates an obstacle grid map (step A8).
[0045] Next, the noise removal unit 34 of the obstacle detection device 10 removes noise from the obstacle grid map sent from the obstacle determination unit 33 (step A9).
[0046] Next, the detection frame adding unit 35 of the obstacle detection device 10 adds a detection frame surrounding the obstacle to the obstacle grid map from the noise removal unit 34 and outputs the map to the outside (step A10), after which the process ends and returns to step A1, and steps A1 to A10 are repeated.
[0047] The operation of step A6 of the obstacle detection device in the obstacle detection system according to the first embodiment will be described in detail with reference to the drawings. Fig. 9 is a flow chart diagram that schematically shows the details of the operation of step A6 of Fig. 8 of the obstacle detection device in the obstacle detection system according to the first embodiment. Please refer to Fig. 1 for the configuration of the obstacle detection system.
[0048] After step A5 in FIG. 8, the depth smoothing processing unit 31 of the obstacle detection device 10 acquires the latest dynamic grid map from the dynamic grid detection unit 15, the latest depth grid map from the depth grid division unit 22, and the previous depth smoothing grid map from the depth smoothing grid map storage unit 32 (step B1).
[0049] After step B1, or if depth smoothing of all grids has not been completed (NO in step B5), the depth smoothing processing unit 31 determines, for each grid, based on the latest dynamic grid map, whether the grid to be smoothed in the latest depth grid map is a dynamic grid (step B2).
[0050] If the grid to be smoothed in the latest depth grid map is a dynamic grid (YES in step B2), the depth smoothing processing unit 31 smooths the depth of the grid to be smoothed using a predetermined formula, a smoothing coefficient for the dynamic grid (a smoothing coefficient smaller than the smoothing coefficient for the static grid), the latest depth grid map, and the previous depth smoothing grid map (step B3).
[0051] If the grid to be smoothed in the latest depth grid map is a static grid (non-dynamic grid) (NO in step B2), the depth smoothing processing unit 31 smooths the depth of the grid to be smoothed using a predetermined formula, a smoothing coefficient for the static grid (a smoothing coefficient larger than the smoothing coefficient for the dynamic grid), the latest depth grid map, and the previous depth smoothing grid map (step B4).
[0052] After step B3 or B4, the depth smoothing processor 31 determines whether or not the depth smoothing of all grids has been completed (step B5). If the depth smoothing of all grids has not been completed (NO in step B5), the process returns to step B2.
[0053] If the depth smoothing of all grids has been completed (YES in step B5), the depth smoothing processing unit 31 creates the latest depth smoothed grid map in which the depth of each grid has been smoothed in step B3 or step B4 (step B6), and then proceeds to step A7 in Figure 8.
[0054] According to the first embodiment, the depth of the grid to be smoothed is differentially smoothed depending on whether the obstacle is a moving obstacle or a static obstacle, which contributes to accurate obstacle detection regardless of the height or movement of the obstacle. In particular, high-precision detection is possible even if the accuracy of the depth sensor 40 is low.
[0055] [Embodiment 2] An obstacle detection device according to embodiment 2 will be described with reference to the drawings. Fig. 10 is a block diagram showing a schematic configuration of the obstacle detection device according to embodiment 2.
[0056] The obstacle detection device 10 is a device for detecting obstacles and includes an image data acquisition unit 11, a difference calculation unit 14, a depth data acquisition unit 21, a depth smoothing processing unit 31, and an obstacle determination unit 33.
[0057] The image data acquisition unit 11 is configured to acquire image data of an object present in a predetermined area. The difference calculation unit 14 is configured to calculate a difference in light or color feature amounts between the latest image data acquired by the image data acquisition unit 11 and previous image data a predetermined time before the latest image data. The depth data acquisition unit 21 is configured to acquire depth data that detects the depth from a predetermined viewpoint to an observation point on the surface of an object present in a predetermined area. The depth smoothing processing unit 31 is configured to differentially smooth the depth in the latest depth data for each corresponding position using the difference calculated by the difference calculation unit 14 and previous depth data a predetermined time before the latest depth data acquired by the depth data acquisition unit 21. The obstacle determination unit 33 is configured to determine whether an obstacle is present at each corresponding position by comparing the depth differentially smoothed by the depth smoothing processing unit 31 with a predetermined first threshold for each corresponding position.
[0058] According to the second embodiment, the depth of the position of the object to be smoothed is differentially smoothed according to the difference in the light or color features between the latest image data and the immediately preceding image data, which can contribute to accurate detection of obstacles regardless of the height or movement of the obstacles.
[0059] The obstacle detection device according to the first and second embodiments can be configured using so-called hardware resources (information processing devices, computers), and may use a device having the configuration shown in Fig. 11. For example, the hardware resources 100 include a processor 101, a memory 102, a network interface 103, and the like, which are interconnected by an internal bus 104.
[0060] 11 is not intended to limit the hardware configuration of the hardware resource 100. The hardware resource 100 may include hardware (e.g., an input / output interface) that is not shown. Furthermore, the number of units, such as the processor 101, included in the device is not intended to be limited to the example shown in FIG. 11 , and for example, multiple processors 101 may be included in the hardware resource 100. The processor 101 may be, for example, a central processing unit (CPU), a microprocessor unit (MPU), a graphics processing unit (GPU), or the like.
[0061] The memory 102 may be, for example, a random access memory (RAM), a read only memory (ROM), a hard disk drive (HDD), or a solid state drive (SSD).
[0062] The network interface 103 may be, for example, a LAN (Local Area Network) card, a network adapter, a network interface card, or the like.
[0063] The functions of the hardware resource 100 are realized by the processing modules described above. The processing modules are realized, for example, by the processor 101 executing a program stored in the memory 102. The programs can be updated by downloading them over a network or by using a storage medium that stores the programs. Furthermore, the processing modules may be realized by semiconductor chips. In other words, it is sufficient that the functions performed by the processing modules can be realized by executing software on some kind of hardware.
[0064] Some or all of the above embodiments may be described as, but are not limited to, the following supplementary notes.
[0065] [Supplementary Note 1] An obstacle detection device comprising: an image data acquisition unit configured to acquire image data of an object present in a predetermined area; a difference calculation unit configured to calculate a difference in light or color features between the latest image data acquired by the image data acquisition unit and previous image data a predetermined time before the latest image data; a depth data acquisition unit configured to acquire depth data that detects the depth from a predetermined viewpoint to an observation point on the surface of an object present in the predetermined area; a depth smoothing processing unit configured to differentially smooth the depth in the latest depth data for each corresponding position using the difference calculated by the difference calculation unit and previous depth data from the latest depth data acquired by the depth data acquisition unit a predetermined time before; and an obstacle determination unit configured to determine whether or not an obstacle is present at each position by comparing the depth differentially smoothed by the depth smoothing processing unit with a predetermined first threshold for each corresponding position. [Supplementary Note 2] The obstacle detection device according to Supplementary Note 1, wherein the depth smoothing processing unit is configured to smooth the depth of the position of the smoothing target using a first smoothing coefficient when the difference of the position of the smoothing target in the latest depth data is equal to or greater than a predetermined second threshold, and to smooth the depth of the position of the smoothing target using a second smoothing coefficient smaller than the first smoothing coefficient when the difference of the position of the smoothing target in the latest depth data is less than the second threshold. [Supplementary Note 3] The obstacle detection device according to Supplementary Note 2, wherein the first smoothing coefficient and the second smoothing coefficient are fixed values or change according to changes in the environment.[Supplementary Note 4] An image grid division unit configured to divide the image data from the image data acquisition unit into a plurality of two-dimensional grids to create an image grid map; a dynamic grid detection unit configured to detect dynamic grids where the difference from the difference calculation unit is equal to or greater than the second threshold and create a dynamic grid map; and a depth grid division unit configured to divide the depth data from the depth data acquisition unit into a plurality of two-dimensional grids to create a depth grid map, wherein the latest image data used in the difference calculation unit is the latest image grid map from the image grid division unit, the previous image data used in the difference calculation unit is a previous image grid map from the latest image grid map before the predetermined time, the difference used in the depth smoothing processing unit is the dynamic grid map, the latest depth data used in the depth smoothing processing unit is the latest depth grid map from the depth grid division unit, and the previous depth data used in the depth smoothing processing unit is a previous depth grid map from the latest depth grid map before the predetermined time, The obstacle detection device according to Supplementary Note 2 or 3, wherein the depth smoothing processing unit is configured to differentially smooth the depth in the latest depth grid map for each corresponding grid using the dynamic grid map and the past depth grid map. [Supplementary Note 5] The obstacle detection device according to Supplementary Note 4, further comprising an image grid map storage unit configured to store the image grid map from the image grid division unit, and the past image data used in the difference calculation unit is the image grid map stored in the image grid map storage unit.[Supplementary Note 6] The obstacle detection device according to Supplementary Note 4 or 5, wherein the depth smoothing processing unit is configured to create a depth smoothed grid map by differentially smoothing the depth in the latest depth grid map for each corresponding grid, the obstacle detection device includes a depth smoothing grid map holding unit that holds the depth smoothed grid map created by the depth smoothing processing unit, and the past depth grid map used in the depth smoothing processing unit is the depth smoothed grid map held in the depth smoothing grid map holding unit. [Supplementary Note 7] The obstacle detection device according to any one of Supplementary Notes 1 to 6, wherein the obstacle determination unit is configured to determine whether or not an obstacle exists at each position and create an obstacle map. [Supplementary Note 8] The obstacle detection device according to Supplementary Note 7, wherein the obstacle detection device includes a noise removal unit that is configured to remove noise in the obstacle map from the obstacle determination unit. [Supplementary Note 9] The obstacle detection device according to Supplementary Note 8, comprising a detection frame adding unit configured to add a detection frame surrounding an obstacle to the obstacle map from the obstacle determining unit or the noise removing unit. [Supplementary Note 10] The obstacle detection device according to any one of Supplements 1 to 9, wherein the depth data acquisition unit is configured to acquire the depth data in synchronization with acquisition of the image data by the image data acquisition unit. [Supplementary Note 11] The obstacle detection device according to any one of Supplements 1 to 10, wherein the depth data and the image data have the same resolution and aspect ratio. [Supplementary Note 12] The obstacle detection device according to any one of Supplements 4 to 6, wherein the size of the grid divided by the depth grid dividing unit is the same as the size of the grid divided by the image grid dividing unit. [Supplementary Note 13] The obstacle detection device described in any one of Supplementary Notes 4 to 6, wherein the light or color feature within a grid in the image grid map is the maximum value of the light or color feature within that grid in the image data, and the depth within a grid in the depth grid map is the minimum value of the depth within that grid in the depth data.[Supplementary Note 14] An obstacle detection system comprising: a depth sensor configured to detect the depth from itself to an observation point on the surface of an object present in a predetermined area and output depth data; an imaging device configured to capture an image of an object present in the predetermined area and output image data; and an obstacle detection device according to any one of Supplementary Notes 1 to 13. [Supplementary Note 15] An obstacle detection method including the steps of: an obstacle detection device acquiring image data of an object present in a predetermined area; a step by the obstacle detection device calculating a difference in light or color features between the acquired latest image data and previous image data a predetermined time before the latest image data; a step by the obstacle detection device acquiring depth data that detects the depth from a predetermined viewpoint to an observation point on the surface of an object present in the predetermined area; a step by the obstacle detection device differentially smoothing the depth in the latest depth data for each corresponding position using the calculated difference and previous depth data from the acquired latest depth data a predetermined time before; and a step by the obstacle detection device comparing the differentially smoothed depth with a predetermined first threshold for each corresponding position to determine whether or not an obstacle is present at each position. [Supplementary Note 16] A program that causes an obstacle detection device to execute the following steps: a process of acquiring image data of an object present in a predetermined area; a process of calculating a difference in light or color features between the acquired latest image data and previous image data a predetermined time before the latest image data; a process of acquiring depth data that detects the depth from a predetermined viewpoint to an observation point on the surface of an object present in the predetermined area; a process of differentially smoothing the depth in the latest depth data for each corresponding position using the calculated difference and previous depth data from the acquired latest depth data a predetermined time before; and a process of determining whether or not an obstacle is present at each position by comparing the differentially smoothed depth with a predetermined first threshold for each corresponding position.
[0066] The disclosures of the above-mentioned patent and non-patent documents are incorporated herein by reference and may be used as the basis or part of the present invention, as necessary. Modifications and adjustments of the embodiments and examples are possible within the scope of the entire disclosure of the present invention (including the claims and drawings), and further based on the basic technical concepts thereof. Furthermore, various combinations and selections (or non-selections, as necessary) of the various disclosed elements (including each element of each claim, each element of each embodiment or example, each element of each drawing, etc.) are possible within the scope of the entire disclosure of the present invention. In other words, the present invention naturally includes various modifications and alterations that would be possible by a person skilled in the art in accordance with the entire disclosure and technical concepts, including the claims and drawings. Furthermore, with regard to the numerical values and numerical ranges described in this application, any intermediate values, lower values, and smaller ranges are deemed to be included, even if not explicitly stated. Furthermore, the disclosures of the above-cited documents, when used in part or in whole in combination with the disclosures herein as part of the disclosure of the present invention, are also deemed to be included in (belong to) the disclosures of this application, in accordance with the spirit of the present invention.
[0067] REFERENCE SIGNS LIST 1 Obstacle detection system 3 Floor 4 Ceiling 6 Dynamic obstacle 7 Static obstacle 10 Obstacle detection device 11 Image data acquisition unit 12 Image grid division unit 13 Image grid map storage unit 14 Difference calculation unit 15 Dynamic grid detection unit 21 Depth data acquisition unit 22 Depth grid division unit 31 Depth smoothing processing unit 32 Depth smoothing grid map storage unit 33 Obstacle determination unit 34 Noise removal unit 35 Detection frame addition unit 40 Depth sensor 50 Imaging device 100 Hardware resources 101 Processor 102 Memory 103 Network interface 104 Internal bus
Claims
1. An obstacle detection device comprising: an image data acquisition unit configured to acquire image data of an object present in a specified area; a difference calculation unit configured to calculate a difference in light or color features between latest image data acquired by the image data acquisition unit and previous image data a specified time before the latest image data; a depth data acquisition unit configured to acquire depth data detecting a depth from a specified viewpoint to an observation point on the surface of an object present in the specified area; a depth smoothing processing unit configured to differentially smooth the depth in the latest depth data for each corresponding position using the difference calculated by the difference calculation unit and the previous depth data from the specified time before the latest depth data acquired by the depth data acquisition unit; and an obstacle determination unit configured to determine whether or not an obstacle exists at each position by comparing the depth differentially smoothed by the depth smoothing processing unit with a predetermined first threshold for each corresponding position.
2. The obstacle detection device of claim 1, wherein the depth smoothing processing unit is configured to smooth the depth of the position of the smoothing target using a first smoothing coefficient when the difference of the position of the smoothing target in the latest depth data is equal to or greater than a predetermined second threshold, and to smooth the depth of the position of the smoothing target using a second smoothing coefficient smaller than the first smoothing coefficient when the difference of the position of the smoothing target in the latest depth data is less than the second threshold.
3. The obstacle detection device according to claim 2, wherein the first smoothing coefficient and the second smoothing coefficient are fixed values or change according to changes in the environment.
4. An image grid division unit configured to divide the image data from the image data acquisition unit into a plurality of two-dimensional grids to create an image grid map; a dynamic grid detection unit configured to detect dynamic grids in which the difference from the difference calculation unit is equal to or greater than the second threshold value and create a dynamic grid map; and a depth grid division unit configured to divide the depth data from the depth data acquisition unit into a plurality of two-dimensional grids to create a depth grid map, wherein the latest image data used in the difference calculation unit is the latest image grid map from the image grid division unit, the past image data used in the difference calculation unit is a past image grid map from the latest image grid map, the predetermined time before, the difference used in the depth smoothing processing unit is the dynamic grid map, the latest depth data used in the depth smoothing processing unit is the latest depth grid map from the depth grid division unit, and the past depth data used in the depth smoothing processing unit is a past depth grid map from the latest depth grid map, The obstacle detection device according to claim 2 , wherein the depth smoothing processor is configured to differentially smooth the depth in the latest depth grid map for each corresponding grid using the dynamic grid map and the past depth grid map.
5. An obstacle detection device as described in claim 4, further comprising an image grid map holding unit configured to hold the image grid map from the image grid division unit, and the past image data used in the difference calculation unit is the image grid map held in the image grid map holding unit.
6. The obstacle detection device of claim 4, wherein the depth smoothing processing unit is configured to differentially smooth the depth in the latest depth grid map for each corresponding grid to create a depth smoothed grid map, the obstacle detection device includes a depth smoothing grid map storage unit that stores the depth smoothed grid map created by the depth smoothing processing unit, and the past depth grid map used by the depth smoothing processing unit is the depth smoothed grid map stored in the depth smoothing grid map storage unit.
7. The obstacle detection device according to claim 1, wherein the obstacle determining section is configured to determine whether or not an obstacle exists at each position and create an obstacle map.
8. An obstacle detection system comprising: a depth sensor configured to detect the depth from the sensor itself to an observation point on the surface of an object present in a specified area and output depth data; an imaging device configured to image an object present in the specified area and output image data; and an obstacle detection device according to any one of claims 1 to 7.
9. An obstacle detection method comprising: a step in which an obstacle detection device acquires image data of an object present in a specified area; a step in which the obstacle detection device calculates a difference in light or color features between the acquired latest image data and previous image data a specified time before the latest image data; a step in which the obstacle detection device acquires depth data detecting the depth from a specified viewpoint to an observation point on the surface of an object present in the specified area; a step in which the obstacle detection device differentially smoothes the depth in the latest depth data for each corresponding position using the calculated difference and previous depth data from the specified time before the acquired latest depth data; and a step in which the obstacle detection device determines whether or not an obstacle is present at each position by comparing the differentially smoothed depth with a predetermined first threshold for each corresponding position.
10. A program that causes an obstacle detection device to execute the following processes: acquiring image data capturing an object present in a specified area; calculating the difference in light or color features between the acquired latest image data and previous image data taken a specified time before the latest image data; acquiring depth data detecting the depth from a specified viewpoint to an observation point on the surface of an object present in the specified area; using the calculated difference and the previous depth data taken a specified time before the acquired latest depth data, differentially smoothing the depth in the latest depth data for each corresponding position; and determining whether or not an obstacle exists at each position by comparing the differentially smoothed depth with a predetermined first threshold for each corresponding position.
Citation Information
Patent Citations
Image processing apparatus, image processing method, program, and display device
JP2011133683A
Movable area extracting device, movable area extracting system, movable area extracting method, and program
JP2011134234A
Ranging device and ranging method
JP2021081290A
Cited By
Obstacle avoidance method and device
CN119126811A
