Android – Reducing Glare on Camera (Photo/Video)

I am attempting to Reduce the glare produced when taking a photo or video of a Reflecting surface; Window, Glasses or another Mobile Device.

I have done some research on the subject, and it seems that some algorithms exist. But I am yet to find a coded implementation.

  • Android - WebView language changes abruptly on Android N
  • Create and Share a File from Internal Storage
  • How to align Radio button at the center of the screen
  • opening local html file with Android Browser
  • Launch a specific activity when scanning NFC tag
  • The reason I need this is because I am making an Application that allows you to read different colours on another devices screen using the camera on your device.
    And if there is a lot of glare, the colours wont read properly. It needs to be able to distinguish between 16 Colors.

    Are there any existing implementations, and if so how would I implement them into Android?

    Related posts:

    How to import only selected native library ABIs from AAR?
    How to change alert dialog header divider color android
    Toolbar Search Suggestions Theming
    “Bitmap too large to be uploaded into a texture”
    Listening for keywords at all times, like “Ok google” on 4.4
    Can you use pending intents with localbroadcasts?
  • How to update/refresh specific item in RecyclerView
  • How can I see Javascript errors in WebView in an Android app?
  • How to make Alarm Manager work when Android 6.0 in Doze mode?
  • Same Navigation Drawer in different Activities
  • Views above and below RecyclerView
  • PopupWindow - Dismiss when clicked outside
  • One Solution collect form web for “Android – Reducing Glare on Camera (Photo/Video)”

    I recommend doing a threshold on top of a gaussian blur to identify bright spots in your image and removing them. OpenCV is the industry standard and your best bet for image manipulation. I recommend doing some experiments on a computer first to get your process flow right first, before moving it onto a phone. Also, stay away from anything too novel/complicated.

    [1] How to detect Hotspots in an image


    Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.