Hi
i am using DM368 in continuous mode.
i am getting output video is having pink shadings where ever dark color found in the input.
where as in one-shot mode video output is fine.
attached the captured ouput video pic taken.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi
i am using DM368 in continuous mode.
i am getting output video is having pink shadings where ever dark color found in the input.
where as in one-shot mode video output is fine.
attached the captured ouput video pic taken.
Sujit,
Can you please post the latest updates based on the offline discussions that we had.
Regards,
Anshuman
Hi all,
the pink color which i had mentioned is now solved.
following is the modification done.
in IPIPE register SRC_HPS the default value 0 has been changed to 1.
i am attaching the video after changing SRC_HPS to 1.
Still there is a visible line observed on the edges. in the video you can observe above the white color ribbon of the camera.
still Anshuman is trying to find out the cause.
oneshot mode image : colorissue_oneshot.BMP (420)
continuous mode image : colorissue.BMP (420)
continuous mode image : colorissue_chainmode_jpeg_422.BMP (420)
oneshot mode image : colorissue_oneshot.BMP (420)
continuous mode image : colorissue.BMP (420) ( The visible line at the edges and at the bootom of the pic is observered only in Chai mode 420 )
continuous mode image : colorissue_chainmode_jpeg_422.BMP (420)
I also had this problem. will change the register and try according to your solution. thanks.
hi Anshuman,
this problem has been solved.
there was aproblem in capture. gfxAttrs.dim.height was coming as 1080 ( 1920x1080- 2 M resolution ) , but it was expected to be divisible by 16. so we modified as following.
gfxAttrs.dim.height = 1088; // 1080;
so now the there is no problem of edges shifted and bootom shifted lines.
i thank you very much for your continuous support and guidence.
Hi,
Just to clarify a few points for everyone else on the forum:
1. The issue mainly was due to the fact that sensor was giving out YUYV data whereas the Image pipe of DM36x needs UYVY data format. This was the first reason of colors getting skewed.
The problem was fixed by moving the start position by one pixel and hence make input data format for resizer as UYVY
2. The issue of the pink edges was again because of the chroma data not being correctly aligned, This is why the issue was coming for YUV420 mode and not YUV422 mode. As in YUV422 mode, the alignment comes automatically due to 2 bytes/pixel.
Regards,
Anshuman
PS: Please mark this post as verified, if you think it has answered your questions. Thanks.
Hi,
I got same problem as yours, the color is wrong, my hands become green; I guess that's YUYV & UYVY different.
But I have no idea how to shift one pixel at DM36x. Does anyone know this? Thanks in advance.
-rhuang-
Hi JC,
sorry for the late reply.
you can move the SRC_HPS IPPE register to 1 pixel.
you can do it in your dm365_ipipe_hw.c file present inside linux dir char driver folder.
in this file you can find the ipipe register writes are happening inside ipipe_hw_setup() function.
regw_ip((config->ipipe_hps) & IPIPE_RSZ_HPS_MASK, IPIPE_SRC_HPS);
config->ipipe_hps value by diffult is coming as 0. change it to 1, which will be and with IPIPE_RSZ_HPS_MASK and result will be written to your IPIPE_SRC_HPS.
hope now you can do this.