Linux 系统中 NumPy (Python 2) 编程环境

Linux 系统中 NumPy [Python 2] 编程环境

  • 1. Installation
  • 2. NumPy 版本
  • 3. NumPy 目录 - `/home/strong/.local/lib/python2.7/site-packages/numpy/core/include`
  • 4. NumPy 目录 - `/usr/local/lib/python2.7/dist-packages/numpy/core/include`
  • 5. sudo pip install numpy
  • 6. sudo apt-get install python-numpy
  • 7. fatal error: numpy/arrayobject.h: No such file or directory
  • References

1. Installation

strong@foreverstrong:~$ sudo apt-get install python-numpy

2. NumPy 版本

strong@foreverstrong:~$ python
Python 2.7.12 (default, Nov 19 2016, 06:48:10) 
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
>>> print(numpy.version)
<module 'numpy.version' from '/home/strong/.local/lib/python2.7/site-packages/numpy/version.pyc'>
>>> print(numpy.version.version)
1.13.3
>>> exit()
strong@foreverstrong:~$ 

3. NumPy 目录 - /home/strong/.local/lib/python2.7/site-packages/numpy/core/include

strong@foreverstrong:~$ python
Python 2.7.12 (default, Dec  4 2017, 14:50:18) 
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy as np
>>> np.get_include()
'/home/strong/.local/lib/python2.7/site-packages/numpy/core/include'
>>> exit()
strong@foreverstrong:~$

4. NumPy 目录 - /usr/local/lib/python2.7/dist-packages/numpy/core/include

strong@foreverstrong:~$ python
Python 2.7.12 (default, Nov 12 2018, 14:36:49) 
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy as np
>>> np.get_include()
'/usr/local/lib/python2.7/dist-packages/numpy/core/include'
>>> exit()
strong@foreverstrong:~$

5. sudo pip install numpy

NumPy 目录 - /usr/local/lib/python2.7/dist-packages/numpy/core/include

