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

name 'Sharpen' is not defined #20

Open
sugizo opened this issue Dec 17, 2023 · 0 comments
Open

name 'Sharpen' is not defined #20

sugizo opened this issue Dec 17, 2023 · 0 comments

Comments

@sugizo
Copy link

sugizo commented Dec 17, 2023

see class Sharpen in
fimage/fimage/filters.py
but
can't use it

env
google colab

code

from fimage import FImage
from fimage.filters import *
from fimage.presets import *
import matplotlib.pyplot as plt
ori_img = 'maxresdefault.jpg'
res_img = 'Sharpen.png'
image = FImage(ori_img)
image.apply(Sharpen() )
image.save(res_img)
fig = plt.figure(figsize = (22, 22) )
plt.subplot(1, 3, 1)
plt.title("original")
image0 = plt.imread(ori_img)
plt.imshow(image0)
plt.subplot(1, 3, 2)
plt.title("Sharpen")
image0 = plt.imread(res_img)
plt.imshow(image0)

result

NameError                                 Traceback (most recent call last)
[<ipython-input-56-febf78888ce2>](https://localhost:8080/#) in <cell line: 3>()
      1 res_img = 'Sharpen.png'
      2 image = FImage(ori_img)
----> 3 image.apply(Sharpen() )
      4 image.save(res_img)

NameError: name 'Sharpen' is not defined

best regards

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

No branches or pull requests

1 participant