<html xmlns="http://www.w3.org/1999/xhtml"><head><meta charset="utf-8"><meta name="generator" content="pdf2htmlEX"><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"><link rel="stylesheet" href="https://csdnimg.cn/release/download_crawler_static/css/base.min.css"><link rel="stylesheet" href="https://csdnimg.cn/release/download_crawler_static/css/fancy.min.css"><link rel="stylesheet" href="https://csdnimg.cn/release/download_crawler_static/11343586/raw.css"><script src="https://csdnimg.cn/release/download_crawler_static/js/compatibility.min.js"></script><script src="https://csdnimg.cn/release/download_crawler_static/js/pdf2htmlEX.min.js"></script><script>try{pdf2htmlEX.defaultViewer = new pdf2htmlEX.Viewer({});}catch(e){}</script><title></title></head><body><div id="sidebar" style="display: none"><div id="outline"></div></div><div id="pf1" class="pf w0 h0" data-page-no="1"><div class="pc pc1 w0 h0"><img class="bi x0 y0 w1 h1" alt="" src="https://csdnimg.cn/release/download_crawler_static/11343586/bg1.jpg"><div class="t m0 x1 h2 y1 ff1 fs0 fc0 sc0 ls0 ws0">A<span class="_ _0"></span>d<span class="_ _0"></span>ri<span class="_ _0"></span>a<span class="_ _0"></span>n K<span class="_ _0"></span>ae<span class="_ _0"></span>hl<span class="_ _0"></span>er & G<span class="_ _0"></span>a<span class="_ _0"></span>r<span class="_ _1"></span>y Br<span class="_ _0"></span>a<span class="_ _0"></span>ds<span class="_ _0"></span>ki </div><div class="t m0 x2 h3 y2 ff2 fs1 fc1 sc0 ls1 ws1"> <span class="_ _2"></span>L<span class="_ _0"></span>e<span class="_ _3"></span>arni<span class="_ _0"></span>n<span class="_ _4"></span>g</div><div class="t m0 x2 h4 y3 ff3 fs2 fc1 sc0 ls2 ws2"> O<span class="_ _5"></span>p<span class="_ _6"></span>e<span class="_ _7"></span>nC<span class="_ _8"></span>V<span class="_ _9"></span> <span class="_ _a"> </span>3</div><div class="t m0 x3 h5 y4 ff4 fs3 fc1 sc0 ls3 ws3">COMP<span class="_ _0"></span>UTER VIS<span class="_ _0"></span>ION IN C<span class="_ _3"></span>++ WITH THE OPENCV LIBR<span class="_ _1"></span>AR<span class="_ _0"></span>Y</div><div class="t m0 x4 h6 y5 ff5 fs4 fc2 sc0 ls0 ws0">www.allitebooks.com</div><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a></div><div class="pi" data-data='{"ctm":[1.904762,0.000000,0.000000,1.904762,0.000000,0.000000]}'></div></div></body></html>
<div id="pf2" class="pf w0 h7" data-page-no="2"><div class="pc pc2 w0 h7"><img class="bi x0 y0 w1 h1" alt="" src="https://csdnimg.cn/release/download_crawler_static/11343586/bg2.jpg"><div class="t m0 x4 h6 y5 ff5 fs4 fc2 sc0 ls0 ws0">www.allitebooks.com</div><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a></div><div class="pi" data-data='{"ctm":[1.904762,0.000000,0.000000,1.904762,0.000000,0.000000]}'></div></div>
<div id="pf3" class="pf w0 h8" data-page-no="3"><div class="pc pc3 w0 h8"><img class="bi x0 y0 w1 h1" alt="" src="https://csdnimg.cn/release/download_crawler_static/11343586/bg3.jpg"><div class="t m0 x5 h9 y6 ff6 fs5 fc3 sc0 ls0 ws0">Adrian Kaehler and Gary Bradski</div><div class="t m0 x6 ha y7 ff7 fs6 fc3 sc0 ls0 ws0">Learning OpenCV 3</div><div class="t m0 x7 hb y8 ff6 fs7 fc3 sc0 ls0 ws0">Computer Vision in C++ with</div><div class="t m0 x8 hb y9 ff6 fs7 fc3 sc0 ls0 ws0">the OpenCV Library</div><div class="c x9 ya w2 hc"><div class="t m0 xa hd yb ff8 fs8 fc3 sc0 ls0 ws0">Boston<span class="_ _b"> </span>Farnham<span class="_ _c"> </span>Sebastopol</div><div class="t m0 xb hd yc ff8 fs8 fc3 sc0 ls0 ws0">Tokyo</div><div class="t m0 x0 hd yb ff8 fs8 fc3 sc0 ls0 ws0">Beijing<span class="_ _d"> </span>Boston<span class="_ _b"> </span>Farnham<span class="_ _c"> </span>Sebastopol</div><div class="t m0 xb hd yc ff8 fs8 fc3 sc0 ls0 ws0">Tokyo</div><div class="t m0 x0 hd yb ff8 fs8 fc3 sc0 ls0 ws0">Beijing</div></div><div class="t m0 x4 h6 y5 ff5 fs4 fc2 sc0 ls0 ws0">www.allitebooks.com</div><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a></div><div class="pi" data-data='{"ctm":[1.904762,0.000000,0.000000,1.904762,0.000000,0.000000]}'></div></div>
<div id="pf4" class="pf w0 h8" data-page-no="4"><div class="pc pc4 w0 h8"><img class="bi x0 y0 w1 h1" alt="" src="https://csdnimg.cn/release/download_crawler_static/11343586/bg4.jpg"><div class="t m0 xc he yd ff9 fs9 fc3 sc0 ls0 ws0">978-1-491-93799-0</div><div class="t m0 xc he ye ff9 fs9 fc3 sc0 ls0 ws0">[M]</div><div class="t m0 xc hf yf ff7 fsa fc3 sc0 ls0 ws0">Learning OpenCV 3</div><div class="t m0 xc he y10 ff9 fs9 fc3 sc0 ls0 ws0">by Adrian Kaehler and Gary Bradski</div><div class="t m0 xc he y11 ff9 fs9 fc3 sc0 ls0 ws0">Copyright © 2017 Adrian Kaehler, Gary Bradski. All rights reserved.</div><div class="t m0 xc he y12 ff9 fs9 fc3 sc0 ls0 ws0">Printed in the United States of America.</div><div class="t m0 xc he y13 ff9 fs9 fc3 sc0 ls0 ws0">Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472.</div><div class="t m0 xc he y14 ff9 fs9 fc3 sc0 ls0 ws4">O’Reilly books may be purchased for educational, business, or sales promotional use. Online editions are</div><div class="t m0 xc h10 y15 ff9 fs9 fc3 sc0 ls0 ws5">also available for most titles (<span class="ffa fc4 ws0">http://www.oreilly.com/safari</span>). For more information, contact our corpo‐</div><div class="t m0 xc h10 y16 ff9 fs9 fc3 sc0 ls0 ws0">rate/institutional sales department: 800-998-9938 or <span class="ffa">corporate@oreilly.com</span>.</div><div class="t m0 xc h11 y17 ff7 fsb fc3 sc0 ls0 ws0">Editor:<span class="ff9 fs9"> <span class="_ _1"></span>Dawn Schanafelt<span class="_ _e"> </span></span>Indexer:<span class="ff9 fs9"> <span class="_ _1"></span>Ellen Troutman</span></div><div class="t m0 xc h11 y18 ff7 fsb fc3 sc0 ls0 ws0">Production <span class="_ _1"></span>Editor:<span class="ff9 fs9"> Kristen<span class="_ _1"></span> Brown<span class="_ _f"> </span></span>Interior <span class="_ _1"></span>Designer:<span class="ff9 fs9"> David<span class="_ _1"></span> Futato</span></div><div class="t m0 xc h11 y19 ff7 fsb fc3 sc0 ls0 ws0">Copyeditor:<span class="ff9 fs9"> <span class="_ _1"></span>Rachel Monaghan<span class="_ _10"> </span></span>Cover <span class="_ _1"></span>Designer:<span class="ff9 fs9"> Karen<span class="_ _1"></span> Montgomery</span></div><div class="t m0 xc h11 y1a ff7 fsb fc3 sc0 ls0 ws0">Proofreader:<span class="ff9 fs9"> <span class="_ _1"></span>James Fraleigh<span class="_ _11"> </span></span>Illustrator:<span class="ff9 fs9"> <span class="_ _1"></span>Rebecca Demarest</span></div><div class="t m0 xc he y1b ff9 fs9 fc3 sc0 ls0 ws0">December 2016:<span class="_ _12"> </span> First Edition</div><div class="t m0 xc h11 y1c ff7 fsb fc3 sc0 ls0 ws0">Revision History for the First Edition</div><div class="t m0 xc he y1d ff9 fs9 fc3 sc0 ls0 ws0">2016-12-09: <span class="_ _13"> </span>First Release</div><div class="t m0 xc h10 y1e ff9 fs9 fc3 sc0 ls0 ws0">See <span class="ffa fc4">http://oreilly.com/catalog/errata.csp?isbn=9781491937990</span> for release details.</div><div class="t m0 xc h10 y1f ff9 fs9 fc3 sc0 ls0 ws6">The O’Reilly logo is a registered trademark of O’Reilly Media, Inc. <span class="ffa">Learning OpenCV 3</span>, the cover image,</div><div class="t m0 xc he y20 ff9 fs9 fc3 sc0 ls0 ws0">and related trade dress are trademarks of O’Reilly Media, Inc.</div><div class="t m0 xc he y21 ff9 fs9 fc3 sc0 ls0 ws7">While the publisher and the authors have used good faith efforts to ensure that the information and</div><div class="t m0 xc he y22 ff9 fs9 fc3 sc0 ls0 ws8">instructions contained in this work are accurate, the publisher and the authors disclaim all responsibility</div><div class="t m0 xc he y23 ff9 fs9 fc3 sc0 ls0 ws9">for errors or omissions, including without limitation responsibility for damages resulting from the use of</div><div class="t m0 xc he y24 ff9 fs9 fc3 sc0 ls0 wsa">or reliance on this work. Use of the information and instructions contained in this work is at your own</div><div class="t m0 xc he y25 ff9 fs9 fc3 sc0 ls0 wsb">risk. If any code samples or other technology this work contains or describes is subject to open source</div><div class="t m0 xc he y26 ff9 fs9 fc3 sc0 ls0 wsc">licenses or the intellectual property rights of others, it is your responsibility to ensure that your use</div><div class="t m0 xc he y27 ff9 fs9 fc3 sc0 ls0 ws0">thereof complies with such licenses and/or rights.</div><div class="t m0 x4 h6 y5 ff5 fs4 fc2 sc0 ls0 ws0">www.allitebooks.com</div><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a></div><div class="pi" data-data='{"ctm":[1.904762,0.000000,0.000000,1.904762,0.000000,0.000000]}'></div></div>
<div id="pf5" class="pf w0 h8" data-page-no="5"><div class="pc pc5 w0 h8"><img class="bi x0 y0 w1 h1" alt="" src="https://csdnimg.cn/release/download_crawler_static/11343586/bg5.jpg"><div class="t m0 xd h12 y28 ff7 fsc fc3 sc0 ls0 ws0">Table of Contents</div><div class="t m0 xc h13 y29 ff7 fs4 fc0 sc0 ls0 ws0">Preface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . <span class="_ _14"></span> xv</div><div class="t m0 xe h13 y2a ff7 fs4 fc3 sc0 ls0 ws0">1.</div><div class="t m0 xf h13 y2b ff7 fs4 fc0 sc0 ls0 ws0">Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . <span class="_ _14"></span> 1</div><div class="t m0 xf h14 y2c ff9 fsd fc0 sc0 ls0 ws0">What Is OpenCV? <span class="_ _15"></span>1</div><div class="t m0 xf h14 y2d ff9 fsd fc0 sc0 ls0 ws0">Who Uses OpenCV? 2</div><div class="t m0 xf h14 y2e ff9 fsd fc0 sc0 ls0 ws0">What Is Computer Vision? <span class="_ _1"></span>3</div><div class="t m0 xf h14 y2f ff9 fsd fc0 sc0 ls0 ws0">The Origin of OpenCV <span class="_ _16"></span>6</div><div class="t m0 x10 h14 y30 ff9 fsd fc0 sc0 ls0 ws0">OpenCV Block Diagram <span class="_ _16"> </span>8</div><div class="t m0 x10 h14 y31 ff9 fsd fc0 sc0 ls0 ws0">Speeding Up OpenCV with IPP <span class="_ _15"></span>9</div><div class="t m0 x10 h14 y32 ff9 fsd fc0 sc0 ls0 ws0">Who Owns OpenCV? <span class="_ _15"></span>10</div><div class="t m0 xf h14 y33 ff9 fsd fc0 sc0 ls0 ws0">Downloading and Installing OpenCV <span class="_ _15"></span>10</div><div class="t m0 x10 h14 y34 ff9 fsd fc0 sc0 ls0 ws0">Installation <span class="_"> </span>10</div><div class="t m0 xf h14 y35 ff9 fsd fc0 sc0 ls0 ws0">Getting the Latest OpenCV via Git <span class="_ _7"></span>13</div><div class="t m0 xf h14 y36 ff9 fsd fc0 sc0 ls0 ws0">More OpenCV Documentation <span class="_ _1"></span>13</div><div class="t m0 x10 h14 y37 ff9 fsd fc0 sc0 ls0 ws0">Supplied Documentation <span class="_ _7"></span>14</div><div class="t m0 x10 h14 y38 ff9 fsd fc0 sc0 ls0 ws0">Online Documentation and the Wiki <span class="_ _16"> </span>14</div><div class="t m0 xf h14 y39 ff9 fsd fc0 sc0 ls0 ws0">OpenCV Contribution Repository <span class="_ _1"></span>17</div><div class="t m0 x10 h14 y3a ff9 fsd fc0 sc0 ls0 ws0">Downloading and Building Contributed Modules <span class="_ _16"> </span>17</div><div class="t m0 xf h14 y3b ff9 fsd fc0 sc0 ls0 ws0">Portability 18</div><div class="t m0 xf h14 y3c ff9 fsd fc0 sc0 ls0 ws0">Summary <span class="_ _7"></span>19</div><div class="t m0 xf h14 y3d ff9 fsd fc0 sc0 ls0 ws0">Exercises <span class="_ _7"></span>19</div><div class="t m0 xe h13 y3e ff7 fs4 fc3 sc0 ls0 ws0">2.</div><div class="t m0 xf h13 y3f ff7 fs4 fc0 sc0 ls0 ws0">Introduction to OpenCV. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . <span class="_ _17"> </span> 21</div><div class="t m0 xf h14 y40 ff9 fsd fc0 sc0 ls0 ws0">Include Files <span class="_ _1"></span>21</div><div class="t m0 x10 h14 y41 ff9 fsd fc0 sc0 ls0 ws0">Resources <span class="_ _15"></span>22</div><div class="t m0 xf h14 y42 ff9 fsd fc0 sc0 ls0 ws0">First Program—Display a Picture <span class="_"> </span>23</div><div class="t m0 xf h14 y43 ff9 fsd fc0 sc0 ls0 ws0">Second Program—Video <span class="_ _7"></span>25</div><div class="t m0 xf h14 y44 ff9 fsd fc0 sc0 ls0 ws0">Moving Around <span class="_"> </span>27</div><div class="t m0 x11 h11 y45 ff7 fsb fc3 sc0 ls0 ws0">iii</div><div class="t m0 x4 h6 y5 ff5 fs4 fc2 sc0 ls0 ws0">www.allitebooks.com</div><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a></div><div class="pi" data-data='{"ctm":[1.904762,0.000000,0.000000,1.904762,0.000000,0.000000]}'></div></div>