Skip to content

pilotkid/FastWebcamera

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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