我正在尝试在 C++ 中使用 opencv 检测对象,但收到错误:project1.exe 中 0x52f9e470 处未处理的异常:0xC000001D:非法指令。
使用 Windows 7 32 位,opencv 2.4.3,Visual Studio (c++) 2010,我的代码是:
#include <opencv\cv.h>
#include <opencv\highgui.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <math.h>
#include <float.h>
#include <limits.h>
#include <time.h>
#include <ctype.h>
// Create a string that contains the exact cascade name
// Contains the trained classifer for detecting hand
const char *cascade_name="D:/31dec12/hand.xml";
//The function detects the hand from input frame and draws a rectangle around the detected portion of the frame
void …Run Code Online (Sandbox Code Playgroud) opencv ×1