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

AttributeError: 'NoneType' object has no attribute 'shape' #115

Open
qq296141266 opened this issue Feb 22, 2024 · 1 comment
Open

AttributeError: 'NoneType' object has no attribute 'shape' #115

qq296141266 opened this issue Feb 22, 2024 · 1 comment

Comments

@qq296141266
Copy link

import poimage

def removesy(input_image,output_image):
# 支持jpg、png等所有图片格式
poimage.del_watermark(input_image=input_image,output_image=output_image)

if name == "main":

input_image="C:/Users/zhangtao/Desktop/1/1.png"
output_image="C:/Users/zhangtao/Desktop/1/1.0.png"
removesy(input_image,output_image)

QQ截图20240222184741

@chanooh
Copy link

chanooh commented Mar 28, 2024

你可以选择将这两个路径都改成全英文的路径便可解决。或者将poimge库的del_watermark方法下的cv2.imread()和cv2.imread()改成cv2.imdecode()。

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

2 participants