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

asp网站图片不显示保定网站排名

asp网站图片不显示,保定网站排名,wordpress配置qq邮件,百度网站收录更新发表日期#xff1a;2023年6月23日 项目地址#xff1a;https://github.com/cvg/LightGlue https://github.com/cvg/glue-factory/ LightGlue是一个在精度上媲美Superglue#xff0c;但在速度上比Superglue快一倍的模型。通过博主实测#xff0c;LightGlue的配准效果比Su…发表日期2023年6月23日 项目地址https://github.com/cvg/LightGlue https://github.com/cvg/glue-factory/ LightGlue是一个在精度上媲美Superglue但在速度上比Superglue快一倍的模型。通过博主实测LightGlue的配准效果比Superglue好LightGlue配准后的结果错误点更少同时提取的重叠区域更精准。 基于SuperpointSuperglue 提取重叠区域的代码可以参考 https://blog.csdn.net/a486259/article/details/129093084 1、lightglue与superglue的对比 lightglue与superglue相比在同样的精度下速度要快3倍。 lightglue的结构设计如下是通过组层移除低匹配度点的策略进行预测 在多个任务中对比可以发现lightglue比superglue略胜一筹占微弱优势 但在速度上明显可以看到Lightglue明显比superglue快不少能减少50%的耗时。 2、lightglue使用效果 下载LightGlue项目 或者执行 git clone https://github.com/cvg/LightGlue.git cd LightGlue python -m pip install -e .执行以下代码进行配准尝试 # If we are on colab: this clones the repo and installs the dependencies from pathlib import Path# if LightGlue not in Path.cwd().name : # !git clone --quiet https://github.com/cvg/LightGlue/ # %cd LightGlue # !pip install --progress-bar off --quiet -e .from lightglue import LightGlue, SuperPoint, DISK from lightglue.utils import load_image, rbd from lightglue import viz2d import torchtorch.set_grad_enabled(False) images Path(../assets)device torch.device(cuda if torch.cuda.is_available() else cpu) # mps, cpu #官方默认是2048个点 extractor SuperPoint(max_num_keypoints700).eval().to(device) # load the extractor matcher LightGlue(featuressuperpoint).eval().to(device)image0 load_image(images / b1.png) image1 load_image(images / b2.png)feats0 extractor.extract(image0.to(device)) feats1 extractor.extract(image1.to(device)) matches01 matcher({image0: feats0, image1: feats1}) feats0, feats1, matches01 [rbd(x) for x in [feats0, feats1, matches01] ] # remove batch dimensionkpts0, kpts1, matches feats0[keypoints], feats1[keypoints], matches01[matches] m_kpts0, m_kpts1 kpts0[matches[..., 0]], kpts1[matches[..., 1]]axes viz2d.plot_images([image0, image1]) viz2d.plot_matches(m_kpts0, m_kpts1, colorlime, lw0.2) viz2d.add_text(0, fStop after {matches01[stop]} layers, fs20)kpc0, kpc1 viz2d.cm_prune(matches01[prune0]), viz2d.cm_prune(matches01[prune1]) viz2d.plot_images([image0, image1]) viz2d.plot_keypoints([kpts0, kpts1], colors[kpc0, kpc1], ps10) 执行效果如下所示比superglue要好很多基本上看不到错误匹配的点。superglue配准具体细节可以查看链接 superglue的配置效果如下所示存在不少错误的点。 3、提取重叠区域 在步骤二的结果中基于以下代码可以实现重叠区域的提取 import cv2 import numpy as np from imgutils import myimshowsCL,tensor2img def getGoodMatchPoint(mkpts0, mkpts1, confidence, match_threshold:float0.003):n min(mkpts0.size(0), mkpts1.size(0))srcImage1_matchedKPs, srcImage2_matchedKPs[],[]if (match_threshold 1 or match_threshold 0):print(match_threshold error!)for i in range(n):kp0 mkpts0[i]kp1 mkpts1[i]pt0(kp0[0].item(),kp0[1].item());pt1(kp1[0].item(),kp1[1].item());c confidence[i].item();if (c match_threshold):srcImage1_matchedKPs.append(pt0);srcImage2_matchedKPs.append(pt1);return np.array(srcImage1_matchedKPs),np.array(srcImage2_matchedKPs) mkpts0, mkpts1 m_kpts0, m_kpts1 confidencematches01[scores] im_dst,im_restensor2img(image0), tensor2img(image1)pts_src, pts_dstgetGoodMatchPoint(mkpts0, mkpts1, confidence)h1, status cv2.findHomography(pts_src, pts_dst, cv2.RANSAC, 1) im_out1 cv2.warpPerspective(im_dst, h1, (im_dst.shape[1],im_dst.shape[0]))myimshowsCL([im_dst,im_res,im_out1],titles[im_dst,im_res,overlap],rows1,cols3, size6) 其中myimshowsCL,tensor2img等函数代码来自于 https://hpg123.blog.csdn.net/article/details/129093084 提取的重叠区域如下所示 基于superglue配准后提取的重叠区域如图1所示可以看到有3处不如LightGlue关于地球仪上的误差可能不算但另两处特别明显
http://www.dnsts.com.cn/news/169325.html

相关文章:

  • 一个网站推广十大网络平台
  • 电子商务网站建设规划书范文前几年做那些网站能致富
  • 网站页脚的制作播放swf文件 自动弹出网站
  • 做网站 公司有哪些做外包哪个网站好一些
  • 地图素材如何做ppt模板下载网站常州做网站那家快
  • 天津关键词seo怎么优化排名
  • 网站开发入门国外做任务网站
  • 做微信小程序和做网站于飞网站开发
  • 广州建设官方网站网站的程序怎么做的
  • 公司网站建设价格多少wordpress邮件设置
  • 学校网站开发说明书文档网站定向搜索
  • 爱站库sq网站推广
  • 男女做爰视频网站免费地图制作网站
  • 浏阳做网站wordpress在线教育插件
  • 网站不续费购物平台推广如何赚钱
  • 破解wordpress网站密码聚美优品网站建设策划书
  • 各大网站推荐小红书推广平台
  • 我的世界充值网站怎么做王野天和葛优
  • 佳木斯城乡建设局官方网站怎么做网站推广临沂
  • 套路网站怎么做的网站制作与设计知识点
  • 南联做网站iis7 网站无法显示该页面
  • 对亚马逊网站做简要分析与评价做食品怎样选网站
  • 哈尔滨网站制作最新招聘信息网站开发html的题
  • 满洲里做网站seo百度关键词优化软件
  • 机械设计网站推荐wordpress 主题详情
  • 做怎么样的网站好女生做网站主题有哪些
  • 做网站有前景吗全国建设部官方网站
  • 怎么把网站上线网上购物网站设计
  • 做网站收入手机网站建设用乐云seo
  • 做网站前期需求分析收费么圣都家装公司简介