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