Spaces:
Configuration error
Configuration error
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,35 +1,3 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
* Uses a color histogram to define the color content of an image, uses chi-squared distance to determine
|
| 5 |
-
how similar two image histograms are.
|
| 6 |
-
|
| 7 |
-
## Usage Guide
|
| 8 |
-
1. To use a different image dataset (optional)
|
| 9 |
-
* Populate image DB in `app/static/images`
|
| 10 |
-
* Then in Terminal:
|
| 11 |
-
```bash
|
| 12 |
-
>> python3 -m venv venv
|
| 13 |
-
>> source venv/bin/activate
|
| 14 |
-
>> pip install -r requirements.txt
|
| 15 |
-
>> cd app
|
| 16 |
-
>> python index.py --dataset static/images --index index.csv
|
| 17 |
-
```
|
| 18 |
-
|
| 19 |
-
2. Run locally using Docker
|
| 20 |
-
* Install [Docker](https://docs.docker.com/install/#supported-platforms)
|
| 21 |
-
* Then in Terminal:
|
| 22 |
-
```bash
|
| 23 |
-
>> docker build --tag=imagesearch .
|
| 24 |
-
>> docker run -p 80:8000 imagesearch
|
| 25 |
-
```
|
| 26 |
-
* You should be able to access app at `localhost:80` in browser
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
### Sources
|
| 30 |
-
* [pyimagesearch.com](https://www.pyimagesearch.com/start-here-learn-computer-vision-opencv/)
|
| 31 |
-
* [flask docs](http://flask.pocoo.org)
|
| 32 |
-
* [content-based image retrieval](https://en.wikipedia.org/wiki/Content-based_image_retrieval)
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
Project was made possible thanks to the many guides provided by [@Adrian Rosebrock](https://twitter.com/pyimagesearch) on [pyimagesearch.com](https://www.pyimagesearch.com/start-here-learn-computer-vision-opencv/)
|
|
|
|
| 1 |
+
---
|
| 2 |
+
app_file: app.py
|
| 3 |
+
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|