Example: barber

OpenCV-Python Tutorials Documentation

OpenCV-Python TutorialsDocumentationRelease betaeastWillowNov 09, 2017 Contents1 OpenCV-Python to OpenCV .. Features in OpenCV .. Operations .. Processing in OpenCV .. Detection and Description .. Analysis .. Calibration and 3D Reconstruction .. Learning .. Photography .. Object Detection .. OpenCV-Python Bindings .. 2652 Indices and tables269iiiOpenCV-Python Tutorials Documentation , Release betaThis is Fork From: It updated in 2013 , Too Old. So I Made thisUpdate Date:8 Jul 2016 Contents:Contents1 OpenCV-Python Tutorials Documentation , Release beta2 ContentsCHAPTER1 OpenCV-Python Tutorials Introduction to OpenCVLearn how to setup OpenCV-Python on your computer! Gui Features in OpenCVHere you will learn how to display and save images and videos, controlmouse events and create trackbar. Core OperationsIn this section you will learn basic operations on image like pixel editing,geometric transformations, code optimization, some mathematical tools etc.

Below steps are tested in a Windows 7-64 bit machine with Visual Studio 2010 and Visual Studio 2012. The screenshots shows VS2012. Installing OpenCV from prebuilt binaries 1.Below Python packages are to be downloaded and installed to their …

Tags:

  Step

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Advertisement

Transcription of OpenCV-Python Tutorials Documentation

1 OpenCV-Python TutorialsDocumentationRelease betaeastWillowNov 09, 2017 Contents1 OpenCV-Python to OpenCV .. Features in OpenCV .. Operations .. Processing in OpenCV .. Detection and Description .. Analysis .. Calibration and 3D Reconstruction .. Learning .. Photography .. Object Detection .. OpenCV-Python Bindings .. 2652 Indices and tables269iiiOpenCV-Python Tutorials Documentation , Release betaThis is Fork From: It updated in 2013 , Too Old. So I Made thisUpdate Date:8 Jul 2016 Contents:Contents1 OpenCV-Python Tutorials Documentation , Release beta2 ContentsCHAPTER1 OpenCV-Python Tutorials Introduction to OpenCVLearn how to setup OpenCV-Python on your computer! Gui Features in OpenCVHere you will learn how to display and save images and videos, controlmouse events and create trackbar. Core OperationsIn this section you will learn basic operations on image like pixel editing,geometric transformations, code optimization, some mathematical tools etc.

2 Image Processing in OpenCV3 OpenCV-Python Tutorials Documentation , Release betaIn this section you will learn different image processing functions insideOpenCV. Feature Detection and DescriptionIn this section you will learn about feature detectors and descriptors Video AnalysisIn this section you will learn different techniques to work with videos likeobject tracking etc. Camera Calibration and 3D ReconstructionIn this section we will learn about camera calibration, stereo imaging etc. Machine LearningIn this section you will learn different image processing functions insideOpenCV. Computational PhotographyIn this section you will learn different computational photography tech-niques like image denoising etc. Object Detection4 Chapter 1. OpenCV-Python TutorialsOpenCV-Python Tutorials Documentation , Release betaIn this section you will object detection techniques like face detection etc. OpenCV-Python BindingsIn this section, we will see how OpenCV-Python bindings are generated5 OpenCV-Python Tutorials Documentation , Release Introduction to OpenCV Introduction to OpenCV-Python TutorialsGetting Started with OpenCV-Python Install OpenCV-Python in WindowsSet Up OpenCV-Python in Windows Install OpenCV-Python in FedoraSet Up OpenCV-Python in Fedora6 Chapter 1.

3 OpenCV-Python TutorialsOpenCV-Python Tutorials Documentation , Release Introduction to OpenCV-Python TutorialsOpenCVOpenCV was started at Intel in 1999 byGary Bradskyand the first release came out in Pisarevskyjoined Gary Bradsky to manage Intel s Russian software OpenCV team. In 2005, OpenCV was used on Stanley, thevehicle who won 2005 DARPA Grand Challenge. Later its active development continued under the support of WillowGarage, with Gary Bradsky and Vadim Pisarevsky leading the project. Right now, OpenCV supports a lot of algorithmsrelated to Computer Vision and Machine Learning and it is expanding OpenCV supports a wide variety of programming languages like C++, Python, Java etc and is available ondifferent platforms including Windows, Linux, OS X, Android, iOS etc. Also, interfaces based on CUDA and OpenCLare also under active development for high-speed GPU is the Python API of OpenCV. It combines the best qualities of OpenCV C++ API and is a general purpose programming language started byGuido van Rossum, which became very popular inshort time mainly because of its simplicity and code readability.

4 It enables the programmer to express his ideas infewer lines of code without reducing any to other languages like C/C++, Python is slower. But another important feature of Python is that it canbe easily extended with C/C++. This feature helps us to write computationally intensive codes in C/C++ and createa Python wrapper for it so that we can use these wrappers as Python modules. This gives us two advantages: first,our code is as fast as original C/C++ code (since it is the actual C++ code working in background) and second, itis very easy to code in Python. This is how OpenCV-Python works, it is a Python wrapper around original C++ the support of Numpy makes the task more a highly optimized library for numerical gives a MATLAB-style syntax. All the OpenCV array structures are converted to-and-from Numpy arrays. Sowhatever operations you can do in Numpy, you can combine it with OpenCV, which increases number of weapons inyour arsenal. Besides that, several other libraries like SciPy, Matplotlib which supports Numpy can be used with OpenCV-Python is an appropriate tool for fast prototyping of computer vision TutorialsOpenCV introduces a new set of Tutorials which will guide you through various functions available in guide is mainly focused on OpenCV version(although most of the Tutorials will work with OpenCV ).

