Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel
b13240a76b
initialise dvc
1 year ago
b13240a76b
initialise dvc
1 year ago
8f37eadc47
add models directory to dvc tracking
1 year ago
5600cf2b71
LICENSE added
2 years ago
8b0677dafb
modify readme
1 year ago
6981c6651b
LICENSE header
2 years ago
9598edca7f
LICENSE header
2 years ago
9c4bd199e1
Documentations for most of the code.
3 years ago
a71cf979d5
LICENSE header
2 years ago
9807cc3a7d
LICENSE header
2 years ago
36c8adbee5
LICENSE header
2 years ago
3dd7ecdb72
update data.dvc with test video
1 year ago
ea42178770
LICENSE header
2 years ago
490e610cc3
LICENSE header
2 years ago
8f37eadc47
add models directory to dvc tracking
1 year ago
686a50637a
LICENSE header
2 years ago
fa0d12aa6e
LICENSE header
2 years ago
9a4784e476
LICENSE header
2 years ago
a869d5ff00
LICENSE header
2 years ago
bf76a26990
LICENSE header
2 years ago
adbc8e117c
LICENSE header
2 years ago
Storage Buckets
Data Pipeline
Legend
DVC Managed File
Git Managed File
Metric
Stage File
External File

README.md

You have to be logged in to leave a comment. Sign In

Detection of Small Flying Objects in UAV Videos

Refer to the DagsHub repository, where the data and models are tracked.

This repository contains the code used in implementation of the paper Vladan Stojnić, Vladimir Risojević, Mario Muštra, Vedran Jovanović, Janja Filipi, Nikola Kezić, and Zdenka Babić, "A Method for Detection of Small Moving Objects in UAV Videos", published in Remote Sensing.

Dataset with used videos can be obtained from Zenodo here or from the the data folder of the DagsHub repository here.

Code was implemented using Python 3.6. To run the code please create Anaconda environment using dependancies defined in bee4exp.yml.

Main parts of our code are implemented in following python scripts.

Stabilization

Script stabilization.py implements the code for video stabilization. To run the script use:

python stabilization.py -i INPUT_VIDEO_PATH -o OUTPUT_VIDEO_PATH

Generation of synthetic honeybees

Script add_bees_to_video.py implements the code for creating videos with synthetic honeybees. To run the script use:

python add_bees_to_video.py -i INPUT_VIDEOS_DIR_PATH -o OUTPUT_VIDEOS_DIR_PATH --mask MASK_VIDEOS_DIR_PATH --bee_mean BEE_MEAN_VALUE [--num_synthetic_videos NUM_OF_VIDEOS]

Background subtraction

Script bgsub.py implements the code for background subtraction. To run the script use:

python bgsub.py -i INPUT_VIDEO_PATH -o OUTPUT_VIDEO_PATH [--num_avg NUM_OF_FRAMES_FOR_AVERAGE]

HDF5 Dataset creation

Script chunked_dataset.py implements the code for creation of HDF5 datasets. It can create train, val and test dataset. To run the script use:

python chunked_dataset.py -i INPUT_VIDEOS_DIR_PATH --mask MASK_VIDEOS_DIR_PATH -o OUTPUT_DATASET_PATH --type {train, val, test}

Training

Script train.py implements the code for training of segmentation model. To run the script use:

python train.py --train_data TRAIN_DATASET_PATH --val_data VAL_DATASET_PATH --model MODEL_PATH

Detection

Script detection.py implements the code for honeybee detection using trained model. To run the script use:

python detection.py -i INPUT_VIDEO_PATH -o DETECTION_VIDEO_PATH --model MODEL_PATH --heat_map DETECTION_HEAT_MAP_PATH

Performance

Script synthetic_test.py implements the code for calculating precision/recall/F1 on synthetic test dataset. To run the script use:

python synthetic_test.py --test_data TEST_DATASET_PATH --model MODEL_PATH [--thr DETECTION_THRESHOLD]

Script perf.py implements the code for calculating precision/recall/F1 on detections with human labels. To run the script use:

python perf.py -i DETECTION_VIDEO_PATH -a ANNOTATIONS_FILE

Citation

@article{stojnic2021smallmovingobjects, 
    title={A Method for Detection of Small Moving Objects in UAV Videos}, 
    volume={13}, 
    ISSN={2072-4292}, 
    url={http://dx.doi.org/10.3390/rs13040653}, 
    DOI={10.3390/rs13040653}, 
    number={4}, 
    journal={Remote Sensing}, 
    publisher={MDPI AG}, 
    author={Stojnić, Vladan and Risojević, Vladimir and Muštra, Mario and Jovanović, Vedran and Filipi, Janja and Kezić, Nikola and Babić, Zdenka}, 
    year={2021}, 
    month={Feb}, 
    pages={653}
}
Tip!

Press p or to see the previous file or, n or to see the next file

About

Code for paper "Detection of Flying Honeybees in UAV Videos"

Collaborators 1

Comments

Loading...