Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Camera Capture using TextureView. Need Tap on Focus.

$
0
0

I had implemented a custom page renderer to show the camera view using TextureView.ISurfaceTextureListener. When capturing the tiny objects, the auto focus is not functioning well, and is blurred continuously . used the below parameters to set the continuous focus mode.

Is there anyway to implement 'Tap on Focus' kind of logic in this page renderer, so that the user can focus on required object. If possible, any sample piece of code would be great help.

Code used for auto-focus:
Android.Hardware.Camera.Parameters parameters = camera.GetParameters();
parameters.FocusMode = global::Android.Hardware.Camera.Parameters.FocusModeContinuousPicture;
camera.SetParameters(parameters);


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>