5 A prior knowledge on Python and Numpy is required before starting because they won t be covered in this , a good knowledge on Numpy is must to write optimized codes in tutorial has been started byAbid Rahman part of Google Summer of Code 2013 program, under the guidanceofAlexander Needs You !!!Since OpenCV is an open source initiative, all are welcome to make contributions to this library. And it is same forthis tutorial , if you find any mistake in this tutorial (whether it be a small spelling mistake or a big error in code or concepts,whatever), feel free to correct Introduction to OpenCV7 OpenCV-Python Tutorials Documentation , Release betaAnd that will be a good task for freshers who begin to contribute to open source projects. Just fork the OpenCVin github, make necessary corrections and send a pull request to OpenCV. OpenCV developers will check your pullrequest, give you important feedback and once it passes the approval of the reviewer, it will be merged to you become a open source contributor.

6 Similar is the case with other Tutorials , Documentation new modules are added to OpenCV-Python , this tutorial will have to be expanded. So those who knows aboutparticular algorithm can write up a tutorial which includes a basic theory of the algorithm and a code showing basicusage of the algorithm and submit it to , wetogethercan make this project a great success !!!ContributorsBelow is the list of contributors who submitted Tutorials to Alexander Mordvintsev (GSoC-2013 mentor)2. Abid Rahman K. (GSoC-2013 intern)Additional Resources1. A Quick guide to Python - A Byte of Python2. Basic Numpy Tutorials3. Numpy Examples List4. OpenCV Documentation5. OpenCV Install OpenCV-Python in WindowsGoalsIn this tutorial We will learn to setup OpenCV-Python in your Windows steps are tested in a Windows 7-64 bit machine with Visual Studio 2010 and Visual Studio 2012. The screenshotsshows OpenCV from prebuilt binaries1. Below Python packages are to be downloaded and installed to their default Matplotlib (Matplotlib is optional, but recommended since we use it a lot in our Tutorials ).

7 2. Install all packages into their default locations. Python will be installed toC:/Python27/.3. After installation, open Python IDLE. Enterimport numpyand make sure Numpy is working Download latest OpenCV release from sourceforge site and double-click to extract Gotoopencv/build/ 1. OpenCV-Python TutorialsOpenCV-Python Tutorials Documentation , Release beta8. :/Python27/ Open Python IDLE and type following codes in Python terminal.>>> import cv2>>>print the results are printed out without any errors, congratulations !!! You have installed OpenCV-Python OpenCV from source1. Download and install Visual Studio and Visual Studio CMake2. Download and install necessary Python packages to their default Python Matplotlib (Matplotlib is optional, but recommended since we use it a lot in our Tutorials .)Note:In this case, we are using 32-bit binaries of Python packages. But if you want to use OpenCV for x64, 64-bitbinaries of Python packages are to be installed.

8 Problem is that, there is no official 64-bit binaries of Numpy. Youhave to build it on your own. For that, you have to use the same compiler used to build Python. When you start PythonIDLE, it shows the compiler details. You can get more information here. So your system must have the same VisualStudio version and build Numpy from :Another method to have 64-bit Python packages is to use ready-made Python distributions from third-partieslike Anaconda, Enthought etc. It will be bigger in size, but will have everything you need. Everything in a single can also download 32-bit versions Make sure Python and Numpy are working Download OpenCV source. It can be from Sourceforge (for official release version) or from Github (for latestsource).5. Extract it to a folder,opencvand create a new folderbuildin Open CMake-gui (Start > All Programs > CMake-gui)7. Fill the fields as follows (see the image below) Click onBrowse locate Click onBrowse locate thebuildfolder we Click Introduction to OpenCV9 OpenCV-Python Tutorials Documentation , Release It will open a new window to select the compiler.

9 Choose appropriate compiler (here, VisualStudio 11) and Wait until analysis is You will see all the fields are marked in red. Click on theWITH field to expand it. It decides what extra featuresyou need. So mark appropriate fields. See the below image:10 Chapter 1. OpenCV-Python TutorialsOpenCV-Python Tutorials Documentation , Release beta9. Now click onBUILD field to expand it. First few fields configure the build method. See the below Introduction to OpenCV11 OpenCV-Python Tutorials Documentation , Release beta10. Remaining fields specify what modules are to be built. Since GPU modules are not yet supported by OpenCV-Python , you can completely avoid it to save time (But if you work with them, keep it there). See the imagebelow:12 Chapter 1. OpenCV-Python TutorialsOpenCV-Python Tutorials Documentation , Release beta11. Now click onENABLE field to expand it. Make sureENABLE_SOLUTION_FOLDERSis unchecked (So-lution folders are not supported by Visual Studio Express edition).

10 See the image Introduction to OpenCV13 OpenCV-Python Tutorials Documentation , Release beta12. Also make sure that in thePYTHON field, everything is filled. (Ignore PYTHON_DEBUG_LIBRARY). Seeimage below:13. Finally click Now go to ouropencv/buildfolder. There you will Open it with Visual Check build mode asReleaseinstead In the solution explorer, right-click on theSolution(orALL_BUILD) and build it. It will take some time Again, right-click onINSTALLand build it. Now OpenCV-Python will be 1. OpenCV-Python TutorialsOpenCV-Python Tutorials Documentation , Release beta18. Open Python IDLE and enterimport cv2. If no error, it is installed :We have installed with no other support like TBB, Eigen, Qt, Documentation etc. It would be difficult toexplain it here. A more detailed video will be added soon or you can just hack ResourcesExercises1. If you have a windows machine, compile the OpenCV from source. Do all kinds of hacks. If you meet anyproblem, visit OpenCV forum and explain your Install OpenCV-Python in FedoraGoalsIn this tutorial We will learn to setup OpenCV-Python in your Fedora system.


Related search queries