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