開發平台(Platform): (Ex: VC++, GCC, Linux, ...)
VC++ 2010
額外使用到的函數庫(Library Used): (Ex: OpenGL, ...)
OpenCV
問題(Question):
小弟最近參考一個網頁上的教學
用OpenCV擷取camera影像並顯示在windows form的pictureBox上
http://opencvproject.blogspot.tw/search/label/
Episode%204%20%3A%20Little_Tricks_Capture_Camera_in_WinForm
按照網頁上的做法 一切看似OK
唯獨小弟的camera是2590*1942px
但顯示的畫面卻只有其中的640*480px
心想應該是frame size設定錯誤
因此試著用cvSetCaptureProperty去設定frame size為2590*1942
並且用cvGetCaptureProperty確認無誤
但是這時候pictureBox卻只顯示一片灰色
如果frame size設定為1295*971(實際長寬的一半)卻又可以顯示畫面(實際視野的1/4)
不知是否有前輩可以指點迷津
謝謝
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 36.239.248.228
※ 編輯: himmel 來自: 36.239.248.228 (04/30 01:22)
→
04/30 01:45, , 1F
04/30 01:45, 1F
→
04/30 11:53, , 2F
04/30 11:53, 2F
推
04/30 15:41, , 3F
04/30 15:41, 3F
→
04/30 23:04, , 4F
04/30 23:04, 4F
推
05/01 07:41, , 5F
05/01 07:41, 5F
→
05/01 07:42, , 6F
05/01 07:42, 6F
→
05/02 01:26, , 7F
05/02 01:26, 7F
→
05/02 01:28, , 8F
05/02 01:28, 8F