Questions tagged [autofocus]

456 questions
7
votes
1 answer

camera parameters.setFocusMode is not working

I am trying to set the camera autofocus ON ... but whenever i set setFocusMode the application crashes.. java.lang.RuntimeException: setParameters failed my code is : Camera.Parameters parameters =…
Kruti Mevada
  • 517
  • 5
  • 7
  • 21
6
votes
2 answers

Android: record video with "continuous" auto-focus

I work on video recording; everything works except for requesting continuous focus. This is what I do (tried both in surfaceCreated and surfaceChanged with no success): camera = Camera.open(); camera.setPreviewDisplay(holder); Parameters parameters…
myself
  • 482
  • 3
  • 21
6
votes
1 answer

Auto Focus QR Scanner

I am developing a flutter app that uses qr_code_scanner dependence(https://pub.dev/packages/qr_code_scanner). I want the QrView to autofocus, but I can't find a solution. How do I auto focus the Camera for qr_code_scanner?
6
votes
2 answers

Distance to "point of interest" in iphone auto focus

In iphone, I want to calculate the distance from the camera to the subject. I was wondering maybe iphone camera's "Active Auto Focus" provide me the distance to the subject (point of interest)?? many thanks in advance. p.s. guys if you think it is…
Nima
  • 969
  • 3
  • 10
  • 14
6
votes
1 answer
6
votes
1 answer

How to check the camera is auto focused in flutter?

I am using Camera plugin for my flutter app, how can I check the camera preview is focused or not?
proversion
  • 573
  • 3
  • 12
  • 24
6
votes
2 answers

User Control in Stackpanel losing focus

I'm creating an XML Form Reader. Each of the control types are User Controls. However when the user taps somewhere on the form that isn't a focused control (i.e. TextBlock), the form jumps focus to the first focusable control in the page. (i.e.…
Seige
  • 304
  • 5
  • 27
6
votes
3 answers

MDL ready event

MDL is upgrading its components upon page load, so with autofocus attribute looses its focus. I want to set a focus on this input after MDL finishes rerendering. I'm trying to listen to some page ready event…
6
votes
3 answers

Swift: Search bar created at Auto Focus

I am creating a table view and a search bar by clicking on a button.But I need the search bar to appear at Auto Focus ( where the user enters text immediately with no need to click inside the search bar). How can I do that ?
Youssef Emad
  • 319
  • 2
  • 13
6
votes
2 answers

Bad value for attribute autofocus

We are using grunt-html-angular-validate package for HTML lints. It uses W3C online validator tool under-the-hood and, so far, it did a great job in validating our angular templates. Today, it failed while checking the latest changes pulled from the…
alecxe
  • 462,703
  • 120
  • 1,088
  • 1,195
6
votes
1 answer

How to detect EditText got focus by Android. Not by end-user touching on the edit text?

An android.widget.EditText can get focus by 2 reasons as I know: Case 1. End-users touch on the edit text by purpose. Case 2. The system give the Edit Text automatically. Navigation First default focus ... My question is: How to I detect Case 2…
LHA
  • 9,398
  • 8
  • 46
  • 85
6
votes
2 answers

Autofocus doesn't work on Firefox and doesn't work when coming from another page

I'm creating my page using Javascript. It is a login page and I need to use autofocus on username input text. This operation works on IE and Chrome, but doesn't on Mozilla! This is the HTML I have been adding using JS: '
user1423142
  • 73
  • 1
  • 4
6
votes
1 answer

Android Camera.autoFocus and FOCUS_MODE_CONTINUOUS_PICTURE

I have a camera app that allows the user to take pictures. On my main screen I have a camera rendered on a SurfaceView. When the user takes a photo, I call camera.autoFocus and on the AutoFocusCallback callback I call camera.takePicture. Then I…
mliu
  • 1,708
  • 15
  • 26
6
votes
3 answers

Android 4 - Camera White Balancing stops after autoFocus

In my current application, I've got a class holding an instance of a Camera object and trying to do the following: 1) Wait for a specified time, e.g. nothing (this is done via a TimerTask) 2) Request to focus via autoFocus 3) In autoFocus callback,…
s.krueger
  • 1,043
  • 8
  • 13
5
votes
3 answers

iPhone camera loses auto-focus when using ZBarSDK

I'm working on an app that the user can select if he wants to scan a barcode or take a picture of something. For taking a picture I'm using the UIImagePickerController as usual. For scanning barcode I'm using the ZbarSDK 1.2…
Avi Shukron
  • 6,088
  • 8
  • 50
  • 84