source: general/graphlib/opencv.xml@ 9a34555

12.0 12.1 kea ken/TL2024 ken/tuningfonts lazarus lxqt plabs/newcss python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since 9a34555 was 9a34555, checked in by Douglas R. Reno <renodr@…>, 13 months ago

opencv: NumPy is now in BLFS, so let's make that optional dep internal.

  • Property mode set to 100644
File size: 7.8 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 <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 you downloaded the optional modules, unpack them now:
143 </para>
144
145<screen><userinput>tar -xf ../opencv_contrib-&opencv-contrib-version;.tar.gz</userinput></screen>
146
147 <para>
148 Install <application>opencv</application> by running the following
149 commands:
150 </para>
151
152<screen><userinput>mkdir build &amp;&amp;
153cd build &amp;&amp;
154
155cmake -DCMAKE_INSTALL_PREFIX=/usr \
156 -DCMAKE_BUILD_TYPE=Release \
157 -DENABLE_CXX11=ON \
158 -DBUILD_PERF_TESTS=OFF \
159 -DWITH_XINE=ON \
160 -DBUILD_TESTS=OFF \
161 -DENABLE_PRECOMPILED_HEADERS=OFF \
162 -DCMAKE_SKIP_RPATH=ON \
163 -DBUILD_WITH_DEBUG_INFO=OFF \
164 -Wno-dev .. &amp;&amp;
165make</userinput></screen>
166
167 <para>
168 The package does not come with a test suite.
169 </para>
170
171 <para>
172 Now, as the <systemitem class="username">root</systemitem> user:
173 </para>
174
175<screen role="root"><userinput>make install</userinput></screen>
176
177 </sect2>
178
179 <sect2 role="commands">
180 <title>Command Explanations</title>
181
182 <para>
183 <parameter>-DWITH_XINE=ON</parameter>: This option instructs the make
184 procedure to use <xref linkend="xine-lib"/>.
185 </para>
186
187 <para>
188 <parameter>-DENABLE_PRECOMPILED_HEADERS=OFF</parameter>: This option
189 is needed for compatibility with gcc-6.1 and later.
190 </para>
191
192 <para>
193 <option>-DOPENCV_EXTRA_MODULES_PATH=../opencv_contrib-&opencv-version;/modules</option>:
194 instructs the build system to build additional modules.
195 </para>
196
197 </sect2>
198
199 <sect2 role="content">
200 <title>Contents</title>
201
202 <segmentedlist>
203 <segtitle>Installed Programs</segtitle>
204 <segtitle>Installed Libraries</segtitle>
205 <segtitle>Installed Directories</segtitle>
206
207 <seglistitem>
208 <seg>
209 opencv_annotation,
210 opencv_interactive-calibration,
211 opencv_model_diagnostics,
212 opencv_version,
213 opencv_visualisation, and
214 setup_vars_opencv4.sh
215 </seg>
216 <seg>
217 libopencv_calib3d.so,
218 libopencv_core.so,
219 libopencv_dnn.so,
220 libopencv_features2d.so,
221 libopencv_flann.so,
222 libopencv_gapi.so,
223 libopencv_highgui.so,
224 libopencv_imgcodecs.so,
225 libopencv_imgproc.so,
226 libopencv_ml.so,
227 libopencv_objdetect.so,
228 libopencv_photo.so,
229 libopencv_stitching.so,
230 libopencv_video.so, and
231 libopencv_videoio.so
232 </seg>
233 <seg>
234 /usr/include/opencv4,
235 /usr/lib/cmake/opencv4,
236 /usr/lib/python&python3-majorver;/site-packages/cv2,
237 /usr/share/licenses/opencv4,
238 /usr/share/opencv4, and
239 /usr/share/java/opencv4
240 </seg>
241 </seglistitem>
242 </segmentedlist>
243<!--
244 <variablelist>
245 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
246 <?dbfo list-presentation="list"?>
247 <?dbhtml list-presentation="table"?>
248
249 <varlistentry id="opencv_annotation">
250 <term><command>opencv_annotation</command></term>
251 <listitem>
252 <para>
253 ???
254 </para>
255 <indexterm zone="opencv opencv_annotation">
256 <primary sortas="b-opencv">opencv_annotation</primary>
257 </indexterm>
258 </listitem>
259 </varlistentry>
260
261 </variablelist>
262-->
263 </sect2>
264
265</sect1>
Note: See TracBrowser for help on using the repository browser.