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