summaryrefslogtreecommitdiff
path: root/check/commands/imagehash/test.py
blob: 7a38ae60ec3722fbb41b577d5471a1f9c5307680 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
"""
Query the database with a test set
"""

import click

from app.models.sql_factory import search_by_phash, add_phash

@click.command()
@click.option('-i', '--input', 'opt_fn',
  required=True,
  help="Directory to search")
@click.pass_context
def cli(ctx, opt_fn):
  """
  Search the database for an image
  """
  print('Searching for a file...')