This commit is contained in:
huangtao
2022-09-20 16:14:39 +08:00
parent 4a15c93caf
commit a2f7d1a816

View File

@ -35,11 +35,11 @@ logger = setup_logging('utils/logging.json')
# obs
from obs import ObsClient
obsClient = ObsClient(
access_key_id='EVTRGSWY4SYRLVPVSLAA',
secret_access_key='u1HLPe2xslZEvel2q0euAQ77TgooUG9JYvVGklWi',
server='https://obs.cn-north-1.myhuaweicloud.com'
access_key_id='LHXJC7GIC2NNUUHHTNVI',
secret_access_key='sVWvEItrFKWPp5DxeMvX8jLFU69iXPpzkjuMX3iM',
server='https://obs.cn-east-3.myhuaweicloud.com'
)
bucketName = 'data-storage-9ae1'
bucketName = 'ieemoo-ai'
def Obs(image_file): #保存赠品未识别图片至ocrimg
objectkey = os.path.basename(image_file)
now_time = datetime.datetime.now().strftime("%Y%m%d%H%M%S")