Please download and install Basler pylon Camera Software Suite from the attached link below if you have not install it in your machine.
Link: Basler Pylon Camera Software Suite
If you are using Windows machine, please follow the guide below to install Python, Pypylon and OpenCV into your system.
- Install Python from Python installer.
- Open command prompt : Search --> Command prompt
- Copy the command below to the console : pip install opencv-contrib-python
- When the installation is completed, type python and press enter.
- Type import cv2
- Check opencv version by using the command below, it will show the installed OpenCV version : cv2.__version__
- Command exit()
- Command pip install pypylon to install pypylon in order to use Basler camera.
Congratulations. You should able to use Basler camera with OpenCV now.
Same procedure can be applied in Linux system.