CaptureDevice
CaptureDevice copied to clipboard
CaptureDevice.EVENT_STILL_IMAGE_READY never dispatched
I am using a Logitech® HD Pro Webcam C920.
I am trying to get a still image from my webcam.This feature should be accessible through Direct Show on windows. The video feed is working perfectly, but my camera also has a still image feature, which is able to capture a still image in 15Mega pixel.
I am assuming the captureStillImage() function would be able to grab this high resolution image, but the CaptureDevice.EVENT_STILL_IMAGE_READY never dispatches.
mycapt = new CaptureDevice(dev.name, 1920 , 1080, 60, 3); capt.setupForDataType(CaptureDevice.GET_FRAME_BITMAP); mycapt.addEventListener(CaptureDevice.EVENT_STILL_IMAGE_READY, onStillImageReady) mycapt.captureStillImage()
Am i missing something? /Thanks Dennis
I am running AIR 4.0, Windows 7, using Flashdevelop. I have installed the logitech drivers
Still-image option is only available on Mobile devices. i didnt implement it for desktop cameras
Thanks for replying. Too bad it's not implemented for desktop. Would be a nice feature,
I tried forcing the the width and height beyond what specified(1920x1280), and i can actually get a 2304x1536 bitmap, when i save to a .jpg, which is not possible using the standard drawToBitmapData from my webcam.
Do you know of any way of getting high resolution images from the webcam?
Thanks /Dennis
well i dont think anyone implemented it in NativeExt so the only way is to write this kind of feature from scratch