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

seo如何选择网站标题网页微信删除聊天记录

seo如何选择网站标题,网页微信删除聊天记录,wordpress茶叶主题,高端网络工程师培训目录 说明 效果 项目 代码 下载 参考 C# OpenCvSharp 部署MOWA#xff1a;多合一图像扭曲模型 说明 算法模型的paper名称是《MOWA: Multiple-in-One Image Warping Model》 ariv链接 https://arxiv.org/pdf/2404.10716 效果 Stitched Image 翻译成中文意思是多合一图像扭曲模型 说明 算法模型的paper名称是《MOWA: Multiple-in-One Image Warping Model》 ariv链接 https://arxiv.org/pdf/2404.10716  效果 Stitched Image 翻译成中文意思是拼接图像。效果图如下可以看到输入原图的边界是不规则的在经过模型推理之后输出的图的边界是规整了。 Rectified Wide-Angle Image 翻译成中文意思是矫正广角图像。效果图如下可以看到输入原图的左右上下边界是扭曲的在经过模型推理之后输出的图的边界是规整了。 Unrolling Shutter Image 翻译成中文意思是卷帘快门图像。效果图如下可以看到输入原图的右边界是弯曲的在经过模型推理之后输出的图的边界是规整了。 Rotated Image 翻译成中文意思是旋转图像。效果图如下可以看到输入原图是有明显倾斜的在经过模型推理之后输出的图是摆正了。 Fisheye Image 翻译成中文意思是鱼眼图像。效果图如下可以看到输入原图里的建筑物有明显扭曲的在经过模型推理之后输出的图里的建筑物是正直的了。 项目 代码 using OpenCvSharp; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Diagnostics; using System.Drawing; using System.Drawing.Imaging; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace MOWA {     public partial class Form1 : Form     {         public Form1()         {             InitializeComponent();         } Stopwatch stopwatch new Stopwatch();         Mat image;         Mat mask;         Mat mesh_img;         Mat grid_mesh_img;         Mat flow_img; string image_path;         string mask_path;         string startupPath;         string fileFilter *.*|*.bmp;*.jpg;*.jpeg;*.tiff;*.tiff;*.png;         const string DllName MOWASharp.dll;         IntPtr engine; /*          //初始化         extern C _declspec(dllexport) int __cdecl  init(void** engine, char* model_dir,char* msg); //detect         extern C _declspec(dllexport) int __cdecl  detect(void* engine, Mat* srcimg, Mat* maskimg, char* msg, Mat* mesh_img, Mat* grid_mesh_img, Mat* flow_img); //释放         extern C _declspec(dllexport) void __cdecl destroy(void* engine); */ [DllImport(DllName, EntryPoint init, CallingConvention CallingConvention.Cdecl)]         internal extern static int init(ref IntPtr engine, string model_dir, StringBuilder msg); [DllImport(DllName, EntryPoint detect, CallingConvention CallingConvention.Cdecl)]         internal extern static int detect(IntPtr engine, IntPtr srcimg, IntPtr maskimg, StringBuilder msg, IntPtr mesh_img, IntPtr grid_mesh_img, IntPtr flow_img); [DllImport(DllName, EntryPoint destroy, CallingConvention CallingConvention.Cdecl)]         internal extern static int destroy(IntPtr engine); private void Form1_Load(object sender, EventArgs e)         {             startupPath Application.StartupPath; string model_dir startupPath \\model\\; StringBuilder msg new StringBuilder(512); int res init(ref engine, model_dir, msg);             if (res -1)             {                 MessageBox.Show(msg.ToString());                 return;             }             else             {                 Console.WriteLine(msg.ToString());             }             image_path startupPath \\test_img\\39501.png;             pictureBox1.Image new Bitmap(image_path); mask_path startupPath \\test_img\\39501_mask.png;             pictureBox3.Image new Bitmap(mask_path);         } private void Form1_FormClosed(object sender, FormClosedEventArgs e)         {             destroy(engine);         } private void button2_Click(object sender, EventArgs e)         {             if (image_path || mask_path )             {                 return;             } textBox1.Text 执行中……;             button2.Enabled false;             if (pictureBox2.Image ! null)             {                 pictureBox2.Image.Dispose();                 pictureBox2.Image null;             }             Application.DoEvents(); Cv2.DestroyAllWindows();             if (image ! null) image.Dispose();             if (mask ! null) mask.Dispose();             if (mesh_img ! null) mesh_img.Dispose();             if (grid_mesh_img ! null) grid_mesh_img.Dispose();             if (flow_img ! null) flow_img.Dispose(); StringBuilder msg new StringBuilder(512);             image new Mat(image_path);             mask new Mat(mask_path,ImreadModes.Grayscale);             mesh_img new Mat();             grid_mesh_img new Mat();             flow_img new Mat(); stopwatch.Restart(); int res detect(engine, image.CvPtr, mask.CvPtr, msg, mesh_img.CvPtr, grid_mesh_img.CvPtr, flow_img.CvPtr);             if (res 0)             {                 stopwatch.Stop();                 double costTime stopwatch.Elapsed.TotalMilliseconds;                 pictureBox2.Image new Bitmap(flow_img.ToMemoryStream());                 Cv2.ImShow(mesh_img, mesh_img);                 Cv2.ImShow(grid_mesh_img, grid_mesh_img);                 textBox1.Text $耗时:{costTime:F2}ms;             }             else             {                 textBox1.Text 失败, msg.ToString();             }             button2.Enabled true;         } private void button1_Click(object sender, EventArgs e)         {             OpenFileDialog ofd new OpenFileDialog();             ofd.Filter fileFilter;             ofd.InitialDirectory startupPath \\test_img;             if (ofd.ShowDialog() ! DialogResult.OK) return; pictureBox1.Image null;             pictureBox2.Image null;             textBox1.Text ; image_path ofd.FileName;             pictureBox1.Image new Bitmap(image_path);             image new Mat(image_path);         } private void button4_Click(object sender, EventArgs e)         {             OpenFileDialog ofd new OpenFileDialog();             ofd.Filter fileFilter;             ofd.InitialDirectory startupPath\\test_img;             if (ofd.ShowDialog() ! DialogResult.OK) return; pictureBox3.Image null;             pictureBox2.Image null;             textBox1.Text ; mask_path ofd.FileName;             pictureBox3.Image new Bitmap(mask_path);             mask new Mat(image_path);         } private void button3_Click(object sender, EventArgs e)         {             if (pictureBox2.Image null)             {                 return;             }             Bitmap output new Bitmap(pictureBox2.Image);             var sdf new SaveFileDialog();             sdf.Title 保存;             sdf.Filter Images (*.jpg)|*.jpg|Images (*.png)|*.png|Images (*.bmp)|*.bmp;             if (sdf.ShowDialog() DialogResult.OK)             {                 switch (sdf.FilterIndex)                 {                     case 1:                         {                             output.Save(sdf.FileName, ImageFormat.Jpeg);                             break;                         }                     case 2:                         {                             output.Save(sdf.FileName, ImageFormat.Png);                             break;                         }                     case 3:                         {                             output.Save(sdf.FileName, ImageFormat.Bmp);                             break;                         }                 }                 MessageBox.Show(保存成功位置 sdf.FileName);             }         }     } }   using OpenCvSharp; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Diagnostics; using System.Drawing; using System.Drawing.Imaging; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; using System.Windows.Forms;namespace MOWA {public partial class Form1 : Form{public Form1(){InitializeComponent();}Stopwatch stopwatch new Stopwatch();Mat image;Mat mask;Mat mesh_img;Mat grid_mesh_img;Mat flow_img;string image_path;string mask_path;string startupPath;string fileFilter *.*|*.bmp;*.jpg;*.jpeg;*.tiff;*.tiff;*.png;const string DllName MOWASharp.dll;IntPtr engine;/*//初始化extern C _declspec(dllexport) int __cdecl init(void** engine, char* model_dir,char* msg);//detectextern C _declspec(dllexport) int __cdecl detect(void* engine, Mat* srcimg, Mat* maskimg, char* msg, Mat* mesh_img, Mat* grid_mesh_img, Mat* flow_img);//释放extern C _declspec(dllexport) void __cdecl destroy(void* engine);*/[DllImport(DllName, EntryPoint init, CallingConvention CallingConvention.Cdecl)]internal extern static int init(ref IntPtr engine, string model_dir, StringBuilder msg);[DllImport(DllName, EntryPoint detect, CallingConvention CallingConvention.Cdecl)]internal extern static int detect(IntPtr engine, IntPtr srcimg, IntPtr maskimg, StringBuilder msg, IntPtr mesh_img, IntPtr grid_mesh_img, IntPtr flow_img);[DllImport(DllName, EntryPoint destroy, CallingConvention CallingConvention.Cdecl)]internal extern static int destroy(IntPtr engine);private void Form1_Load(object sender, EventArgs e){startupPath Application.StartupPath;string model_dir startupPath \\model\\;StringBuilder msg new StringBuilder(512);int res init(ref engine, model_dir, msg);if (res -1){MessageBox.Show(msg.ToString());return;}else{Console.WriteLine(msg.ToString());}image_path startupPath \\test_img\\39501.png;pictureBox1.Image new Bitmap(image_path);mask_path startupPath \\test_img\\39501_mask.png;pictureBox3.Image new Bitmap(mask_path);}private void Form1_FormClosed(object sender, FormClosedEventArgs e){destroy(engine);}private void button2_Click(object sender, EventArgs e){if (image_path || mask_path ){return;}textBox1.Text 执行中……;button2.Enabled false;if (pictureBox2.Image ! null){pictureBox2.Image.Dispose();pictureBox2.Image null;}Application.DoEvents();Cv2.DestroyAllWindows();if (image ! null) image.Dispose();if (mask ! null) mask.Dispose();if (mesh_img ! null) mesh_img.Dispose();if (grid_mesh_img ! null) grid_mesh_img.Dispose();if (flow_img ! null) flow_img.Dispose();StringBuilder msg new StringBuilder(512);image new Mat(image_path);mask new Mat(mask_path,ImreadModes.Grayscale);mesh_img new Mat();grid_mesh_img new Mat();flow_img new Mat();stopwatch.Restart();int res detect(engine, image.CvPtr, mask.CvPtr, msg, mesh_img.CvPtr, grid_mesh_img.CvPtr, flow_img.CvPtr);if (res 0){stopwatch.Stop();double costTime stopwatch.Elapsed.TotalMilliseconds;pictureBox2.Image new Bitmap(flow_img.ToMemoryStream());Cv2.ImShow(mesh_img, mesh_img);Cv2.ImShow(grid_mesh_img, grid_mesh_img);textBox1.Text $耗时:{costTime:F2}ms;}else{textBox1.Text 失败, msg.ToString();}button2.Enabled true;}private void button1_Click(object sender, EventArgs e){OpenFileDialog ofd new OpenFileDialog();ofd.Filter fileFilter;ofd.InitialDirectory startupPath \\test_img;if (ofd.ShowDialog() ! DialogResult.OK) return;pictureBox1.Image null;pictureBox2.Image null;textBox1.Text ;image_path ofd.FileName;pictureBox1.Image new Bitmap(image_path);image new Mat(image_path);}private void button4_Click(object sender, EventArgs e){OpenFileDialog ofd new OpenFileDialog();ofd.Filter fileFilter;ofd.InitialDirectory startupPath\\test_img;if (ofd.ShowDialog() ! DialogResult.OK) return;pictureBox3.Image null;pictureBox2.Image null;textBox1.Text ;mask_path ofd.FileName;pictureBox3.Image new Bitmap(mask_path);mask new Mat(image_path);}private void button3_Click(object sender, EventArgs e){if (pictureBox2.Image null){return;}Bitmap output new Bitmap(pictureBox2.Image);var sdf new SaveFileDialog();sdf.Title 保存;sdf.Filter Images (*.jpg)|*.jpg|Images (*.png)|*.png|Images (*.bmp)|*.bmp;if (sdf.ShowDialog() DialogResult.OK){switch (sdf.FilterIndex){case 1:{output.Save(sdf.FileName, ImageFormat.Jpeg);break;}case 2:{output.Save(sdf.FileName, ImageFormat.Png);break;}case 3:{output.Save(sdf.FileName, ImageFormat.Bmp);break;}}MessageBox.Show(保存成功位置 sdf.FileName);}}} }下载 源码下载 参考 https://github.com/hpc203/MOWA-onnxrun
http://www.hkea.cn/news/14375232/

