2015-07-12 218 views
0

讓去,我一無所知沒什麼想法...Emgu攝像頭

https://www.youtube.com/watch?v=37l6-O0T6EA

我下面這個西元,一切進展順利。但 「capturez.QueryFrame」 失敗

Imports Emgu.CV 
 
Imports Emgu.CV.Util 
 
Imports Emgu.CV.Structure 
 

 
Public Class Form1 
 

 
    Dim capturez As Capture = New Capture 
 

 
    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick 
 

 
     Dim imagez As Image(Of Bgr, Byte) = capturez.Retrieve() 'Instead of QueryFrame, you may need to do RetrieveBgrFrame depending on the version of EmguCV you download. 
 

 
     PictureBox1.Image = imagez.ToBitmap() 
 

 
    End Sub 
 
End Class

回答

0

有一個在VB中沒有Retrieve()方法。

嘗試用capturez.QueryFrame()Capturez.RetrieveBgrFrame()代替capturez.Retrieve()

如果你已經改變了,但你在capturez.QueryFrame上失敗,這意味着你錯過了x86(bin/debug)中的一些dll文件。