diff options
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 31 |
1 files changed, 23 insertions, 8 deletions
@@ -31,6 +31,29 @@ DB_USER=vframe_check DB_PASS=some_new_password ``` +The initial dataset can be hosted locally for now - make sure files are accessible inside `check/static/`. These paths will be added directly to the dataset. + +``` +python cli_phash.py import -i 'static/sample_set_test_01/images/*' +``` + +Build the Javascript frontend: + +``` +npm run watch +npm run build +``` + +Run the server: + +``` +cd check +python cli_flask.py run +``` + +The server will be running on http://0.0.0.0:5000/ + + ### Endpoints #### POST /v1/match @@ -55,11 +78,3 @@ Form parameters: - `url` - Image URL to fetch and test (will be stored if `add` is true) - `q` (file) - Uploaded file to test (will not be stored) - -### Importing files - -The initial dataset can be hosted locally for now - make sure files are accessible inside `check/static/`. These paths will be added directly to the dataset. - -``` -python cli_phash.py import -i 'static/sample_set_test_01/images/*' -``` |
