OpenCV not work with camera

Hello, I have a problem with the camera. The B0241 camera from arducam works with libcamera, but when using it with OpenCV the camera does not work. I have an error that it does not read the frame from the camera. I am using Raspberry Pi 4 (Raspberry OS 32-bit)