[Final Year Project] FPGA based Image Mosaicing using AI (log #2)

Getting started with the installations!

For Windows Run all of these commands in Powershell running as Administrator 

1. Installing Chocolatey on Windows :

Chocolatey is a package manager for Windows and makes installation easier

Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))

2. Installing Python3 :

On Windows –

choco install python3

Python3 and Python2 are installed by default on Ubuntu 16.04

3. Installing Anaconda3:

On Windows –

choco install anaconda3
conda list

4. Installing PIP:

If pip is not already installed on Ubuntu use the following commands –

sudo apt-get insatll python3-pip

4. Installing Python Libraries – Scipy, Numpy, and Matplotlib

On Windows –

python3 -m pip install --user numpy scipy matplotlib

On Ubuntu –

sudo pip3 install numpy scipy matplotlib

5. OpenCV and OpenCV-contrib

(Version 3.4.2.16 for SIFT libraries which are not supported in further versions)

On Windows –

 python3 -m pip install --user opencv-python==3.4.2.16 opencv-contrib-python==3.4.2.16

On Ubuntu –

sudo pip3 install opencv-python==3.4.2.16 opencv-contrib-python==3.4.2.16

Note:
By using SIFT function in a version of OpenCV and OpenCV-contrib released after 3.4.2.16, (in my case I was using version 4.0.0.21) an error is generated as –

cv2.error: OpenCV(3.4.3) C:\projects\opencv-python\opencv_contrib\modules\xfeatures2d\src\sift.cpp:1207: error: (-213:The function/feature is not implemented) 
This algorithm is patented and is excluded in this configuration; Set OPENCV_ENABLE_NONFREE CMake 
option and rebuild the library in function 'cv::xfeatures2d::SIFT::create'

6. To Uninstall any of these libraries

 python3 -m pip uninstall [package-name]
 python3 -m pip uninstall opencv-python opencv-contrib-python
0

Leave a Reply