[問題] opencv 讀不到1394攝影機
開發平台(Platform): (Ex: VC++, GCC, Linux, ...)
win7
codegear c++ 2007
額外使用到的函數庫(Library Used): (Ex: OpenGL, ...)
opencv 2.4.4
問題(Question):
void __fastcall TForm1::Button1Click(TObject *Sender)
{
IplImage *frame;
CvCapture *capture;
capture = cvCreateCameraCapture(-1) ;//index or 0
if (capture==NULL) {
Memo1->Lines->Add("capture==NULL");
}
else {
frame = cvQueryFrame(capture);
Image->Width=frame->width;
Image->Height=frame->height;
IplImageToTBitmap(frame,Image->Picture->Bitmap);
}
}
預期的正確結果(Expected Output):
現在的回傳都會在我的memo上面顯示
Capture == NULL
讀不到1394攝影機
我使用的攝影機是Firefly MV FFMV-03M2M
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 219.87.181.90
※ 編輯: sgvacr 來自: 219.87.181.90 (03/12 10:18)
推
03/12 10:24, , 1F
03/12 10:24, 1F
→
03/14 07:57, , 2F
03/14 07:57, 2F
→
04/01 22:15, , 3F
04/01 22:15, 3F
C_and_CPP 近期熱門文章
PTT數位生活區 即時熱門文章