Default: By default, Albumentations depends on opencv-python-headless. This version is chosen because it avoids installing GUI-related dependencies, making it suitable for server environments and containers where graphical interfaces are not needed.
Using Your Existing OpenCV: If you already have a different OpenCV distribution installed (like opencv-python, opencv-contrib-python, or opencv-contrib-python-headless), pip should automatically detect and use it.
Forcing Source Build (Advanced): If you need to force pip to build Albumentations from source and use a specific, pre-existing OpenCV installation (perhaps compiled manually), you can use the --no-binary albumentations flag: