Coder Social home page Coder Social logo

ajunlonglive / mastering-opencv3-second-edition Goto Github PK

View Code? Open in Web Editor NEW

This project forked from packtpublishing/mastering-opencv3-second-edition

0.0 1.0 0.0 25.16 MB

Mastering OpenCV 3 - Second Edition by Packt

License: MIT License

Shell 0.17% C++ 90.49% C 7.45% Objective-C 0.87% Objective-C++ 0.69% CMake 0.33%

mastering-opencv3-second-edition's Introduction

Mastering OpenCV 3 - Second Edition

This is the code repository for Mastering OpenCV 3 - Second Edition, published by Packt. It contains all the supporting project files necessary to work through the book from start to finish.

About the Book

This book will put you straight to work in creating powerful and unique computer vision applications. Each chapter is structured around a central project and deep dives into an important aspect of OpenCV such as facial recognition, image target tracking, making augmented reality applications, the 3D visualization framework, and machine learning. You’ll learn how to make AI that can remember and use neural networks to help your applications learn.

Instructions and Navigation

All of the code is organized into folders. Each folder starts with a number followed by the application name. For example, Chapter02.

Each chapter of the book is for a separate project. Therefore there are 7 projects for the 7 chapters (note that the 1st edition of the book also had a 9th chapter, only in the eBook).

You can run each project separately, they each contain a README.md text file describing how to build that project, using CMake in most cases, because CMake can be used with many compilers and many operating systems.

To build & run the projects for the book:

  • Install OpenCV (version 3.1.0 is recommended, whereas OpenCV 2 is only supported in the 1st edition of this book). eg: go to http://opencv.org/, click on Downloads, download the latest OpenCV 3.1 version (including prebuilt library), and extract it to "C:\OpenCV" for Windows or ~/OpenCV for Linux. In OpenCV v3.1.0, the prebuilt OpenCV library is in C:\OpenCV\build or ~/OpenCV/build, such as C:\OpenCV\build\x64\vc9 for MS Visual Studio 2008 (or vs10 folder for MS Visual Studio 2010, or the x86 parent folder for 32-bit Windows).
  • Install all the source code of the book. eg: extract the code to "C:\MasteringOpenCV" for Windows or "~/MasteringOpenCV" for Linux.
  • Install CMake v2.8 or later from http://www.cmake.org/.

The code will look like the following:

int cameraNumber = 0;
if (argc> 1)
  cameraNumber = atoi(argv[1]);
  // Get access to the camera.
cv::VideoCapture capture

you will also need a computer, and IDE of your choice (such as Visual Studio, XCode, Eclipse, or QtCreator, running on Windows, Mac, or Linux). Some chapters have further requirements, in particular:

  • To develop an OpenCV program for Raspberry Pi, you will need the Raspberry Pi device, its tools, and basic Raspberry Pi development experience.
  • Several desktop projects require a webcam connected to your computer. Any common USB webcam should suffice, but a webcam of at least 1 megapixel may be desirable.
  • CMake is used in some projects, including OpenCV itself, to build across operating systems and compilers. A basic understanding of build systems is required, and knowledge of cross-platform building is recommended.

An understanding of linear algebra is expected, such as basic vector and matrix operations, and eigen decomposition.

Related Products

Suggestions and Feedback

Click here if you have any feedback or suggestions.

mastering-opencv3-second-edition's People

Contributors

packt-itservice avatar packtpavanr avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.