| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
This project was developed as part of the Vision and Cognitive Systems course as an exam in the Master's Degree in Computer Engineering in Unimore.
| Name | |
|---|---|
| Luca Denti | 211805@studenti.unimore.it |
| Cristian Mercadante | 213808@studenti.unimore.it |
| Alberto Vitto | albertovitto@outlook.com |
Given a dataset of videos taken in "Gallerie Estensi" in Modena together with pictures of its paintings, it was required to implement a software in Python capable of detecting paintings in videos and retrieve the original image from the dataset.
In particular:
Optional tasks:
.
├── dataset
│ ├── data.csv
│ ├── features_db.npy
│ ├── ground_truth
│ │ ├── 000_0.json
│ │ ├── ...
│ │ └── 014_16.json
│ ├── img_features_db.npy
│ ├── map.png
│ ├── paintings_db
│ │ ├── 000.png
│ │ ├── ...
│ │ └── 094.png
│ ├── test_set
│ │ ├── 000_0.png
│ │ ├── ...
│ │ └── 014_16.png
│ └── videos
│ ├── 000
│ │ ├── VIRB0391.MP4
│ │ └── ...
│ ├── ...
│ │ └── ...
│ └── 014
│ ├── VID_20180529_112517.mp4
│ └── ...
├── venv
├── estensi
│ ├── painting_detection
│ │ ├── constants.py
│ │ ├── detection.py
│ │ ├── evaluation.py
│ │ └── utils.py
│ ├── painting_rectification
│ │ ├── rectification.py
│ │ └── utils.py
│ ├── painting_retrieval
│ │ ├── evaluation.py
│ │ ├── retrieval.py
│ │ └── utils.py
│ ├── people_detection
│ │ ├── cfg
│ │ │ └── yolov3.cfg
│ │ ├── darknet.py
│ │ ├── data
│ │ │ └── coco.names
│ │ ├── detection.py
│ │ ├── preprocess.py
│ │ ├── utils.py
│ │ └── yolov3.weights
│ ├── people_localization
│ │ ├── localization.py
│ │ └── utils.py
│ └── utils.py
├── estensi.py
├── painting_detection_evaluation.py
├── painting_retrieval_evaluation.py
├── README.md
├── requirements.txt
├── torch_cpu_requirements.txt
└── torch_requirements.txtestensi.py --video <path/to/video> --folder <path/to/folder/> --skip_frames <int_number> [--include_steps]where:
Following videos were used for the evaluation phase:
| Folder | Video |
|---|---|
| 000 | VIRB0393.MP4 |
| 001 | GOPR5825.MP4 |
| 002 | 20180206_114720.mp4 |
| 003 | GOPR1929.MP4 |
| 004 | IMG_3803.MOV |
| 005 | GOPR2051.MP4 |
| 006 | IMG_9629.MOV |
| 007 | IMG_7852.MOV |
| 008 | VIRB0420.MP4 |
| 009 | IMG_2659.MOV |
| 010 | VID_20180529_112706.mp4 |
| 012 | IMG_4087.MOV |
| 013 | 20180529_112417_ok.mp4 |
| 014 | VID_20180529_113001.mp4 |
To get the same results as in the report, download this test set.
painting_detection_evaluation.py [--param <param_grid_file_path>]--param is the path of a JSON file containing the parameters grid for grid search evaluation.
Example of JSON file:
{
"MIN_ROTATED_BOX_AREA_PERCENT": [0.5, 0.8, 0.9],
"MIN_ROTATED_ELLIPSE_AREA_PERCENT": [0.4, 0.6],
"MAX_GRAY_80_PERCENTILE": [170, 200],
"MIN_VARIANCE": [11, 18],
"MIN_HULL_AREA_PERCENT_OF_MAX_HULL": [0.08, 0.15],
"THRESHOLD_BLOCK_SIZE_FACTOR": [50, 80]
}They key values are taken from estensi/painting_detection/constants.py
painting_retrieval_evaluation.py --mode <mode_str> [--rank_scope <scope_int>]This work has only been tested with PyCharm 2020.1.2 (Professional Edition) as IDE and Windows 10 as OS.
| Back | FazBrowse Home | New Git URL |