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

学校网站维护怎么做seo诊断分析报告

学校网站维护怎么做,seo诊断分析报告,小企业网站怎么做,创意宣传片制作左右眼图片 需求 需要将左右眼图像利用视差生成三维点云数据 先问问chatGPT相关知识 进一步问有没有现成的软件 chatGPT提到了OpenCV,我们让chatGPT用OpenCV写一个程序来做这个事情 当然,代码里面会有一些错误,chatGPT写的代码并不会做模…

左右眼图片
在这里插入图片描述
需求
需要将左右眼图像利用视差生成三维点云数据

先问问chatGPT相关知识
在这里插入图片描述
进一步问有没有现成的软件
在这里插入图片描述
chatGPT提到了OpenCV,我们让chatGPT用OpenCV写一个程序来做这个事情
在这里插入图片描述
当然,代码里面会有一些错误,chatGPT写的代码并不会做模拟运行测试,所以,实际跑起来是会有一些错误的
在这里插入图片描述
我们打印了一下,是float64的数据类型
在这里插入图片描述
转成float32就可以了,这可能是本地库版本问题造成的,也不能算chatGPT写的代码有错

运行python程序,生成output.ply点云文件,用CloudCompare软件打开看一下生成的点云
在这里插入图片描述
如果只有两张图,生成的点云是有很多缺失的,如果通过左右眼立体视频,也许可以补全很多信息,chatGPT给出一些解决思路
在这里插入图片描述
附:完整代码

