Porting OpenCV on RasPi is the lengthiest task compared to installing other libraries. Installing the suitable and companion libraries is necessary for effective running of the image processing algorithms. It has been observed in the community that not many have succeeded in porting the OpenCV properly. We will go through a step-by-step guide that will give you an up-and-running OpenCV at the first time. While installing some of the library, the order of the installation doesn't matter, but it is suggested that the flow given here will give you the exact results you are looking for.
A quick checklist is as follows: