Hello everyone, I have a problem which is related to EmguCV to capture the camera view. My camera is 713x BDA analog capture, the card is UPMOST-UPG301B V.
When I compile this code, the OpenCamera can be run successfully, next although the CameraStart can be also run, my picturebox don't show anything, and there's no any errors appear, but when I use the USB type webcam, the All code can be run succesfully, does anybody know the reason ??
My code is below :
Public _capture As Capture
Dim wr As Double
Public _capture As Capture
Dim wr As Double
Dim hr As Double
Dim rtg As Rectangle
Dim _IsOpen As Boolean
Public Sub OpenCamera(selcetCamNum As Integer)
Try
If _capture Is Nothing Then
selectNum = selcetCamNum
Me._capture = New Capture(selcetCamNum)
wr = 1
hr = 1
rtg = New Rectangle(CInt(105 * wr), CInt(155 * hr), CInt(110 * wr), CInt(50 * hr))
AddHandler Me._capture.ImageGrabbed, AddressOf ProcessFrame
Me._IsOpen = True
End If
Catch ex As Exception
MessageBox.Show("OpenCamera" & ex.Message)
End Try
End Sub
Public Sub CameraStart()
If Me._capture IsNot Nothing Then
If Me._IsStart = False Then
Me._capture.Start()
Me._IsStart = True
End If
End If
End Sub
↧