Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8071017
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T13:34:02+00:00 2026-06-05T13:34:02+00:00

Which FOCUS_MODE would you recommend to capture images which should be processed by OCR

  • 0

Which FOCUS_MODE would you recommend to capture images which should be processed by OCR afterwards? I’ve read the API http://developer.android.com/reference/android/hardware/Camera.Parameters.html#FOCUS_MODE_AUTO but I’m not sure which one to choose.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T13:34:04+00:00Added an answer on June 5, 2026 at 1:34 pm

    FOCUS_MODE_AUTO should work well for OCR. You’ll probably want to implement some kind of loop that invokes the focus periodically. An example of code to do this can be found in the zxing project here.

    FOCUS_MODE_CONTINUOUS_PICTURE and especially FOCUS_MODE_CONTINUOUS_VIDEO seem to perform poorly–some devices apparently don’t recognize that the view is out of focus, leaving a blurry view.

    To avoid getting a blurry image, don’t capture a video frame for OCR while the autofocus cycle is running. Also keep in mind that the onAutoFocus() callback may get called a little bit before the autofocus cycle has actually finished, so you may want to avoid immediately capturing a frame for OCR when you get the callback because it may turn out blurry.

    Another possibility is to use a blur detection algorithm to determine whether frames are blurry, and react appropriately by requesting an autofocus cycle or capturing a new frame. This can be hard to get right, though, without going overboard by rejecting frames that are just slightly out of focus.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a faux dialog which uses this layout: <?xml version=1.0 encoding=utf-8?> <FrameLayout xmlns:android=http://schemas.android.com/apk/res/android
Which open source wysiwyg editor allows the functionality of uploading images to the server
Trying to dig into the win32 api from my WPF application (which just runs
Two years ago the HTML5 standard dropped the chapter Text Selection API which contained
I have a textarea which when in focus should empty the text holder and
Which notification message do you receive if any window is losing focus?
I've built an application which essentially comes in and out of focus when the
my view starts with a focus on a text editor, which causes the keyboard
I've found a great datepicker on EveryBlock's web site: http://ui-patterns.com/userset/553/image/2955#focus Does anybody know which
Which one is better: boost::format or sprintf ? I also want to know which

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.