作者dedicationsh (ddd)
看板C_and_CPP
標題[問題] Debug Error R6010 -abort() has been ca
時間Wed Aug 5 12:01:49 2015
大家好
我在用opencv時抓影像 再把影像顯示出來
結果出現了下面的錯誤
他會直接跳一個視窗出來
Debug Error!
Program:
......XXX.exe
R6010
-abort() has been called
(Press Retry to debug the application)
為什麼會這樣呢@@?
我上google看也看不個所以然
補個code
#include <cv.h>
#include <highgui.h>
#include <stdio.h>
#include <windows.h>
#include<time.h>
using namespace cv;
using namespace std;
int main()
{
//CvCapture *capture0;
//CvCapture *capture1;
VideoCapture cap1(2);
VideoCapture cap2(1);
VideoCapture cap3(0);
//IplImage *frame0;
//IplImage *frame1;
Mat frame0;
Mat frame1;
Mat frame2;
//capture0 = cvCaptureFromCAM(0);
//capture1 = cvCaptureFromCAM(1);
//cvNamedWindow("Webcam0", 1);
//cvNamedWindow("Webcam1", 1);
while (true)
{
//frame0 = cvQueryFrame(capture0);
//frame1 = cvQueryFrame(capture1);
cap1 >> frame0;
cap2 >> frame1;
cap3 >> frame2;
imshow("Webcam0", frame0);
imshow("Webcam1", frame1);
imshow("Webcam2", frame2);
if (waitKey(10) == ' ')
{
break;
}
}
cout << frame0.size() << endl;
cout << frame1.size() << endl;
// cout << frame2.size() << endl;
//cvReleaseCapture(&capture0);
//cvDestroyWindow("Webcam0");
}
--
推 peggysue:放火燒要小心 以前看過學長燒老師 結果老師狂奔跑到舊報 06/12 14:10
→ peggysue: 鼠 鼠 06/12 14:11
→ peggysue:紙堆裡面...差點把房子給燒了 06/12 14:11
推 sbchris:樓上對老師很有意見 06/12 14:17
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 140.114.24.202
※ 文章網址: https://www.ptt.cc/bbs/C_and_CPP/M.1438747312.A.C88.html
→ Feis: 有 code 嗎? 08/05 12:09
推 johnpage: 終止程序曾經被呼叫過 08/05 14:22
→ johnpage: 簡單來說就是發生錯誤,引發終止程序,然後你又要他做處 08/05 14:24
→ johnpage: 理 08/05 14:24
※ 編輯: dedicationsh (140.114.200.45), 08/05/2015 15:47:01
推 VSei: Google search -> 4 camera simultaneously opencv 08/06 11:42
→ VSei: it's might be all/part of answer, not prove it. 08/06 11:44