This code is implemeted for the paper
"Xuebin Qin, Shida He, Zichen Zhang, Masood Dehghan and Martin Jagersand. "Real-time salient closed boundary tracking using perceptual grouping and shape priors." the 28th British Machine Vision Conference (BMVC), September 2017."
The demo video can be found https://www.youtube.com/watch?v=Z5ty_rKveVc&t=68s.
The dataset is published https://github.com/NathanUA/SalientClosedBoundaryTrackingDataset.
This implementation is based on Opencv 2.4.9(3.1.0)
, Boost 1.63.0
and ubuntu 14.04 64 bit
.
The edge detector used here is EdgeDrawing(EDLib.h) which is proposed in "C. Topal, C. Akinlar, Edge Drawing: A Combined Real-Time Edge and Segment Detector,” Journal of Visual Communication and Image Representation, 23(6), 862-872, 2012." and can be downloaded from http://ceng.anadolu.edu.tr/CV/downloads/downloads.aspx. We include the lib in the root directory. It is worth to note that we are using the 64 bit ubuntu version of Edge Drawing. We sugggest to test our algorithm on a 64bit Ubuntu OS.
Git clone or Download the zip file and unzip it.
Go to the root path
"make"
then, use command "./SCBT video_proc video_path" to run the code.
For example, read video from .avi file:
"./SCBT_Edge 1 ./RECORDED_VIDEO.avi"
or read video from webcam:
"./SCBT_Edge 0"
video_proc: "0"
: read file from your webcam, "1"
: read video from a .avi file
video_path: specify the video sequence to be loaded. If video_proc == 0, it will be neglected.
(1). Click mouse left button to initialize a
polygon in "Display"
window.
When read video from a webcam,
you have to press key "i"
before
initialization.
(2). Click mouse middle button to finish initialization.
(3). Press key "space"
to run tracking continuously or
press key "s"
to run tracking frame by frame.
Key "r"
can recover the
continuously tracking model).
Xuebin Qin
Department of Computing Science
University of Alberta
Edmonton, AB, Canada, T6G 2E8
Email:
[email protected]
[email protected]
Homepage: http://webdocs.cs.ualberta.ca/~xuebin/