I would like to change the shutter speed by starting the camera on the terminal with javascript.

Asked 2 years ago, Updated 2 years ago, 97 views

I am creating a web application that uses javascript to activate the camera of the terminal.
Currently, I am using getUserMedia to manipulate the settings of the camera that started, and I can show the rear camera image on the screen of the terminal.
However, I don't know how to change the shutter speed.

Reference Site
Use your camera on the web – WebRTC (getUserMedia) on WebView

Is it possible to change the shutter speed with getUserMedia?
Also, if anyone else knows how to set the shutter speed, please let me know.
Thank you for your cooperation.

javascript camera webapi

2022-09-30 15:44

1 Answers

It seems that this article and the link from it deal with a similar topic, but it may be possible to do so with an experimental API that only works with Chrome.
getUserMedia lock focus/expose

What I would like to do, once the page starts taking snapshots, lock the getUserMedia camera's focus/exposure, so that in between snapshot intervals the environment can change without the light balance changing or the camera refocusing.
What I want to do is lock the focus/exposure of the getUserMedia camera when the page starts taking snapshots so that the environment can be changed during the snapshot interval without changing the light balance or refocusing the camera.

Not yet.Unfortunately, WebRTC does not allow photo-level access to cameraas, but a new Image Capture spec is being worked on to solve this. None of the browsers implementation it through.> Still. Unfortunately, WebRTC does not allow photo-level access to the camera, but we are working on a new ImageCapture specification to resolve this. However, none of the browsers have been implemented yet.

Take photo when the camera is automatically focused
Why the difference in native camera resolution-vs-getUserMedia on iPad/iOS?

If you read the article around here, it seems that you can manipulate the shutter speed indirectly by manipulating information related to exposure and iso.

Shutter speed - Wikipedia /Shutter speed-Wikipedia

Shutter speed refers to the time when the shutter is opened and the film or imaging device is exposed (exposed) to light through the lens (also abbreviated as exposure time, shutter speed, SS) when taking a picture with a camera.

CAMERA EXPOSURE

MediaStream Image Capture

W3C Working Draft, 6 April 2021 9.4.MediaTrackSettingsdictionary
DOMSstring exposureMode;
double exposureCompensation;
double exposureTime;
doubleiso;

MediaStream Image Capture API

Experimental This is an experimental function.
Check your browser compatibility chart before using it in production.

Use your camera on the web – WebRTC (getUserMedia) on WebView

Fine controls
For your information, I will list the results of each browser.
Google Chrome

"exposureCompensation": true,
"exposeMode": true,
"exposeTime": true,
"iso": true,

Any keywords that might be relevant
Q. Relationship between exposure value and exposure time (shutter speed) of USB camera
Use a USB Video Class (UVC) type USB camera on Linux
Guide Camera
Control the camera with Python [Research]


2022-09-30 15:44

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.