- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello All,
I am using the below code. I am getting a console and camera is initialized (yellow light is blinking in the camera) but I didn't get the popup window of my image. pls help
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication2
{
class Program
{
static void Main(string[] args)
{
// Create a PXCMSenseManager instance
PXCMSenseManager sm = PXCMSenseManager.CreateInstance();
// Select the color stream
sm.EnableStream(PXCMCapture.StreamType.STREAM_TYPE_COLOR, 640, 480);
// Initialize and Stream samples
sm.Init();
for (;;)
{
// This function blocks until a color sample is ready
if (sm.AcquireFrame(true).IsError()) break;
// retrieve the sample
PXCMCapture.Sample sample = sm.QuerySample();
// work on the image sample.color
// go fetching the next sample
sm.ReleaseFrame();
}
// Close down
sm.Dispose();
}
}
}
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
have you defined this in xml and you need to call this form cs code right?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear mzc,
I amm doing as console app. do you want me to do as wpf?
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page