Skip to content

Commit

Permalink
Fix: Some stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
JuliaPoo committed Feb 13, 2022
1 parent 17206e1 commit 772ad0a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion asciiartist/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ def _get_edges(
.resize((int(nx//weight+.5), int(ny//weight+.5)), Image.NEAREST),
dtype=np.uint8)

edges = feature.canny(img, sigma=sigma)
edges = feature.canny(img, sigma=sigma) \
[3:-3,3:-3] # Remove border (scikit-image bug)
edges = np.array(
Image.fromarray(edges)
.resize((nx, ny), Image.NEAREST)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ authors = ["Julia <julia.poo.poo.poo@gmail.com>"]
license = "MIT"

packages = [
{ include = "asciitrace" }
{ include = "asciiartist" }
]

include = [
Expand Down

0 comments on commit 772ad0a

Please sign in to comment.