[問題] ARM Embedded System下Qt運行OpenCV
開發平台(Platform): Linux Ubuntu 10.04 + QtCreator
額外使用到的函數庫(Library Used): OpenCV 2.3.1 for Linux
問題(Question):
一、已完成的部分: 我已用Ubuntu + QtCreator編過OpenCV 2.3.1後,
丟入ARM板子執行,顯示圖片於QLabel。
整個過程為: 1. 利用cvLoadImage讀入影像為IplImage型別
2. 將IplImage的RB對調後轉為QImage型別
3. 將QImage轉為QPixmap後顯示於QLabel
驗證OpenCV 2.3.1可執行在ARM板子上。
二、我的問題: 想試著用OpenCV的function來採集攝影機的影像,
但是會一直出現segmentation fault,上網Google
的結果為:
CvCapture* pCapture = cvCreateCameraCapture(-1);
此函式不適用於ARM板子,只可在PC上跑。
三、我的想法: 是否只能用V4L2採集攝影機的影像後,轉為IplImage
經由OpenCV做處理,最後轉為QImage => QPixmap
顯示於QLabel上。
四、我的目的: 最近要在ARM板做手勢識別,因此希望能少一步轉換,
能直接以OpenCV格式採集攝影機影像後以OpenCV的
function處理。
餵入的資料(Input):
預期的正確結果(Expected Output):
錯誤結果(Wrong Output): segmentation fault
程式碼(Code):(請善用置底文網頁, 記得排版)
補充說明(Supplement): 文長,謝謝大家。
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 114.44.31.83
※ 編輯: meteorlee 來自: 114.44.31.83 (10/21 12:58)
推
10/21 19:31, , 1F
10/21 19:31, 1F
→
10/21 19:31, , 2F
10/21 19:31, 2F
→
10/21 19:32, , 3F
10/21 19:32, 3F
→
10/21 19:37, , 4F
10/21 19:37, 4F
→
10/21 19:38, , 5F
10/21 19:38, 5F
推
10/21 20:11, , 6F
10/21 20:11, 6F
推
10/21 20:18, , 7F
10/21 20:18, 7F
→
10/21 20:57, , 8F
10/21 20:57, 8F
→
10/21 20:58, , 9F
10/21 20:58, 9F
→
10/21 20:59, , 10F
10/21 20:59, 10F
C_and_CPP 近期熱門文章
PTT數位生活區 即時熱門文章