Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CaptureDevice.EVENT_STILL_IMAGE_READY never dispatched #10

Open
ddennis opened this issue Jun 19, 2014 · 3 comments
Open

CaptureDevice.EVENT_STILL_IMAGE_READY never dispatched #10

ddennis opened this issue Jun 19, 2014 · 3 comments

Comments

@ddennis
Copy link

ddennis commented Jun 19, 2014

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

@inspirit
Copy link
Owner

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

@ddennis
Copy link
Author

ddennis commented Jun 21, 2014

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

@inspirit
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants