In this lesson we will be installing open CV library open CV is that open source computer vision library
provided by Intel.
In this course we will be using the open CV library for face recognition.
We will set the drone camera to track a person based on this face recognition.
Now let's get started installing open your web browser and go to HD TTP as Colin slash slash open CV
dot org.
Here you will find the document on open CV.
The document might be a bit complicated so I want you to click on the tutorial link on the right side
of the screen click on introduction to open CV scroll down a bit to find installation in Windows link
click on the link to the page that says installation by using the pre-built libraries.
Now click on the link that says Page on source forge in this page you will see a green button to download
the latest version and this page.
You may find the older version but we'll be downloading the open CV for point zero point zero.
You may find a even more newer version of the library.
You may install that version but I want you to know that there may be some differences let's hit the
download button to start the process.
This may take some time so I will skip the process here we've completed the download.
Click on the tab below to launch the installer.
Let's close this window.
Let's extract the folder by hitting the extract button let's skip the process to the end.
Once you've completed extracting the file the files will be in your download file.
Here you will find the open CV folder.
Right click on the file and choose cut we'll move the file onto the C drive double click on the C drive
and paste the folder remember where we put the file.
It's directly under the C drive.
Now let's go into the file go into the build folder that go into that time 64 folder next.
Go into V.C. 15 folder and go to the bin file.
This will be the open CV file path.
Copy the path so we can set the environment variable.
Now go to the start menu and go to Windows system scroll down to go to the control panel choose system
and security click on system.
Once you reach this screen click on advanced system settings in this window you will see the environment
variables button click on the button depending on your Windows version the location of this button may
differ.
If you can't find the location make sure you do your searching based on the version of your windows
click on this button.
On the middle of the window you will see System variables in the list.
Scroll down to find the variable path.
Once you find the path.
Click on the edit button.
Choose New.
Here we will paste the path we copied earlier.
We just completed setting the open CV under the C drive and set the path to the environment variable.
Now go on click on.
OK.
We've finished installing the open CV.
We want to use the open CV on Python so we will install the library using Pip go to the start menu and
launch the command prompt type pip install open CV either in Python hit enter to run the command and
then installation process will begin.
Here we've finished installing.
Now we want to check if we can access the open CV with Python.
Let's launch this shell by typing python and hit enter.
Now we type in import CV 2 and hit return if you don't see any errors.
This means that open CV has been successfully installed lets close the command prompt window.
Now I want to take the time to also install f f MPEG which we'll be using in the course.
Open your web browser and go to HD TTP s call on slash slash w w w dot f f MPEG dot org.
With this software we will be able to record videos or stream videos for Mac users.
The f f MPEG will automatically be installed when you install the open CV.
But for Windows we need to separately install it.
Click on the download button.
Then click on the windows icon and choose Windows build.
Once you get to this page choose version four point one point one then choose the architecture.
In my case I will be choosing the 64 bit.
Now we can hit the download build button to start the process.
Now lets close this window.
We need to unzip the file.
I have the file downloaded in my downloads folder.
Here you can see the f f MPEG four point one point one we'll go back to the upper folder and right click
on the f f ed Peg folder and choose extract all.
Let's extract the file under the f f MPEG folder.
On the top you can see the extract folder.
We are going to move the folder to the C drive.
But before we make the move let's change the folder name to a simple f f MPEG now drag the folder directly
to the C drive.
Let's open the C drive and you will see the F of MPEG folder go into the folder.
Now go into the bin folder.
Here you see the f f MPEG inside.
We need to set this path to the environment variable so copy the path.
Once again go to the start menu and go to Windows system.
Scroll down to go to the control panel choose system and security and click on system once you reach
this screen click on advanced system settings in this window you will see the environment variables
button click on this button on the middle of the window you will see System variables in the list.
Scroll down to find the variable path.
Once you find the path click on the edit button.
Choose New here we will paste the path we copied earlier.
If you can't find where to edit the environment variables make sure you google search based on your
windows version.
Now let's launch the command prompt type in f f MPEG and hit enter.
If you are able to run the process.
This means you have successfully installed the software.
We've finished installing all the tools we need.
Now we are ready to go onto the actual programming.