[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 |
|
---|
[4b94a6d1] | 7 | <!ENTITY opencv-download-http "https://github.com/opencv/opencv/archive/&opencv-version;/opencv-&opencv-version;.tar.gz">
|
---|
[d455680] | 8 | <!ENTITY opencv-download-ftp " ">
|
---|
[57d40736] | 9 | <!ENTITY opencv-md5sum "04e485da95fb189ce6f293abc71bc54e">
|
---|
| 10 | <!ENTITY opencv-size "85 MB">
|
---|
| 11 | <!ENTITY opencv-buildsize "676 MB">
|
---|
[14f1993] | 12 | <!ENTITY opencv-time "3.1 SBU (using parallelism=4)">
|
---|
[e6ce0692] | 13 |
|
---|
| 14 |
|
---|
[5b5575b1] | 15 | <!ENTITY opencv-contrib-download "https://github.com/opencv/opencv_contrib/archive/&opencv-version;/opencv_contrib-&opencv-contrib-version;.tar.gz">
|
---|
[36336d8] | 16 | ]>
|
---|
| 17 |
|
---|
| 18 | <sect1 id="opencv" xreflabel="opencv-&opencv-version;">
|
---|
| 19 | <?dbhtml filename="opencv.html"?>
|
---|
| 20 |
|
---|
| 21 | <sect1info>
|
---|
[d027410] | 22 | <othername>$LastChangedBy$</othername>
|
---|
| 23 | <date>$Date$</date>
|
---|
[36336d8] | 24 | </sect1info>
|
---|
| 25 |
|
---|
| 26 | <title>opencv-&opencv-version;</title>
|
---|
| 27 |
|
---|
| 28 | <indexterm zone="opencv">
|
---|
| 29 | <primary sortas="a-opencv">opencv</primary>
|
---|
| 30 | </indexterm>
|
---|
| 31 |
|
---|
| 32 | <sect2 role="package">
|
---|
| 33 | <title>Introduction to opencv</title>
|
---|
| 34 |
|
---|
| 35 | <para>
|
---|
[f3429309] | 36 | The <application>opencv</application> package contains graphics libraries
|
---|
[36336d8] | 37 | mainly aimed at real-time computer vision.
|
---|
| 38 | </para>
|
---|
| 39 |
|
---|
[f33b456] | 40 | &lfs91_checked;
|
---|
[36336d8] | 41 |
|
---|
| 42 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 43 | <itemizedlist spacing="compact">
|
---|
| 44 | <listitem>
|
---|
| 45 | <para>
|
---|
| 46 | Download (HTTP): <ulink url="&opencv-download-http;"/>
|
---|
| 47 | </para>
|
---|
| 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
| 50 | <para>
|
---|
| 51 | Download (FTP): <ulink url="&opencv-download-ftp;"/>
|
---|
| 52 | </para>
|
---|
| 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
| 55 | <para>
|
---|
| 56 | Download MD5 sum: &opencv-md5sum;
|
---|
| 57 | </para>
|
---|
| 58 | </listitem>
|
---|
| 59 | <listitem>
|
---|
| 60 | <para>
|
---|
| 61 | Download size: &opencv-size;
|
---|
| 62 | </para>
|
---|
| 63 | </listitem>
|
---|
| 64 | <listitem>
|
---|
| 65 | <para>
|
---|
| 66 | Estimated disk space required: &opencv-buildsize;
|
---|
| 67 | </para>
|
---|
| 68 | </listitem>
|
---|
| 69 | <listitem>
|
---|
| 70 | <para>
|
---|
| 71 | Estimated build time: &opencv-time;
|
---|
| 72 | </para>
|
---|
| 73 | </listitem>
|
---|
| 74 | </itemizedlist>
|
---|
| 75 |
|
---|
| 76 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
[d455680] | 77 | <itemizedlist spacing="compact">
|
---|
[4b94a6d1] | 78 | <!-- <listitem>
|
---|
[d455680] | 79 | <para>
|
---|
[513d58a] | 80 | Optional file (x86_64 only; will be downloaded when running cmake if not present):
|
---|
[d455680] | 81 | <ulink
|
---|
[513d58a] | 82 | url="https://raw.githubusercontent.com/opencv/opencv_3rdparty/&ippicv_binaries_commit;/ippicv/&ippicv-version;.tgz"/>
|
---|
[d455680] | 83 | </para>
|
---|
[4b94a6d1] | 84 | </listitem>-->
|
---|
[d455680] | 85 | <listitem>
|
---|
| 86 | <para>
|
---|
| 87 | Optional additional modules: <ulink
|
---|
| 88 | url="&opencv-contrib-download;"/>
|
---|
| 89 | </para>
|
---|
| 90 | </listitem>
|
---|
| 91 | </itemizedlist>
|
---|
| 92 |
|
---|
[4b94a6d1] | 93 | <note>
|
---|
[09f0998] | 94 | <para>
|
---|
| 95 | One additional file that starts with "ippicv" (integrated
|
---|
| 96 | performance primitives) will be automatically downloaded during the
|
---|
| 97 | cmake portion of the build procedure. This download is specific to the
|
---|
| 98 | system architecture.
|
---|
| 99 | </para>
|
---|
[4b94a6d1] | 100 | </note>
|
---|
| 101 |
|
---|
[f3429309] | 102 | <bridgehead renderas="sect3">opencv Dependencies</bridgehead>
|
---|
[36336d8] | 103 |
|
---|
| 104 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 105 | <para role="required">
|
---|
| 106 | <xref linkend="cmake"/> and
|
---|
| 107 | <xref linkend="unzip"/>
|
---|
| 108 | </para>
|
---|
| 109 |
|
---|
| 110 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 111 | <para role="recommended">
|
---|
| 112 | <xref linkend="ffmpeg"/>,
|
---|
| 113 | <xref linkend="gst10-plugins-base"/>,
|
---|
| 114 | <xref linkend="gtk3"/>,
|
---|
| 115 | <xref linkend="jasper"/>,
|
---|
| 116 | <xref linkend="libjpeg"/>,
|
---|
| 117 | <xref linkend="libpng"/>,
|
---|
| 118 | <xref linkend="libtiff"/>,
|
---|
[f3429309] | 119 | <xref linkend="libwebp"/>,
|
---|
[36336d8] | 120 | <xref linkend="v4l-utils"/>, and
|
---|
| 121 | <xref linkend="xine-lib"/>
|
---|
| 122 | </para>
|
---|
| 123 |
|
---|
| 124 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 125 | <para role="optional">
|
---|
[f3429309] | 126 | <xref linkend="apache-ant"/>,
|
---|
| 127 | <xref linkend="doxygen"/>,
|
---|
| 128 | <xref linkend="java"/>,
|
---|
[60ddbaf] | 129 | <xref linkend="python2"/>,
|
---|
[36336d8] | 130 | <ulink url="https://developer.nvidia.com/cuda-zone">Cuda</ulink>,
|
---|
| 131 | <ulink url="http://eigen.tuxfamily.org/">Eigen</ulink>,
|
---|
| 132 | <ulink url="http://www.openexr.com/">OpenEXR</ulink>,
|
---|
| 133 | <ulink url="http://gcd.joewheaton.org/">GCD</ulink>,
|
---|
| 134 | <ulink url="http://www.gdal.org/">GDAL</ulink>,
|
---|
[6afe8c1] | 135 | <ulink url="https://www.jai.com/technology/interfaces">GigEVisionSDK</ulink>,
|
---|
[36336d8] | 136 | <ulink url="http://jackaudio.org/">JACK</ulink>,
|
---|
| 137 | <ulink url="http://sourceforge.net/projects/libdc1394/">libdc1394</ulink>,
|
---|
| 138 | <ulink url="http://www.gphoto.org/">libgphoto2</ulink>,
|
---|
| 139 | <ulink url="http://www.numpy.org/">NumPy</ulink>,
|
---|
| 140 | <ulink url="http://structure.io/openni">OpenNI</ulink>,
|
---|
| 141 | <ulink url="http://plantuml.sourceforge.net/">PlanetUML</ulink>,
|
---|
| 142 | <ulink url="http://www.1stvision.com/AVT-gige-camera-software-downloads.html">PvAPI</ulink>,
|
---|
| 143 | <ulink url="https://www.threadingbuildingblocks.org/">Threading Building Blocks (TBB)</ulink>,
|
---|
| 144 | <ulink url="http://unicap-imaging.org/">UniCap</ulink>,
|
---|
| 145 | <ulink url="http://www.vtk.org/">VTK - The Visualization Toolkit</ulink>, and
|
---|
| 146 | <ulink url="http://www.ximea.com/">XIMEA</ulink>
|
---|
| 147 | </para>
|
---|
| 148 |
|
---|
| 149 | <para condition="html" role="usernotes">
|
---|
| 150 | User Notes: <ulink url="&blfs-wiki;/opencv"/>
|
---|
| 151 | </para>
|
---|
| 152 | </sect2>
|
---|
| 153 |
|
---|
| 154 | <sect2 role="installation">
|
---|
| 155 | <title>Installation of opencv</title>
|
---|
| 156 |
|
---|
[d455680] | 157 | <para>
|
---|
| 158 | If needed, unpack the additional modules package:
|
---|
| 159 | </para>
|
---|
| 160 |
|
---|
[6afe8c1] | 161 | <screen><userinput>tar xf ../opencv_contrib-&opencv-contrib-version;.tar.gz</userinput></screen>
|
---|
[d455680] | 162 |
|
---|
[36336d8] | 163 | <para>
|
---|
| 164 | Install <application>opencv</application> by running the following
|
---|
| 165 | commands:
|
---|
| 166 | </para>
|
---|
| 167 |
|
---|
[241bc80] | 168 | <screen><userinput>mkdir build &&
|
---|
[36336d8] | 169 | cd build &&
|
---|
| 170 |
|
---|
[0134954] | 171 | cmake -DCMAKE_INSTALL_PREFIX=/usr \
|
---|
[513d58a] | 172 | -DCMAKE_BUILD_TYPE=Release \
|
---|
| 173 | -DENABLE_CXX11=ON \
|
---|
| 174 | -DBUILD_PERF_TESTS=OFF \
|
---|
[0134954] | 175 | -DWITH_XINE=ON \
|
---|
| 176 | -DBUILD_TESTS=OFF \
|
---|
| 177 | -DENABLE_PRECOMPILED_HEADERS=OFF \
|
---|
[513d58a] | 178 | -DCMAKE_SKIP_RPATH=ON \
|
---|
| 179 | -DBUILD_WITH_DEBUG_INFO=OFF \
|
---|
[0134954] | 180 | -Wno-dev .. &&
|
---|
[36336d8] | 181 | make</userinput></screen>
|
---|
| 182 |
|
---|
| 183 | <para>
|
---|
| 184 | The package does not come with an operable test suite.
|
---|
| 185 | </para>
|
---|
| 186 |
|
---|
| 187 | <para>
|
---|
| 188 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 189 | </para>
|
---|
| 190 |
|
---|
[4b94a6d1] | 191 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
[36336d8] | 192 |
|
---|
| 193 | </sect2>
|
---|
| 194 |
|
---|
| 195 | <sect2 role="commands">
|
---|
| 196 | <title>Command Explanations</title>
|
---|
| 197 |
|
---|
[09f0998] | 198 | <para>
|
---|
| 199 | <parameter>-DWITH_XINE=ON</parameter>: This option instructs the make
|
---|
| 200 | procedure to use <xref linkend="xine-lib"/>.
|
---|
| 201 | </para>
|
---|
[36336d8] | 202 |
|
---|
[09f0998] | 203 | <para>
|
---|
| 204 | <parameter>-DENABLE_PRECOMPILED_HEADERS=OFF</parameter>: This option
|
---|
| 205 | is needed for compatibiiity with gcc-6.1 and later.
|
---|
| 206 | </para>
|
---|
[0134954] | 207 |
|
---|
[09f0998] | 208 | <para>
|
---|
| 209 | <option>-DOPENCV_EXTRA_MODULES_PATH=../opencv_contrib-&opencv-version;/modules</option>:
|
---|
| 210 | instructs the build system to build additional modules.
|
---|
| 211 | </para>
|
---|
[e4d2b8d] | 212 |
|
---|
[36336d8] | 213 | </sect2>
|
---|
| 214 |
|
---|
| 215 | <sect2 role="content">
|
---|
| 216 | <title>Contents</title>
|
---|
| 217 |
|
---|
| 218 | <segmentedlist>
|
---|
| 219 | <segtitle>Installed Programs</segtitle>
|
---|
| 220 | <segtitle>Installed Libraries</segtitle>
|
---|
| 221 | <segtitle>Installed Directories</segtitle>
|
---|
| 222 |
|
---|
| 223 | <seglistitem>
|
---|
| 224 | <seg>
|
---|
| 225 | opencv_annotation,
|
---|
[4b94a6d1] | 226 | opencv_interactive-calibration,
|
---|
| 227 | opencv_version,
|
---|
| 228 | opencv_visualisation, and
|
---|
| 229 | setup_vars_opencv4.sh
|
---|
[36336d8] | 230 | </seg>
|
---|
| 231 | <seg>
|
---|
| 232 | libopencv_calib3d.so,
|
---|
| 233 | libopencv_core.so,
|
---|
[4b94a6d1] | 234 | libopencv_dnn.so,
|
---|
[36336d8] | 235 | libopencv_features2d.so,
|
---|
| 236 | libopencv_flann.so,
|
---|
[4b94a6d1] | 237 | libopencv_gapi.so,
|
---|
[36336d8] | 238 | libopencv_highgui.so,
|
---|
| 239 | libopencv_imgcodecs.so,
|
---|
| 240 | libopencv_imgproc.so,
|
---|
| 241 | libopencv_ml.so,
|
---|
| 242 | libopencv_objdetect.so,
|
---|
| 243 | libopencv_photo.so,
|
---|
| 244 | libopencv_stitching.so,
|
---|
[4b94a6d1] | 245 | libopencv_video.so, and
|
---|
| 246 | libopencv_videoio.so
|
---|
[36336d8] | 247 | </seg>
|
---|
| 248 | <seg>
|
---|
[4b94a6d1] | 249 | /usr/include/opencv4
|
---|
| 250 | /usr/lib/cmake/opencv4,
|
---|
| 251 | /usr/share/opencv4, and
|
---|
| 252 | /usr/share/java/opencv4
|
---|
[36336d8] | 253 | </seg>
|
---|
| 254 | </seglistitem>
|
---|
| 255 | </segmentedlist>
|
---|
| 256 | <!--
|
---|
| 257 | <variablelist>
|
---|
| 258 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 259 | <?dbfo list-presentation="list"?>
|
---|
| 260 | <?dbhtml list-presentation="table"?>
|
---|
| 261 |
|
---|
| 262 | <varlistentry id="opencv_annotation">
|
---|
| 263 | <term><command>opencv_annotation</command></term>
|
---|
| 264 | <listitem>
|
---|
| 265 | <para>
|
---|
| 266 | ???
|
---|
| 267 | </para>
|
---|
| 268 | <indexterm zone="opencv opencv_annotation">
|
---|
| 269 | <primary sortas="b-opencv">opencv_annotation</primary>
|
---|
| 270 | </indexterm>
|
---|
| 271 | </listitem>
|
---|
| 272 | </varlistentry>
|
---|
| 273 |
|
---|
| 274 | </variablelist>
|
---|
| 275 | -->
|
---|
| 276 | </sect2>
|
---|
| 277 |
|
---|
| 278 | </sect1>
|
---|