Skip to content

usydroboticsclub/intro-to-opencv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenCV tutorial

OpenCV is a toolkit for processing computer imagery. This tutorial covers some common jobs you can do using openCV. But first, a bit of context. OpenCV is NOT machine learning; instead, it is a series of algorithms made by humans that do certain tasks. They are not perfect, and you, as another human, have to make the most of them. Additionally, since OpenCV is a toolkit, it is not applicable in every scenario.

What does this repository help you do? It assumes you have a windows/linux/macbook and know nothing except how to click stuff and type stuff. It will help you understand how to solve certain problems. Let's get started!

Table of contents

  1. How do I install OpenCV?
  2. How do I get images from my camera / a file?
  3. How do I show my results?
  4. How do I single out a specific colour from my image?
  5. How do I get rid of noise in my image?
  6. How do I match a particular shape in my image?
  7. How do I find lines in my image?
  8. Where do I go for more info?

Before you start, you may want to clone this repository, as it has a number of useful sample images and code for you.

Installing OpenCV

  1. Install python. If you need step by step instructions doing this, check out our python tutorial: https://github.com/usydroboticsclub/python
  2. Learn python. If you need step by step instructions doing this, check out our python tutorial: https://github.com/usydroboticsclub/python; and our other python tutorial: https://github.com/usydroboticsclub/py_harder
  3. Open a command shell. All platforms have a command shell. If you're on windows, click the start menu and type CMD, then press enter. If you're on mac, go to launcher and type in Terminal. If you're on linux, press your equivalent of a start button and type in terminal.
  4. Type in pip3 install opencv-python and press enter. You many have to wait a bit.
  5. Hooray! You now have opencv on your computer.

Download this repository by clicking the big green 'Code' button towards the top of the page, followed by 'Download Zip'. In each of the python files are instructions and explainations for each of the lessons. Also in the folder is some suplementary material that will be usefull for the challenges!

Please try and complete all of the challenges in each file to gain the power of knowledge!

Additional resources

About

An introduction to opencv.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages