Wearable Device for Indoor Imminent Danger Detection and Avoidance System with Region-based Ground Segmentation