strong@foreverstrong:~$ python
Python 2.7.12 (default, Dec  4 2017, 14:50:18) 
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy as np
>>> np.get_include()
'/home/strong/.local/lib/python2.7/site-packages/numpy/core/include'
>>> exit()
strong@foreverstrong:~$ strong@foreverstrong:~$ sudo apt-get update
...
Reading package lists... Done
strong@foreverstrong:~$ strong@foreverstrong:~$ sudo apt-get install python-numpy
Reading package lists... Done
Building dependency tree       
Reading state information... Done
python-numpy is already the newest version (1:1.11.0-1ubuntu1).
The following packages were automatically installed and are no longer required:gimp-data libamd2.4.1 libbabl-0.1-0 libcamd2.4.1 libccolamd2.9.1 libcholmod3.0.6 libgcrypt20:i386libgegl-0.3-0 libgimp2.0 libsystemd0:i386 libumfpack5.7.1
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 524 not upgraded.
strong@foreverstrong:~$ strong@foreverstrong:~$ python
Python 2.7.12 (default, Dec  4 2017, 14:50:18) 
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
>>> print(numpy.version)
<module 'numpy.version' from '/home/strong/.local/lib/python2.7/site-packages/numpy/version.pyc'>
>>> print(numpy.version.version)
1.13.3
>>> exit()
strong@foreverstrong:~$ strong@foreverstrong:~$ sudo apt-get purge --auto-remove python-numpy
[sudo] password for strong: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:gimp-data* libamd2.4.1* libbabl-0.1-0* libcamd2.4.1* libccolamd2.9.1* libcholmod3.0.6* libgcrypt20:i386*libgegl-0.3-0* libgimp2.0* libjs-jquery-ui* libsystemd0:i386* libumfpack5.7.1* python-cycler*python-dateutil* python-decorator* python-joblib* python-matplotlib* python-matplotlib-data* python-nose*python-numpy* python-opencv* python-pyparsing* python-scipy* python-simplejson* python-sklearn*python-sklearn-lib* python-tz*
0 upgraded, 0 newly installed, 27 to remove and 521 not upgraded.
After this operation, 147 MB disk space will be freed.
...
strong@foreverstrong:~$ strong@foreverstrong:~$ python
Python 2.7.12 (default, Dec  4 2017, 14:50:18) 
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
>>> numpy.get_include()
'/home/strong/.local/lib/python2.7/site-packages/numpy/core/include'
>>> exit()
strong@foreverstrong:~$ strong@foreverstrong:~$ pip list
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/__init__.py:83: RequestsDependencyWarning: Old version of cryptography ([1, 2, 3]) may cause slowdown.warnings.warn(warning, RequestsDependencyWarning)
Package                            Version    
---------------------------------- -----------
adium-theme-ubuntu                 0.3.4      
attrs                              15.2.0     
...
notebook                           5.5.0      
numpy                              1.13.3     
olefile                            0.44       
...     
You are using pip version 18.0, however version 19.0.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
strong@foreverstrong:~$ strong@foreverstrong:~$ pip install numpy
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/__init__.py:83: RequestsDependencyWarning: Old version of cryptography ([1, 2, 3]) may cause slowdown.warnings.warn(warning, RequestsDependencyWarning)
Requirement already satisfied: numpy in ./.local/lib/python2.7/site-packages (1.13.3)
You are using pip version 18.0, however version 19.0.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
strong@foreverstrong:~$strong@foreverstrong:~$ sudo pip uninstall numpy
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/__init__.py:83: RequestsDependencyWarning: Old version of cryptography ([1, 2, 3]) may cause slowdown.warnings.warn(warning, RequestsDependencyWarning)
The directory '/home/strong/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Uninstalling numpy-1.13.3:Would remove:/home/strong/.local/bin/f2py/home/strong/.local/lib/python2.7/site-packages/numpy-1.13.3.dist-info/*/home/strong/.local/lib/python2.7/site-packages/numpy/*
Proceed (y/n)? ySuccessfully uninstalled numpy-1.13.3
The directory '/home/strong/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
You are using pip version 18.0, however version 19.0.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
strong@foreverstrong:~$ strong@foreverstrong:~$ python
Python 2.7.12 (default, Dec  4 2017, 14:50:18) 
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
>>> numpy.get_include()
'/usr/local/lib/python2.7/dist-packages/numpy/core/include'
>>> exit()
strong@foreverstrong:~$ strong@foreverstrong:~$ sudo pip uninstall numpy
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/__init__.py:83: RequestsDependencyWarning: Old version of cryptography ([1, 2, 3]) may cause slowdown.warnings.warn(warning, RequestsDependencyWarning)
The directory '/home/strong/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Uninstalling numpy-1.13.3:Would remove:/usr/local/bin/f2py/usr/local/lib/python2.7/dist-packages/numpy-1.13.3.dist-info/*/usr/local/lib/python2.7/dist-packages/numpy/*
Proceed (y/n)? ySuccessfully uninstalled numpy-1.13.3
The directory '/home/strong/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
You are using pip version 18.0, however version 19.0.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
strong@foreverstrong:~$ strong@foreverstrong:~$ python
Python 2.7.12 (default, Dec  4 2017, 14:50:18) 
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
Traceback (most recent call last):File "<stdin>", line 1, in <module>
ImportError: No module named numpy
>>> exit()
strong@foreverstrong:~$ strong@foreverstrong:~$ sudo pip install numpy
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/__init__.py:83: RequestsDependencyWarning: Old version of cryptography ([1, 2, 3]) may cause slowdown.warnings.warn(warning, RequestsDependencyWarning)
The directory '/home/strong/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/strong/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting numpyRetrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fb926730a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)': /packages/e0/b5/63b79fe426433fa1cd110eb04a94ec0c6967e56e5f57c98caf455a5fb6e2/numpy-1.16.1-cp27-cp27mu-manylinux1_x86_64.whlRetrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fb926730ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)': /packages/e0/b5/63b79fe426433fa1cd110eb04a94ec0c6967e56e5f57c98caf455a5fb6e2/numpy-1.16.1-cp27-cp27mu-manylinux1_x86_64.whlRetrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fb925c24310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)': /packages/e0/b5/63b79fe426433fa1cd110eb04a94ec0c6967e56e5f57c98caf455a5fb6e2/numpy-1.16.1-cp27-cp27mu-manylinux1_x86_64.whlDownloading https://files.pythonhosted.org/packages/e0/b5/63b79fe426433fa1cd110eb04a94ec0c6967e56e5f57c98caf455a5fb6e2/numpy-1.16.1-cp27-cp27mu-manylinux1_x86_64.whl (17.0MB)100% |████████████████████████████████| 17.0MB 2.2MB/s 
Installing collected packages: numpy
Successfully installed numpy-1.16.1
strong@foreverstrong:~$ strong@foreverstrong:~$ python
Python 2.7.12 (default, Dec  4 2017, 14:50:18) 
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
>>> numpy.get_include()
'/usr/local/lib/python2.7/dist-packages/numpy/core/include'
>>> exit()
strong@foreverstrong:~$ 