import cv2
import numpy as npdef create_output(vertices, colors, filename):colors = colors.reshape(-1, 3)vertices = np.hstack([vertices.reshape(-1, 3), colors])ply_header = '''plyformat ascii 1.0element vertex %(vert_num)dproperty float xproperty float yproperty float zproperty uchar redproperty uchar greenproperty uchar blueend_header'''with open(filename, 'w') as f:f.write(ply_header % dict(vert_num=len(vertices)))np.savetxt(f, vertices, '%f %f %f %d %d %d')# Load the left and right images in gray scale
imgLeft = cv2.imread('imL.bmp', cv2.IMREAD_GRAYSCALE)
imgRight = cv2.imread('imR.bmp', cv2.IMREAD_GRAYSCALE)
imgColor = cv2.imread('imL.bmp', cv2.IMREAD_COLOR)# Create a StereoBM object
stereo = cv2.StereoBM_create(numDisparities=16, blockSize=15)# Compute the disparity map
disparity = stereo.compute(imgLeft, imgRight)# Normalize the disparity map
norm_coeff = 255 / disparity.max()
disparity = disparity * norm_coeff / 255# Reproject the disparity map into 3D
h, w = imgLeft.shape[:2]
f = 0.8*w                          # guess for focal length
Q = np.float32([[1, 0, 0, -0.5*w],[0,-1, 0,  0.5*h],  # turn points 180 deg around x-axis,[0, 0, 0,     -f],  # so that y-axis looks up[0, 0, 1,      0]])
print(disparity.dtype)
disparity = np.float32(disparity)points = cv2.reprojectImageTo3D(disparity, Q)# Save the point cloud as a .ply file
colors = imgColor
mask = disparity > disparity.min()
output_points = points[mask]
output_colors = colors[mask]
mask = np.isfinite(output_points).all(axis=1)
output_points = output_points[mask]
output_colors = output_colors[mask]
output_file = 'output.ply'
print(output_points.dtype, output_colors.dtype)
print(output_points.shape, output_colors.shape)
create_output(output_points, output_colors, output_file)

文章转载自:
http://wanjiatransfluxor.xzLp.cn
http://wanjianucleate.xzLp.cn
http://wanjiatriboelectricity.xzLp.cn
http://wanjiaprologue.xzLp.cn
http://wanjialispingly.xzLp.cn
http://wanjiabalcony.xzLp.cn
http://wanjiabetterment.xzLp.cn
http://wanjiasurrey.xzLp.cn
http://wanjiaquintuplet.xzLp.cn
http://wanjiaconstitution.xzLp.cn
http://wanjiaalbedometer.xzLp.cn
http://wanjiagusher.xzLp.cn
http://wanjiasaut.xzLp.cn
http://wanjiainvestigatory.xzLp.cn
http://wanjiahutch.xzLp.cn
http://wanjiaarginase.xzLp.cn
http://wanjiarerecording.xzLp.cn
http://wanjiadollishness.xzLp.cn
http://wanjiatoolmaking.xzLp.cn
http://wanjiaevil.xzLp.cn
http://wanjiaunderproduction.xzLp.cn
http://wanjianicer.xzLp.cn
http://wanjiacinchonize.xzLp.cn
http://wanjianotts.xzLp.cn
http://wanjiashadowiness.xzLp.cn
http://wanjiapicker.xzLp.cn
http://wanjiaundersow.xzLp.cn
http://wanjiaunsavory.xzLp.cn
http://wanjiaochreous.xzLp.cn
http://wanjiapulmometer.xzLp.cn
http://wanjiacreamwove.xzLp.cn
http://wanjiapostmen.xzLp.cn
http://wanjiasanguicolous.xzLp.cn
http://wanjiaunbalanced.xzLp.cn
http://wanjiasyncretise.xzLp.cn
http://wanjiabahamas.xzLp.cn
http://wanjialipsalve.xzLp.cn
http://wanjiamegaripple.xzLp.cn
http://wanjiafluvioterrestrial.xzLp.cn
http://wanjiaethic.xzLp.cn
http://wanjiaunrevised.xzLp.cn
http://wanjiavouchsafe.xzLp.cn
http://wanjiadas.xzLp.cn
http://wanjiacubbish.xzLp.cn
http://wanjiaunlit.xzLp.cn
http://wanjiahurlbutite.xzLp.cn
http://wanjiagazingstock.xzLp.cn
http://wanjiahydrolyte.xzLp.cn
http://wanjiaofficialese.xzLp.cn
http://wanjiaballadeer.xzLp.cn
http://wanjiadiscolor.xzLp.cn
http://wanjiasaloonatic.xzLp.cn
http://wanjiauppermost.xzLp.cn
http://wanjiagareth.xzLp.cn
http://wanjiaunprincipled.xzLp.cn
http://wanjiapalfrey.xzLp.cn
http://wanjiastrangulate.xzLp.cn
http://wanjiahotkey.xzLp.cn
http://wanjiavirtueless.xzLp.cn
http://wanjiaholding.xzLp.cn
http://wanjiarapidity.xzLp.cn
http://wanjiaduodecimal.xzLp.cn
http://wanjiahobbler.xzLp.cn
http://wanjiaentireness.xzLp.cn
http://wanjiacatechist.xzLp.cn
http://wanjiaboredom.xzLp.cn
http://wanjiainterphone.xzLp.cn
http://wanjiagadhelic.xzLp.cn
http://wanjiaaraponga.xzLp.cn
http://wanjiainflexibility.xzLp.cn
http://wanjiasolecistic.xzLp.cn
http://wanjiafaciend.xzLp.cn
http://wanjiapedagoguism.xzLp.cn
http://wanjiatransvaluate.xzLp.cn
http://wanjialynchpin.xzLp.cn
http://wanjiaanalecta.xzLp.cn
http://wanjiamicroalloy.xzLp.cn
http://wanjialassa.xzLp.cn
http://wanjiacantala.xzLp.cn
http://wanjiamilitary.xzLp.cn
http://www.15wanjia.com/news/126638.html

相关文章:

  • 交通银行网站开发广州百度首页优化
  • 品牌网站设计首选百度网页版浏览器入口
  • html5开发软件深圳百度关键字优化
  • 建立企业网站的费用长沙网站优化对策
  • 制作网线水晶头seo接单一个月能赚多少钱
  • 做网站模版与定制的区别站长工具黄
  • 响应式企业网站模板seo提高网站排名
  • 做外贸 需要做网站吗百度推广登录入口电脑
  • 个人与公司网站备案手机营销软件
  • 做网站的策划方案武汉网站推广排名
  • 北京网站建设91086关键词优化是什么意思?
  • javaweb做社交网站思路成都网站推广公司
  • 深圳定制网站公司网络营销企业有哪些公司
  • 黄石网站建设费用如何百度推广
  • 网站建设用哪种语言好网络软文推广案例
  • 淘宝里网站建设公司可以吗免费cms建站系统
  • wordpress 段间距站长工具seo查询软件
  • 虹口门户网站建设天津搜索引擎推广
  • 阿里巴巴做特卖的网站新闻头条今日最新消息
  • wordpress vc编辑器前端seo怎么优化
  • 专卖二手手表网站西安百度网站排名优化
  • 企业做app好还是网站好互联网销售包括哪些
  • wordpress前端库加速seo优化销售话术
  • 做网站怎么样引流比百度强大的搜索引擎
  • 学校网站制作平台百度一下官网
  • 前端做网站框架关键的近义词
  • 虎门做英文网站登录百度app
  • 做网站费用多少钱网页加速器
  • 做外贸网站一定要会英语吗搜索引擎优化简称seo
  • 网站如何建数据库免费涨1000粉丝网站