vb.net windows application barcode scanner - vb.net

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!

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

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

Related

Does IronPython support APIs to receive/send data from peripherals?

I will receive a hardware which will have native Python API to communicate it through USB. So the device will send image data to Python. It is because they only support with Python API.
I'm stuck because I need to use C# since it is part of the developed application. So I was thinking to embed that hardware USB data commutation using .NET. But I'm vey shocked when I heard they only have Python API. Then I came around IronPython. But I am not sure in my case it would work since I'm talking about a third party API from a small company.
Can I embed this in C# application and communicate through it? So in my case the Python engine should receive data from USB port and transfer it to C# or send data to USB device from C# to Python and then to the device. Is is possible? If not any alternative exits?

Remote API with WIFI enabled Camcorders

I currently own a CX330, which has WIFI control through a Sony app. I would like to build the remote control features into another app I'm building as well as being able to download video from the device. Are either of these options possible and, if so, where in the documentation do I go to find examples or instructions? Currently I only see these functions available for a limited set of devices, but if the proprietary software can provide remote control I'm assuming Sony has not built a separate API just for the camcorders and a different one for other devices.
Also, I believe the proprietary software allows you to download new videos directly from the camera, is an api available for this as well?
We do have an API for working with cameras, but unfortunately your camera is not supported. You can find the full list of supported cameras here:
https://developer.sony.com/develop/cameras/
The API does allow you to download photos and videos.

Win8 Desktop vs Win8RT

We are developing a lightswitch app that will have a silverlight plug in controller that will allow for handwriting recognition and translation. we want to use this exclusively on a win8 tablet. we know that it has to be used on the desktop side of the tablet. We also know that the win8rt side has access to different tools that allow of handwriting recognition. (InkManager class) - is there any way to get access to these necessary classes from the desktop side of the win8 tablet.
This post by Scott Hanselman might help you.
Quote:
I was trying to access some of the sensors that are built into this
Intel Ultrabook that runs Windows 8. However, while there's support
for Location Sensors built into the .NET 4 libraries on Windows 7 and
up, I want to access the complete Sensor and Location Platform that is
built into Windows 8 itself. Those APIs are available via COM and I
could call them via COM, but calling them via the WinRT layer is so
much nicer. Plus, this is kind of why WinRT exists.
There's also an example using VB.NET on TheCodeProject

is it possible to emulate the Kinect (useful for debugging code)?

I'm developing a Kinect program using the official SDK version 1.5. I was wondering whether it is possible to talk to an emulated kinect device? That would allow for faster coding and debugging, since I don't have to plugin the device but could replay some data.
Is that possible? if so, how do I get started?
I've only used the offical Kinect SDK for a few days, but recommend having a look at Kinect Studio. There's a good article on working with Kinect Studio on msdn to get started.

Devices supported by Windows Portable Devices (WPD)

I'd like to use digital cameras in my application (running on Windows, written in C++) and I came across two libraries that did that - WIA (Windows Image Acquisition) and WPD (Windows Portable Devices). WIA supports digital cameras only for versions of Windows up to XP and for Vista and 7 one should use WPD. The problem is that I ran WPD's sample project from Windows SDK which failed to recognize all devices I tried (But WIA did on a Win XP machine) apart from a flash memory and an mp3 player. I don't think the other devices were too old to have a WPD driver, so my question is: What devices does WPD support? Am I mistaken or WPD does not work with a broad range of devices? Or maybe there is another library I could use for taking pictures (maybe a video, but that's not as important)?
I hope someone can clear things up. Thanks in advance!
You will need to use DirectShow to work with your webcams on Vista/Win 7. Logitech and the like don't supply WPD drivers. Perhaps they will for Windows 8.
You can also use the MCI interface if you want to go old school, which nowadays is just a compatibility layer on top of DirectShow. Google for "WM_CAP_START" or "WM_CAP_GRAB_FRAME" for some examples.
Don't have a list for WPD, but here's a:
List of Supported Windows Image Acquisition (WIA) Scanners and Cameras
http://support.microsoft.com/kb/264598