旅途1 发表于 2021-4-12 09:37:41

MaixPy读取SD卡中图片报错

用Maixduino摄像头拍摄的图片读取出错    img = image.Imag("/sd/images/1.jpg")

旅途1 发表于 2021-4-12 10:19:12

点灯鼠 发表于 2021-4-12 09:41
Image不是Imag

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
页: [1]
查看完整版本: MaixPy读取SD卡中图片报错