How to install the OpenCV c++ in the m1 Mac?

I want to know how to install the OpenCV c++ in the m1 Mac.