A comprehensive video synopsis generation tool that supports multiple tracking methods including bounding boxes and masks.
pip install -r requirements.txtChoose one of the following methods:
Method 1: Git Clone
git clone https://github.com/youngwanLEE/centermask2.gitMethod 2: Download from Google Drive (Recommended)
Download centermask2.zip from Google Drive
Generate video synopsis using bounding box annotations:
python synopsis_box.py --anno annotation_Tung_mydinh3.txt --video_path mydinh3.mp4Generate video synopsis using mask annotations:
python synopsis_anno_mask.py --anno ./centermask2/mydinh3.npy --video_path mydinh3.mp4Create synopsis with vehicles aligned to the same lane:
python synopsis_shift.py --anno annotation_Tung_mydinh3.txt --video_path mydinh3.mp4For more configuration options, refer to solo_daxua.py
vcc6.mp4with annotation fileannotation_vcc6.txtmydinh3.mp4with annotation fileannotation_Tung_mydinh3.txt
- Bounding Box Annotations: Generated using YOLOv4 + DeepSORT
- Mask Annotations: Generated using CenterMaskv2 + DeepSORT