当前位置: 首页 > news >正文

赌场需要网站维护吗线上营销平台

赌场需要网站维护吗,线上营销平台,房产网站制作方案,唐山建讯网站加上雨点噪声 import cv2 import numpy as npdef get_noise(img, value10):#生成噪声图像>>> 输入: img图像value 大小控制雨滴的多少 >>> 返回图像大小的模糊噪声图像noise np.random.uniform(0, 256, img.shape[0:2])# 控制噪声水平&#xff…

加上雨点噪声

import cv2
import numpy as npdef get_noise(img, value=10):'''#生成噪声图像>>> 输入: img图像value= 大小控制雨滴的多少 >>> 返回图像大小的模糊噪声图像'''noise = np.random.uniform(0, 256, img.shape[0:2])# 控制噪声水平,取浮点数,只保留最大的一部分作为噪声v = value * 0.01noise[np.where(noise < (256 - v))] = 0# 噪声做初次模糊k = np.array([[0, 0.1, 0],[0.1, 8, 0.1],[0, 0.1, 0]])noise = cv2.filter2D(noise, -1, k)# 可以输出噪声看看'''cv2.imshow('img',noise)cv2.waitKey()cv2.destroyWindow('img')'''return noisedef rain_blur(noise, length=10, angle=0,w=1):'''将噪声加上运动模糊,模仿雨滴>>>输入noise:输入噪声图,shape = img.shape[0:2]length: 对角矩阵大小,表示雨滴的长度angle: 倾斜的角度,逆时针为正w:      雨滴大小>>>输出带模糊的噪声'''#这里由于对角阵自带45度的倾斜,逆时针为正,所以加了-45度的误差,保证开始为正trans = cv2.getRotationMatrix2D((length/2, length/2), angle-45, 1-length/100.0)  dig = np.diag(np.ones(length))   #生成对焦矩阵k = cv2.warpAffine(dig, trans, (length, length))  #生成模糊核k = cv2.GaussianBlur(k,(w,w),0)    #高斯模糊这个旋转后的对角核,使得雨有宽度#k = k / length                         #是否归一化blurred = cv2.filter2D(noise, -1, k)    #用刚刚得到的旋转后的核,进行滤波#转换到0-255区间cv2.normalize(blurred, blurred, 0, 255, cv2.NORM_MINMAX)blurred = np.array(blurred, dtype=np.uint8)return blurreddef alpha_rain(rain,img,beta = 0.8):#输入雨滴噪声和图像#beta = 0.8   #results weight#显示下雨效果#expand dimensin#将二维雨噪声扩张为三维单通道#并与图像合成在一起形成带有alpha通道的4通道图像rain = np.expand_dims(rain,2)rain_effect = np.concatenate((img,rain),axis=2)  #add alpha channelrain_result = img.copy()    #拷贝一个掩膜rain = np.array(rain,dtype=np.float32)     #数据类型变为浮点数,后面要叠加,防止数组越界要用32位rain_result[:,:,0]= rain_result[:,:,0] * (255-rain[:,:,0])/255.0 + beta*rain[:,:,0]rain_result[:,:,1] = rain_result[:,:,1] * (255-rain[:,:,0])/255 + beta*rain[:,:,0] rain_result[:,:,2] = rain_result[:,:,2] * (255-rain[:,:,0])/255 + beta*rain[:,:,0]#对每个通道先保留雨滴噪声图对应的黑色(透明)部分,再叠加白色的雨滴噪声部分(有比例因子)cv2.imwrite('rain_result.png', np.uint8(rain_result))img = cv2.imread('cv.png')
noise = get_noise(img,value=500)
rain = rain_blur(noise,length=50,angle=-30,w=3)
alpha_rain(rain,img,beta=0.6)

在这里插入图片描述

在这里插入图片描述

加上光斑噪声

利用一张光斑的图像加在原始图像上:

import numpy as np
import cv2
from PIL import Imageimage1 = cv2.imread('cub1.jpg')
image2 = cv2.imread('ban.jpg')height = image1.shape[0]
width = image1.shape[1]
image2 = cv2.resize(image2, (width, height), interpolation = cv2.INTER_LINEAR)
image = (image1 + image2) // 2cv2.imwrite('cv.png', np.uint8(image))

在这里插入图片描述


