Skip to content

PolyU-Robocon/PolyU_Workshop_OpenCV_2020

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PolyU_Workshop_OpenCV_2020

Host : HKIESC-PolyU , PolyU Enginnering Club, PolyU Robotics Team
Presenter : @vinesmsuic (From PolyU Robotics Team)

This workshop will briefly introduce Computer Vision and OpenCV.
OpenCV is a robust library for processing images.

Prerequisite

  • Have Python3 Installed
  • Have PIP3 installed
  • Basic knowledge of Python

Preparation

Download the Repo through git clone

$ git clone https://github.com/PolyU-Robocon/PolyU_Workshop_OpenCV_2020.git

or download the Repo hitting that Download ZIP Button.

Install the libraries needed (You need to first cd to the repo.)

$ pip3 install -U -r requirement.txt

In case the above code got error, try to install those dependencies on your own.

  • opencv-python
  • imutils
  • opencv-contrib-python

For Windows/MacOS, you may use anaconda to get opencv Firstly, install anaconda , then type the commands:

$ conda install numpy
$ conda install -c conda-forge opencv
$ sudo pip3 install imutils
$ sudo pip3 install opencv-contrib-python

For Linux distro, use the below command to get opencv

$ sudo apt-get install python3-numpy
$ sudo apt install python3-opencv
$ sudo pip3 install imutils
$ sudo pip3 install opencv-contrib-python

Then run checking.py to verify installation (You need to cd to the scripts folder)

$ cd scripts
$ python3 checking.py 

You should see something like this:

---------------------------------------
My Python version is: 3.7.4
My OpenCV version is: 4.4.0
---------------------------------------

Now you should be able to run the other files.

Content

Notes

  • lecturenotes.md - Conceptual notes.
  • quicknotes.md - Explain python code.

Basics

  • checking.py - check python and opencv versions
  • webcam.py - start camera through opencv
  • imagelayers.py - learn about the image layers
  • colormasking - learn about masking
  • colortracking.py - color tracker for learning color filtering
  • colortrackingFull.py - brief introduction to imutil

Extra

  • colorthresholder.py - color filter picker
  • canny.py - cannyedge detection
  • selectable-tracker.py - selectable object tracking using tracker

Demo Videos

About

Tiny workshop about Image Processing and OpenCV

Topics

Resources

License

Stars

Watchers

Forks

Languages