cv无法执行resize并报错-215:Assertion failed

[ WARN:0@46.878] global loadsave.cpp:244 cv::findDecoder imread_('D:/users/xxxx/Documents/va/视频样例/nuscenes/samples/CAM_FRONT/n015-2018-07-24-11-22-45+0800__CAM_FRONT__1532402927612460.jpg'): can't open/read file: check file path/integrity

Traceback (most recent call last): File "C:\Users\xxxx\PycharmProjects\pythonProject1\main.py", line 8, in <module> nusc.render_scene_channel(my_scene_token, 'CAM_FRONT')

File "D:\programs\anaconda\lib\site-packages\nuscenes\nuscenes.py", line 584, in render_scene_channel self.explorer.render_scene_channel(scene_token, channel=channel, freq=freq, imsize=imsize, out_path=out_path)

File "D:\programs\anaconda\lib\site-packages\nuscenes\nuscenes.py", line 1761, in render_scene_channel im = cv2.resize(im, imsize)

cv2.error: OpenCV(4.7.0) D:\a\opencv-python\opencv-python\opencv\modules\imgproc\src\resize.cpp:4062: error: (-215:Assertion failed)

原因:路径中有中文,要变成英文

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值