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 cvdir "/projects/opencvlibrary/files">
|
---|
8 |
|
---|
9 | <!ENTITY opencv-download-http "&sourceforge-repo2;&cvdir;/opencv-unix/&opencv-version;/opencv-&opencv-version;.zip">
|
---|
10 | <!ENTITY opencv-download-ftp " ">
|
---|
11 | <!ENTITY opencv-md5sum "6082ee2124d4066581a7386972bfd52a">
|
---|
12 | <!ENTITY opencv-size "76 MB">
|
---|
13 | <!ENTITY opencv-buildsize "1.8 GB">
|
---|
14 | <!ENTITY opencv-time "4.9 SBU">
|
---|
15 |
|
---|
16 | <!ENTITY ippicv-version "20151201">
|
---|
17 | <!ENTITY ippicv_binaries_commit "81a676001ca8075ada498583e4166079e5744668">
|
---|
18 |
|
---|
19 | ]>
|
---|
20 |
|
---|
21 | <sect1 id="opencv" xreflabel="opencv-&opencv-version;">
|
---|
22 | <?dbhtml filename="opencv.html"?>
|
---|
23 |
|
---|
24 | <sect1info>
|
---|
25 | <othername>$LastChangedBy$</othername>
|
---|
26 | <date>$Date$</date>
|
---|
27 | </sect1info>
|
---|
28 |
|
---|
29 | <title>opencv-&opencv-version;</title>
|
---|
30 |
|
---|
31 | <indexterm zone="opencv">
|
---|
32 | <primary sortas="a-opencv">opencv</primary>
|
---|
33 | </indexterm>
|
---|
34 |
|
---|
35 | <sect2 role="package">
|
---|
36 | <title>Introduction to opencv</title>
|
---|
37 |
|
---|
38 | <para>
|
---|
39 | The <application>opencv</application> package contains graphics libraries
|
---|
40 | mainly aimed at real-time computer vision.
|
---|
41 | </para>
|
---|
42 |
|
---|
43 | &lfs7a_checked;
|
---|
44 |
|
---|
45 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
46 | <itemizedlist spacing="compact">
|
---|
47 | <listitem>
|
---|
48 | <para>
|
---|
49 | Download (HTTP): <ulink url="&opencv-download-http;"/>
|
---|
50 | </para>
|
---|
51 | </listitem>
|
---|
52 | <listitem>
|
---|
53 | <para>
|
---|
54 | Download (FTP): <ulink url="&opencv-download-ftp;"/>
|
---|
55 | </para>
|
---|
56 | </listitem>
|
---|
57 | <listitem>
|
---|
58 | <para>
|
---|
59 | Download MD5 sum: &opencv-md5sum;
|
---|
60 | </para>
|
---|
61 | </listitem>
|
---|
62 | <listitem>
|
---|
63 | <para>
|
---|
64 | Download size: &opencv-size;
|
---|
65 | </para>
|
---|
66 | </listitem>
|
---|
67 | <listitem>
|
---|
68 | <para>
|
---|
69 | Estimated disk space required: &opencv-buildsize;
|
---|
70 | </para>
|
---|
71 | </listitem>
|
---|
72 | <listitem>
|
---|
73 | <para>
|
---|
74 | Estimated build time: &opencv-time;
|
---|
75 | </para>
|
---|
76 | </listitem>
|
---|
77 | </itemizedlist>
|
---|
78 |
|
---|
79 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
80 | <para>Optional file: <ulink
|
---|
81 | url="https://raw.githubusercontent.com/Itseez/opencv_3rdparty/&ippicv_binaries_commit;/ippicv/ippicv_linux_&ippicv-version;.tgz">
|
---|
82 | https://raw.githubusercontent.com/Itseez/opencv_3rdparty/&ippicv_binaries_commit;/ippicv/ippicv_linux_&ippicv-version;.tgz</ulink>
|
---|
83 | </para>
|
---|
84 |
|
---|
85 | <bridgehead renderas="sect3">opencv Dependencies</bridgehead>
|
---|
86 |
|
---|
87 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
88 | <para role="required">
|
---|
89 | <xref linkend="cmake"/> and
|
---|
90 | <xref linkend="unzip"/>
|
---|
91 | </para>
|
---|
92 |
|
---|
93 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
94 | <para role="recommended">
|
---|
95 | <xref linkend="ffmpeg"/>,
|
---|
96 | <xref linkend="gst10-plugins-base"/>,
|
---|
97 | <xref linkend="gtk3"/>,
|
---|
98 | <xref linkend="jasper"/>,
|
---|
99 | <xref linkend="libjpeg"/>,
|
---|
100 | <xref linkend="libpng"/>,
|
---|
101 | <xref linkend="libtiff"/>,
|
---|
102 | <xref linkend="libwebp"/>,
|
---|
103 | <xref linkend="python2"/>,
|
---|
104 | <xref linkend="v4l-utils"/>, and
|
---|
105 | <xref linkend="xine-lib"/>
|
---|
106 | </para>
|
---|
107 |
|
---|
108 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
109 | <para role="optional">
|
---|
110 | <xref linkend="apache-ant"/>,
|
---|
111 | <xref linkend="doxygen"/>,
|
---|
112 | <xref linkend="java"/>,
|
---|
113 | <xref linkend="python3"/>,
|
---|
114 | <ulink url="https://developer.nvidia.com/cuda-zone">Cuda</ulink>,
|
---|
115 | <ulink url="http://eigen.tuxfamily.org/">Eigen</ulink>,
|
---|
116 | <ulink url="http://www.openexr.com/">OpenEXR</ulink>,
|
---|
117 | <ulink url="http://gcd.joewheaton.org/">GCD</ulink>,
|
---|
118 | <ulink url="http://www.gdal.org/">GDAL</ulink>,
|
---|
119 | <ulink url="http://www.jai.com/en/support/gigevisionsdkcontroltoolv130">GigEVisionSDK</ulink>,
|
---|
120 | <ulink url="http://jackaudio.org/">JACK</ulink>,
|
---|
121 | <ulink url="http://sourceforge.net/projects/libdc1394/">libdc1394</ulink>,
|
---|
122 | <ulink url="http://www.gphoto.org/">libgphoto2</ulink>,
|
---|
123 | <ulink url="http://www.numpy.org/">NumPy</ulink>,
|
---|
124 | <ulink url="http://structure.io/openni">OpenNI</ulink>,
|
---|
125 | <ulink url="http://plantuml.sourceforge.net/">PlanetUML</ulink>,
|
---|
126 | <ulink url="http://www.1stvision.com/AVT-gige-camera-software-downloads.html">PvAPI</ulink>,
|
---|
127 | <ulink url="https://www.threadingbuildingblocks.org/">Threading Building Blocks (TBB)</ulink>,
|
---|
128 | <ulink url="http://unicap-imaging.org/">UniCap</ulink>,
|
---|
129 | <ulink url="http://www.vtk.org/">VTK - The Visualization Toolkit</ulink>, and
|
---|
130 | <ulink url="http://www.ximea.com/">XIMEA</ulink>
|
---|
131 | </para>
|
---|
132 |
|
---|
133 | <para condition="html" role="usernotes">
|
---|
134 | User Notes: <ulink url="&blfs-wiki;/opencv"/>
|
---|
135 | </para>
|
---|
136 | </sect2>
|
---|
137 |
|
---|
138 | <sect2 role="installation">
|
---|
139 | <title>Installation of opencv</title>
|
---|
140 |
|
---|
141 | <para>
|
---|
142 | If the optional Integrated Performance Primitives (IPP) package has been
|
---|
143 | downloaded, put it in place so the cmake script does not try to download
|
---|
144 | it again:
|
---|
145 | </para>
|
---|
146 |
|
---|
147 | <screen><userinput>ipp_file=../ippicv_linux_&ippicv-version;.tgz &&
|
---|
148 | ipp_hash=$(md5sum $ipp_file | cut -d" " -f1) &&
|
---|
149 | ipp_dir=3rdparty/ippicv/downloads/linux-$ipp_hash &&
|
---|
150 |
|
---|
151 | mkdir -p $ipp_dir &&
|
---|
152 | cp $ipp_file $ipp_dir</userinput></screen>
|
---|
153 |
|
---|
154 | <para>
|
---|
155 | Install <application>opencv</application> by running the following
|
---|
156 | commands:
|
---|
157 | </para>
|
---|
158 |
|
---|
159 | <screen><userinput>mkdir build &&
|
---|
160 | cd build &&
|
---|
161 |
|
---|
162 | cmake -DCMAKE_INSTALL_PREFIX=/usr \
|
---|
163 | -DWITH_XINE=ON \
|
---|
164 | -DBUILD_TESTS=OFF \
|
---|
165 | -DENABLE_PRECOMPILED_HEADERS=OFF \
|
---|
166 | -Wno-dev .. &&
|
---|
167 | make</userinput></screen>
|
---|
168 |
|
---|
169 | <para>
|
---|
170 | The package does not come with an operable test suite.
|
---|
171 | </para>
|
---|
172 |
|
---|
173 | <para>
|
---|
174 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
175 | </para>
|
---|
176 |
|
---|
177 | <screen role="root"><userinput>make install &&
|
---|
178 | mv -v /usr/share/OpenCV/3rdparty/lib/libippicv.a /usr/lib &&
|
---|
179 | rm -rv /usr/share/OpenCV/3rdparty</userinput></screen>
|
---|
180 |
|
---|
181 | </sect2>
|
---|
182 |
|
---|
183 | <sect2 role="commands">
|
---|
184 | <title>Command Explanations</title>
|
---|
185 |
|
---|
186 | <para><parameter>-DWITH_XINE=ON</parameter>: This option instructs the make
|
---|
187 | procedure to use <xref linkend="xine-lib"/>.</para>
|
---|
188 |
|
---|
189 | <para><parameter>-DENABLE_PRECOMPILED_HEADERS=OFF</parameter>: This option
|
---|
190 | is needed for compatibiiity with gcc-6.1 and later.</para>
|
---|
191 |
|
---|
192 | <para><parameter>-DWITH_IPP=ON</parameter>: This option instructs the make
|
---|
193 | procedure to use the downloaded IPP package.</para>
|
---|
194 |
|
---|
195 | <para><command>mv -v /usr/share/OpenCV/3rdparty/lib/libippicv.a
|
---|
196 | /usr/lib</command>: This command move a library to a location where it
|
---|
197 | can be found.</para>
|
---|
198 |
|
---|
199 | </sect2>
|
---|
200 |
|
---|
201 | <sect2 role="content">
|
---|
202 | <title>Contents</title>
|
---|
203 |
|
---|
204 | <segmentedlist>
|
---|
205 | <segtitle>Installed Programs</segtitle>
|
---|
206 | <segtitle>Installed Libraries</segtitle>
|
---|
207 | <segtitle>Installed Directories</segtitle>
|
---|
208 |
|
---|
209 | <seglistitem>
|
---|
210 | <seg>
|
---|
211 | opencv_annotation,
|
---|
212 | opencv_createsamples, and
|
---|
213 | opencv_traincascade
|
---|
214 | </seg>
|
---|
215 | <seg>
|
---|
216 | libopencv_calib3d.so,
|
---|
217 | libopencv_core.so,
|
---|
218 | libopencv_features2d.so,
|
---|
219 | libopencv_flann.so,
|
---|
220 | libopencv_highgui.so,
|
---|
221 | libopencv_imgcodecs.so,
|
---|
222 | libopencv_imgproc.so,
|
---|
223 | libopencv_ml.so,
|
---|
224 | libopencv_objdetect.so,
|
---|
225 | libopencv_photo.so,
|
---|
226 | libopencv_shape.so,
|
---|
227 | libopencv_stitching.so,
|
---|
228 | libopencv_superres.so,
|
---|
229 | libopencv_ts.a,
|
---|
230 | libopencv_video.so,
|
---|
231 | libopencv_videoio.so, and
|
---|
232 | libopencv_videostab.so
|
---|
233 | </seg>
|
---|
234 | <seg>
|
---|
235 | /usr/include/opencv{,2} and
|
---|
236 | /usr/share/OpenCV
|
---|
237 | </seg>
|
---|
238 | </seglistitem>
|
---|
239 | </segmentedlist>
|
---|
240 | <!--
|
---|
241 | <variablelist>
|
---|
242 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
243 | <?dbfo list-presentation="list"?>
|
---|
244 | <?dbhtml list-presentation="table"?>
|
---|
245 |
|
---|
246 | <varlistentry id="opencv_annotation">
|
---|
247 | <term><command>opencv_annotation</command></term>
|
---|
248 | <listitem>
|
---|
249 | <para>
|
---|
250 | ???
|
---|
251 | </para>
|
---|
252 | <indexterm zone="opencv opencv_annotation">
|
---|
253 | <primary sortas="b-opencv">opencv_annotation</primary>
|
---|
254 | </indexterm>
|
---|
255 | </listitem>
|
---|
256 | </varlistentry>
|
---|
257 |
|
---|
258 | </variablelist>
|
---|
259 | -->
|
---|
260 | </sect2>
|
---|
261 |
|
---|
262 | </sect1>
|
---|