letmaik / rawpy

📷 RAW image processing for Python, a wrapper for libraw
https://pypi.python.org/pypi/rawpy
MIT License
587 stars 67 forks source link

Unsupported file format or not RAW file #127

Closed Sanket-15 closed 3 years ago

Sanket-15 commented 3 years ago

Hello,

I'm trying to open a '.raw' file using the following command : rawpy.imread(image_path). I'm receiving the following error: rawpy._rawpy.LibRawFileUnsupportedError: b'Unsupported file format or not RAW file'

Description about my '.raw' file: The '.raw' file does not contain any header information. Each pixel is stored using 2 bytes/pixels.

Please help me out if anyone faced the same problem.

kmilos commented 3 years ago

Duplicate of #126? @letmaik Maybe a time for doc update or a FAQ? ;)

Sanket-15 commented 3 years ago

Hello @kmilos ,

Thank you for pointing me out on the right direction.

However I'm confused as to how to convert raw file to pgm file using rawtopgm.

Can you please help?

The Environment I'm using is Anaconda and Python 3

letmaik commented 3 years ago

Closing, this question is better suited for stackoverflow.