如何显示从设备捕获并通过com端口连接的视频提要? [英] how to show a video feed captured from a device and connected via com port ?

查看:65
本文介绍了如何显示从设备捕获并通过com端口连接的视频提要?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何显示从设备捕获并通过com端口连接的视频供稿?

how to show a video feed captured from a device and connected via com port ???

推荐答案

请不要重复此问题.如果您没有收到满意的答案,那么很可能没人会得到您需要的答案.去使用Google和MSDN自己做一些研究.
Please stop repeating this same question. If you have not received a satisfactory answer then it is likely that nobody has the answer you need. Go and do some research for yourself using Google and MSDN.


Dim hwdc As Long
Dim startcap As Boolean

Private Sub cmdCapture_Click()
Dim temp As Long

  hwdc = capCreateCaptureWindow("NeV0 Vision System", ws_child Or ws_visible, 0, 0, 320, 240, Picture1.hWnd, 0)
  If (hwdc <> 0) Then
    temp = SendMessage(hwdc, wm_cap_driver_connect, 0, 0)
    temp = SendMessage(hwdc, wm_cap_set_preview, 1, 0)
    temp = SendMessage(hwdc, WM_CAP_SET_PREVIEWRATE, 30, 0)
    startcap = True
    Else
    MsgBox ("No Webcam found")
  End If
End Sub

Private Sub cmdClose_Click()
Dim temp As Long
If startcap = True Then
temp = SendMessage(hwdc, WM_CAP_DRIVER_DISCONNECT, 0&, 0&)
startcap = False
End If
End Sub

Private Sub cmdVideoFormat_Click()
 Dim temp As Long
 If startcap = True Then
  temp = SendMessage(hwdc, WM_CAP_DLG_VIDEOFORMAT, 0&, 0&)
End If
End Sub


这篇关于如何显示从设备捕获并通过com端口连接的视频提要?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