import os
import paddlehub as hub
humanseg = hub.Module(name=‘deeplabv3p_xception65_humanseg’)
path = ‘D:/CodeField/Workplace/PythonWorkplace/PillowTest/11_yellow/img/’
files = os.listdir(path)
imgs = []
for i in files:
imgs.append(path + i)
results = humanseg.segmentation(data={‘image’:imgs})
网络爬虫批量抠图
最新推荐文章于 2022-09-20 14:32:01 发布