原文: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