在VB初学者的Emgu网络摄像头

时间:2015-07-12 20:58:30

标签: vb.net webcam emgucv

让我想到我一无所知......

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




1 个答案:

答案 0 :(得分:0)

vb。中没有Retrieve()方法。

尝试将capturez.Retrieve()替换为capturez.QueryFrame()Capturez.RetrieveBgrFrame()

如果你已经改变了但是你在capturez.QueryFrame失败了,那就意味着你在x86(bin / debug)中缺少一些dll文件。

相关问题