从摄像头录制视频 [英] recording video from webcam

查看:84
本文介绍了从摄像头录制视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想录制并保存来自网络摄像头的视频..我可以看到视频预览,但我无法保存。

i是视觉基础的新手......我不知道如何使用directshow ..所以我使用的是vfw api。

我使用的代码是......

i want to record and save a video from the webcam..i can see the video preview but i am not able to save it.
i am new to visual basic..and i dont know how to use directshow ..so i am using the vfw api.
The code i have used is...

Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
        Dim save As Integer
        save = MsgBox("Do you want to save your recording video", MsgBoxStyle.YesNo + MsgBoxStyle.Information, "Recording Video")
        If (save = MsgBoxResult.Yes) Then
            Dim saveName As New SaveFileDialog
            saveName.Filter = "Avi file(*.avi)|*.avi"
            If saveName.ShowDialog = Windows.Forms.DialogResult.OK Then
                ' SendMessage(hWnd, WM_CAP_FILE_SAVEAS, 0, "C:\RecordedVideo.avi")
                SendMessage(hWnd, WM_CAP_FILE_SAVEAS, 0, saveName.FileName)
            End If
        End If
        Me.Cursor = System.Windows.Forms.Cursors.Default
        Button2.Enabled = True
        Button3.Enabled = False
    End Sub



谢谢


thanks

推荐答案

通过Microsoft查看Expression Studio。这是一篇关于CodeProject的文章: WPF:网络摄像头控制 [ ^ ]
Look into Expression Studio by Microsoft. Here is an article on CodeProject: WPF: Webcam Control[^]


我建​​议使用EmguCV ..



i'l suggest to use EmguCV..

引用:



[ ^ ]





[ ^ ]





[ ^ ]







参考这些文章


[^]


[^]


[^]



refer these articles


这篇关于从摄像头录制视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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