Skip to content

Hacktoberfest 2020: Added computer vision algorithm #2946

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

Merged
merged 5 commits into from
Oct 16, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update computer_vision/meanthreshold.py
Co-authored-by: Christian Clauss <cclauss@me.com>
  • Loading branch information
TanayKarve and cclauss authored Oct 16, 2020
commit a6a866e3c497ff8b4e7e79300d1785ddad39f866
3 changes: 1 addition & 2 deletions computer_vision/meanthreshold.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,5 @@ def mean_threshold(image: Image) -> Image:


if __name__ == "__main__":
image = Image.open("path_to_image").convert("L")
image = mean_threshold(image)
image = mean_threshold(Image.open("path_to_image").convert("L"))
image.save("output_image_path")