<script> var resultValue = "1"; function throttle(fn) { console.log(arguments); let params = Array.from(arguments); params.shift(); let res = argument ...
分类:
其他好文 时间:
2021-06-10 18:43:06
阅读次数:
0
用摄像头捕获视频 我们经常需要使用摄像头捕获实时图像。OpenCV 为这中应用提供了一个非常简单的接口。让我们使用摄像头来捕获一段视频,并把它转换成灰度视频显示出来。从这个简单的任务开始吧。 为了获取视频,你应该创建一个VideoCapture 对象。他的参数可以是设备的索引号,或者是一个视频文件。 ...
分类:
编程语言 时间:
2021-06-10 18:42:34
阅读次数:
0
1、创建精灵和精灵组并检测碰撞 import random import pygame from pygame.locals import * class Player(pygame.sprite.Sprite): # 继承pygame.sprite.Sprite精灵对象 def __init__( ...
分类:
其他好文 时间:
2021-06-10 18:41:25
阅读次数:
0
一,打开xshell,连接上 输入指令:mysql -h 192.168.10.120 -u root -p 回车,-h后面是数据库hostname,-u后面是数据库用户名,-p后面是密码 1 root@VM-0-12-centos[14:05:47]:~ 2 $ mysql -h ** -u ** ...
分类:
数据库 时间:
2021-06-10 18:40:18
阅读次数:
0
1、多继承(super().__init__())、*args和**kwargs、 https://blog.csdn.net/xiaoqiangclub/article/details/104837537 2、python中super().__init__() https://blog.csdn. ...
分类:
编程语言 时间:
2021-06-10 18:36:00
阅读次数:
0
create temporary table temp_t like t1; alter table temp_t add index(b); insert into temp_t select * from t2 where b>=1 and b<=2000; select * from t1 j ...
分类:
其他好文 时间:
2021-06-10 18:34:39
阅读次数:
0
resnet50 pytorch版本实现 torchvision.models.resnet import torch.nn as nn import math import torch.utils.model_zoo as model_zoo __all__ = ['ResNet', 'resne ...
分类:
Web程序 时间:
2021-06-10 18:31:55
阅读次数:
0
2D 卷积 与以为信号一样,我们也可以对2D 图像实施低通滤波(LPF),高通滤波 (HPF)等。LPF 帮助我们去除噪音,模糊图像。HPF帮助我们找到图像的边缘 OpenCV 提供的函数 cv.?lter2D() 可以让我们对一幅图像进行卷积操 作。下面我们将对一幅图像使用平均滤波器。下面是一个 ...
分类:
编程语言 时间:
2021-06-10 18:31:05
阅读次数:
0
图像加法 你可以使用函数cv2.add() 将两幅图像进行加法运算,当然也可以直接使 用numpy,res=img1+img。两幅图像的大小,类型必须一致,或者第二个 图像可以使一个简单的标量值。 import numpy as np import cv2 from matplotlib impor ...
分类:
编程语言 时间:
2021-06-10 18:30:52
阅读次数:
0
numpy库的基本操作 import numpy as np import math #创建数组 a=np.arange(10) print(a) print(type(a)) #对数组里面的元素开平分 b=[3,4,9] #定义结果列表 result=[] #遍历列表 for i in b: pr ...
分类:
编程语言 时间:
2021-06-10 18:30:37
阅读次数:
0