![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
zk_ken
这个作者很懒,什么都没留下…
展开
-
使用ffmpeg+server进行推拉流
使用工具:ffmpeg+rtsp-simple-server下载链接:ffmepg:https://ffmpeg.org/download.htmlserver:https://github.com/aler9/rtsp-simple-server/releases使用步骤:首先运行server,然后再进行推流终端指令推流程序推流python:c++推流拉流 1、VLC播放器进行拉流2、nvr播放保存rtsp流3、使用opencv调用rtsp流.........原创 2022-06-23 08:39:26 · 1135 阅读 · 0 评论 -
填坑记录1--pip安装包--Read timed out
错误显示如下:raise ReadTimeoutError(self._pool, None, 'Read timed out.')pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.解...原创 2018-07-23 10:10:16 · 422 阅读 · 0 评论 -
python常用小工具
显示四维张量中每一个通道的特征图for i in range(32): image_tensor2 = image_tensor1[0, :, :, i] plt.imshow(image_tensor2) plt.show()筛选列表中的元素比如:筛选列表中最后字符为'relu6'的元素[x for x in a if x[-5:] == '...原创 2018-07-20 15:58:21 · 1160 阅读 · 0 评论 -
Python基础知识总结
会持续更新:数组反转:b = a[::-1]将整数进行排序:比如3425变成2345sorted(list(map(int, list(str(N)))))计算数组中元素的个数r为数组,a为数组中的元素,返回数组中该元素的个数r.count(a)返回数组中该元素的下标r.index(a)集合中取交集、并集、判断是否为子集:set1 = set([1,2...原创 2018-07-26 22:02:23 · 167 阅读 · 0 评论 -
python算法总结
案例一题目一:求数组非相邻最大和[题目描述]在一个数组arr中,找出一组不相邻的数字,使得最后的和最大。[示例输入]arr=1 2 4 1 7 8 3[示例输出]15def recMaxArray(array,index): if index==0: return array[0] elif index==1: return max(a...原创 2018-08-16 15:51:32 · 586 阅读 · 0 评论 -
编程语言--python
Python垃圾回收机制 Python GC主要使用引用计数(referencecounting)来跟踪和回收垃圾。在引用计数的基础上,通过“标记-清除”(mark and sweep)解决容器对象可能产生的循环引用问题,通过“分代回收”(generationcollection)以空间换时间的方法提高垃圾回收效率。 Python 内存管理机制 第0层是操作系统提供的内存...原创 2018-10-14 14:23:56 · 422 阅读 · 0 评论