source: general/graphlib/opencv.xml@ 5998e22c

12.0 12.1 kea ken/TL2024 ken/tuningfonts lazarus plabs/newcss python3.11 rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since 5998e22c was cb594b6c, checked in by Xi Ruoyao <xry111@…>, 11 months ago

general: Remove non-exist User Notes link

Part of User Notes removal by
https://www.linuxfromscratch.org/~xry111/remove-nonexist-usernote.sh

  • Property mode set to 100644
File size: 7.7 KB
Line 
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="numpy"/>,
120 <xref linkend="python2"/>,
121 <ulink url="https://www.netlib.org/blas/">blas</ulink>,
122 <ulink url="https://developer.nvidia.com/cuda-zone">Cuda</ulink>,
123 <ulink url="https://eigen.tuxfamily.org/">Eigen</ulink>,
124 <ulink url="https://www.openexr.com/">OpenEXR</ulink>,
125 <ulink url="https://www.gdal.org/">GDAL</ulink>,
126 <ulink url="https://www.netlib.org/lapack/">lapack</ulink>,
127 <ulink url="https://sourceforge.net/projects/libdc1394/">libdc1394</ulink>,
128<!-- <ulink url="https://www.numpy.org/">NumPy</ulink>, -->
129 <ulink url="https://github.com/oneapi-src/oneTBB">Threading Building Blocks (TBB)</ulink>, and
130 <ulink url="https://vtk.org/">VTK - The Visualization Toolkit</ulink>,
131 </para>
132
133 </sect2>
134
135 <sect2 role="installation">
136 <title>Installation of opencv</title>
137
138 <para>
139 If you downloaded the optional modules, unpack them now:
140 </para>
141
142<screen><userinput>tar -xf ../opencv_contrib-&opencv-contrib-version;.tar.gz</userinput></screen>
143
144 <para>
145 Install <application>opencv</application> by running the following
146 commands:
147 </para>
148
149<screen><userinput>mkdir build &amp;&amp;
150cd build &amp;&amp;
151
152cmake -DCMAKE_INSTALL_PREFIX=/usr \
153 -DCMAKE_BUILD_TYPE=Release \
154 -DENABLE_CXX11=ON \
155 -DBUILD_PERF_TESTS=OFF \
156 -DWITH_XINE=ON \
157 -DBUILD_TESTS=OFF \
158 -DENABLE_PRECOMPILED_HEADERS=OFF \
159 -DCMAKE_SKIP_RPATH=ON \
160 -DBUILD_WITH_DEBUG_INFO=OFF \
161 -Wno-dev .. &amp;&amp;
162make</userinput></screen>
163
164 <para>
165 The package does not come with a test suite.
166 </para>
167
168 <para>
169 Now, as the <systemitem class="username">root</systemitem> user:
170 </para>
171
172<screen role="root"><userinput>make install</userinput></screen>
173
174 </sect2>
175
176 <sect2 role="commands">
177 <title>Command Explanations</title>
178
179 <para>
180 <parameter>-DWITH_XINE=ON</parameter>: This option instructs the make
181 procedure to use <xref linkend="xine-lib"/>.
182 </para>
183
184 <para>
185 <parameter>-DENABLE_PRECOMPILED_HEADERS=OFF</parameter>: This option
186 is needed for compatibility with gcc-6.1 and later.
187 </para>
188
189 <para>
190 <option>-DOPENCV_EXTRA_MODULES_PATH=../opencv_contrib-&opencv-version;/modules</option>:
191 instructs the build system to build additional modules.
192 </para>
193
194 </sect2>
195
196 <sect2 role="content">
197 <title>Contents</title>
198
199 <segmentedlist>
200 <segtitle>Installed Programs</segtitle>
201 <segtitle>Installed Libraries</segtitle>
202 <segtitle>Installed Directories</segtitle>
203
204 <seglistitem>
205 <seg>
206 opencv_annotation,
207 opencv_interactive-calibration,
208 opencv_model_diagnostics,
209 opencv_version,
210 opencv_visualisation, and
211 setup_vars_opencv4.sh
212 </seg>
213 <seg>
214 libopencv_calib3d.so,
215 libopencv_core.so,
216 libopencv_dnn.so,
217 libopencv_features2d.so,
218 libopencv_flann.so,
219 libopencv_gapi.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_stitching.so,
227 libopencv_video.so, and
228 libopencv_videoio.so
229 </seg>
230 <seg>
231 /usr/include/opencv4,
232 /usr/lib/cmake/opencv4,
233 /usr/lib/python&python3-majorver;/site-packages/cv2,
234 /usr/share/licenses/opencv4,
235 /usr/share/opencv4, and
236 /usr/share/java/opencv4
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>
Note: See TracBrowser for help on using the repository browser.