arcore-android-sdk icon indicating copy to clipboard operation
arcore-android-sdk copied to clipboard

Feature Request: Camera Control (flashlight/torch, auto exposure, etc.)

Open inio opened this issue 7 years ago • 73 comments

This bug is for collecting various requests for camera control capabilities.

inio avatar Jan 31 '18 17:01 inio

+1 for this, we really need to be able to lock the exposure & white balance of the camera (We're doing some additional computer-vision tracking of a device based on the colour of a blob)

Is there any current method to lock these?

KeaneGames avatar Apr 17 '18 16:04 KeaneGames

Another +1 for auto-focus control. Our use case relies on close focal point.

thereallukesimpson avatar May 18 '18 14:05 thereallukesimpson

ARCore 1.4 adds support for two new aspects of camera control:

inio avatar Aug 03 '18 22:08 inio

@inio would it be possible to provide the foundations for a working example of setting AutoFocus? I can see it used in ComputerVisionActivity.java and have tested it successfully, but am unable to get it working with an augmented reality example, like in the HelloArActivity.java example. Any help or example integration would be fantastic for all of us... I know the performance of the AR is supposed to decrease with auto-focus, but the camera quality is really too rough for the best quality demos without auto-focus. Thanks!

stev3 avatar Oct 08 '18 13:10 stev3

Haven't tested this but if you replace:

session.resume();

with

Config config = new Config(session);
config.setFocusMode(Config.FocusMode.AUTO);
session.configure(config);
session.resume();

You should get auto-focus.

Note: this config can be set after Session.resume(), it's just slightly cleaner/faster to do it beforehand.

inio avatar Oct 08 '18 23:10 inio

+1 for a flashlight control...or give us access to the CameraView layer so we can get to it...

kenyee avatar Nov 27 '18 16:11 kenyee

I am trying to integrate ArCore in an existing application which uses Camera 2 API for capturing and viewing images, and want to integrate ArCore in it particularly to track Camera (Acquire Camera Pose) and capture 3D Point Clouds.

Would it create conflicts if I call session.update to acquire frame and getCamera in the same application already accessing and viewing Camera View ?

If no would the frames on ArCore and Camera Preview be synchronized ?

Or is it recommended to use ArCore as the base and use Texture and Image provided by ArCore for rendering the view ?

EbadSyed avatar Dec 13 '18 12:12 EbadSyed

Hi, I am doing a project related to vision screening. One major point is that I need to capture photo with flashlight on. If I use Camera 2 API, the application needs a few seconds to open it. The photo is pixelated and I cannot do feature extraction.

I will be appreciated if flashlight control feature can be added :).

timtsoitt avatar Dec 30 '18 05:12 timtsoitt

So we can't turn on the flashlight / torch while using ARCore?

mr0ng avatar Jan 01 '19 03:01 mr0ng

At the moment there is no way to control the flash light while using ARCore.

inio avatar Jan 02 '19 21:01 inio

@inio Thanks for the update. I have a client project that requires this flashlight+ARCore functionality in the very near term, so any beta/preview SDKs or any insights/suggestions you can provide is greatly appreciated. Thanks for all your efforts!

mr0ng avatar Jan 05 '19 20:01 mr0ng

@fredsa @inio Any update or ETA on flashlight being able to be toggled while using ARCore? Thank you!

mr0ng avatar Feb 16 '19 05:02 mr0ng

@fredsa @inio Any update on this issue? We are waiting patiently. Let me know if there's anything me or my dev team can do to help expedite this feature.

mr0ng avatar Mar 06 '19 07:03 mr0ng

I thought the new camera sharing API in Sceneform 1.7 would have helped but didn't see anything that would work there...

kenyee avatar Mar 06 '19 14:03 kenyee

I'm also working on a project that will need the flashlight at times, would love to see this feature added!

genefield avatar Mar 11 '19 16:03 genefield

On some devices, like Samsung S9 and S10, there are some exposure issues in some lighting conditions, it would be very helpful to be able to modify the value if we know that the app is supposed to be used in those specific conditions.

guerwan avatar Mar 25 '19 07:03 guerwan

@inio checking to see if there has been any updates or movement on getting flashlight to toggle while using ARCore. Thanks

mr0ng avatar Apr 02 '19 15:04 mr0ng

@inio Me again :) Just checking in to see if there has been any progress on flashlight + ARCore or if you can provide any additional transparency regarding a rough timeline on when we might expect to see this issue resolved (or otherwise!)

mr0ng avatar May 05 '19 04:05 mr0ng

Looking forward to the Flash on/off support.

bangonkali avatar May 06 '19 05:05 bangonkali

@inio checking in on flashflight toggle support with ARCore. Thank you!

mr0ng avatar May 23 '19 12:05 mr0ng

@inio since is only one issue for many features request, how can we follow what is done and what is not?

For image resolution the two methods can be used in java side Session.getSupportedCameraConfigs() how can we higher the resolution on the ndk/sdk? to use ArCameraIntrinsics_getImageDimensions ?

We are doing in native code for performance.

Thanks!

Canato avatar Jun 27 '19 09:06 Canato

Any news on flash with AR Core? It's been over an year now...

d3m3tr105 avatar Jul 25 '19 08:07 d3m3tr105

Any news on flash on/off support with ARCore?

ARUser21 avatar Aug 06 '19 08:08 ARUser21

Trying again, when will you release support for flashlight on/off with ARCore? What about zoom with ARCore?

maximrahlis avatar Sep 11 '19 19:09 maximrahlis

Flashlight support with ARCore would be especially useful in enterprise AR use-cases in not so well lit industrial environments. Would be a great addition.

xabre avatar Sep 26 '19 07:09 xabre

Still no way to do this? :/

TomMettam avatar Oct 19 '19 15:10 TomMettam

i guess still nothing)

darktip avatar Dec 28 '19 08:12 darktip

Hello,

Could you, please, give us more information about compatibility between Arcore and Flashlight? Just a lit bit of hope, please.

I make a lot of test about the accuracy of ArCore, and I can certify ArCore have better accuracy during a strong light exposition, so definitively, I need the flash activation to improve ArCore accuracy.

Thank for reading to me and give us an answer.

jeremyadoux avatar Jan 21 '20 08:01 jeremyadoux

Still no way to do this???

wangtsung avatar Mar 19 '20 02:03 wangtsung

+1 for a flashlight control

i1E avatar Mar 23 '20 13:03 i1E