[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 " ">
|
---|
[4d5270f] | 9 | <!ENTITY opencv-md5sum "e8cb208ce2723481408b604b480183b6">
|
---|
[b75680ba] | 10 | <!ENTITY opencv-size "84 MB">
|
---|
| 11 | <!ENTITY opencv-buildsize "632 MB">
|
---|
| 12 | <!ENTITY opencv-time "4.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 |
|
---|
[48bcac9] | 40 | &lfs90_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>
|
---|
| 94 | <para>One additional file that starts with "ippicv" (integrated
|
---|
| 95 | performance primitives) will be automatically downloaded during the
|
---|
| 96 | cmake portion of the build procedure. This download is specific to the
|
---|
[6d1176f5] | 97 | system architecture.</para>
|
---|
[4b94a6d1] | 98 | </note>
|
---|
| 99 |
|
---|
[f3429309] | 100 | <bridgehead renderas="sect3">opencv Dependencies</bridgehead>
|
---|
[36336d8] | 101 |
|
---|
| 102 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 103 | <para role="required">
|
---|
| 104 | <xref linkend="cmake"/> and
|
---|
| 105 | <xref linkend="unzip"/>
|
---|
| 106 | </para>
|
---|
| 107 |
|
---|
| 108 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 109 | <para role="recommended">
|
---|
| 110 | <xref linkend="ffmpeg"/>,
|
---|
| 111 | <xref linkend="gst10-plugins-base"/>,
|
---|
| 112 | <xref linkend="gtk3"/>,
|
---|
| 113 | <xref linkend="jasper"/>,
|
---|
| 114 | <xref linkend="libjpeg"/>,
|
---|
| 115 | <xref linkend="libpng"/>,
|
---|
| 116 | <xref linkend="libtiff"/>,
|
---|
[f3429309] | 117 | <xref linkend="libwebp"/>,
|
---|
[36336d8] | 118 | <xref linkend="v4l-utils"/>, and
|
---|
| 119 | <xref linkend="xine-lib"/>
|
---|
| 120 | </para>
|
---|
| 121 |
|
---|
| 122 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 123 | <para role="optional">
|
---|
[f3429309] | 124 | <xref linkend="apache-ant"/>,
|
---|
| 125 | <xref linkend="doxygen"/>,
|
---|
| 126 | <xref linkend="java"/>,
|
---|
[60ddbaf] | 127 | <xref linkend="python2"/>,
|
---|
[36336d8] | 128 | <ulink url="https://developer.nvidia.com/cuda-zone">Cuda</ulink>,
|
---|
| 129 | <ulink url="http://eigen.tuxfamily.org/">Eigen</ulink>,
|
---|
| 130 | <ulink url="http://www.openexr.com/">OpenEXR</ulink>,
|
---|
| 131 | <ulink url="http://gcd.joewheaton.org/">GCD</ulink>,
|
---|
| 132 | <ulink url="http://www.gdal.org/">GDAL</ulink>,
|
---|
[6afe8c1] | 133 | <ulink url="https://www.jai.com/technology/interfaces">GigEVisionSDK</ulink>,
|
---|
[36336d8] | 134 | <ulink url="http://jackaudio.org/">JACK</ulink>,
|
---|
| 135 | <ulink url="http://sourceforge.net/projects/libdc1394/">libdc1394</ulink>,
|
---|
| 136 | <ulink url="http://www.gphoto.org/">libgphoto2</ulink>,
|
---|
| 137 | <ulink url="http://www.numpy.org/">NumPy</ulink>,
|
---|
| 138 | <ulink url="http://structure.io/openni">OpenNI</ulink>,
|
---|
| 139 | <ulink url="http://plantuml.sourceforge.net/">PlanetUML</ulink>,
|
---|
| 140 | <ulink url="http://www.1stvision.com/AVT-gige-camera-software-downloads.html">PvAPI</ulink>,
|
---|
| 141 | <ulink url="https://www.threadingbuildingblocks.org/">Threading Building Blocks (TBB)</ulink>,
|
---|
| 142 | <ulink url="http://unicap-imaging.org/">UniCap</ulink>,
|
---|
| 143 | <ulink url="http://www.vtk.org/">VTK - The Visualization Toolkit</ulink>, and
|
---|
| 144 | <ulink url="http://www.ximea.com/">XIMEA</ulink>
|
---|
| 145 | </para>
|
---|
| 146 |
|
---|
| 147 | <para condition="html" role="usernotes">
|
---|
| 148 | User Notes: <ulink url="&blfs-wiki;/opencv"/>
|
---|
| 149 | </para>
|
---|
| 150 | </sect2>
|
---|
| 151 |
|
---|
| 152 | <sect2 role="installation">
|
---|
| 153 | <title>Installation of opencv</title>
|
---|
| 154 |
|
---|
[d455680] | 155 | <para>
|
---|
| 156 | If needed, unpack the additional modules package:
|
---|
| 157 | </para>
|
---|
| 158 |
|
---|
[6afe8c1] | 159 | <screen><userinput>tar xf ../opencv_contrib-&opencv-contrib-version;.tar.gz</userinput></screen>
|
---|
[d455680] | 160 |
|
---|
[36336d8] | 161 | <para>
|
---|
| 162 | Install <application>opencv</application> by running the following
|
---|
| 163 | commands:
|
---|
| 164 | </para>
|
---|
| 165 |
|
---|
[241bc80] | 166 | <screen><userinput>mkdir build &&
|
---|
[36336d8] | 167 | cd build &&
|
---|
| 168 |
|
---|
[0134954] | 169 | cmake -DCMAKE_INSTALL_PREFIX=/usr \
|
---|
[513d58a] | 170 | -DCMAKE_BUILD_TYPE=Release \
|
---|
| 171 | -DENABLE_CXX11=ON \
|
---|
| 172 | -DBUILD_PERF_TESTS=OFF \
|
---|
[0134954] | 173 | -DWITH_XINE=ON \
|
---|
| 174 | -DBUILD_TESTS=OFF \
|
---|
| 175 | -DENABLE_PRECOMPILED_HEADERS=OFF \
|
---|
[513d58a] | 176 | -DCMAKE_SKIP_RPATH=ON \
|
---|
| 177 | -DBUILD_WITH_DEBUG_INFO=OFF \
|
---|
[0134954] | 178 | -Wno-dev .. &&
|
---|
[36336d8] | 179 | make</userinput></screen>
|
---|
| 180 |
|
---|
| 181 | <para>
|
---|
| 182 | The package does not come with an operable test suite.
|
---|
| 183 | </para>
|
---|
| 184 |
|
---|
| 185 | <para>
|
---|
| 186 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 187 | </para>
|
---|
| 188 |
|
---|
[4b94a6d1] | 189 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
[36336d8] | 190 |
|
---|
| 191 | </sect2>
|
---|
| 192 |
|
---|
| 193 | <sect2 role="commands">
|
---|
| 194 | <title>Command Explanations</title>
|
---|
| 195 |
|
---|
[e6ce0692] | 196 | <para><parameter>-DWITH_XINE=ON</parameter>: This option instructs the make
|
---|
| 197 | procedure to use <xref linkend="xine-lib"/>.</para>
|
---|
[36336d8] | 198 |
|
---|
[0134954] | 199 | <para><parameter>-DENABLE_PRECOMPILED_HEADERS=OFF</parameter>: This option
|
---|
| 200 | is needed for compatibiiity with gcc-6.1 and later.</para>
|
---|
| 201 |
|
---|
[d455680] | 202 | <para><option>-DOPENCV_EXTRA_MODULES_PATH=../opencv_contrib-&opencv-version;/modules</option>:
|
---|
[4b94a6d1] | 203 | instructs the build system to build additional modules.</para>
|
---|
[e4d2b8d] | 204 |
|
---|
[36336d8] | 205 | </sect2>
|
---|
| 206 |
|
---|
| 207 | <sect2 role="content">
|
---|
| 208 | <title>Contents</title>
|
---|
| 209 |
|
---|
| 210 | <segmentedlist>
|
---|
| 211 | <segtitle>Installed Programs</segtitle>
|
---|
| 212 | <segtitle>Installed Libraries</segtitle>
|
---|
| 213 | <segtitle>Installed Directories</segtitle>
|
---|
| 214 |
|
---|
| 215 | <seglistitem>
|
---|
| 216 | <seg>
|
---|
| 217 | opencv_annotation,
|
---|
[4b94a6d1] | 218 | opencv_interactive-calibration,
|
---|
| 219 | opencv_version,
|
---|
| 220 | opencv_visualisation, and
|
---|
| 221 | setup_vars_opencv4.sh
|
---|
[36336d8] | 222 | </seg>
|
---|
| 223 | <seg>
|
---|
| 224 | libopencv_calib3d.so,
|
---|
| 225 | libopencv_core.so,
|
---|
[4b94a6d1] | 226 | libopencv_dnn.so,
|
---|
[36336d8] | 227 | libopencv_features2d.so,
|
---|
| 228 | libopencv_flann.so,
|
---|
[4b94a6d1] | 229 | libopencv_gapi.so,
|
---|
[36336d8] | 230 | libopencv_highgui.so,
|
---|
| 231 | libopencv_imgcodecs.so,
|
---|
| 232 | libopencv_imgproc.so,
|
---|
| 233 | libopencv_ml.so,
|
---|
| 234 | libopencv_objdetect.so,
|
---|
| 235 | libopencv_photo.so,
|
---|
| 236 | libopencv_stitching.so,
|
---|
[4b94a6d1] | 237 | libopencv_video.so, and
|
---|
| 238 | libopencv_videoio.so
|
---|
[36336d8] | 239 | </seg>
|
---|
| 240 | <seg>
|
---|
[4b94a6d1] | 241 | /usr/include/opencv4
|
---|
| 242 | /usr/lib/cmake/opencv4,
|
---|
| 243 | /usr/share/opencv4, and
|
---|
| 244 | /usr/share/java/opencv4
|
---|
[36336d8] | 245 | </seg>
|
---|
| 246 | </seglistitem>
|
---|
| 247 | </segmentedlist>
|
---|
| 248 | <!--
|
---|
| 249 | <variablelist>
|
---|
| 250 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 251 | <?dbfo list-presentation="list"?>
|
---|
| 252 | <?dbhtml list-presentation="table"?>
|
---|
| 253 |
|
---|
| 254 | <varlistentry id="opencv_annotation">
|
---|
| 255 | <term><command>opencv_annotation</command></term>
|
---|
| 256 | <listitem>
|
---|
| 257 | <para>
|
---|
| 258 | ???
|
---|
| 259 | </para>
|
---|
| 260 | <indexterm zone="opencv opencv_annotation">
|
---|
| 261 | <primary sortas="b-opencv">opencv_annotation</primary>
|
---|
| 262 | </indexterm>
|
---|
| 263 | </listitem>
|
---|
| 264 | </varlistentry>
|
---|
| 265 |
|
---|
| 266 | </variablelist>
|
---|
| 267 | -->
|
---|
| 268 | </sect2>
|
---|
| 269 |
|
---|
| 270 | </sect1>
|
---|