Copyright (C) 2001 Fabrice Bellard
FFmpeg is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
FFmpeg is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with FFmpeg; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
==================================================================================
GNU LESSER GENERAL PUBLIC LICENSE
Version 2.1, February 1999
Copyright (C) 1991, 1999 Free Software Foundation, Inc.
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
[This is the first released version of the Lesser GPL. It also counts
as the successor of the GNU Library Public License, version 2, hence
the version number 2.1.]
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
Licenses are intended to guarantee your freedom to share and change
free software--to make sure the software is free for all its users.
This license, the Lesser General Public License, applies to some
specially designated software packages--typically libraries--of the
Free Software Foundation and other authors who decide to use it. You
can use it too, but we suggest you first think carefully about whether
this license or the ordinary General Public License is the better
strategy to use in any particular case, based on the explanations below.
When we speak of free software, we are referring to freedom of use,
not price. Our General Public Licenses are designed to make sure that
you have the freedom to distribute copies of free software (and charge
for this service if you wish); that you receive source code or can get
it if you want it; that you can change the software and use pieces of
it in new free programs; and that you are informed that you can do
these things.
To protect your rights, we need to make restrictions that forbid
distributors to deny you these rights or to ask you to surrender these
rights. These restrictions translate to certain responsibilities for
you if you distribute copies of the library or if you modify it.
For example, if you distribute copies of the library, whether gratis
or for a fee, you must give the recipients all the rights that we gave
you. You must make sure that they, too, receive or can get the source
code. If you link other code with the library, you must provide
complete object files to the recipients, so that they can relink them
with the library after making changes to the library and recompiling
it. And you must show them these terms so they know their rights.
We protect your rights with a two-step method: (1) we copyright the
library, and (2) we offer you this license, which gives you legal
permission to copy, distribute and/or modify the library.
To protect each distributor, we want to make it very clear that
there is no warranty for the free library. Also, if the library is
modified by someone else and passed on, the recipients should know
that what they have is not the original version, so that the original
author's reputation will not be affected by problems that might be
introduced by others.
Finally, software patents pose a constant threat to the existence of
any free program. We wish to make sure that a company cannot
effectively restrict the users of a free program by obtaining a
restrictive license from a patent holder. Therefore, we insist that
any patent license obtained for a version of the library must be
consistent with the full freedom of use specified in this license.
Most GNU software, including some libraries, is covered by the
ordinary GNU General Public License. This license, the GNU Lesser
General Public License, applies to certain designated libraries, and
is quite different from the ordinary General Public License. We use
this license for certain libraries in order to permit linking those
libraries into non-free programs.
When a program is linked with a library, whether statically or using
a shared library, the combination of the two is legally speaking a
combined work, a derivative of the original library. The ordinary
General Public License therefore permits such linking only if the
entire combination fits its criteria of freedom. The Lesser General
Public License permits more lax criteria for linking other code with
the library.
We call this license the "Lesser" General Public License because it
does Less to protect the user's freedom than the ordinary General
Public License. It also provides other free software developers Less
of an advantage over competing non-free programs. These disadvantages
are the reason we use the ordinary General Public License for many
libraries. However, the Lesser license provides advantages in certain
special circumstances.
For example, on rare occasions, there may be a special need to
encourage the widest possible use of a certain library, so that it becomes
a de-facto standard. To achieve this, non-free programs must be
allowed to use the library. A more frequent case is that a free
library does the same job as widely used non-free libraries. In this
case, there is little to gain by limiting the free library to free
software only, so we use the Lesser General Public License.
In other cases, permission to use a particular library in non-free
programs enables a greater number of people to use a large body of
free software. For example, permission to use the GNU C Library in
non-free programs enables many more people to use the whole GNU
operating system, as well as its variant, the GNU/Linux operating
system.
Although the Lesser General Public License is Less protective of the
users' freedom, it does ensure that the user of a program that is
linked with the Library has the freedom and the wherewithal to run
that program using a modified version of the Library.
The precise terms and conditions for copying, distribution and
modification follow. Pay close attention to the difference between a
"work based on the library" and a "work that uses the library". The
former contains code derived from the library, whereas the latter must
be combined with the library in order to run.
GNU LESSER GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License Agreement applies to any software library or other
program which contains a notice placed by the copyright holder or
other authorized party saying it may be distributed under the terms of
this Lesser General Public License (also called "this License").
Each licensee is addressed as "you".
A "library" means a collection of software functions and/or data
prepared so as to be conveniently linked with application programs
(which use some of those functions and data) to form executables.
The "Library", below, refers to any such software library or work
which has been distributed under these terms. A "work based on the
Library" means either the Library or any derivative work under
copyright law: that is to say, a work containing the Library or a
portion of it, either verbatim or with modifications and/or translated
straight
vs2019-opencv3.4.16+cuda10.1.zip
需积分: 0 112 浏览量
更新于2022-11-04
收藏 335.72MB ZIP 举报
《Visual Studio 2019与OpenCV 3.4.16及CUDA 10.1集成详解》
在当今的计算机视觉领域,OpenCV库是不可或缺的一部分,它为图像处理、计算机视觉以及机器学习提供了强大的工具。而Visual Studio(VS)作为微软的旗舰级开发环境,为开发者提供了便利的编程平台。本篇将详细解析如何在VS2019中集成OpenCV 3.4.16,并结合CUDA 10.1进行GPU加速。
1. **OpenCV 3.4.16简介**
OpenCV 3.4.16是OpenCV的一个稳定版本,它包含了丰富的图像处理和计算机视觉功能,如图像读取、显示、转换、滤波、特征检测、对象识别等。此版本的优化使得在多种平台上运行更高效。
2. **CUDA 10.1概述**
CUDA是NVIDIA推出的用于GPU计算的并行计算平台,允许开发者利用GPU的强大并行处理能力执行通用计算任务。CUDA 10.1引入了更多的优化和新特性,提高了性能,降低了内存使用,增强了对深度学习的支持。
3. **VS2019集成OpenCV 3.4.16**
- 下载OpenCV 3.4.16源码,并使用CMake构建工具生成适用于VS2019的项目文件。
- 在VS中打开生成的解决方案,编译并安装OpenCV。这将生成包括头文件、库文件和DLLs的安装目录。
4. **配置CUDA 10.1支持**
- 安装CUDA Toolkit 10.1,确保与NVIDIA驱动兼容。
- 在VS2019的项目属性中,添加CUDA工具集路径到包含目录和库目录。
- 在源代码中,包含CUDA头文件,如`#include <cuda_runtime.h>`,并使用CUDA API编写GPU加速代码。
5. **解压后的"install"文件夹**
解压缩“vs2019-opencv3.4.16+cuda10.1.zip”,你会得到一个名为“install”的文件夹,其中包含编译好的OpenCV库和相关配置文件。这个文件夹包含以下几个关键部分:
- `include`:存放OpenCV的头文件,供项目引用。
- `lib`:包含了OpenCV的静态库和动态库文件,如.lib和.dll,用于链接和运行时依赖。
- `bin`(可能包含):包含运行时所需的DLLs,这些需要添加到系统的PATH环境变量或者项目运行时路径。
6. **配置项目**
- 在VS2019项目属性中,设置包含目录,指向`install/include`。
- 设置库目录,指向`install/lib`。
- 链接器输入中,添加OpenCV所需的库,如`opencv_world3416.lib`。
- 如果需要GPU加速,还需链接CUDA库,如`cudart.lib`。
7. **运行与调试**
完成上述步骤后,你可以在VS2019中编译和运行你的项目,OpenCV和CUDA的功能应能正常工作。在调试过程中,注意检查错误信息,确保所有依赖项都已正确配置。
通过以上步骤,你可以成功地在VS2019中集成OpenCV 3.4.16并利用CUDA 10.1进行GPU加速的计算机视觉开发。这为高效处理大规模图像数据和实现高性能计算提供了坚实的基础。在实际应用中,不断优化代码,充分利用GPU的并行计算能力,可以显著提升算法的运行效率。
金辰辰辰
- 粉丝: 0
- 资源: 1
最新资源
- 【岗位说明】物业保安人员岗位职责.doc
- 【岗位说明】物业有限公司综合部厨工岗位职责.doc
- 【岗位说明】物业管理处环境部绿化工岗位职责.doc
- 龙门式6点伺服可调中频逆变电阻焊机sw19全套技术资料100%好用.zip
- 【岗位说明】陶瓷部门职能岗位职责.doc
- 【岗位说明】最新实用陶瓷企业生产规范岗位说明书.doc
- 【岗位说明】陶瓷部门职能岗位职责.docx
- 【岗位说明】电力公司岗位职责.docx
- 【岗位说明】电网公司岗位职责02.doc
- 【岗位说明】电力公司岗位职责.doc
- 【岗位说明】电力公司岗位职责说明02.doc
- 【岗位说明】电力施工项目经理岗位职责.doc
- 【岗位说明】供电公司部门职责.doc
- 【岗位说明】苏州电力公司人力资源部主任岗位职责描述.doc
- 【岗位说明】某电力公司客户经理岗位职责描述.doc
- 【岗位说明】石油开采岗位责任制.doc