Skip to content

Sun-Happy-YKX/SHLE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SHLE: Devices Tracking and Depth Filtering for Stereo-based Height Limit Esimation

Official code of "SHLE: Devices Tracking and Depth Filtering for Stereo-based Height Limit Esimation".

image <br>

Recently, over-height vehicle strike frequently occurs, causing great economic cost and serious safety problems. Hence, an alert system which can accurately discover any possible height limiting devices in advance is necessary to be employed in modern large or medium sized cars, such as touring cars. Detecting height limiting devices and estimating the height limit bars act as the key point of a successful height limit alert system. Though there are some works research height limit estimation, existing methods are either too computational expensive or not accurate enough. <br>

In this paper, we propose a novel stereo-based pipeline named SHLE for height limit estimation. Our SHLE pipeline consists of two stages. In stage 1, a novel devices detection and tracking scheme is introduced, which accurately locate the height limit devices in the left or right image. Then, in stage 2, the depth is temporally measured, extracted and filtered to calculate the height limit bar. To benchmark the height limit estimation task, we build a large-scale dataset named “Disparity Height”, where stereo images, pre-computed disparities and ground-truth height limit annotations are provided. We conducted extensive experiments on “Disparity Height” and the results show that SHLE achieves an average error below than 5cm though the car is 70m away from the devices. Our method also outperforms all compared baselines and achieves state-of-the-art performance. Code will be publicly available for further research.

Dataset

Brief Discription

image <br>

Since we are the first to utilize vision based methods for height limit estimation task. Therefore, there is no public available dataset that we can use. To benchmark our task, we propose a novel large-scale dataset named "Disparity Height". For shooting setting, the baseline of our stereo camera is 120 mm, the camera mounting height is 1.45 m, the resolution of taken photos is $1280\times720$. "Disparity Height" is collected in natural outdoor driving conditions and has a total of 1587 images from 13 scenes, which covers large different types of height limit devices. Simultaneously, corresponding height of the limiters, camera parameters and stereo disparity map are also recorded. Then each image is labelled with bounding box of corresponding height limiter by $Labelme$. <br>

In this dataset, we not only consider different scenes, but also consider the effects of different lighting, weather, etc. Moreover, to verify the generalizability of SHLE designed in this paper, we use the data in the first 10 scene as the training set, and the data in the last 3 scene as the test set. Therefore, "Disparity Height" is a very challenging dataset. It is very meaningful to evaluate the performance of our method and the baselines. <br>

Download URL

In this project, we only provide partial data of "Disparity Heigh for the execution of "demo.sh", and the trained height limiter detector(object detection model) is also provided in this URL.<br>

URL: https://pan.baidu.com/s/1kTvx-dujnPGCRIMrZQcKQw <br>

pwd: cgc9

USER GUIDANCE

Installation

   $git clone git@github.com:Yang-Kaixing/SHLE.git

   $cd SHLE

   $pip install -r requirements.txt

Demo

The demo videos can be generated by running: <br>

      sh demo.sh

You should reset the variable HOME_DIR in demo.sh, i.e., export HOME_DIR='Your SHLE Project Path'. <br>

After download the demo data and trained model, we should move them to correct directory, i.e., move demo data directory to $HOME_DIR/data/demo_data/ and move trained model directory to $HOME_DIR/data/model/. <br>

image <br>

The output video of demo.sh is stored in $HOME_DIR/Stage2/output/videoXXX.mp4 <br>

The effect of SHLE is shown in this video.

Experiment Results

Baseline Comparision

image <br>

Since nobody currently uses deep learning methods in height estimation tasks, we can only transfer models that have achieved excellent results in other similar tasks as baseline for experimental effect pairs, as TABLE I.

Object Detection

image <br>

In our framework, the performance of object detection directly affect follow-up post-process, method of object detection can be treated as the backbone. TABLE II show the performance of all the candidate object detection methods in our dataset.

Ablation Study

image <br>

To further research the impact of each part in SHLE, we conduct a series of ablation study, the results are shown in TABLE III.

Hyperparameter

image <br>

Above image shows the specific hyper-parameter process, taking Height Error Rate(HER: red) and Height Error(HE: black) as vertical axis.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published