This repo reffer from this Repository and i just convert it to some web. I'm using Argon Template which its nice :) . Its just like google image search but i just showing 5 picture most relevant (hopefully most relevant with object). Like always... Its just a school project. The datasets focus on desert, sea and mountain, also i add some wrong random image for testing. Sadly the datasets still have duplicate :(
Go to cbir.leonprasetya.my.id
- Don't ask me how to clone retard :')
- Basic understanding of linux command line, python and docker
- Python 3.x
- virtualenv
sudo pacman -Syu python-pip python-virtualenv
pip install --upgrade pip
sudo apt install libgl1-mesa-glx
Too much GUI Installer and a bit tricky compared by Linux, and I didn't like that alot.
Follow this tutorial to install Python, pip and virtualenv. Then you'll be okay. Also, if you're facing problem like this.
FileNotFoundError: [Errno 2] No such file or directory: 'c:\\users\\sweet\\appdata\\local\\programs\\python\\python37\\Lib\\venv\\scripts\\nt\\python.exe'
Then you'll have to read this!
FYI : For Windows users. No GUI please, only CMD.
- Go to cloned folder
cd WebCBIR
- Windows
virtualenv venv
and for Arch Linux & Ubuntupython3 -m venv venv
- Activate virtualenv. Run
source venv/bin/activate
for Linux Family or if you're Windows user run.\venv\Scripts\activate.bat
- Upgrade pip
pip install --upgrade pip
- For requirements. Just run
pip install -r requirements.txt
and you'll be okay. - Make sure, you already check
conf
directory, if nothing inside this directory, you can initialize withpython init.py
then recheck again, ifindex.csv
andconf.csv
has generated you're good to go. - Then just run the python file
python runner.py
- Open
localhost:5000
on your browser - Enjoy
- If you want to update the dataset, Just do it from terminal (after you copy or change the images) run
python init.py
, this command will will generatedconf/index.csv
file.
We don't need install everything else, just install docker
docker build -t webcbir .
docker run -d --name webcbir -p 5000:5000 -v $(pwd)/static/datasets:/app/datasets/coba -v $(pwd)/conf:/app/conf webcbir
If you have any changes on source code, just restart the container
docker container restart webcbir
Make PR's if you have any problem and done solving it, or maybe you want contribute in this repository, I will very welcome you guys. Cheers 🍻
- Responsive Design
- Add & Update Dataset Feature
- Add more dataset for more acuracy