summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2019-04-28 16:35:38 +0200
committerJules Laplace <julescarbon@gmail.com>2019-04-28 16:35:38 +0200
commit1a7ba1ffdb926f5c6faefa1308b12e490ac04927 (patch)
tree91d9f012e2bcbeb17b761323132e94e57e04143c
parenta313f42b12fd58ae2db4561454c91eaf3b776c42 (diff)
notes
-rw-r--r--README.md15
1 files changed, 6 insertions, 9 deletions
diff --git a/README.md b/README.md
index 5c16251..7500bef 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,6 @@
# VFRAME Check API
-VFRAME Check API Service
-
+The VFRAME Check API Service uses perceptual hash to disambiguate similar images as well as provide an image-based search engine.
## Quick Start
@@ -11,7 +10,7 @@ VFRAME Check API Service
```
apt install git nginx mysql-server mysql-client
mysql_secure_installation
-mysql -r root
+mysql -u root -p
```
Create MySQL user:
@@ -40,7 +39,6 @@ python cli_phash.py import -i 'static/sample_set_test_01/images/*'
Build the Javascript frontend:
```
-npm run watch
npm run build
```
@@ -53,7 +51,6 @@ python cli_flask.py run
The server will be running on http://0.0.0.0:5000/
-
### Endpoints
#### POST /v1/match
@@ -64,8 +61,8 @@ Form parameters:
- `threshold` (default: 6) - Minimum similarity threshold. This is the Hamming distance used for phash comparisons.
- `limit` (default: 1) - Number of results to return.
-- `url` - Image URL to fetch and test (will be stored if `add` is true)
-- `q` (file) - Uploaded file to test (will not be stored)
+- `url` - Image URL to fetch and test (will be added if not found!)
+- `q` (file) - Uploaded file to test (will not be added)
#### POST /v1/similar
@@ -75,6 +72,6 @@ Form parameters:
- `threshold` (default: 20) - Minimum similarity threshold.
- `limit` (default: 10) - Number of results to return.
-- `url` - Image URL to fetch and test (will be stored if `add` is true)
-- `q` (file) - Uploaded file to test (will not be stored)
+- `url` - Image URL to fetch and test
+- `q` (file) - Uploaded file to test