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!
- How do I install OpenCV?
- How do I get images from my camera / a file?
- How do I show my results?
- How do I single out a specific colour from my image?
- How do I get rid of noise in my image?
- How do I match a particular shape in my image?
- How do I find lines in my image?
- 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.
- Install python. If you need step by step instructions doing this, check out our python tutorial: https://github.com/usydroboticsclub/python
- 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
- 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.
- Type in
pip3 install opencv-python
and press enter. You many have to wait a bit. - 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!
- https://opencv-python-tutroals.readthedocs.io/en/latest/index.html: All of the above tutorials and more!