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):
|
def is_json(self, data):
|
||||||
try:
|
try:
|
||||||
result = json.loads(data)
|
json.loads(data)
|
||||||
self._log.debug(f"{result} is JSON data")
|
|
||||||
except TypeError:
|
except TypeError:
|
||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
|
@ -204,8 +203,7 @@ class image_classifier:
|
||||||
|
|
||||||
def is_image(self, file):
|
def is_image(self, file):
|
||||||
try:
|
try:
|
||||||
image_object = PIL.Image.open(file)
|
PIL.Image.open(file)
|
||||||
self._log.debug(f"{image_object} is an image for PIL")
|
|
||||||
except OSError as error:
|
except OSError as error:
|
||||||
self._log.debug(f"File '{file}' is not readable by PIL. {error}")
|
self._log.debug(f"File '{file}' is not readable by PIL. {error}")
|
||||||
return False
|
return False
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[metadata]
|
[metadata]
|
||||||
name = image_classifier
|
name = image_classifier
|
||||||
version = 0.0.7
|
version = 0.0.8
|
||||||
|
|
||||||
[options]
|
[options]
|
||||||
packages = image_classifier
|
packages = image_classifier
|
||||||
|
|
5
setup.py
5
setup.py
|
@ -9,11 +9,12 @@ if os.access(requirements_file, os.R_OK):
|
||||||
setuptools.setup(
|
setuptools.setup(
|
||||||
scripts=['image_classifier/image_classifier.py'],
|
scripts=['image_classifier/image_classifier.py'],
|
||||||
author="Antonio J. Delgado",
|
author="Antonio J. Delgado",
|
||||||
version='0.0.7',
|
version='0.0.8',
|
||||||
name='image_classifier',
|
name='image_classifier',
|
||||||
author_email="antoniodelgado@susurrando.com",
|
author_email="antoniodelgado@susurrando.com",
|
||||||
url="",
|
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",
|
license="GPLv3",
|
||||||
install_requires=requirements,
|
install_requires=requirements,
|
||||||
keywords=["face-recognition", "face", "recognition", "classify", "images", "metadata"]
|
keywords=["face-recognition", "face", "recognition", "classify", "images", "metadata"]
|
||||||
|
|
Loading…
Reference in a new issue