0

I am creating a windows application which scans barcode and identifies the product. For it, I am planning to use a webcam temporarily. I want to know how can I interface my webcam with the application. The webcam is USB one.

The application is similar to the ones available these days on Smartphones.

Please help.

Thank You!

abhi154
  • 43
  • 1
  • 3
  • 10

2 Answers2

5

You can use either the WIA approach or the DirectShow, depending on your web cam driver. In both cases, unless you are very familiar with these 2 approaches, you might want to use a third-party library. We are using a third-party multimedia toolkit named leadtools to control our web cameras. You can check this forum post for further information. Also, this toolkit supports reading barcodes. For more information, refer to this Tutorial

Olen Kadic
  • 51
  • 1
  • 2
0

You need to make use of Windows Image Acquisition (WIA)

Here are several resources which you can use.

How to use a web cam in C# with .NET Framework 4.0 and Microsoft Expression Encoder 4

C# WebCam User Control Source

How do I connect to a USB webcam in .NET?

or DirectShow.Net

Webcam using DirectShow.NET

Community
  • 1
  • 1
Quannt
  • 2,035
  • 2
  • 21
  • 29
  • This is of course only half the solution because once you have acquired the image you have to then decode the barcode from it – Matt Wilko Sep 04 '12 at 16:20