[mediacapture-image] Real-Time Access to Camera Properties in Media Capture API (#309)

AkiSakurai has just created a new issue for https://github.com/w3c/mediacapture-image:

== Real-Time Access to Camera Properties in Media Capture API ==
While the current W3C [Media Capture and Streams API](https://www.w3.org/TR/mediacapture-streams/) and [Media Capture Image API](https://w3c.github.io/mediacapture-image/) allow control over certain camera properties such as exposure, ISO, and focus distance, they lack the ability to retrieve real-time values for these parameters when set to auto mode. Developers need access to these values for applications where real-time feedback is essential, such as augmented reality, scientific imaging, and custom photography apps.

Most platforms already provide support for accessing real-time camera properties.

## Platform Support
### iOS
iOS native applications (via AVCaptureDevice) already allow real-time access to camera properties like:
[AVCaptureDevice.exposureDuration](https://developer.apple.com/documentation/avfoundation/avcapturedevice/1624606-exposureduration?language=objc) for exposure.
[AVCaptureDevice.iso](https://developer.apple.com/documentation/avfoundation/avcapturedevice/1624649-iso?language=objc) for iso.
[lensPosition](https://developer.apple.com/documentation/avfoundation/avcapturedevice/1624643-lensposition?language=objc) for focus distance.

### Android
Android's Camera2 API provides real-time feedback for:
[SENSOR_EXPOSURE_TIME](https://developer.android.com/reference/android/hardware/camera2/CaptureResult#LENS_FOCUS_DISTANCE) for exposure.
[SENSOR_SENSITIVITY](https://developer.android.com/reference/android/hardware/camera2/CaptureResult#SENSOR_SENSITIVITY) for ISO.
[LENS_FOCUS_DISTANCE](https://developer.android.com/reference/android/hardware/camera2/CaptureResult#LENS_FOCUS_DISTANCE) for focus distance.

### Windows
Windows provides access to these properties through the Windows.Media.Capture APIs:
[ExposureCompensationControl](https://learn.microsoft.com/en-us/uwp/api/windows.media.devices.exposurecompensationcontrol?view=winrt-26100) for exposure.
[IsoSpeedControl](https://learn.microsoft.com/en-us/uwp/api/windows.media.devices.isospeedcontrol?view=winrt-26100) for ISO.
[FocusControl](https://learn.microsoft.com/en-us/uwp/api/windows.media.devices.focuscontrol?view=winrt-26100) for focus distance.

Given these capabilities, should the W3C API be extended to include access to these real-time properties?

Please view or discuss this issue at https://github.com/w3c/mediacapture-image/issues/309 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 22 October 2024 13:17:41 UTC