Camera sensor os02g10 MIPI CSI for IMX8MM: Image issue

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Camera sensor os02g10 MIPI CSI for IMX8MM: Image issue

跳至解决方案
2,827 次查看
btarnowski
Contributor III

Hi all,
I got the image from os02g10 camera sensor.
Settings are: RAW10, 1920x1080, pixelformat = BG10
hs-settle tested from 7 to 22

clk-settle tested for 0 , 1 ,2

mipic-csi frequency tested in range 333MHz - 480MHz


All time the image is the same like below, a colorspace is also the issue.
What can be wrong?

image.png

0 项奖励
回复
1 解答
2,565 次查看
btarnowski
Contributor III

We found solution for this and more issues, there is more details for RAW10 support on IMX8MM

https://community.nxp.com/t5/i-MX-Graphics/gst-launch-1-0-returns-Internal-data-stream-error/m-p/157...

在原帖中查看解决方案

0 项奖励
回复
4 回复数
2,566 次查看
btarnowski
Contributor III

We found solution for this and more issues, there is more details for RAW10 support on IMX8MM

https://community.nxp.com/t5/i-MX-Graphics/gst-launch-1-0-returns-Internal-data-stream-error/m-p/157...

0 项奖励
回复
2,736 次查看
btarnowski
Contributor III

Im going to use this command:
gst-launch-1.0 v4l2src num-buffers=1 ! jpegenc ! filesink location=/tmp/test.jpg
for now it is not working, comparison ov5640 vs os02g10 tells us that the API from the driver side is not sufficient.
ov5640 works.

But I can use additional conversion on the PC computer to convert data file from the os02g10.
I use it:

gst-launch-1.0 -v filesrc location=file_from_os02g10_sensor.raw blocksize=42923008 ! "video/x-bayer,format=bggr,width=1920,height=1080,framerate=1/1" ! bayer2rgb ! videoconvert ! avenc_mjpeg ! filesink location=oputput_file.jpeg

0 项奖励
回复
2,760 次查看
btarnowski
Contributor III

Thanks

I fixed image misalignment issue by this piece of patch:

 

@@ -471,7 +505,9 @@ static void csi_init_interface(struct mx6s_csi_dev *csi_dev)
 	val |= BIT_MCLKEN;
 	__raw_writel(val, csi_dev->regbase + CSI_CSICR1);
 
-	imag_para = (640 << 16) | 960;
+	dev_info(csi_dev->dev,"in function: csi_init_interface\n");
+
+	imag_para = (1080 << 16) | 1920;
 	__raw_writel(imag_para, csi_dev->regbase + CSI_CSIIMAG_PARA);

 

But still there is format issue (color space) and double image issue

btarnowski_0-1663928864396.png

 

0 项奖励
回复