- Mac OS
- Python 3.5+
- Selenium
- Geckodriver
- python3 run.py --queries_file_name="examples.csv"
[category name1], [query1], [query2], [query3]
[category name2], [query2], [query2], [query3]..., [query7]
PS: There is a spcae after comma.
images
|Category name1
| |_Query1
| | |_00001.jpg
| | |_00002.jpg
| |_Query2
| | |_00001.jpg
| | |_00002.jpg
|Category name2
| |_Query1
| | |_00001.jpg
| | |_00002.jpg
| |_Query2
| | |_00001.jpg
| | |_00002.jpg
After you run run.py with your own csv and satisfy your the result. Please run rename.sh file to rename the image. It will give each image a unique ID. The format should be <CategoryID>_<ImageID>.jpg
bash rename.sh
images
|Category name1
| |_Query1
| | |_00001.jpg
| | |_00002.jpg
| |_Query2
| | |_00001.jpg
| | |_00002.jpg
| |_Category name1_all
| | |_00001_00001.jpg
| | |_00001_00002.jpg
|Category name2
| |_Query1
| | |_00001.jpg
| | |_00002.jpg
| |_Query2
| | |_00001.jpg
| | |_00002.jpg
| |_Category name2_all
| | |_00002_00001.jpg
| | |_00002_00002.jpg