Problems encountered when transplanting openmv

I tested the camera and it was normal in image formats other than grayscale (rgb565, yuv422). Do I need to process grayscale when calling sensor_snapshot? The first picture is an unprocessed image. In the second picture, I tried to extract the Y channel separately, but there will be problems. Hope to get helpful information!
1
2

What do you mean by transplanting? I.e. are you using your own board and driver software? If so, then we cannot provide help support.