SOLVED Getting raw, uncompressed images CS-MIPI-SC132
-
Hello,
I'm currently trying to make a PTC curve of the Smartsens CS-MIPI-SC132 camera, to do other tests on it after that. However, I am struggling to get raw, uncompressed images from it.
According to the datasheet of the product itself, the camera should be able to output 12/10/8 bit images. (https://www.smartsenstech.com/gs_products) I would like to get 12-bit data from the camera, but I currently am only able to extract 8-bit jpeg images.
I already tried to use:
- the veyeimaging toolbox (https://github.com/veyeimaging/raspberrypi) with which I tried the python code and veye_raspcam toolbox.
- the raspberrypi_v4l2 toolbox (https://github.com/veyeimaging/raspberrypi_v4l2) with which I also was able to take images (by using this command: "gst-launch-1.0 v4l2src num-buffers=1 device=/dev/video0 ! 'video/x-raw, format=(string)UYVY, width=1920,height=1080' ! jpegenc ! filesink location=test_image.jpg")
They both worked, I was able to output 8-bit images, but they were JPEG encoded, which means they are compressed so some data in the images is lost. Maybe I missed something but at the moment I am out of ideas on this.
Does anyone know how to get raw, uncompressed images from the CS-MIPI-SC132 camera?
Thank you in advance!
-
@teacup
Hi,
http://wiki.veye.cc/index.php/CS-MIPI-SC132_Data_Sheet
This camera has an isp module built-in. It can not output RAW DATA.We are developing a new model, IMX296, which will support the output of raw data. But it will take months to start selling.
-
@veye_xumm
Hello,The datasheet says it is possible to get 8-bit uncompressed data, is that true or not? I've tried making a PTC curve with the Y-component of YUV images (which should contain the full black-white image or mono image), but it didn't look good so there probably still was some compression going on.
If I have an uncompressed 8-bit image, but in reality, the image sensor takes 10-bit images I could add analog gain of factor 4 for example right?
-
@teacup
The camera contains a fully functional isp module. The output signal of sensor is indeed 10bit raw, but the YUV data output by the camera is not the result of simple mathematical operation of sensor data.I don't think it is suitable for making PTS curve.