I have made a library now: https://github.com/Vincent1-python/micropython_csi_camera it can be used for reference.