I have followed this how-to-use-code-to-access-libcamera-c-python tutorial.
This topic is no longer recommended and I have unpinned it. If other users accidentally use it later, I will consider deleting this post.
If you use libcamera_python.zip in the post, please delete it first
sudo apt remove libcamera
You can refer to the tutorial in the link below to use
https://docs.arducam.com/Raspberry-Pi-Camera/Native-camera/PiCamera2-User-Guide/