W3C home > Mailing lists > Public > public-webrtc-logs@w3.org > July 2019

Re: [mediacapture-image] Transferable? (#211)

From: David Sanders via GitHub <sysbot+gh@w3.org>
Date: Wed, 17 Jul 2019 19:51:55 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-512543546-1563393115-sysbot+gh@w3.org>
> ImageCapture gives you an encoded image (probably a JPEG). It's optimized for still image capture.

@alvestrand, `ImageCapture.grabFrame` is, AFAIK, not optimized for still image capture.

> What are you trying to accomplish, and can it be described as an use case in webrtc-nv-use-cases?

I've had a use-case for many years of doing various detections from webcam video data (barcode detection, a lightweight neural network, etc). They require getting an `ImageData` for a webcam video frame, which `ImageCapture` now provides an efficient way of doing via `ImageCapture.grabFrame`. I also need the ability to control the camera (focus, zoom, pan and tilt), which `ImageCapture` also provides.

Looking at your link, the closest would probably be:

```
   N18             The application must be able to obtain raw media
                   from the capture device in desired formats.
```

However that may not be entirely true - I don't want true raw media, as then I'd have to deal with the various formats a webcam stream can be. At the end of the day I want an `ImageData` since it's a consistent format, and can easily be provided to any library expecting image data.

-- 
GitHub Notification of comment by dsanders11
Please view or discuss this issue at https://github.com/w3c/mediacapture-image/issues/211#issuecomment-512543546 using your GitHub account
Received on Wednesday, 17 July 2019 19:51:57 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:22:25 UTC