2

こんにちは、pythonを使った画像処理の学習を始めたばかりです。ネットからダウンロードした画像を開こうとすると、このエラーが発生し続け、解決方法がわかりません。誰でもこれで私を助けてもらえますか?

>>> dna=mahotas.imread('dna.jpeg')

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python27\lib\site-packages\mahotas\io\freeimage.py", line 773, in imread
    img = read(filename)
  File "C:\Python27\lib\site-packages\mahotas\io\freeimage.py", line 444, in read
    bitmap = _read_bitmap(filename, flags)
  File "C:\Python27\lib\site-packages\mahotas\io\freeimage.py", line 490, in _read_bitmap
    'mahotas.freeimage: cannot determine type of file %s' % filename)
ValueError: mahotas.freeimage: cannot determine type of file dna.jpeg
4

1 に答える 1