除了opencv 还有什么库适合在win系统上实现图像匹配(查找)
发布于 7 年前 作者 forek 3450 次浏览 来自 问答

功能需要实现在大图A中模糊查找是否存在小图B 求各路大神推荐

19 回复

opencv 的 template match 不就是干这个的嘛?有啥不爽?

@pinxue 主要问题是opencv在win系统上面的编译坑太多 要是能顺利通过编译我就不会发这个问题了

你是在用 node-opencv 还是自己封装?

@pinxue node-opencv

@forek 哈哈,Mac/Linux 下秒过。Windows 久不折腾了,晚上到老人的股票游戏机上编一个试试

@pinxue 光是装vs就够呛 有些文档说装2013有些说2015 装好了还可能缺胳膊少腿 有一次装vs2015+c++组件 正常装完居然没有cl.exe 醉得不行

谁有只用来编译的vs2015 不需要ide

@forek 不用装vs,你需要的是windows-build-tools

On Windows:

Option 1: Install all the required tools and configurations using Microsoft’s windows-build-tools using npm install --global --production windows-build-tools from an elevated PowerShell or CMD.exe (run as Administrator). Option 2: Install tools and configuration manually: Visual C++ Build Environment:

Option 1: Install Visual C++ Build Tools using the Default Install option.

Option 2: Install Visual Studio 2015 (or modify an existing installation) and select Common Tools for Visual C++ during setup. This also works with the free Community and Express for Desktop editions.

💡 [Windows Vista / 7 only] requires .NET Framework 4.5.1 Install Python 2.7 (v3.x.x is not supported), and run npm config set python python2.7 (or see below for further instructions on specifying the proper Python version and path.)

Launch cmd, npm config set msvs_version 2015

@andyhu 就是build-tools装了没装vs报错 装上vs2015之后其他包能编译了 node-opencv依然报错

@andyhu @pinxue 顺便贴个错误 报错在 std::type_info untitled1.png

编译居然过了! 关键命令是 npm -g install npm@next EJH93A}UJBG8S_0~XVQ60UI.png

@forek 用安装程序检查一下是不是 C++桌面开发里,可选的标准库模块没装的问题。我这台 windows 电脑 C 盘空间不够,VS装不了,没法折腾了

@pinxue  这个分vs2013 vs2015吗

@pinxue 之前重装vs也不下十次了 安装C++相关模块肯定没问题 虽然最后成功编译是删了vs只留下windows-build-tools

@yakczh 应该不分,以前折腾 Windows 的时候这个玩艺可以独立使用的,VS是IDE+各种SDK,这个 Windows SDK 也会带一份,如果装 VS 就不用折腾 PDK 了。

@forek 搞定就好,先干活吧。有时间找个拿虚拟机做个环境重试一遍确认一下哪些是必需的。

很久很久以前我也用过opencv,那时是用emgu的封装

回到顶部