This question already has an answer here:
这个问题在这里已有答案:
- opencv :: Multiple unwanted window with Garbage name 3 answers
opencv ::多个不需要的窗口,垃圾名称3个答案
Good day I installed VS2013 on windows 8.1 x64 I was trying to install opencv and i had alot of problems the final error LNK1112: module machine type 'X86' conflicts with target machine type 'x64' I could solve all problems but now I used code for capture stream from USB webcam the image frame name look wrong name and there is window for each frame that should only one window to display frame stream not window for each frame why that is happening this is image for the result and i will post the code too
美好的一天我在Windows 8.1 x64上安装了VS2013我试图安装opencv并且我有很多问题最终错误LNK1112:模块机器类型'X86'与目标机器类型'x64'冲突我可以解决所有问题但现在我使用了代码对于来自USB网络摄像头的捕获流,图像帧名称看起来错误的名称,并且每个帧都有窗口,应该只有一个窗口显示帧流而不是每个帧的窗口为什么会发生这是结果的图像,我将发布代码太
#include "stdafx.h"
#include<opencv\cv.h>
#include<opencv\highgui.h>
using namespace cv;
int main(int argc, _TCHAR* argv[])
{
Mat image;
VideoCapture cap;
cap.open(0);
namedWindow("N", 1);
while (1)
{
cap>>image;
imshow("N", image);
waitKey(33);
}
return 0;
}
thank you in advance.
先感谢您。
1 个解决方案
#1
0
problem solved from this link they had similar
从他们有类似的这个链接解决了问题
opencv :: Multiple unwanted window with Garbage name
opencv ::带有垃圾名称的多个不需要的窗口
thanks for you all :) now am having one frame and perfect resolution
谢谢大家:)现在我有一个帧和完美的分辨率
#1
0
problem solved from this link they had similar
从他们有类似的这个链接解决了问题
opencv :: Multiple unwanted window with Garbage name
opencv ::带有垃圾名称的多个不需要的窗口
thanks for you all :) now am having one frame and perfect resolution
谢谢大家:)现在我有一个帧和完美的分辨率