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