Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor project to use a Cropper class #88

Merged
merged 9 commits into from Mar 18, 2020
Merged

Conversation

leblancfg
Copy link
Owner

CLI functionality is left unchanged, but exposes a Python API that takes in a filepath or np.ndarray, and returns an np.ndarray if a face has been detected, or None otherwise.

@leblancfg
Copy link
Owner Author

Fixes #47. Still need to update README.md to make this usable by anyone.

@leblancfg
Copy link
Owner Author

leblancfg commented Mar 16, 2020

This PR should include pictures for e.g. face_percent and padding.

@codecov-io
Copy link

codecov-io commented Mar 16, 2020

Codecov Report

Merging #88 into master will increase coverage by 2.56%.
The diff coverage is 93.36%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #88      +/-   ##
==========================================
+ Coverage   91.81%   94.38%   +2.56%     
==========================================
  Files           4        5       +1     
  Lines         220      267      +47     
==========================================
+ Hits          202      252      +50     
+ Misses         18       15       -3
Impacted Files Coverage Δ
autocrop/__version__.py 100% <100%> (ø) ⬆️
autocrop/__init__.py 91.66% <80%> (+2.77%) ⬆️
autocrop/autocrop.py 93.22% <91.75%> (+1.84%) ⬆️
autocrop/cli.py 95.12% <95.12%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update eae9c93...a7a7a3a. Read the comment docs.

@leblancfg leblancfg changed the title Refactors project to use a Cropper class Refactor project to use a Cropper class Mar 16, 2020
@leblancfg
Copy link
Owner Author

Leaves extra work to be done, but it a step forwards

@leblancfg leblancfg closed this Mar 18, 2020
@leblancfg leblancfg reopened this Mar 18, 2020
@leblancfg leblancfg merged commit 41d9634 into master Mar 18, 2020
@leblancfg leblancfg deleted the leblancfg-object branch March 18, 2020 02:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants