From 1a7ba1ffdb926f5c6faefa1308b12e490ac04927 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sun, 28 Apr 2019 16:35:38 +0200 Subject: notes --- README.md | 15 ++++++--------- 1 file 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 -- cgit v1.2.3-70-g09d2