Skip to content

pilotkid/FastWebcamera

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

FastWebcam

FastWebcam is just a quick wrapper for opencv to take snapshots from a webcamera. This works with WinForms apps in the .net framework. I am not sure its compatibility as it is just a quick project that I am using for an application.

 Camera cam = null;

 public Form1()
 {
    InitializeComponent();
    cam = new Camera();
 }
 
 private timer1_Tick(object sender, EventArgs e)
 {
     pictureBox1.Image = cam.GetBitmap();
 }

or if you want to manually intialize the camera

Camera cam = new Camera(false);//START THE CAMERA BUT DO NOT INITALIZE AT CLASS CONSTRUCTION
cam.Initalize();//START THE CAMERA STREAM
pictureBox1.Image = cam.GetBitmap();//GET IMAGE
cam.Deinitalize();//STOP THE CAMERA STREAM


cam.Dispose();//Dispose class

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages