I'm developing a C# application with the Kinect, and I'd like to relay back to the user their reflection (with the RGB camera) or the skeletal view while they're using the application. Is that possible? Or is there a better way to show the user what the camera sees while running?
Thanks!
The Kinect for Windows Developer Toolkit has examples that do exactly this. There are multiple examples Demonstrating how to display the depth and color streams, as well as how to show the skeleton by it'll or overlayed on the video stream.
The "Kinect Explorer" example is the more advanced of those examples, showing how to put it all together.
Related
There are a quite a few of sources to get a video stream from webcam into a picturebox embedded in a userform.
Preview a camera in DirectShow and capture a still image - in VB.net
How do i use attached webcams to take still image in my application
However, I am trying to do something a little neater, basically have a the preview of the video stream from webcam in a control that is embedded directly into the sheet rather than on a floating userform. I am not sure if this possible. I would very much appreciate any pointers.
(Answer from TnTinMn's comment - Posting as an answer to remove from 'Unanswered' queue)
If you can write a .Net WinForm UserControl to view your video stream, then you should be able to produce a ActiveX UserControl that you can utilize in Excel.
Get the Microsoft InteropForms Toolkit 2.1 .
Even though it was originally intended to allow .Net UC usage in VB6, it works fine to write UCs for use in Excel.
As a test, I just wrote one that used the Windows Media Player and it played the video fine as a UserControl on the worksheet.
Start VS as an Admin as it needs to be able to register the control.
I would say build a Form with TopMost = True
Then you can display your webcam video in this Form
and put it anywhere you want.
I'm currently developing a windows phone 8.1 Silverlight in C#. I managed to get the stream of the camera and output it on the screen of the phone (using PhotoCamera). This app is about OCR so I need to get an image very frequently to perform operations on it (the goal is to detect a specific object but through the camera and not a picture). Does anyone have an idea about how to achieve that (-> a function from the API that sends you an image every so often)? There is a lot of Microsoft tutorial, but I can't find one about that particular usage.
Well this seems to be the tutorial I was looking for. Hopefully this will help other people with the same problem : https://msdn.microsoft.com/fr-fr/library/windows/apps/hh202982(v=vs.105).aspx .
I am using the directshow.net to capture video from the camera. The video is visible on a form. Can someone tell me how I can take a snap of it as an .NEt Image object. I need to take snaps of it intermittently.
I believe there is a sample application that shows you how to do this with DirectShow.net. When you download the SDK, look for the DxSnap demo. This shows how to take a screenshot of a webcam's video stream. You can modify it to fit your scenario but this should be all you need.
Even on this site, however, Microsoft recommends that you use WIA (Windows Image Acquisition) to accomplish this instead. Just in case you have the option and haven't come across this before, here is a tutorial on how to get started:
http://channel9.msdn.com/coding4fun/articles/Look-at-me-Windows-Image-Acquisition
I need to rapidly develop some software that uses a camera as an AV input.
Assuming the drivers are installed for whatever the device that is giving the input I need to be able to capture images and to stream the camera in the winforms window.
I couldn't find a component that I can use, maybe because I don't know the right name for it.
Touchless is under a licence I can't use. If anyone knows of a good compoment/code I can use even if it's for a fee I will appreciate this.
DirectShow.NET library suits the bill here. You can use it to access the webcam directly using the underlaying DirectShow object as in here: http://www.codeproject.com/KB/audio-video/WebcamUsingDirectShowNET.aspx
Also if you consider learning WPF, there is a very neat webcam component here: http://wpfcap.codeplex.com/
It is just like dropping a image control on the worm, but this time in WPF:
Edit: There are also two Winform webcam components as I see now: http://easywebcam.codeplex.com/ and http://www.c-sharpcorner.com/UploadFile/yougerthen/810262008070218AM/8.aspx
This article explains how to access the webcam using Windows Image Aquisition services.
Hello,
I've written a program in C# to take screenshots of rectangular areas on my screen. however i don't seem to be able to capture the information from Adobe AIR applications. Instead, the applications beneath are what i end up with.
the meat of the action revolves around System.Drawing.Graphics.CopyFromScreen - passing in what amounts to an upper left point and a size and grabbing that area. I've had no problems so far with anything else, including flash movies in web pages.
I really have no idea where to look, and my google searches lead me to believe i'm the only person who has ever encountered this. :O
Any ideas?
Use the print screen key to take a screenshot of an Adobe AIR application on the Windows clipboard. Paste the screenshot into MS Paint. If you don't see Adobe AIR in your screenshot, then it's an acceleration issue - Adobe AIR is using a hardware accelerated surface (i.e. DirectX or OpenGL) for all its rendering, which means it just doesn't exist in the software screen buffer (there are ways to take screenshots of accelerated surfaces in other applications, but that gets very specialized).
This doesn't help you but I just threw together a quick WinForms app to try it and I was able to take a screenshot of TweetDeck using the CopyFromScreen function.