Method and system for detecting obstacle elements using a visual aid - Patents.com

The method enhances obstacle detection for individuals with low vision by using a distance sensor to correct orientation and segment maps into floor, sidewall, and obstacle areas, improving accuracy and reducing false positives.

JP2024535978AInactive Publication Date: 2024-10-04ビエル グラシズエスエル
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
JP2024501127
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2021-07-07
Publication Date
2024-10-04
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing visual aids for individuals with low vision are not accurate enough and generate too many false positives when detecting obstacles, limiting their mobility and independence.

Method used

A method using a distance sensor mounted on a wearable device to obtain a normal map, apply orientation correction, and segment the map into floor, sidewall, and obstacle areas, employing various sensors like ToF, modulated light scanners, and stereoscopic sensors to enhance accuracy.

Benefits of technology

The method provides a more reliable and robust detection of obstacles, reducing errors due to head movement and improving mobility for individuals with low vision by accurately segmenting different environmental features.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024535978000001_ABST
    Figure 2024535978000001_ABST
Patent Text Reader

Abstract

A method and system for detecting obstacle elements is presented in the present disclosure, where the detection is performed using a visual aid device, the device comprising a distance sensor, the sensor being mounted on a wearable device worn by a user. Some embodiments of the detection method and system allow further detection of different types of obstacles in order to map them and signal them to a user with low vision.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] Cross-reference to related applications This application claims the benefit of European Patent Application No. 20382609.4, filed July 7, 2020. [Background technology]

[0002] Low vision is a visual impairment that often prevents people from performing daily activities. There are various causes that induce low vision, such as diabetic retinopathy, pigmentary retinopathy or glaucoma. Any of these or other similar or related diseases that induce low vision can affect the user's vision and can appear alone or in combination. For example, a reduction in the visual field can affect, among others, central vision, peripheral vision (in the case of glaucoma), half of the vision (in the case of hemianopsia caused by brain trauma) or randomly distributed spots (in the case of diabetic retinopathy). Furthermore, reduced vision is accompanied by blurred vision caused by macular degeneration and amblyopia. Reduced contrast and brightness also occur in the case of albinism, glaucoma and diabetic retinopathy, and loss of stereopsis (depth perception) can also be associated with many different diseases that cause reduced vision.

[0003] Such effects can cause patients difficulties, for example, when recognizing objects, people, or spatial features (such as room boundaries), or when reading or watching television. Furthermore, they can be associated with mobility problems and limit the autonomy of people with low vision, as they are often unable to walk or move around independently.

[0004] To help patients as they move around in unknown environments, different visual aids are used to help them recognize different elements of their surroundings. Examples of such devices may be, for example, ultrasound-based wands or proximity detectors that detect the location of obstacles surrounding the user. However, such systems may not be accurate enough and they may generate too many false positives. Thus, in view of existing systems, there is a need for more accurate and versatile systems and methods for detecting obstacles for such patients. Summary of the Invention

[0005] According to one aspect of the present disclosure, a method for detecting an obstacle element using a visual aid is presented, the apparatus comprising a distance sensor, the sensor being mounted on a wearable device worn by a user, the method comprising: obtaining a normal map from a range sensor; determining an orientation of a coordinate system of the range sensor relative to a world coordinate system; applying an orientation correction to the normal map based on the determined orientation, the orientation correction comprising transforming a coordinate system of the range sensor to a world coordinate system; comparing the corrected normal map to at least one predefined normal threshold; Segmenting the portion of the normal map as a sidewall region, a floor region, or an obstacle region based on the comparison.

[0006] According to the present disclosure, the distance sensor acquires the normal map. The acquisition of the normal map can be performed by using a number of known techniques that can vary depending on the distance sensor used. It can be acquired by pre-acquiring a depth map, for example using a modulated light scanner-based sensor. Or it can be acquired by acquiring a point cloud of the scene, for example using a LIDAR sensor, which can then be used to acquire the normal map. Alternatively, the normal map can be acquired by using multiple RGB images of the scene captured from different positions.

[0007] If the normal map is obtained from the depth map, the acquisition of the normal map may be performed for at least one pixel of the acquisition map, but in order to obtain more information about the target surface of the range sensor, the normal map may be calculated for several or all pixels of the depth map, thus improving the efficiency of the overall method. In this way, accurate information about the shape of the surface represented in the depth map is obtained.

[0008] There are various types of distance sensors that can be used to carry out the method according to the present disclosure, for example: · ToF (Time of Flight) based sensors: A laser beam is sent to a target and the time elapsed between sending and receiving the bounced beam is measured. Thus, by having the speed of light and the time of arrival of the beam, distance can be measured. Examples of these types of sensors may be ultrasonic sensors (which are versatile and cost effective, but have a short range and low accuracy), infrared sensors (which are accurate and can work in low light conditions, but have a short range and may not work effectively in large amounts of sunlight), LIDAR sensors (which are accurate, fast, and have a long range, but are very directional, high cost and have a small vertical field of view), or ToF cameras (which are simple and precise devices, but have a small horizontal field of view, are very sensitive to other light sources and reflective surfaces, and can be heavy and expensive equipment). Modulated light scanner-based sensors: These are similar to ToF sensors. In this case, a modulated light signal is sent to the target and the difference between the transmitted signal and the received signal (which bounces off the target) is calculated to get the distance to the target. · Stereo vision based sensors: A minimum of two cameras are used to calculate the distance to the target. In this way, two digital images of the target are acquired and a number of matching points are determined between the two images. Then, a calculation is performed of the difference in position between the matching points (the same points of the target depicted in different images) and the distance to the points of the target. An example of such a sensor may be a stereo camera that captures both an image of RGB type and a corresponding depth map. Usually, this type of camera has good performance in daylight, long distance and exterior. Moreover, they detect holes and steps in stairs. However, they are less accurate than ToF sensors and have problems in dim light environments, and the size of the sensor is adjusted by the fact that two or more lenses reproduce human binocular vision, and therefore the distance between the lenses of the two cameras approximates the distance between the human eyes. Structured Light Scanner: In this case, a laser beam with a predefined pattern is transmitted and a receiver measures the distortion caused by the bouncing of the beam on a target in order to calculate the distance to said target. An example of this sensor may be an RGB-D camera, which has an infrared emitter and an infrared camera all in one. This type of sensor is accurate, can work in low light, and operates synchronously with video images at high speed and frame rate, but has a short range and may be ineffective in sunlight.

[0009] The normal map may be a digital image, and for at least one pixel (usually all of them), the normal map includes a surface normal parameter, which may be a parameter relating to the normal direction of the surface at the point of the target represented by that pixel. More specifically, the surface normal parameter may be a vector perpendicular to the tangent plane of the surface at the point of the target represented by the corresponding pixel. In this case, the surface normal parameter may be represented as a normal vector with (x, y, z) components.

[0010] According to a particular example of the present disclosure, the normal map may include a normal vector for each pixel of the normal map, and more specifically, may be a unit vector perpendicular to the tangent plane of the surface at the point of the target represented by the corresponding pixel of the normal map.

[0011] The distance sensor may be included in the visual aid, which may be mounted on top of a wearable device, such as a set of glasses, a helmet, a set of headphones, an earpiece such as an earpiece of a mobile phone, or other device worn on the head. Thus, according to one example, the display of the visual aid (which may be, for example, a set of display glasses) and the sensor mounted on the wearable device may be oriented in a plane substantially perpendicular to the frontal plane of the user. The distance sensor may point in the same direction (or approximately the same) as the display of the visual aid, thus approximating the user's frontal field of view. In this way, the sensor may obtain a normal map from the user's frontal field of view.

