-
Dataset: Multi-exposure tube contour dataset (METCD)
Aiming at the problems of difficult and inaccurate extraction of tube contours under complex background, we propose a new tube contour detection method based on the fully convolutional network (FCN).
-
Clone the TubeContourDetection repository
git clone https://github.com/chexqi/Tube_Contour_Detection.git
We'll call the directory that you cloned TubeContourDetection into
TCD_ROOT
. -
Download METCD, put it under
TCD_ROOT
$TCD_ROOT/METCD
The METCD contains multi-exposure (ME) images of 72 different scenes constructed with tubes, 30 of them are used for FCN training (train set), 10 of them are used for evaluation (validation set), and the rest are used for additional testing (test set).
Each sample of this dataset contains 9 images collected at different exposure times, the corresponding HDR image and tube contour labels with different widths.
-
Pre-trained model can alse be downloaded directly for validation or testing.
python 3.6.7
opencv-python 3.4.3.18
torch 1.4.0
torchsummary 1.5.1
torchvision 0.5.0
Some other libraries (find what you miss when running the code.)
-
Training
$TCD_ROOT python _01TrainMain.py
The FCN takes ME images of a static scene as input. Each group includes under-exposure, normal-exposure, and over-exposure images, so as to ensure that the network can obtain the information of tube contours in different dynamic ranges.
-
Validation
$TCD_ROOT python _20ValiMain.py
Evaluation with
TCD_ROOT/METCD/Val
. We employ three evaluation metrics:(1) Mean average precision (mAP), the higher the better.
(2) Maximum F-measure at optimal dataset scale (MF-ODS), the higher the better.
(3) Dilate inaccuracy at optimal dataset scale (DIA-ODS), the lower the better.
-
Testing
$TCD_ROOT python _30TestMain.py
Evaluation with
TCD_ROOT/METCD/Test
. Here are same samples of the tube contour detection results.
This code and METCD is released under the MIT License (refer to the LICENSE file for details).
If you find this code or METCD useful in your research, please consider citing:
@article{TubeContourDetection_METCD,
Author = {Xiaoqi Cheng, Junhua Sun, Fuqiang Zhou},
Title = {A Fully Convolutional Network-Based Tube Contour Detection Method Using Multi-Exposure Images},
Journal = {Sensors},
Year = {2021}
}