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

前端之家收集整理的这篇文章主要介绍了vb.net Emgu.CV 旋转摄像头视频前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。


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
原文链接:https://www.f2er.com/vb/258618.html

猜你在找的VB相关文章