[0012] Furthermore, while using the visual aid, the user may tilt or rotate their head such that the sensor may acquire different normal maps over time that point in different directions. Thus, as the user tilts their head up or down, the sensor may acquire normal maps that depict common elements of the user's environment from different perspectives.

[0013] For example, if a user wearing a visual aid looks ahead and walks normally on both feet, the normal map acquired by the device may have a portion corresponding to the floor visible at the bottom of the normal map, which may be segmented as a floor area. If the user then tilts his / her head down looking towards his / her feet (i.e. pointing the device's distance sensor towards his / her feet), the acquired normal map may include multiple surface normal parameters that point to the normal direction of the surface seen by the sensor. Thus, the user may be looking at the floor, and the acquired normal map may have a portion corresponding to the floor, but its surface normal parameters are oriented perpendicular to the normal map itself. Thus, the target floor is segmented as a floor area when the user looks ahead, and as an obstacle (facing the user) when the user looks towards his / her feet.

[0014] This discrepancy is due to the fact that the range sensor has a coordinate system, but moving the range sensor (i.e., the user moves his head) performs a transformation of that coordinate system. Thus, to avoid this discrepancy between different images when the user moves his head, the transformation can be corrected. In this way, that part of the normal map can be segmented as a floor area, regardless of the user's head tilt, since its surface parameters actually correspond to a target located on the floor.

[0015] To avoid misclassification of pixels caused by sensor orientation when the user moves his / her head up and down (as in the above example), a common coordinate system can be used for all acquired normal maps. This can be achieved by determining the orientation of the coordinate system of the range sensor relative to the world coordinate system, and then applying an orientation correction to the acquired normal maps based on the determined orientation, where the orientation correction involves transforming the coordinate system of the range sensor to the world coordinate system.

[0016] In geometry and kinematics, coordinate systems are used to describe the (linear) position of points and the angular positions of axes, planes, and rigid bodies. In the latter case, the orientation of a second (usually called "local") coordinate system fixed to a node may be defined based on a first (usually called "global" or "world" coordinate system). Thus, according to the present disclosure, a distance sensor may be a node, whose coordinate system can be considered as a "local" coordinate system. Since the local coordinate system of the sensor may change over time (due to the movement of the user's head), a correction of the orientation of the local coordinate system with respect to the (fixed) world coordinate system may be performed over time.

[0017] In this way, even if different normal maps capture the same element with different normal parameters (i.e., with different corresponding transformations of the local coordinate system), obstacles can be defined according to the same reference frame (i.e., the world coordinate system in this case). Thus, obstacles can be detected regardless of whether the user tilts their head (i.e., tilts the sensor), and such detection is ultimately performed relative to a common fixed coordinate system.

[0018] In this way, following a similar example, a first normal map can be obtained in which a portion of the map corresponding to the target floor can be segmented as a floor due to the tilt of the user's head (the user is not tilting his / her head), and a second normal map can be obtained in which the same portion of the map corresponding to the target floor can be segmented as a front obstacle due to the user tilting his / her head and looking down. However, when orientation correction is performed, the same target floor can be segmented as a floor in both the first and second normal maps, thus avoiding misclassification of pixels corresponding to targets seen in the user's surroundings.

[0019] Using this method, a classification of surface normal parameters (found at each pixel of the normal map) is performed, labeling each pixel of the map as a type of area. Such classification of the parameters of the normal map can result in a segmentation of the normal map, where several areas are defined in the map, each area corresponding to a type of area, such as a floor area, an obstacle area, or a sidewall area. Furthermore, the segmentation of a part of the normal map means that a type of obstacle is detected, where the obstacle is the target that corresponds to that part of the normal map.

[0020] Thus, the resulting segmentation of the captured normal map by the visual aid allows different obstacles to be detected in a robust manner, does not depend on the user's head tilt and is therefore more reliable.

[0021] More specifically, according to a further example, the determination of the orientation of the coordinate system of the distance sensor may be performed by obtaining at least a pitch component of the coordinate system of the distance sensor relative to the world coordinate system. Such a component may be sufficient to further perform a segmentation of groups of pixels of the normal map to detect obstacles, since it is possible to ignore other components while still accurately detecting some types of obstacles. Furthermore, in some specific cases, the yaw and roll components may also be used for better and more accurate detection. Furthermore, at least the pitch component may be obtained over time by using one or more of a gyroscope, a magnetometer and an accelerometer.

[0022] The orientation of the sensor (the sensor's coordinate system relative to the world coordinate system) can be obtained by using the accelerometer to calculate the components of the gravity vector, and thus by calculating the gravity vector, the pitch and roll components of the Euler angles of such orientation can be obtained.

[0023] According to the present disclosure, the pitch component may be sufficient to compute an orientation correction since the roll or yaw components do not affect the detection performed by the method, and thus a user tilting their head up or down may be relevant enough to perform an orientation correction on the acquired normal map.

[0024] More specifically, by way of further example, an IMU sensor can be used to obtain the transformation of the coordinate system of the distance sensor. An IMU sensor is an electronic device used to calculate and report the exact force, angular velocity, and orientation of the body, which can be achieved by using a blend of three sensors, such as a gyroscope, a magnetometer, and an accelerometer. In summary, the IMU combines three instruments, thus obtaining the orientation of both the static and moving camera with respect to the world coordinate system, from which the pitch component of the coordinate system is sufficient to perform the orientation correction according to the present disclosure.

[0025] Alternatively, visual odometry may be used to obtain an orientation correction for the range sensor, although this may require a specific type of range sensor with a sensor to acquire images. In this case, the pitch can be calculated by determining the position and orientation of the sensor by analyzing different images captured while the sensor is moving. Thus, the movement of the sensor, and therefore its orientation, can be determined by observing different images acquired while the sensor is in different positions. Visual odometry is used in a wide variety of robotic applications, such as the Mars Exploration Rover.

[0026] A combination of them can also be used, where the IMU refines its output data by using a further device based on visual odometry in parallel to combine the data of both devices to obtain a transformation of the coordinate system of the distance sensor.

[0027] According to one example of the present disclosure, the orientation correction may be a rotation matrix of the normal map. In this example, the obtained normal map may be in the form of a matrix of surface normal parameters (e.g., a matrix of normal vectors), and by transforming the normal map matrix with a rotation matrix, orientation correction of the normal parameters found in the normal map may be achieved.

[0028] After correction, a comparison of the corrected normal map with at least one predefined normal threshold may be performed. Such a comparison can be performed by comparing one or more surface normal parameters contained in the normal map with one or more predefined normal thresholds that may correspond to different ranges of the surface normal parameters. If the surface normal parameters are within a certain range (actually related to a type of area, defined by a normal threshold), this may indicate that the surface normal parameters most likely have certain characteristics that make them a certain kind of area or another.

[0029] In one example, the normal map may be a matrix of normal vectors, each corresponding to a pixel of the normal map, defining the shape of the surface of the target depicted in the normal map. According to another example, the normal threshold may be a range of possible normal vectors that may represent a type of obstacle (i.e., a predefined area), and the normal vectors are placed in the corresponding normal vector matrix. In this way, classification of one or more pixels may be performed based on a comparison of the surface normal parameters with a threshold that corresponds to a predefined area that may define a sidewall. Furthermore, other normal thresholds may correspond to areas that may define a floor on which the user walks, or other types of obstacles that may be in front of the user.

[0030] According to one example of the present disclosure, the method can also segment the normal map as side walls (surfaces that are substantially perpendicular to the floor on which the user is walking), floor areas (surfaces whose normals are substantially parallel to the gravity vector), or obstacle areas (surfaces that are substantially perpendicular to the floor on which the user is walking and perpendicular to the user's movement), and can leave pending segmentation of areas that, for example, do not match sufficient criteria of any of the previous segmentations.

[0031] Every predefined zone can be configured according to user considerations, depending on the user's mobility, level of low vision, etc. For example, a user may consider only side walls with a certain slope as side walls, and thus the side wall zone can be pre-determined at a certain normal threshold according to the user's considerations. Thus, different zones can be configured taking into account the user's preferences.

[0032] Alternatively, the normal threshold can be pre-determined by looking at the normal vectors of several types of sidewalls, floors, or obstacles. In this way, it is possible to further segment a portion of the normal map based on the surface normal parameters and recognize that portion of the map as a sidewall, floor, or object.

[0033] By carrying out the aforementioned method, it is possible to segment different areas of the target area based on a normal map captured by a distance sensor included in the visual aid, the sensor being mounted on a wearable device worn by a user who may have poor eyesight, for example. Such segmentation of the normal map may be more effective than other visual aid systems aimed at people with poor eyesight, since the segmentation is less susceptible to errors caused, for example, by the user moving his head while walking, and thus can detect obstacle targets seen in the sensed normal map by compensating for such movements while performing the segmentation and segmenting parts of the normal map as side wall areas, floor areas or obstacle areas in a more efficient manner.

[0034] According to another example, the distance sensor can obtain a depth map formed by a plurality of pixels, each pixel including a depth parameter, and the method comprises: selecting a lower portion of the acquired depth map; Dividing a selected portion of the depth map into a plurality of horizontal lines; assigning a top depth threshold to pixels of the top line and a bottom depth threshold to pixels of the bottom line, the top depth threshold being higher than the bottom depth threshold; assigning a depth threshold to the pixels of each line between the top and bottom lines, each depth threshold moving from the top line to the bottom line being lower than the depth threshold of the previous line; comparing the depth parameter of each pixel with an assigned depth threshold of its corresponding horizon; and determining, based on the comparison, negative obstacle areas within pixels of the depth map where the depth parameter of the pixel is higher than the assigned depth threshold of the pixel.

[0035] Acquisition of a depth image can be performed, according to the present disclosure, by using a distance sensor, which can be a sensor capable of generating a depth map (i.e., a 2D data matrix or a digital image) that includes a depth parameter for each point of the target scene within a corresponding pixel of the depth map. The depth parameter for each pixel can be defined by the physical distance from the plane of the distance sensor to each point of the target scene depicted in the depth map for each corresponding pixel of the depth map. The distance sensor can comprise a capture device from which the depth map is acquired, and more specifically, the plane of the sensor can be further defined as a plane perpendicular to the pointing axis of the sensor (e.g., if the sensor is a camera, the plane is perpendicular to the optical axis of the camera) and tangential to a reference point of said axis.

[0036] The resulting depth map may therefore have pixel values ​​corresponding to the depth from a point in the plane of the sensor to the target surface depicted in the depth map. In this way, the central pixel of the depth map contains a depth parameter equal to the physical distance from the center of the range sensor to the target depicted in the depth map. The remaining pixels of the depth map have a depth parameter equal to the minimum physical distance from the plane of the range sensor to the target depicted in that pixel of the depth map. Also, depending on the calibration, the pixel values ​​may be given directly in physical units, e.g. meters.

[0037] The selection of the lower part of the acquired depth map is performed as a first approximation of where the floor is normally for the user. Depending on the height of the user and / or the orientation of the distance sensor (i.e., the tilt of the user's head), the lower part may be larger or smaller, but the method assumes that the user is standing or walking on a floor that is substantially in the lower part of the depth map. Therefore, from a certain level of the depth map and above, it is not statistically logical to consider the upper part of the depth map as a possible target floor (e.g., it can be considered as a target side wall).

[0038] The selected portion may then be divided into a number of lines. The number of horizontal lines (i.e., the number of divisions) may vary depending on the precision required in performing the method.

[0039] Further, a depth threshold may be assigned to all lines in a selected portion of the depth map, with the threshold gradually decreasing from the top lines to the bottom lines.

[0040] Such depth threshold assignment takes into account that lines at the top of a portion of the depth map represent possible target floors that are further away from the user than lines at the bottom of the portion of the depth map, and therefore assigns a higher depth threshold (and therefore should have a higher depth parameter in the depth map) to lines that correspond to lines that presumably represent targets that are further away (i.e., where the floor should be).

[0041] After assigning a depth threshold to each line in the selected portion of the depth map, a comparison can be performed between the assigned threshold of each line and the actual depth parameter of each pixel of the corresponding line.

[0042] In this way, if the depth parameter of a pixel in the depth map is higher than its assigned threshold (which threshold represents the depth parameter of the pixel when the target floor is flat and has no holes or floor level drops), this may be interpreted as the target being a negative obstacle (e.g. a floor level drop, hole, etc.) and therefore detected as an obstacle that the user may, for example, enter.

[0043] According to another example, the assignment of a depth threshold for each line between the top line and the bottom line may be performed by assigning a value of a predefined mathematical function between a top depth threshold and a bottom depth threshold. According to yet another example, the predefined mathematical function may be determined using the height of the user and a pitch component of the coordinate system of the distance sensor relative to the world coordinate system.

[0044] More specifically, a mathematical function is used to estimate the value of the depth parameter corresponding to an expected flat floor, and such value is used as the depth threshold. Thus, when using these estimated depth parameters as the depth threshold, the method assumes that the floor may be flat, and whenever the acquired depth parameter of the acquired depth map is higher than the depth threshold, the method assumes that the floor is not flat at those pixels, and the depth found at the target is higher, and thus a further segmentation of the previously detected floor area can be obtained, and the pixels with a depth higher than the depth threshold are segmented as negative obstacles (such as holes or floor level drops).

[0045] Such an example of a method for detecting obstacles that results in the determination of a negative obstacle area can be performed in combination with or independently of the aforementioned method for detecting obstacles that results in the segmentation of a portion of the normal map. It should be noted that only the method for detecting obstacles may be performed and, in the case of determining a negative obstacle area, only areas with negative obstacles may be determined. However, when used in combination with a method for detecting obstacles that results in the segmentation of a portion of the normal map, a more accurate overall detection of the obstacles may be obtained. Such an overall detection may include a combination of areas of the normal map that correspond to targets that may be side walls, floors, or other types of obstacles, and the determined floor area may also include information about negative obstacles. Thus, when combining information of the determined floor area with the determined negative obstacle area, the floor area may be more accurate.

[0046] According to another example of the present disclosure, the method includes: Dividing the detected floor area into a plurality of cells, the detected floor including the determined negative obstacle area; determining a lateral step based on an intersection of pixels classified as floor areas with pixels classified as both floor areas and negative obstacle areas.

[0047] The previously detected floor area can be used as input data for further lateral step detection. In general, a step (whether lateral or frontal) can be considered as a group of pixels (e.g., typically seen as a line of pixels) where an offset or change in the level of the floor surface is seen, which may be sufficient for a user to take note during normal walking. Such a level change may typically be similar to, for example, a stair step or similar significant change in floor level.

[0048] Furthermore, according to the present disclosure, the aforementioned step or similar significant change may be defined as having an edge that may be a line dividing the floor level change, and the step may further be considered as a lateral step if the orientation of the step edge is not significantly perpendicular to the direction of the user's movement. A distinction may be made between lateral steps and frontal steps, which have step edges that are significantly perpendicular to the direction of the user's movement.

[0049] According to the present disclosure, the detection of the lateral step can be performed by dividing the previously detected floor area into a number of cells, the detected floor area including the determined negative obstacle area. Then, since the detection of the negative obstacle area means that a part of the detected floor area may be deeper than what was previously approximated as a flat floor, the lateral step may be determined by searching for a cell where there are at least two adjacent cells, one of which is detected as a floor area and the other is also detected as a negative obstacle area.

[0050] According to another example of the present disclosure, the method includes: selecting a frontal area from the detected floor areas, the frontal area simulating a space in front of the user and in the direction of the user's movement; obtaining a v-disparity map of depth parameters of pixels of the portion of the depth map found within the selected frontal region; selecting values ​​of the v-disparity map that are higher than a frontal step depth threshold; The method may further include determining a frontal step floor area based on a selection of values ​​of the v-disparity map, the frontal step floor area being determined by selecting a line corresponding to a discontinuity in the acquired v-disparity map.

[0051] The previously detected floor area can be used as input data for the detection of a further front step floor area. In this case, as mentioned above, the front step may be a step with edges that are significantly perpendicular to the user's direction of movement. Thus, a front area for the user is selected, knowing that this area is within the direction of the user's movement.

[0052] A v-disparity map can then be obtained from the portion of the depth map that corresponds to that frontal region. Such a v-disparity map, performed for each pixel in the frontal region of the depth map compared with the remaining pixels of the same horizon in the frontal region of the depth map, is a way of measuring the most common value of the depth parameter within all frontal regions.

[0053] A common way to implement such a v-disparity may be in the form of a 2D image, where the Y-axis represents each horizontal line of the frontal area, and the X-axis represents the depth parameter value. Each row of the v-disparity map is thus a histogram of the depth values ​​that appear in that row in the depth map. Each pixel of a row in the v-disparity has a value equal to the number of pixels with the same depth in the same row of the depth map. Graphically, v-disparity values ​​with higher values ​​may, for example, be shown as whiter than those with lower values.

[0054] In this case, ideally most of the depths of each row would be substantially within the same depth, so the floor detection would be graphically represented by a strong white line in the v-disparity map.

[0055] When all values ​​of the depth parameters of all pixels in the frontal area are placed in the v-disparity map, a selection of the more common value of each row can be performed. This selection can represent the depth value that represents the most common value of the depth map. In this way, a clearer (i.e. filtered) version of the v-disparity map is obtained, and values ​​of the v-disparity map that may be very rare (low accumulation of points in that area of ​​the v-disparity map) or may be errors in the data found on the depth map may not be taken into account. Once the filtered version of the v-disparity map is obtained, it is possible to find discontinuities between its values. The location of such discontinuities in the Y-axis of the v-disparity can point to which horizontal line of the original depth map the frontal step is located towards.

[0056] More specifically, according to one example, the selection of the line corresponding to the discontinuity of the acquired v-disparity map is Selecting multiple enclosure lines for each line; comparing the selected value of the disparity map for the line with the value of the v-disparity map for the encircling line; If the comparison is higher than the discontinuity threshold, determining the front step floor area as the area corresponding to the selected line within the selected front area.

[0057] To search for discontinuities, a comparison is performed between the most common value (i.e., selected value) of each line (each value of the Y axis of the v-disparity map) and the lines surrounding it. In this way, for example, starting from the first line, a comparison can be performed between the depth parameter value of line 1 and the value of line 1+N (where N is the number of surrounding lines near line 1). In general, for any line X, its depth parameter value can be compared with the depth parameter values ​​of lines in the range [XN, X+N]. When such a comparison results in a difference higher than the discontinuity threshold, a discontinuity may be found, and thus a frontal step floor area may be determined to be found along line X of the corresponding original frontal area of ​​the depth map.

[0058] The front step floor area can be considered as the area perpendicular to the user's direction of movement, so the front step can be found on the horizon of the depth map and is therefore determined by line X in this example.

[0059] Such an example of a method for detecting obstacles that results in the determination of a front step floor area can be performed in combination with or independently of the above-mentioned method for detecting obstacles that results in the segmentation of a part of a normal map or that results in the determination of a negative obstacle floor area. Thus, the determination of the front step floor area can be performed on its own, but can also be combined with the determination of other areas (such as, for example, negative obstacle floor areas) to improve the overall detection of different obstacles. For example, a floor area determination that further includes two independently performed determinations of a front step floor area and a negative obstacle floor area can provide a very accurate assessment of the user's surroundings when using a visual aid device as described above. Thus, the user can have more detailed information of his surroundings.

[0060] According to another example of the present disclosure, a method for detecting an obstacle includes: generating a three-dimensional virtual map of a given area surrounding the user; obtaining a set of virtual coordinates of a user in a virtual map; obtaining a set of virtual coordinates of the detected targets in the virtual map relative to the user's virtual coordinates and the type of the detected targets from the segmented portion of the normal map; storing the user's tag and the detected target's tag on the acquired virtual coordinates of the user and the acquired virtual coordinates of the detected target in a virtual map; verifying whether the tag of the detected target has been previously stored in the virtual map; In case of a positive result, verify whether the detected target was detected recursively, In case of a positive result, the method may further comprise the step of verifying by tagging the detected target as not relevant.

[0061] A virtual map can be used to store the locations of all detected obstacles in the user's surrounding area. In this way, the user may be located in the map using a set of virtual coordinates, and one or more detected targets may also be located in the virtual map using another set of virtual coordinates relative to the user's coordinates. The type of detected target (floor area, sidewall area, or obstacle area) may also be stored in the virtual map, indicating not only the location of the obstacle, but also the type of the detected obstacle.

[0062] Furthermore, a verification can be performed if the tags of one or more detected targets have been previously stored in the virtual map. In case of a positive result, a further verification may be performed when the detected targets are recursively detected. In this way, the detected target is tagged as irrelevant if the obstacle is detected several times (e.g., a counter is used for each detection of the same target) or if it is detected continuously over a period of time (e.g., a timer is used to count the time the target is detected at the same place of the virtual map). In this way, when signaling is performed, if a target is considered irrelevant (e.g., it is a stationary object that is repeatedly detected over a long period of time), it does not need to be repeatedly signaled to the user in order to avoid excessive signaling that may confuse the user or distract attention from other important signaling.

[0063] Said generation of the virtual map and management of the tags corresponding to the detected targets can be carried out in part or in whole, for example, using SLAM type algorithms, such algorithms being an option used in the field of robotics, allowing the robot to keep track of all the elements that surround it by generating and keeping their updates in a virtual map, such as a repository memory.

[0064] Such an example of mapping the user's surroundings may be performed by itself regardless of how the obstacle detection method described above is performed, and is useful for mapping and distinguishing detected targets as relevant or not relevant to a user wearing a visual aid device as described above in the above example of an obstacle detection method.

[0065] According to yet a further example, a method for detecting an obstacle comprises: selecting a signaling area of ​​the virtual map based on the virtual coordinates of the user and the determined orientation of the coordinate system of the distance sensor; selecting detected targets within a selected signaling area of ​​the virtual map that are not marked as irrelevant; and signaling the selected target to a user. Such a signaling area may for example be an area corresponding to a portion of a virtual map representing the real location where the user is facing. The signaling area is thus determined from the virtual coordinates of the user in the virtual map (a map representing the area surrounding the user) and the orientation of the distance sensor, thus determining where the user is looking. The signaling area may be used to select the detected targets that are relevant to show to the user (i.e., to select targets that are not marked as not relevant) and to signal them to the user. In this way, repetitive signaling can be avoided by only selecting the targets that are relevant to the user.

[0066] According to a further example of the present disclosure, the visual aid device may be connected to a repository containing a three-dimensional virtual map of a predetermined area surrounding the user, and the method may further comprise: selecting a safe zone of the virtual map based on the virtual coordinates of the user and the determined orientation of the coordinate system of the distance sensor, the safe zone surrounding the user; obtaining a set of virtual coordinates of a previously detected target stored in a virtual map; verifying whether the obtained set of virtual coordinates of the detected target is within a selected signaling area; In case of a positive outcome, the method may further include verifying that the obtained set of virtual coordinates of the detected target is within the safe zone, signaling the detected target to a user.

[0067] In this way, a safe zone surrounding the user can be determined, which is included in the virtual map. However, said safe zone may be defined taking into account the virtual coordinates of the user and the determined orientation of the coordinate system of the distance sensor, i.e. the safe zone may be determined by selecting an area surrounding the user that is outside the field of view of the sensor but still within a substantially short range of the user. For example, the safe zone may include an area surrounding the user, which the field of view of the distance sensor does not reach when looking in said direction. The safe zone may also be used to signal previously detected targets behind and near the user.

[0068] In this way, if the user is looking in a particular direction and a previously detected obstacle is within range near the user in that direction but is not covered by the signaling area, that previously detected target may also be signaled (e.g., a chair that is close to the user but not detected by the user at that moment because the field of view of the range sensor is looking forward but does not cover a chair that may be in front but below).

[0069] Also, if the user is walking backwards, previously detected targets close to the user may be signaled (if found within the safety zone) even if they are not found within the signaling zone (because the user may be looking forward and therefore the field of view of the range sensor may be pointing forward).

[0070] Furthermore, the signaling may be performed in different ways. In one example, the signaling may be visual signaling. Many different types of visual signaling may be used, including color, image brightness, black and white signaling, etc. According to another example, the visual aid may comprise a display and the signaling area may be in the form of a 2D virtual image of a virtual map, based on the determined orientation of the virtual coordinates of the user and the coordinate system of the distance sensor. In this case, the visual signaling may be: - superimposing visual signaling onto the generated 2D virtual image of the selected obstacles that are not marked as irrelevant; and displaying the superimposed 2D virtual image on a display.

[0071] In this way, during use, the signaling area can be formed as a 2D virtual image that can be based on the determined orientation of the user's virtual coordinates and the coordinate system of the distance sensor. For example, the 2D virtual image can be formed to substantially match the user's viewpoint at that moment, and the virtual image is used to display the signaling to the user. Such a virtual image can include relevant obstacles that the user is looking at at that moment, and thus the signaling is superimposed on the generated virtual image, the signaling being performed taking into account the user's visual impairment. Thus, for example, if the user has tunnel vision and a side wall is detected in the top left corner of the acquired normal map, a signaling may be performed, for example in the form of an arrow in the center of the display, pointing to where the side wall is located on the part of the display that the user cannot see (in this example, the top left corner of the display).

[0072] The signaling may also be, for example, audio-based signaling, where a detected obstacle is described or signaled by a pre-recorded voice or other type of audio signal. For example, different audio signals may be used for different types of obstacles, their distance, or their location relative to the user. The signaling may also be, for example, haptic-based signaling, where a certain detected obstacle may be signaled by a vibration device worn or held by the user, where each vibration represents the type of obstacle or the distance and / or location of the obstacle relative to the user. Furthermore, a combination of visual, audio, and haptic signaling may also be used to adapt to the needs of the user.

[0073] Furthermore, the signaling can include many different types of media, depending for example on the user's preferences and obstacles and the type of environment in which the user is walking, such as colors marking detected areas or obstacles, arrows pointing to detected areas or obstacles, audio-type signaling of obstacles that are currently within the field of view of the distance sensor and display, or that are outside the field of view, etc.

[0074] In general, by using a virtual map of a given area surrounding the user, the visual aid can signal detected obstacles to the user in a more efficient manner.

[0075] Such examples of obstacle detection methods resulting in signaling of detected targets, and different examples of types of signaling by using the aforementioned tagging and mapping of detected targets, can also be used independently and / or independently of the aforementioned obstacle detection methods. For example, if a different method is used to detect obstacles, the aforementioned method of tagging detected targets as relevant or irrelevant can still be used. Information about detected obstacles (which may have been detected in different ways as described above) can still be used to be stored in a virtual map, tagged, and further signaled using any of the aforementioned methods, thus resulting in efficient and simple signaling of detected obstacles to a user who may be using a visual aid as described above.

[0076] According to another aspect of the present disclosure, a visual aid device for detecting obstacle elements is presented, the device comprising: A distance sensor configured to obtain a normal map; and a communications module for receiving the normal map acquired from the distance sensor and transmitting the acquired normal map to a computing module, the computing module being configured to perform the aforementioned method for detecting an obstacle.

[0077] Such a device may comprise any of the different types of distance sensors mentioned above, such as a ToF (Time of Flight) based sensor, a modulated light scanner based sensor, a stereo vision based sensor or a structured light scanner, among others.

[0078] Further, the device can communicate, via either a wired connection or a wireless communication system, to a computing module configured to execute any of the different combinations of methods for detecting obstacles, as described above.

[0079] According to another example of the present disclosure, a wearable device may be provided that is worn by a user and takes the form of glasses, clothing, clothing prostheses, etc. The wearable device may include the aforementioned visual aid, and the sensor may be mounted on the wearable device. Furthermore, if the wearable device includes glasses, the sensor may be mounted on the glasses.

[0080] According to a further aspect of the present disclosure, a system for detecting obstacle elements is presented, which may comprise the aforementioned visual aid device and a computing module configured to execute the aforementioned method for detecting obstacles in all its variants. The computing module may be connected to the visual aid device via a cable or in wireless mode and thus may be remotely operated. Furthermore, the computing module may comprise several sub-modules for executing, for example, parts of the methods described herein.

[0081] According to yet another aspect, a computer program product is presented that may include program instructions for causing a computing system to perform any one or more of the methods for detecting obstacles described above. According to another example, the computer program product may be embodied on a storage medium or carried on a carrier signal. [Brief description of the drawings]

[0082] [Figure 1A] FIG. 1 illustrates an example of a system for detecting obstacle elements including a visual aid according to the present disclosure. [Figure 1B] FIG. 1 illustrates an example of a system for detecting obstacle elements including a visual aid according to the present disclosure. [Diagram 2] 1 is a diagrammatic block diagram of an example of the main modules of a system for detecting obstacle elements according to the present disclosure; [Diagram 3] 1 is a diagrammatic block diagram of an example of a processing module of a system for detecting obstacle elements according to the present disclosure. [Figure 4] 1 is a diagrammatic block diagram of an example of a mapping module of a system for detecting obstacle elements according to the present disclosure. [Figure 4B] 5 depicts an example of a method performed by the mapping module of FIG. 4 in accordance with the present disclosure. [Figure 4C] 5 depicts an example of a method performed by the mapping module of FIG. 4 in accordance with the present disclosure. [Figure 4D] 5 depicts an example of a method performed by the mapping module of FIG. 4 in accordance with the present disclosure. [Diagram 5] FIG. 13 depicts an example of calculation of depth threshold of a distance sensor of a system according to the present disclosure. [Figure 6A] 1A-1C depict examples of depth and disparity maps in accordance with the present disclosure. [Figure 6B] 1A-1C depict examples of depth and disparity maps in accordance with the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0083] An example of a visual aid device and a system and method for detecting obstacle elements using a visual aid device according to the present disclosure is described herein via Figures 1A and 1B, where the system 1 comprises a visual aid device 10 comprising a set of display glasses 11 and a distance sensor in the form of a digital RGB-D stereo camera 12 mounted on the glasses 11. The display glasses further comprise a set of lenses 13 that display images to a user during use. In this example, the camera 12 is mounted on the glasses 11 such that the optical axis of the camera 12 is oriented substantially parallel to the optical axis of the lenses 13 of the display glasses 11. In this way, the image captured by the camera 12 is substantially similar to the image the user sees through a normal set of glasses when looking ahead. The visual aid device comprises a matching set of lenses 15 to complement the lenses the user may already be using in normal life, and the system also comprises a main module 14 connected to the visual aid device 10.

[0084] According to this example, the RGB-D stereo camera 12 has built-in functionality that allows it to capture two RGB images (i.e. the camera can have, for example, two or more lenses with a separate image sensor per lens, which allows the camera to simulate human binocular vision) and their corresponding normal map. According to this example, the camera captures depth-based surface normal parameters (forming the normal map). The camera also captures the corresponding depth map, from which the normal map can be inferred in a geometrical way (for example, calculating the relative depth of neighboring pixels). Thus, the camera 12 periodically outputs the stereo RGB images, the depth map, and the normal map, which are transmitted to the main module 14 of the system 1. Such a module can be connected to the visual aid device 10 by cable or via wireless communication.

[0085] As can be seen in FIG. 2, the main module 14 comprises a number of sub-modules, each of which is configured to perform certain steps of the method according to the present disclosure. Acquisition Module 21

[0086] In particular, the first module 21 is a capture module, which is connected to the stereo camera 12 and periodically receives data from the camera. In this example, the stereo camera 12 transmits, for each image capture, stereo images in the form of HD RGB images, depth and normal maps corresponding to the HD RGB images. The capture module 21 is connected to a memory 30 and stores the set of two RGB images (in a buffer 211) and the corresponding depth (buffer 212) and normal (buffer 213) maps as matrices of data. Furthermore, the capture module 21 also generates a synchronization signal 31 to be sent to the next sub-module (the second module 22) to synchronize the captured data with further calculations, and is sent to the display module 25, which transmits the images and graphical signaling to the display glasses 13. Processing module 22: Obstacle detection

[0087] The second module 22 is a processing module which processes the received depth and normal maps in order to detect different types of obstacles. In this example, the output signals of the processing module are the detected type of obstacle, its size and its position relative to the world, which are stored in a detection buffer 221 of the memory 30.

[0088] After the processing has been performed, a detection grid is generated as an output of the processing module 22 and stored in the memory 30 for further use. The detection grid includes the dimensions of the detected obstacle (or obstacles) and their positions relative to the world.

[0089] More specifically, according to this embodiment, the processing module 22 performs a number of different detections of obstacles as depicted in FIGS.

[0090] 3 depicts a general flow chart of the processing module 22. First, to perform the detection, data from the normal map and the depth map are retrieved in parallel. Normal Search 400A

[0091] In flow chart 400A, normal data is retrieved for further use in detecting obstacles. The normal map is retrieved from buffer 213 (block 411) and an orientation correction is performed on the map based on updated data from the IMU to account for pitch tilt (the other two components of the IMU can be ignored in this example) (block 412).

[0092] When the normal map is received, it contains for each pixel a vector perpendicular to the target surface represented by the pixel, the vector being expressed relative to the local coordinate system of the camera 12. Thus, in order to be able to use all normal maps from different captures to detect the same obstacles, all normal maps received over time are referred to a common coordinate system (eliminating possible errors introduced by camera movement). Thus, if the camera moves between the capture of several normal maps (i.e. if the user moves his head), the normal vector of each capture may be associated with a different transformation of the camera coordinate system, and such transformation may be corrected by applying an orientation correction. Such an orientation correction may be, according to the present example, a rotation matrix applied to the received normal maps.

[0093] According to this particular example, the rotation matrix is ​​generated by obtaining the sensor orientation including pitch, roll, and yaw from an IMU sensor (in this example, the IMU sensor is included within the stereo camera 12, but it may also be a separate IMU sensor attached to the camera). By using such an apparatus, the pitch, roll, and yaw, referred to as the world coordinate system, are obtained, which can be used to convert the coordinates of the normal vector of the corresponding normal map (relative to the local coordinate system of the camera 12) to a normal vector related to the world coordinate system. The sensor orientation and the acquisition of the normal map and the depth map can be synchronized by signal 31, since the orientation should correspond to the captured normal map and depth map when acquired.

[0094] After the orientation correction is applied to the normal map, a target scene segmentation is then performed (block 42) and extraction of the X, Y, and Z components of the normal map is performed (blocks 421, 422, 423). Such scene segmentation applies a normal threshold to the normal map in order to segment the normal map as different types of obstacles. Block 421 extracts the X component of the normal map, which may be relevant to obtain data regarding sidewall type obstacles; Block 422 extracts the Z component of the normal map, which may be relevant to obtain data relating to obstacles of the front obstacle type; Block 423 extracts the Y component of the normal map, which may be relevant to obtain data regarding floor type obstacles;

[0095] Each extracted component matrix is ​​then filtered with a normal threshold. Block 426 applies a normal threshold corresponding to the sidewall to its corresponding extracted matrix; Block 427 applies a normal threshold corresponding to the frontal obstacle to the corresponding extracted matrix; and Block 428 applies a normal threshold corresponding to the floor to the corresponding extracted matrix.

[0096] This results in three matrices, each containing a normal map corresponding to the side walls, the front obstacle, and the floor area, respectively. Depth Search 400B

[0097] In parallel with the normal search, a depth search is performed in flowchart 400B. In block 429, the depth map is retrieved from the buffer 212. The normalized depth map is then modified to apply a confidence threshold (block 431) and a variable threshold (block 432).

[0098] A confidence threshold is applied to the upper part of the depth map to eliminate depth information that is too far away to be relevant to the user, and a variable threshold is applied to the remaining lower part of the depth map.

[0099] More specifically, according to the present embodiment, the variable threshold can be determined by applying a predefined mathematical function that defines the depth threshold. Such a function can be determined using the height of the user and the pitch component of the camera. There may be different calculations to determine the depth threshold for each line, which may vary depending on their accuracy.

[0100] According to the present embodiment, such a variable threshold is applied to segment negative obstacle areas, such as holes or substantial irregularities in the floor surface surrounding the user, and further signal them to the user via the visual aid.

[0101] More specifically, as mentioned above, a distance sensor (in this case a stereo RGB camera) obtains a depth map that includes depth parameters for each pixel. Then, a lower portion of the depth map is selected (assuming that the lower portion includes at least a number of pixels that correspond to the target, which is the floor in front of the user). The selected portion is divided into horizontal lines, and the pixels of the top line are assigned a top depth threshold and the pixels of the bottom line are assigned a bottom depth threshold. Furthermore, depth thresholds are assigned to the lines between the top and bottom lines. The top depth threshold is higher than the bottom depth threshold and the depth thresholds assigned to the pixels of each line between the top and bottom lines are such that each depth threshold from the top line to the bottom line is lower than the depth threshold of the previous line.

[0102] In this embodiment, the threshold assignment is performed by calculating what is most likely to be the floor using the user's height and the camera's pitch component.

[0103] Then, a comparison is performed between the depth parameter of each pixel and the assigned depth threshold of the corresponding horizon. If the depth parameter is higher than the depth threshold, it means that the pixel is below the floor, i.e. there is some type of negative obstacle within the pixel.

[0104] Calculations may be performed to appropriately calculate the depth parameter to be compared with the assigned variable threshold. Figure 5 shows a diagram of a distance sensor 52 in use mounted on a visual aid worn by a user having a standing height 50 above a target floor 53. More specifically, the stereo camera 52 has a field of view β and a tilt α which is the pitch angle of the camera (in this example, the user is pointing his head down). The camera is a distance sensor and therefore captures both a normal map and a depth map that cover the field of view β. In the case of the depth map, the depth parameter of each pixel represents the minimum distance from the plane of the camera 51 to the depicted target. For example, a first target point on the floor 501 is depicted in the depth map acquired by the camera 52 with a depth parameter of value Z1. And the center of the depth map captured by the camera 52 indicates a second target point on the floor 502 which is depicted in the depth map with a depth parameter of value Z0. In the case of Z0, the physical distance between the camera's reference point and point 502 is the depth parameter itself, while in the case of point 501, the actual distance between the camera's reference point and point 502 is not Z1 but d1. Taking this into account, the depth expectation Z1 (expected if the corresponding target is a floor) for any point of the depth map can be calculated. In this way, a comparison can be performed between Z1 (expected depth of the targeted floor) and the actual depth (from the depth map) at the same point. This can be achieved by applying the following formula:

[0105] First, the calculation of the distance corresponding to the target depicted in the center of the depth map, relative to the depth parameter Z0. TIFF2024535978000002.tif20103

[0106] Then, for any other depth parameter of the depth map, it is generally calculated using the following formula: TIFF2024535978000003.tif42103

[0107] Once z1 is obtained, it is compared with the depth parameter of the same point of Z1 (as seen in the depth map). If the depth parameter of the same point is higher than the expected floor depth (i.e., Z1), then a negative obstacle may be found at that point.

[0108] The output of 400B is a matrix containing the adapted depth map, taking into account negative obstacles (such as holes) and / or omitting obstacles that are too far away to signal (via a confidence threshold). Combination of normal and depth data 400C

[0109] Once the three matrices (obtained from 400A) containing normal data relating to the side walls, front obstacles and floor respectively, and the matrix (obtained from 400B) containing the depth map with confidence and variable thresholds applied, are obtained, they are combined to segment the normal map taking into account the depth map.

[0110] Therefore, an AND operator is performed on each of the three normal maps corresponding to the side walls, the front obstacle, and the floor (433, 434, 435) with the adapted depth map, thus segmenting the normal maps within a reliable distance such that the floor segmentation detects negative obstacles (such as holes).

[0111] This results in three binary matrices 436, 437 and 438 of pixels classified as sidewall, front obstacle and floor areas.

[0112] Then, in block 439, the normal map is divided into a grid having a number of cells, the grid representing the user's trajectory, and in block 442, each obstacle is stored in the grid along with its corresponding size and obstacle's position relative to the world in a corresponding cell in the shared memory 30. Front step detection and lateral step detection 400D

[0113] According to this embodiment, the system may also be able to detect lateral and frontal steps. In flow chart 400D, the obtained floor segmentation (blocks 435 and 438) is further used to detect both frontal and lateral steps.

[0114] If a front step is to be detected (block 440), a front area is selected in an area previously detected as a floor area by selecting a portion of the depth map that is in the bottom center of the map and that also corresponds to a previously detected floor area.

[0115] Once the frontal area is selected, a v-disparity map is calculated from the frontal area. Figure 6 shows an example of the obtained frontal area, where the lower part 61 corresponds to a line with a depth parameter X and the upper part 62 corresponds to a line with a depth parameter Y. In this example, the line seen in part 61 may have a depth X of 40 centimeters and the line seen in part 62 may have a depth Y of 10 centimeters. Thus, at the line dividing the lower part 61 and the upper part 62 (e.g. the first step of the staircase going upwards), a step should be detected.

[0116] FIG. 6B shows a v-disparity map corresponding to the frontal area depicted in FIG. 6A, where the depth values ​​are plotted on the X-axis and the values ​​of each line of the frontal area (from the bottom to the top of the frontal area) are plotted on the Y-axis. To be able to subtract, all values ​​from the bottom 61 have for each line an accumulation point of 40 cm depth (X-axis point 63), and when the values ​​from the frontal area are depicted in the v-disparity map, they are all found at an accumulation point of 10 cm depth (X-axis point 64). After a selection of the most common values ​​of the disparity map is performed (i.e., a "filtering" of the accumulation points of the disparity map), the disparity map lines 65 and 66 are clearly defined. To determine the frontal step floor area, the system searches for a discontinuity 67 in the values ​​of the disparity map, which is seen on the line 68. Thus, a discontinuity is seen on the line 68 of the frontal area of ​​FIG. 6A, which is where the aforementioned frontal step was clearly thought to be according to this example.

[0117] More complex discontinuities can be found in the disparity maps of different cases (frontal areas depict different targets), but they can all be detected by searching for discontinuities above a given discontinuity threshold. Such a search can be performed in many different ways that may involve computations of different levels of complexity.

[0118] Further, lateral steps are detected by dividing the segmented floor area into multiple cells and performing multiple comparisons between pixels of adjacent cells in block 441. If the difference between the depth parameters of adjacent cells is greater than a lateral step depth threshold, it is determined that there is a lateral step between the adjacent cells in the depth map. Mapping Module 23

[0119] After the detection of obstacles when executed, the mapping module 23 is used to generate and update a 3D virtual map, whose purpose is to simulate the behavior of the user's brain when the user is moving. The purpose is therefore to inform the user about obstacles in the user's trajectory that may be problematic for the user and to remember those obstacles that are outside the user's field of view. The mapping module 23 can also manage that previously signaled obstacles are not always shown to the user.

[0120] In this example, as seen in Fig. 4, block 232 receives input in the form of a detection grid stored in memory 30, including detected obstacles and their positions (block 231). Additionally, the user's position and the orientation of camera 12 are also received (from the camera's IMU). The user's position may in this example be relative to an initialization position (virtual coordinates in the virtual map of the user's position when the system was initialized). Regardless of the acquisition process, module 23 receives an updated set of virtual coordinates of the user in the 3D virtual map.

[0121] Next, block 232 generates and updates a 3D virtual map of the given area, which defines which obstacles are stored in the map. The dimensions and specifications of the virtual map can be defined based on the needs of each particular user. During the functioning of the device, block 232 generates and updates the 3D virtual map. The 3D virtual map is generated to represent the given area surrounding the user. Thus, if a new obstacle is detected, block 232 stores in the map a tag associated with the new obstacle (the virtual coordinates of the obstacle relative to the virtual coordinates of the user and the virtual coordinates of the obstacle relative to the initial position of the virtual map). Furthermore, block 232 verifies whether the obstacle was previously in the same position relative to the user. If the obstacle recursively occupies the same virtual coordinates relative to the user, block 232 tags the obstacle as irrelevant. Furthermore, the virtual map is dynamically updated to remove obstacles that were previously in the 3D virtual map but are now outside the given area defined by the 3D virtual map surrounding the user due to a change in the user's position.

[0122] Block 233 generates a 2D projection as an output of mapping module 23. It signals obstacles that are not tagged as irrelevant (i.e., relevant obstacles) to the user. To do this, block 233 generates a virtual camera that emulates what the user sees. The area seen by the virtual camera, i.e., the signaling area, can be defined based on the user virtual coordinates and the orientation of camera 12. As seen in FIG. 4C, a 2D projection 4C1 of what the virtual camera sees is generated by the virtual camera, which captures what is stored in the virtual map on the signaling area. Thus, the 2D projection selects and depicts obstacles that are not tagged as irrelevant from the 3D virtual map.

[0123] Furthermore, block 233 signals to the user obstacles of the virtual map whose virtual coordinates are within a designated safe zone surrounding the user. The safe zone may be an area surrounding the user, for example, the distance sensor may not detect the obstacle because the safe zone is outside the field of view of the distance sensor. To perform the signaling, block 233 verifies whether the virtual coordinates of the detected obstacle are outside the signaling zone and at the same time within the safe zone.

[0124] Thus, as mentioned above, the obstacles that are signaled to the user are those that change their position relative to the user and those whose position falls within the safe zone. This selection of relevant obstacles is performed to avoid continuous signaling of obstacles where the user knows where they are. This method simulates the behavior of the human brain, and when a person constantly sees an object in the same position, he or she does not always think that said object is there. In this way, obstacles that keep a constant relative distance to the user according to this criterion and that were previously signaled when first detected are not relevant to the user, because the user acted accordingly when they were first signaled to him or her.

[0125] FIG. 4D shows an example of the 2D projection generated in FIG. 4C, where some obstacles are selected to be relevant to be shown to the user, taking into account the user's viewpoint in the 3D virtual map.

[0126] In this example, both the map generation and update of block 232, as well as the virtual camera generation and 2D projection, are performed using a SLAM-type algorithm.

[0127] After the virtual map has been generated and populated, the 2D projection is stored in the shared memory 30 along with each associated obstacle and its position within the projection. Signaling Module 24

[0128] In this example, the signaling module 24 is used to superimpose the stored 2D projections with all their associated obstacles (seen in FIG. 4D) and with signaling corresponding to each type of obstacle and / or the position or distance to the user. The signaling may in this case be, for example, a different type of color for each type of obstacle, or a sign such as a line, an arrow, a flashing light, etc. This may be configurable according to the user's preferences or needs. Furthermore, the 2D projections and the superimposed signaling may be superimposed on an RGB image corresponding to the detection of all obstacles and further transmitted to the display module in order to be transmitted to a display, in this case a set of glasses.

Claims

1. A method for detecting obstacle elements using a visual aid, the apparatus comprising a distance sensor, the sensor being mounted on a wearable device worn by a user, the method comprising: obtaining a normal map from the range sensor; determining an orientation of a coordinate system of the range sensor relative to a world coordinate system; applying an orientation correction to the normal map based on the determined orientation, the orientation correction comprising transforming a coordinate system of the range sensor to the world coordinate system; comparing the corrected normal map to at least one predetermined normal threshold; and based on the comparison, segmenting a portion of the normal map as corresponding to a target detected as a sidewall region, a floor region, or an obstacle region.

2. The method of claim 1 , wherein determining the orientation of the distance sensor's coordinate system is performed by obtaining at least a pitch component of the distance sensor's coordinate system relative to the world coordinate system.

3. The method of claim 1 or 2, wherein the normal map comprises a normal vector of at least one pixel of the normal map, and the orientation correction is a rotation matrix of the normal map.

4. The method according to any one of claims 1 to 3, wherein the predetermined normal thresholds include at least normal threshold vectors corresponding to sidewall zones, floor zones or obstacle zones.

5. the range sensor acquires a depth map formed by a plurality of pixels, each pixel including a depth parameter; selecting a lower portion of the acquired depth map; dividing the selected portion of the depth map into a plurality of horizontal lines; assigning a top depth threshold to the pixels of the top line and a bottom depth threshold to the pixels of the bottom line, the top depth threshold being higher than the bottom depth threshold; assigning a depth threshold to the pixels of each line between the top line and the bottom line, each depth threshold moving from the top line to the bottom line being lower than the depth threshold of the previous line; comparing the depth parameter of each pixel with the assigned depth threshold of its corresponding horizon; The method according to any one of claims 1 to 4, further comprising the step of: determining a negative obstacle area at a pixel of the depth map based on the comparison, the depth parameter of the pixel being higher than an assigned depth threshold of the pixel.

6. 6. The method of claim 5, wherein the assignment of the depth threshold for each line between the top line and the bottom line is performed by assigning a value of a predetermined mathematical function between the top depth threshold and the bottom depth threshold.

7. The method of claim 6 , wherein the predetermined mathematical function is determined using a height of a user and a pitch component of a coordinate system of the distance sensor relative to the world coordinate system.

8. dividing the detected floor area into a plurality of cells, the detected floor including the determined negative obstacle area; The method according to any one of claims 5 to 7, further comprising the step of determining a lateral step based on the intersection of the pixels classified as floor areas with the pixels classified as both floor areas and negative obstacle areas.

9. selecting a frontal area from the detected floor areas, the frontal area simulating a space in front of the user and in the direction of the user's movement; obtaining a v-disparity map of depth parameters of the pixels of the portion of the depth map found within the selected frontal area; selecting the most common depth value for each row of the v-disparity map; 9. The method according to claim 5, further comprising: determining a frontal step floor area based on a selection of values ​​of the v-disparity map, the frontal step floor area being determined by selecting a line corresponding to a discontinuity between rows of the acquired v-disparity map.

10. The selection of the line corresponding to a discontinuity in the acquired v-disparity map, Selecting multiple enclosure lines for each line; comparing the selected value of the v-disparity map for a line with the value of the v-disparity map for the encircling line; 10. The method of claim 9, wherein the method is performed by: if the comparison is higher than a discontinuity threshold, determining a front step floor area as the area corresponding to the selected line within the selected front area.

11. generating a three-dimensional virtual map of a predetermined area surrounding the user; obtaining a set of virtual coordinates of a user within the virtual map; obtaining a set of virtual coordinates of detected targets in the virtual map relative to the user's virtual coordinates and a type of the detected targets from a segmented portion of the normal map; storing tags of the user and the detected targets on corresponding acquired virtual coordinates of the user and the detected targets in the virtual map; verifying whether the tag of the detected target has been previously stored in the virtual map; In case of a positive result, verifying whether the detected target is detected recursively; The method according to any one of claims 1 to 10, further comprising a verifying step: in case of a positive result, tagging the detected targets as not relevant.

12. 12. The method of claim 11, wherein the steps of claim 11 are performed by using a SLAM type algorithm.

13. selecting a signaling area of ​​the virtual map based on the virtual coordinates of the user and the determined orientation of the coordinate system of the distance sensor; selecting the detected targets that are not marked as irrelevant within a selected signaling area of ​​the virtual map; The method of claim 11 or 12, further comprising: signaling the selected target to the user.

14. the visual aid is connected to a repository containing a three-dimensional virtual map of a given area surrounding the user; selecting a safe zone of the virtual map based on the virtual coordinates of the user and the determined orientation of the coordinate system of the distance sensor, the safe zone surrounding the user; obtaining a set of virtual coordinates of previously detected targets stored in the virtual map; verifying whether the obtained set of virtual coordinates of the detected target is within a selected signaling area; 14. The method of claim 13, further comprising: verifying, in case of a positive result, that the obtained set of virtual coordinates of the detected target is within a safety zone, signaling the detected target to a user.

15. The method of claim 14, wherein the signaling is visual signaling.

16. The visual aid comprises a display, the signaling area comprises a 2D virtual image of the virtual map based on the determined orientation of the coordinate system of the distance sensor and the virtual coordinates of the user, and the visual signaling comprises: - superimposing visual signaling on the generated 2D virtual image of the selected obstacles that are not marked as irrelevant; and displaying the superimposed 2D virtual image on a display.

17. The method of claim 14, wherein the signaling is voice-based signaling.

18. The method of claim 14, wherein the signaling is tactile signaling.

19. A visual aid for detecting obstacle elements, comprising: A distance sensor configured to obtain a normal map; A visual aid device comprising: a communication module for receiving the obtained normal map from the distance sensor and transmitting the obtained normal map to a computing module, the computing module being configured to perform the method according to any one of claims 1 to 18.

20. A wearable device worn by a user, comprising the visual aid of claim 19, wherein the sensor is mounted on the wearable device.

21. The wearable device of claim 20 , wherein the wearable device comprises glasses and the sensor is mounted on the glasses.

22. A system for detecting obstacle elements, comprising a visual aid device according to claim 19 and a computation module configured to carry out the method according to any one of claims 1 to 18.

23. A computer program product comprising program instructions for causing a computing system to carry out any one or more of the methods according to any one of claims 1 to 18.

24. 24. A computer program product according to claim 23 embodied on a storage medium.

25. 24. A computer program product as claimed in claim 23, carried on a carrier signal.

Citation Information

Patent Citations

  • A system for assisting a blind or low-vision subject displacements

    EP3964865A1

  • Information processing device, information processing system, object for operation, and information processing method

    JP2018032111A

  • Radiation dose distribution display system and radiation dose distribution display method

    JP2021043135A

  • Method and device for visually impaired assistance

    US20180189567A1

  • Measurement device and measurement method

    WO2020066847A1