CaptureDevice icon indicating copy to clipboard operation
CaptureDevice copied to clipboard

CaptureDevice.EVENT_STILL_IMAGE_READY never dispatched

Open ddennis opened this issue 10 years ago • 3 comments

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

ddennis avatar Jun 19 '14 20:06 ddennis

Still-image option is only available on Mobile devices. i didnt implement it for desktop cameras

inspirit avatar Jun 20 '14 09:06 inspirit

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

ddennis avatar Jun 21 '14 23:06 ddennis

well i dont think anyone implemented it in NativeExt so the only way is to write this kind of feature from scratch

inspirit avatar Jun 22 '14 06:06 inspirit