vb.net Emgu.CV 旋转摄像头视频

页面导航:首页 > 软件编程 > vb.net > vb.net Emgu.CV 旋转摄像头视频

vb.net Emgu.CV 旋转摄像头视频

来源: 作者: 时间:2016-01-15 15:10 【

Imports Emgu.CVImports Emgu.CV.StructureImports Emgu.CV.UtilPublic Class Form1Dim capturez As Capture = New CaptureDim imagez1 As Image(Of Bgr, Byte)Dim imagez2 As Image(Of Bgr...
Imports Emgu.CV
Imports Emgu.CV.Structure
Imports Emgu.CV.Util

Public Class Form1

Dim capturez As Capture = New Capture
Dim imagez1 As Image(Of Bgr, Byte)
Dim imagez2 As Image(Of Bgr, Byte)
Dim rotation As Integer

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

imagez1 = capturez.RetrieveBgrFrame
imagez2 = imagez1.Rotate(rotation, New Bgr(255, 255, 255))

rotation = rotation + 2
If rotation = 360 Then
rotation = 0
End If

PictureBox1.Image = imagez2.ToBitmap
End Sub
End Class

 

Tags:

文章评论

最 近 更 新
热 点 排 行
Js与CSS工具
代码转换工具

<