diff --git a/setup.cfg b/setup.cfg index 9194bc2..4da5e46 100644 --- a/setup.cfg +++ b/setup.cfg @@ -5,7 +5,7 @@ [metadata] name = face-projection -description = Add a short description here! +description = This projects main goal is to have a simple library to project information into faces while retaining the facial structure. author = Tim Büchner author_email = tim.buechner@uni-jena.de license = MIT @@ -15,13 +15,8 @@ long_description_content_type = text/markdown; charset=UTF-8; variant=GFM url = https://github.com/pyscaffold/pyscaffold/ # Add here related links, for example: project_urls = - Documentation = https://pyscaffold.org/ -# Source = https://github.com/pyscaffold/pyscaffold/ -# Changelog = https://pyscaffold.org/en/latest/changelog.html -# Tracker = https://github.com/pyscaffold/pyscaffold/issues -# Conda-Forge = https://anaconda.org/conda-forge/pyscaffold -# Download = https://pypi.org/project/PyScaffold/#files -# Twitter = https://twitter.com/PyScaffold + Source = https://github.com/cvjena/face-projection + Tracker = https://github.com/cvjena/face-projection/issues # Change if running only on Windows, Mac or Linux (comma-separated) platforms = any @@ -29,7 +24,7 @@ platforms = any # Add here all kinds of additional classifiers as defined under # https://pypi.org/classifiers/ classifiers = - Development Status :: 4 - Beta + Development Status :: 5 - Production/Stable Programming Language :: Python @@ -51,8 +46,8 @@ install_requires = numpy meshpy opencv-python-headless - mediapipe; platform_system != "Darwin" or platform.machine != "arm64" - mediapipe-silicon; platform_system == "Darwin" and platform.machine == "arm64" + mediapipe==0.9.3.0; platform_system != "Darwin" or platform.machine != "arm64" + mediapipe-silicon==0.9.2.1; platform_system == "Darwin" and platform.machine == "arm64" [options.packages.find] where = src @@ -70,17 +65,6 @@ testing = pytest pytest-cov -[options.entry_points] -# Add here console scripts like: -# console_scripts = -# script_name = face_projection.module:function -# For example: -# console_scripts = -# fibonacci = face_projection.skeleton:run -# And any other entry points, for example: -# pyscaffold.cli = -# awesome = pyscaffoldext.awesome.extension:AwesomeExtension - [tool:pytest] # Specify command line options as you would do when invoking pytest directly. # e.g. --cov-report html (or xml) for html/xml output or --junitxml junit.xml diff --git a/src/face_projection/core.py b/src/face_projection/core.py index d1bd396..ef1ebc0 100644 --- a/src/face_projection/core.py +++ b/src/face_projection/core.py @@ -136,7 +136,7 @@ def apply( raise TypeError("beta must be a float between 0 and 1") if not self.face_model.check_valid(img_data): - raise ValueError(f"img_dat is not valid for the face model, expected shape: [{self.face_model.height, self.face_model.width, 3}]") + raise ValueError(f"img_dat is not valid for the face model, expected shape: [{self.face_model.height, self.face_model.width, 3}], got: {img_data.shape}") if lms_face is None: self.get_landmarks(img_face)