2601浏览
查看: 2601|回复: 1

[求助] MaixPy读取SD卡中图片报错

[复制链接]
用Maixduino摄像头拍摄的图片读取出错    img = image.Imag("/sd/images/1.jpg")
MaixPy读取SD卡中图片报错图1
MonApril-202104127168..png

旅途1  见习技师
 楼主|

发表于 2021-4-12 10:19:12


files = uos.listdir('/sd/images')   # 读入文件夹
num_jpg = len(files)       # 统计文件夹中的文件个数
for file in files: #读取SD卡内照片特征
    img_name = file
    print("/sd/images/" + img_name)
    img_path = "/sd/images/" + img_name
    img = image.Image(img_path)
显示:Memoryerror : Out of normal Micropython Heap Memory ! Please reducethe resolution of the image you are running this algorithm on to bypasshis issue
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

为本项目制作心愿单
购买心愿单
心愿单 编辑
[[wsData.name]]

硬件清单

  • [[d.name]]
btnicon
我也要做!
点击进入购买页面
上海智位机器人股份有限公司 沪ICP备09038501号-4

© 2013-2024 Comsenz Inc. Powered by Discuz! X3.4 Licensed

mail