Emgu摄像头
问题描述:
让去,我一无所知没什么想法...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
答
有一个在VB中没有Retrieve()
方法。
尝试用capturez.QueryFrame()
或Capturez.RetrieveBgrFrame()
代替capturez.Retrieve()
。
如果你已经改变了,但你在capturez.QueryFrame
上失败,这意味着你错过了x86(bin/debug)中的一些dll文件。