vision.py 文件源码

python
阅读 26 收藏 0 点赞 0 评论 0

项目:pybot 作者: raelga 项目源码 文件源码
def see(url):

    import requests
    import shutil

    path = str(random.random())

    image = requests.get(url, stream=True)
    if image.status_code == 200:
        with open(path, 'wb') as tmpfile:
            image.raw.decode_content = True
            shutil.copyfileobj(image.raw, tmpfile)

        res = process(path)
        os.remove(path)
        return res
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号