将单目的足球比赛视频进行3D 重建的系统
Soccerontable是一种能将单目的足球比赛视频进行3D重建的系统,玩家和场地情景能够通过AR/VR备交互式地呈现。
使用 CNN 来训练从足球视频游戏中所提取的玩家数据并进行3D重建过程。
依赖:
•Detectron
•OpenPose
•OpenCV 3.1 OpenCV_contrib
•Eigen3
•Cocoapi
•Boost
•CMake
安装:
git clone https://github.com/krematas/soccerontable $SOCCERCODE
pip3 install -r requirements.txt
下载样例数据
wget http://grail.cs.washington.edu/projects/soccer/barcelona.zip
unzip barcelona.zip
目录示例:barcelona\images\00000.jpg
运行:
运行Detectron
mkdir $DATADIR/detectron
# DETECTRON=/path/to/clone/detectron
cp utils/thirdpartyscripts/infer_subimages.py ./$DETECTRON/tools/
cd $DETECTRON
python2 tools/infer_subimages.py --cfg configs/12_2017_baselines/e2e_mask_rcnn_R-101-FPN_2x.yaml --output-dir $DATADIR/detectron --image-ext jpg --wts https://s3-us-west-2.amazonaws.com/detectron/35861858/12_2017_baselines/e2e_mask_rcnn_R-101-FPN_2x.yaml.02_32_51.SgT4y1cO/output/train/coco_2014_train:coco_2014_valminusminival/generalized_rcnn/model_final.pkl $DATADIR/images/
运行calibration
cd $SOCCERCODE
python3 demo/calibrate_video.py --path_to_data $DATADIR


















