[36336d8] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
| 7 | <!ENTITY cvdir "/projects/opencvlibrary/files">
|
---|
| 8 |
|
---|
| 9 | <!ENTITY opencv-download-http "&sourceforge-repo2;&cvdir;/opencv-unix/&opencv-version;/opencv-&opencv-version;.zip">
|
---|
| 10 | <!ENTITY opencv-download-ftp " ">
|
---|
| 11 | <!ENTITY opencv-md5sum "09004c275d8092cbdf5b61675cecd399">
|
---|
| 12 | <!ENTITY opencv-size "96 MB">
|
---|
| 13 | <!ENTITY opencv-buildsize "528 MB">
|
---|
| 14 | <!ENTITY opencv-time "5.5 SBU">
|
---|
| 15 | ]>
|
---|
| 16 |
|
---|
| 17 | <sect1 id="opencv" xreflabel="opencv-&opencv-version;">
|
---|
| 18 | <?dbhtml filename="opencv.html"?>
|
---|
| 19 |
|
---|
| 20 | <sect1info>
|
---|
[d027410] | 21 | <othername>$LastChangedBy$</othername>
|
---|
| 22 | <date>$Date$</date>
|
---|
[36336d8] | 23 | </sect1info>
|
---|
| 24 |
|
---|
| 25 | <title>opencv-&opencv-version;</title>
|
---|
| 26 |
|
---|
| 27 | <indexterm zone="opencv">
|
---|
| 28 | <primary sortas="a-opencv">opencv</primary>
|
---|
| 29 | </indexterm>
|
---|
| 30 |
|
---|
| 31 | <sect2 role="package">
|
---|
| 32 | <title>Introduction to opencv</title>
|
---|
| 33 |
|
---|
| 34 | <para>
|
---|
[f3429309] | 35 | The <application>opencv</application> package contains graphics libraries
|
---|
[36336d8] | 36 | mainly aimed at real-time computer vision.
|
---|
| 37 | </para>
|
---|
| 38 |
|
---|
[60d53ec3] | 39 | &lfs78_checked;
|
---|
[36336d8] | 40 |
|
---|
| 41 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 42 | <itemizedlist spacing="compact">
|
---|
| 43 | <listitem>
|
---|
| 44 | <para>
|
---|
| 45 | Download (HTTP): <ulink url="&opencv-download-http;"/>
|
---|
| 46 | </para>
|
---|
| 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
| 49 | <para>
|
---|
| 50 | Download (FTP): <ulink url="&opencv-download-ftp;"/>
|
---|
| 51 | </para>
|
---|
| 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
| 54 | <para>
|
---|
| 55 | Download MD5 sum: &opencv-md5sum;
|
---|
| 56 | </para>
|
---|
| 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
| 59 | <para>
|
---|
| 60 | Download size: &opencv-size;
|
---|
| 61 | </para>
|
---|
| 62 | </listitem>
|
---|
| 63 | <listitem>
|
---|
| 64 | <para>
|
---|
| 65 | Estimated disk space required: &opencv-buildsize;
|
---|
| 66 | </para>
|
---|
| 67 | </listitem>
|
---|
| 68 | <listitem>
|
---|
| 69 | <para>
|
---|
| 70 | Estimated build time: &opencv-time;
|
---|
| 71 | </para>
|
---|
| 72 | </listitem>
|
---|
| 73 | </itemizedlist>
|
---|
| 74 |
|
---|
| 75 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 76 | <para>Optional file: <ulink
|
---|
| 77 | url="&sourceforge-repo2;&cvdir;/3rdparty/ippicv/ippicv_linux_20141027.tgz">
|
---|
| 78 | &sourceforge-repo2;&cvdir;/3rdparty/ippicv/ippicv_linux_20141027.tgz</ulink>
|
---|
| 79 | </para>
|
---|
| 80 |
|
---|
[f3429309] | 81 | <bridgehead renderas="sect3">opencv Dependencies</bridgehead>
|
---|
[36336d8] | 82 |
|
---|
| 83 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 84 | <para role="required">
|
---|
| 85 | <xref linkend="cmake"/> and
|
---|
| 86 | <xref linkend="unzip"/>
|
---|
| 87 | </para>
|
---|
| 88 |
|
---|
| 89 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 90 | <para role="recommended">
|
---|
| 91 | <xref linkend="ffmpeg"/>,
|
---|
| 92 | <xref linkend="gst10-plugins-base"/>,
|
---|
| 93 | <xref linkend="gtk3"/>,
|
---|
| 94 | <xref linkend="jasper"/>,
|
---|
| 95 | <xref linkend="libjpeg"/>,
|
---|
| 96 | <xref linkend="libpng"/>,
|
---|
| 97 | <xref linkend="libtiff"/>,
|
---|
[f3429309] | 98 | <xref linkend="libwebp"/>,
|
---|
| 99 | <xref linkend="python2"/>,
|
---|
[36336d8] | 100 | <xref linkend="v4l-utils"/>, and
|
---|
| 101 | <xref linkend="xine-lib"/>
|
---|
| 102 | </para>
|
---|
| 103 |
|
---|
| 104 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 105 | <para role="optional">
|
---|
[f3429309] | 106 | <xref linkend="apache-ant"/>,
|
---|
| 107 | <xref linkend="doxygen"/>,
|
---|
| 108 | <xref linkend="java"/>,
|
---|
[36336d8] | 109 | <xref linkend="python3"/>,
|
---|
| 110 | <ulink url="https://developer.nvidia.com/cuda-zone">Cuda</ulink>,
|
---|
| 111 | <ulink url="http://eigen.tuxfamily.org/">Eigen</ulink>,
|
---|
| 112 | <ulink url="http://www.openexr.com/">OpenEXR</ulink>,
|
---|
| 113 | <ulink url="http://gcd.joewheaton.org/">GCD</ulink>,
|
---|
| 114 | <ulink url="http://www.gdal.org/">GDAL</ulink>,
|
---|
| 115 | <ulink url="http://www.jai.com/en/support/gigevisionsdkcontroltoolv130">GigEVisionSDK</ulink>,
|
---|
| 116 | <ulink url="http://jackaudio.org/">JACK</ulink>,
|
---|
| 117 | <ulink url="http://sourceforge.net/projects/libdc1394/">libdc1394</ulink>,
|
---|
| 118 | <ulink url="http://www.gphoto.org/">libgphoto2</ulink>,
|
---|
| 119 | <ulink url="http://www.numpy.org/">NumPy</ulink>,
|
---|
| 120 | <ulink url="http://structure.io/openni">OpenNI</ulink>,
|
---|
| 121 | <ulink url="http://plantuml.sourceforge.net/">PlanetUML</ulink>,
|
---|
| 122 | <ulink url="http://www.1stvision.com/AVT-gige-camera-software-downloads.html">PvAPI</ulink>,
|
---|
| 123 | <ulink url="https://www.threadingbuildingblocks.org/">Threading Building Blocks (TBB)</ulink>,
|
---|
| 124 | <ulink url="http://unicap-imaging.org/">UniCap</ulink>,
|
---|
| 125 | <ulink url="http://www.vtk.org/">VTK - The Visualization Toolkit</ulink>, and
|
---|
| 126 | <ulink url="http://www.ximea.com/">XIMEA</ulink>
|
---|
| 127 | </para>
|
---|
| 128 |
|
---|
| 129 | <para condition="html" role="usernotes">
|
---|
| 130 | User Notes: <ulink url="&blfs-wiki;/opencv"/>
|
---|
| 131 | </para>
|
---|
| 132 | </sect2>
|
---|
| 133 |
|
---|
| 134 | <sect2 role="installation">
|
---|
| 135 | <title>Installation of opencv</title>
|
---|
| 136 |
|
---|
| 137 | <para>
|
---|
| 138 | If the optional Integrated Performance Primitives (IPP) package has been
|
---|
| 139 | downloaded, put it in place so the cmake script does not try to download
|
---|
| 140 | it again:
|
---|
| 141 | </para>
|
---|
| 142 |
|
---|
| 143 | <screen><userinput>ipp_file=../ippicv_linux_20141027.tgz &&
|
---|
| 144 | ipp_hash=$(md5sum $ipp_file | cut -d" " -f1) &&
|
---|
| 145 | ipp_dir=3rdparty/ippicv/downloads/linux-$ipp_hash &&
|
---|
| 146 |
|
---|
| 147 | mkdir -p $ipp_dir &&
|
---|
| 148 | cp $ipp_file $ipp_dir</userinput></screen>
|
---|
| 149 |
|
---|
| 150 | <para>
|
---|
| 151 | Install <application>opencv</application> by running the following
|
---|
| 152 | commands:
|
---|
| 153 | </para>
|
---|
| 154 |
|
---|
| 155 | <screen><userinput>mkdir build &&
|
---|
| 156 | cd build &&
|
---|
| 157 |
|
---|
| 158 | cmake -DCMAKE_INSTALL_PREFIX=/usr \
|
---|
| 159 | -DWITH_XINE=ON \
|
---|
| 160 | -DBUILD_TESTS=OFF \
|
---|
[60d53ec3] | 161 | -Wno-dev ..
|
---|
[36336d8] | 162 | make</userinput></screen>
|
---|
| 163 |
|
---|
| 164 | <para>
|
---|
| 165 | The package does not come with an operable test suite.
|
---|
| 166 | </para>
|
---|
| 167 |
|
---|
| 168 | <para>
|
---|
| 169 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 170 | </para>
|
---|
| 171 |
|
---|
| 172 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 173 |
|
---|
| 174 | </sect2>
|
---|
| 175 |
|
---|
| 176 | <sect2 role="commands">
|
---|
| 177 | <title>Command Explanations</title>
|
---|
| 178 |
|
---|
| 179 | <para><option>-DWITH_XINE=ON</option>: This option instucts the make procedure to
|
---|
| 180 | use <xref linkend="xine-lib"/>.</para>
|
---|
| 181 |
|
---|
| 182 | <para><option>-DWITH_IPP=ON</option>: This option instucts the make procedure to
|
---|
| 183 | use the downloaded IPP package.</para>
|
---|
| 184 |
|
---|
| 185 | </sect2>
|
---|
| 186 |
|
---|
| 187 | <sect2 role="content">
|
---|
| 188 | <title>Contents</title>
|
---|
| 189 |
|
---|
| 190 | <segmentedlist>
|
---|
| 191 | <segtitle>Installed Programs</segtitle>
|
---|
| 192 | <segtitle>Installed Libraries</segtitle>
|
---|
| 193 | <segtitle>Installed Directories</segtitle>
|
---|
| 194 |
|
---|
| 195 | <seglistitem>
|
---|
| 196 | <seg>
|
---|
| 197 | opencv_annotation,
|
---|
| 198 | opencv_createsamples, and
|
---|
| 199 | opencv_traincascade
|
---|
| 200 | </seg>
|
---|
| 201 | <seg>
|
---|
| 202 | libopencv_calib3d.so,
|
---|
| 203 | libopencv_core.so,
|
---|
| 204 | libopencv_features2d.so,
|
---|
| 205 | libopencv_flann.so,
|
---|
| 206 | libopencv_highgui.so,
|
---|
| 207 | libopencv_imgcodecs.so,
|
---|
| 208 | libopencv_imgproc.so,
|
---|
| 209 | libopencv_ml.so,
|
---|
| 210 | libopencv_objdetect.so,
|
---|
| 211 | libopencv_photo.so,
|
---|
| 212 | libopencv_shape.so,
|
---|
| 213 | libopencv_stitching.so,
|
---|
| 214 | libopencv_superres.so,
|
---|
| 215 | libopencv_video.so,
|
---|
| 216 | libopencv_videoio.so, and
|
---|
| 217 | libopencv_videostab.so
|
---|
| 218 | </seg>
|
---|
| 219 | <seg>
|
---|
| 220 | /usr/include/opencv and
|
---|
| 221 | /usr/share/OpenCV
|
---|
| 222 | </seg>
|
---|
| 223 | </seglistitem>
|
---|
| 224 | </segmentedlist>
|
---|
| 225 | <!--
|
---|
| 226 | <variablelist>
|
---|
| 227 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 228 | <?dbfo list-presentation="list"?>
|
---|
| 229 | <?dbhtml list-presentation="table"?>
|
---|
| 230 |
|
---|
| 231 | <varlistentry id="opencv_annotation">
|
---|
| 232 | <term><command>opencv_annotation</command></term>
|
---|
| 233 | <listitem>
|
---|
| 234 | <para>
|
---|
| 235 | ???
|
---|
| 236 | </para>
|
---|
| 237 | <indexterm zone="opencv opencv_annotation">
|
---|
| 238 | <primary sortas="b-opencv">opencv_annotation</primary>
|
---|
| 239 | </indexterm>
|
---|
| 240 | </listitem>
|
---|
| 241 | </varlistentry>
|
---|
| 242 |
|
---|
| 243 | </variablelist>
|
---|
| 244 | -->
|
---|
| 245 | </sect2>
|
---|
| 246 |
|
---|
| 247 | </sect1>
|
---|