原文:python报错: _tkinter.TclError: couldn't recognize data in image file

在用Python创建画布canvas,并在画布上导入图像时报错: tkinter.TclError: couldn t recognize data in image file F: Python test a.gif 用tkinter只能装入GIF图片,也就是扩展名是.gif的图片文件,想要显示其他类型的图片,如png或jpg,需要用到其它模块 在网上寻找解决办法,了解到更改图片后缀并不能修改图 ...

2019-08-12 15:36 0 6940 推荐指数:

查看详情

python报错_couldn't recognize data in image file

一、描述 报错couldn't recognize data in image file 代码: from tkinter import * root = Tk() theLabel = Label(root,text="dog",justify=LEFT,padx=10 ...

Fri Jun 19 06:40:00 CST 2020 0 2440
couldn't open file: data/coco.names

在ubuntu下配置yolo(v2)的时候,编译了源码后,尝试运行demo: 结果报错提示: google上找不到同样的问题。那就是我的使用方式有问题了。 因为ubuntu上临时无法上网,从windows上用git clone下载的darknet的源码。然后vim查看了下源码 ...

Fri Dec 02 19:21:00 CST 2016 0 2024
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM