我在尝试从 firebase 存储中获取文件时遇到错误

问题描述 投票:0回答:0

我正在制作人脸识别考勤系统,如果它检测到人脸,它将显示他们的名字图片....所以我将图像存储在 firebase 存储中以便从存储中获取图像我使用此代码

blob = bucket.get_blob(f'Images/{id}.png')
                array = np.frombuffer(blob.download_as_string(), np.uint8)
                imgStudent = cv2.imdecode(array, cv2.COLOR_BGRA2BGR)

它工作了一段时间,但现在它一直说错误说

AttributeError: 'NoneType' object has no attribute 'download_as_string'
所以我该如何解决这个问题?

我什么都试过了

python firebase attributeerror
© www.soinside.com 2019 - 2024. All rights reserved.