相关文章:

  • 怎么做一个简单的网站想自己做点飘纱素材到网站上买
  • s001网站建设公司公司网站建设维护合同
  • 怎么做仲博注册网站市场价格查询
  • 做网站一个月赚多少钱网站开发国内外现状
  • 通州网站建设是什么免费平台源码资源网
  • 贵阳网站建设odenetwordpress能建论坛吗
  • 如何使用mysql数据库做网站浙江建设部网站
  • 包头网站建设制作建筑公司100强
  • 优秀网站作品柯林wap建站程序个人版
  • 住房城乡建设部执业资格注册中心网站如何给自己做的网站加上域名
  • 清苑区建设局网站seo快速排名软件app
  • 普陀网站建设哪家便宜北京网站建设 标准型 新翼
  • 珠海做网站找哪家好商城网站现在可以做么
  • 企业建网站选中企动力招聘网站哪个平台比较好
  • 重庆 手机网站制作营销型网站建设推来客网络
  • 网站可以做二维码吗百度网盘资源链接入口
  • 设置本机外网ip做网站网站的建设流程是什么
  • 网站建设的个人条件关键词网站建设价格
  • 湖南做网站公司有哪些图片做多的网站是哪个
  • 宁波网站建设电话群晖docker wordpress设置
  • 网站设计怎么弄手机app制作pdf
  • 17zwd一起做网站广州我的小程序在哪里找
  • 论坛网站开发外文文献微信seo是什么意思
  • 网站建设培训学校济南学网站建设哪里好
  • 网站上线如何做公司名字电商网站是什么意思
  • 晋江哪里可以学建设网站怎么建个网站
  • 互联网黄页广告站长工具seo综合查询腾讯
  • 个人网站是啥做淘客网站需要企业的域名
  • 网站被黑了h5免费
  • zencart 网站老是跳转到原地址如何做网上销售网站