6. sudo apt-get install python-numpy

NumPy 目录 - /usr/lib/python2.7/dist-packages/numpy/core/include

strong@foreverstrong:~$ pip uninstall numpy
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/__init__.py:83: RequestsDependencyWarning: Old version of cryptography ([1, 2, 3]) may cause slowdown.warnings.warn(warning, RequestsDependencyWarning)
Uninstalling numpy-1.16.1:Would remove:/usr/local/bin/f2py/usr/local/bin/f2py2/usr/local/bin/f2py2.7/usr/local/lib/python2.7/dist-packages/numpy-1.16.1.dist-info/*/usr/local/lib/python2.7/dist-packages/numpy/*
Proceed (y/n)? y
Exception:
Traceback (most recent call last):File "/usr/local/lib/python2.7/dist-packages/pip/_internal/basecommand.py", line 141, in mainstatus = self.run(options, args)File "/usr/local/lib/python2.7/dist-packages/pip/_internal/commands/uninstall.py", line 74, in runauto_confirm=options.yes, verbose=self.verbosity > 0,File "/usr/local/lib/python2.7/dist-packages/pip/_internal/req/req_install.py", line 864, in uninstalluninstalled_pathset.remove(auto_confirm, verbose)File "/usr/local/lib/python2.7/dist-packages/pip/_internal/req/req_uninstall.py", line 221, in removerenames(path, new_path)File "/usr/local/lib/python2.7/dist-packages/pip/_internal/utils/misc.py", line 276, in renamesshutil.move(old, new)File "/usr/lib/python2.7/shutil.py", line 303, in moveos.unlink(src)
OSError: [Errno 13] Permission denied: '/usr/local/bin/f2py'
You are using pip version 18.0, however version 19.0.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
strong@foreverstrong:~$strong@foreverstrong:~$ sudo pip uninstall numpy
[sudo] password for strong: 
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/__init__.py:83: RequestsDependencyWarning: Old version of cryptography ([1, 2, 3]) may cause slowdown.warnings.warn(warning, RequestsDependencyWarning)
The directory '/home/strong/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Uninstalling numpy-1.16.1:Would remove:/usr/local/bin/f2py/usr/local/bin/f2py2/usr/local/bin/f2py2.7/usr/local/lib/python2.7/dist-packages/numpy-1.16.1.dist-info/*/usr/local/lib/python2.7/dist-packages/numpy/*
Proceed (y/n)? ySuccessfully uninstalled numpy-1.16.1
The directory '/home/strong/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
You are using pip version 18.0, however version 19.0.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
strong@foreverstrong:~$ strong@foreverstrong:~$ python 
Python 2.7.12 (default, Dec  4 2017, 14:50:18) 
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy as np
Traceback (most recent call last):File "<stdin>", line 1, in <module>
ImportError: No module named numpy
>>> exit()
strong@foreverstrong:~$ strong@foreverstrong:~$ sudo apt-get update
...                                                                                
Reading package lists... Done
strong@foreverstrong:~$strong@foreverstrong:~$ sudo apt-get install python-numpy
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Suggested packages:python-nose python-numpy-dbg python-numpy-doc
The following NEW packages will be installed:python-numpy
0 upgraded, 1 newly installed, 0 to remove and 521 not upgraded.
Need to get 1,763 kB of archives.
After this operation, 9,598 kB of additional disk space will be used.
Get:1 http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 python-numpy amd64 1:1.11.0-1ubuntu1 [1,763 kB]
Fetched 1,763 kB in 30s (57.5 kB/s)                                                                                               
Selecting previously unselected package python-numpy.
(Reading database ... 300164 files and directories currently installed.)
Preparing to unpack .../python-numpy_1%3a1.11.0-1ubuntu1_amd64.deb ...
Unpacking python-numpy (1:1.11.0-1ubuntu1) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up python-numpy (1:1.11.0-1ubuntu1) ...
strong@foreverstrong:~$ strong@foreverstrong:~$ python
Python 2.7.12 (default, Dec  4 2017, 14:50:18) 
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy as np
>>> np.get_include()
'/usr/lib/python2.7/dist-packages/numpy/core/include'
>>> exit()
strong@foreverstrong:~$ 

7. fatal error: numpy/arrayobject.h: No such file or directory

出现 fatal error: numpy/arrayobject.h: No such file or directory 问题,请核实 makefile 中指定的 Python 路径与系统中实际的 Python 路径是否一致。

NumPy 目录 - /home/strong/.local/lib/python2.7/site-packages/numpy/core/include
sudo pip install numpy - NumPy 目录 - /usr/local/lib/python2.7/dist-packages/numpy/core/include
sudo apt-get install python-numpy - NumPy 目录 - /usr/lib/python2.7/dist-packages/numpy/core/include
strong@foreverstrong:~$ python -c "import numpy; print(numpy.get_include())"
/usr/lib/python2.7/dist-packages/numpy/core/include
strong@foreverstrong:~$
strong@foreverstrong:~$ python -c "import numpy; print(numpy.get_include())"
/home/strong/.local/lib/python2.7/site-packages/numpy/core/include
strong@foreverstrong:~$

References

[1] Yongqiang Cheng, https://yongqiang.blog.csdn.net/

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/764714.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

Vue2(九):尚硅谷TodoList案例(初级版):组件化编码流程的使用

一、组件化编码流程及资料 百度网盘 请输入提取码 提取码yyds &#xff08;Vue全家桶资料&#xff09; 组件化编码流程分为三步&#xff1a; 二、实现静态组件 1、分析结构 确定组件名称&#xff08;Header,List,Item,Footer&#xff09;和个数&#xff0c;还有嵌套关系(…

阿里云服务器租用一年多少钱?2024年最新阿里云租用价格

2024年阿里云服务器租用费用&#xff0c;云服务器ECS经济型e实例2核2G、3M固定带宽99元一年&#xff0c;轻量应用服务器2核2G3M带宽轻量服务器一年61元&#xff0c;ECS u1服务器2核4G5M固定带宽199元一年&#xff0c;2核4G4M带宽轻量服务器一年165元12个月&#xff0c;2核4G服务…

5.3.2、【AI技术新纪元:Spring AI解码】Stability AI 图像生成

Stability AI 图像生成 Stability AI 图像生成前提条件自动配置图像生成属性连接属性图像生成客户端配置属性运行时选项Stability AI 图像生成 Spring AI 支持 Stability AI 的文本到图像生成模型。 前提条件 要访问 Stability AI 的 AI 模型,您需要从 Stability AI 创建一…

深入了解Flutter中Future的全部工厂方法及使用

在Flutter中&#xff0c;Future是一种表示异步操作结果的对象。它代表了一个可能已经完成或尚未完成的计算&#xff0c;可以用来处理异步任务。Flutter提供了多种工厂方法来创建Future对象&#xff0c;每种方法都有其特定的用途和优势。在本文中&#xff0c;我们将深入探讨Flut…

2016年认证杯SPSSPRO杯数学建模D题(第一阶段)NBA是否有必要设立四分线解题全过程文档及程序

2016年认证杯SPSSPRO杯数学建模 D题 NBA是否有必要设立四分线 原题再现 NBA 联盟从 1946 年成立到今天&#xff0c;一路上经历过无数次规则上的变迁。有顺应民意、皆大欢喜的&#xff0c;比如 1973 年在技术统计中增加了抢断和盖帽数据&#xff1b;有应运而生、力挽狂澜的&am…

Nacos介绍和Eureka的区别

Nacos&#xff08;全称为 Alibaba Cloud Nacos&#xff0c;或简称为 Nacos&#xff09;是一个开源的分布式服务发现和配置管理系统。它由阿里巴巴集团开发并开源&#xff0c;旨在帮助开发人员简化微服务架构下的服务注册、发现和配置管理。 1、Nacos 提供了以下主要功能&#…

WPF 立体Border

WPF 立体Border &#xff0c;用来划分各个功能区块 在资源文件中&#xff0c;添加如下样式代码&#xff1a; <Style x:Key"BaseBorder" TargetType"Border"><Setter Property"Background" Value"White" /><Setter Prop…

如何用java使用es

添加依赖 如何连接es客户端 RestHighLevelClient 代表是高级客户端 其中hostname&#xff1a;es的服务器地址&#xff0c;prot端口号 &#xff0c;scheme&#xff1a;http还是https 如果不在使用es可以进行关闭&#xff0c;可以防止浪费一些资源 java如何创建索引&#xff1…

养好蜘蛛池的方法有哪些?如何正确的养

目前国内大部分正规网络科技公司都没有自己的蜘蛛池&#xff0c;甚至不知道什么是蜘蛛池&#xff0c;更不知道它的作用。 蜘蛛池起源于灰色产业。 它的前身是基于泛站点群体中大量活跃的蜘蛛而诞生的。 为了达到快速收录、快速排名的效果&#xff0c;很多行业都会将网站域名地址…

矩阵A的LU分解

文章目录 1. 矩阵的逆矩阵1.1 AB的逆矩阵1.2 转置矩阵 2. 2X2矩阵A消元3. 3X3矩阵A消元4. 运算量5. 置换矩阵-左行右列 本文主要目的是为了通过矩阵乘法实现矩阵A的分解。 1. 矩阵的逆矩阵 1.1 AB的逆矩阵 假设A,B矩阵都可逆 A ( B B − 1 ) A − 1 I (1) A(BB^{-1})A^{-1}…

hyper-v虚拟机使用宿主机usb设备

文章目录 一、修改宿主机组策略二、使用 一、修改宿主机组策略 在宿主电脑上&#xff0c;按 winr 组合键打开运行窗口&#xff0c;输入 gpedit.msc 打开组策略编辑器&#xff0c;依次点击计算机配置- 管理模板- Windows 组件- 远程桌面服务- 远程桌面会话客户端- RemoteFX USB…

5.域控服务器都要备份哪些资料?如何备份DNS服务器?如何备份DHCP服务器?如何备份组策略?如何备份服务器状态的备份?

&#xff08;2.1) NTD(域控数据库&#xff09;备份 &#xff08;2.2&#xff09;DNS备份 &#xff08;2.3&#xff09;DHCP备份 &#xff08;2.4&#xff09;组策略备份 &#xff08;2.5&#xff09;CA证书备份 &#xff08;2.6&#xff09;系统状态备份 &#xff08;2.1)…

如何使用ospf (enps) 简单实践ospf协议

1. OSPF的基本概念 OSPF&#xff08;Open Shortest Path First&#xff0c;开放式最短路径优先&#xff09;是一种广泛应用于TCP/IP网络中的内部网关协议&#xff08;Interior Gateway Protocol, IGP&#xff09;&#xff0c;主要用于在同一自治系统&#xff08;Autonomous Sys…

js工具方法记录

校验数字是否有效的11位手机号 function isValidPhoneNum(value: string) {return /^[1][3,4,5,6,7,8,9][0-9]{9}$/.test(value) }手机号中间4位掩码 function maskPhoneNum(phone: string, space false) {if (!phone) {return }const reg /(\d{3})\d{4}(\d{4})/return pho…

人像抠图HumanSeg——基于大规模电话会议视频数据集的连接感知人像分割

前言 人像抠图将图像中的人物与背景进行像素级别的区分的技术。通过人像分割&#xff0c;可以实现诸如背景虚化、弹幕穿人等各种有趣的功能&#xff0c;为视频通话和影音观看提供更加优质和丰富的体验。由于广泛部署到Web、手机和边缘设备&#xff0c;肖像分割在兼顾分割精度的…

解决微信小程序页面数量限制问题的6种方法

微信小程序页面数量限制为200个页面&#xff0c;如果您需要展示更多页面&#xff0c;可以考虑使用以下6种方法来解决不同场景和需求微信小程序页面数量限制问题。 1. 动态生成内容 使用导航跳转到新页面&#xff0c;并在新页面中动态生成内容。例如&#xff0c;可以使用 wx.n…

真机笔记(2)项目分析

目录 1. 项目&#xff1a; 2. 网络工程师工作流程 3. 实验 设备命名 登录密码 使用SSH协议 1. 项目&#xff1a; 竞标方&#xff1a;集成商、厂商、代理商、服务商、监理检测公司 在一个网络项目中&#xff0c;不同的角色承担着不同的职责和任务。以下是集成商、厂商、代…

目标跟踪与行为识别

目标跟踪与行为识别是计算机视觉领域中的两个重要研究方向&#xff0c;它们在视频监控、人机交互、智能交通、机器人导航等多个领域有着广泛的应用。 目标跟踪 目标跟踪是指在视频序列中连续地定位一个或多个目标的位置和状态。它的核心任务是关联视频中不同帧中的目标&#…

经典面试题prototype 和 proto 区别是什么

原型是为了实现对象间的联系&#xff0c;解决构造函数无法数据共享而引入的一个属性&#xff0c;而原型链是一个实现对象间联系即继承的主要方法 prototype是构造函数的属性 __proto__是每个实例都有的属性&#xff0c;可以访问 [[prototype]] 属性 实例的__proto__与其构造函…

Rust 语言的 HashMap

HashMap 在 Rust 中是一个非常常用且强大的数据结构&#xff0c;它允许你存储键值对(key-value pairs)&#xff0c;并且能够快速地基于键检索值。 下面是使用 HashMap 的一些基本示例&#xff1a; 首先&#xff0c;你需要在你的文件中引入 HashMap&#xff1a; use std::col…