In this project, I implemented some of the basic concepts in image processing using OpenCV, such as:
- channelize
- gaussian blur
- rotate & resize
- edge detection
- segmentation
- face detection
Edge detection: Face detection:
At first, you should install python, you can download it at python page. Now how to install OpenCV:
Download numpy at numpy and openCV at opencv. Note : both are the same version. Run command prompt(run it as administrator) in directory you download the files, follow the instructions below:
pip install "numpy-...."
pip install opencv-python....
Open terminal, follow the instructions below:
sudo xcodebuild -licence
sudo xcode -select --install
ruby -e "$(curl -fsSl https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update
brew install python3
brew linkapps python3
brew tap homebrew/science
brew install opencv3 --without-python --with-python3
After install python, you can write import cv2
and then press ALT
+Enter
and select install package.