Hi.
I’ve been looking for a way to solve my problem and even though I found a partial solution, I’m still missing a key element.
I’ve got a Basler CCD camera connected to a Pi5 via GigE. I’m using the Basler Pypylon library to control the camera, grab images and save them as well as OpenCV to show them on screen.
Pypylon gives me the option to debayer the raw image and turn it into a variety of formats like jpg, png or tiff, but I want to export them to DNG or any other user friendly raw format.
I know there are many different python libraries available to handle raw images and save them to almost any format, including DNG, but all of those always start from a raw file that you need to read from disk. My problem is that I can’t find a way to save my raw bayer output from the sensor to a raw format. Even if I leave it as it is and save the bayer output to a tiff file, the moment I want to open it as raw from python, the library says it’s not a raw image.
I need to find a way to either save the bayer output to a raw file so I can later put it in a dng container or make rawpy, PiDNG or any of those libraries read the array I’m getting from Pypylon and turn it into a DNG.
Any ideas?
Thanks!
I’ve been looking for a way to solve my problem and even though I found a partial solution, I’m still missing a key element.
I’ve got a Basler CCD camera connected to a Pi5 via GigE. I’m using the Basler Pypylon library to control the camera, grab images and save them as well as OpenCV to show them on screen.
Pypylon gives me the option to debayer the raw image and turn it into a variety of formats like jpg, png or tiff, but I want to export them to DNG or any other user friendly raw format.
I know there are many different python libraries available to handle raw images and save them to almost any format, including DNG, but all of those always start from a raw file that you need to read from disk. My problem is that I can’t find a way to save my raw bayer output from the sensor to a raw format. Even if I leave it as it is and save the bayer output to a tiff file, the moment I want to open it as raw from python, the library says it’s not a raw image.
I need to find a way to either save the bayer output to a raw file so I can later put it in a dng container or make rawpy, PiDNG or any of those libraries read the array I’m getting from Pypylon and turn it into a DNG.
Any ideas?
Thanks!
Statistics: Posted by Ooze3d — Thu May 09, 2024 9:34 am