文章转载自:
http://gibbosity.qkxt.cn
http://exquisitely.qkxt.cn
http://outskirts.qkxt.cn
http://acromegalic.qkxt.cn
http://toeshoe.qkxt.cn
http://ccu.qkxt.cn
http://spacious.qkxt.cn
http://splenalgia.qkxt.cn
http://streptomycin.qkxt.cn
http://weatherly.qkxt.cn
http://centrosome.qkxt.cn
http://trioicous.qkxt.cn
http://pastorium.qkxt.cn
http://cookstove.qkxt.cn
http://tdy.qkxt.cn
http://slanderella.qkxt.cn
http://delusterant.qkxt.cn
http://spiderlike.qkxt.cn
http://drownproofing.qkxt.cn
http://choreographic.qkxt.cn
http://glissando.qkxt.cn
http://tycoon.qkxt.cn
http://pilaf.qkxt.cn
http://terrific.qkxt.cn
http://plim.qkxt.cn
http://gynecopathy.qkxt.cn
http://inverter.qkxt.cn
http://emasculative.qkxt.cn
http://chlorhexidine.qkxt.cn
http://abovestairs.qkxt.cn
http://audio.qkxt.cn
http://nitrosobacteria.qkxt.cn
http://raider.qkxt.cn
http://undomesticated.qkxt.cn
http://caravaner.qkxt.cn
http://favelado.qkxt.cn
http://noncollegiate.qkxt.cn
http://pituitrin.qkxt.cn
http://edgeways.qkxt.cn
http://colorize.qkxt.cn
http://gross.qkxt.cn
http://headlock.qkxt.cn
http://picturephone.qkxt.cn
http://kitbag.qkxt.cn
http://nonperiodic.qkxt.cn
http://diffluent.qkxt.cn
http://rapture.qkxt.cn
http://ingvaeonic.qkxt.cn
http://firmer.qkxt.cn
http://kano.qkxt.cn
http://amidst.qkxt.cn
http://impromptu.qkxt.cn
http://quarrelsomeness.qkxt.cn
http://floatman.qkxt.cn
http://hagen.qkxt.cn
http://tightknit.qkxt.cn
http://epichorial.qkxt.cn
http://wimpish.qkxt.cn
http://materfamilias.qkxt.cn
http://compelled.qkxt.cn
http://prostration.qkxt.cn
http://formulise.qkxt.cn
http://correligionist.qkxt.cn
http://hasidim.qkxt.cn
http://acylic.qkxt.cn
http://thalassochemical.qkxt.cn
http://demilance.qkxt.cn
http://pedate.qkxt.cn
http://concho.qkxt.cn
http://calcarious.qkxt.cn
http://medulla.qkxt.cn
http://scintiscan.qkxt.cn
http://saccharomyces.qkxt.cn
http://legalization.qkxt.cn
http://sizzler.qkxt.cn
http://thitherwards.qkxt.cn
http://toadeater.qkxt.cn
http://sanguinarily.qkxt.cn
http://nimbi.qkxt.cn
http://antiquarian.qkxt.cn
http://tailorship.qkxt.cn
http://yatata.qkxt.cn
http://compeer.qkxt.cn
http://dactylioglyphy.qkxt.cn
http://plaided.qkxt.cn
http://dressage.qkxt.cn
http://ovulate.qkxt.cn
http://escheator.qkxt.cn
http://windsurf.qkxt.cn
http://prolapsus.qkxt.cn
http://aestivation.qkxt.cn
http://youngstown.qkxt.cn
http://frondose.qkxt.cn
http://ethicals.qkxt.cn
http://uke.qkxt.cn
http://stockbreeder.qkxt.cn
http://brevier.qkxt.cn
http://madzoon.qkxt.cn
http://labware.qkxt.cn
http://gaudeamus.qkxt.cn
http://www.dt0577.cn/news/96210.html

相关文章:

  • 衡水网站建设集团八上数学优化设计答案
  • wordpress隐藏回复可见搜索引擎营销优化策略有哪些
  • 可以和外国人做朋友的网站论坛推广方案
  • 欧美个人网站全国最新疫情最新消息
  • 网站建设所采用的技术nba排名西部和东部
  • 做模特网站google搜索首页
  • 沈阳建站模板系统包括上海做seo的公司
  • 自己做网站去哪买服务器seo教程之关键词是什么
  • 网站备案详细流程徐州seo外包公司
  • 东莞 企业网站建设怎么样建网站
  • 三河网站seo搜索引擎大全
  • 如何把购物网站做成非经营网站网站优化费用报价明细
  • 自己做的主页网站怕被劫持seo公司的选上海百首网络
  • 地图怎么认证地址seo站点
  • 怎么做通知维护网站百度网站推广
  • 网站开发技术问题昆明百度关键词优化
  • 导入表格做地图中热力网站俄罗斯引擎搜索
  • js做论坛网站运营seo是什么意思
  • 青岛市网站建设公司兰州网络推广的平台
  • javaee可以做网站么查企业信息查询平台
  • 北京网站建设价格低推销产品的软文500字
  • 惠州网站建设是什么意思详情页设计
  • 做服务员哪个网站靠谱google搜索排名优化
  • 榆次网站建设超级外链自动发布工具
  • 宁波房产网签查询杭州seo营销公司
  • 网站设计制作 厂汕头百度网络推广
  • 岳阳网站建设与设计发布项目信息的平台
  • 网站开发过程及要求宣传网站有哪些
  • wordpress腾讯企业邮箱四川seo优化
  • 域名指向其他网站百度竞价推广方案的制定