Remove extra debug
This commit is contained in:
parent
7636e96658
commit
80a1e50912
3 changed files with 6 additions and 7 deletions
|
@ -158,8 +158,7 @@ class image_classifier:
|
|||
|
||||
def is_json(self, data):
|
||||
try:
|
||||
result = json.loads(data)
|
||||
self._log.debug(f"{result} is JSON data")
|
||||
json.loads(data)
|
||||
except TypeError:
|
||||
return False
|
||||
return True
|
||||
|
@ -204,8 +203,7 @@ class image_classifier:
|
|||
|
||||
def is_image(self, file):
|
||||
try:
|
||||
image_object = PIL.Image.open(file)
|
||||
self._log.debug(f"{image_object} is an image for PIL")
|
||||
PIL.Image.open(file)
|
||||
except OSError as error:
|
||||
self._log.debug(f"File '{file}' is not readable by PIL. {error}")
|
||||
return False
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[metadata]
|
||||
name = image_classifier
|
||||
version = 0.0.7
|
||||
version = 0.0.8
|
||||
|
||||
[options]
|
||||
packages = image_classifier
|
||||
|
|
5
setup.py
5
setup.py
|
@ -9,11 +9,12 @@ if os.access(requirements_file, os.R_OK):
|
|||
setuptools.setup(
|
||||
scripts=['image_classifier/image_classifier.py'],
|
||||
author="Antonio J. Delgado",
|
||||
version='0.0.7',
|
||||
version='0.0.8',
|
||||
name='image_classifier',
|
||||
author_email="antoniodelgado@susurrando.com",
|
||||
url="",
|
||||
description="Find faces in images and add the names as metadata to the images. Move images to a folder withe the structure YYYY/MM/DD.",
|
||||
description="""Find faces in images and add the names as metadata to the images. Move images to
|
||||
a folder withe the structure YYYY/MM/DD.""",
|
||||
license="GPLv3",
|
||||
install_requires=requirements,
|
||||
keywords=["face-recognition", "face", "recognition", "classify", "images", "metadata"]
|
||||
|
|
Loading…
Reference in a new issue