Detect glare in image - android

I'm using googles cameraX library to scan some documents and to help the user to take the best possible image I would like to detect if there is any glare live in the camera.
With all searches I have made most suggestions point to the OpenCv library which I don't want to import into my project just for detecting glare. Does anyone know any algorithm for glare detection in an image?
The closest answer I have found is this answer, but I'm not really sure how to effectively put that into practice in android using kotlin.

Related

Android: Face Recognition even with mask using OpenCV or some other library?

I am looking for a solution to develop an attendance system. The problem is I cannot find a good library to work in (or maybe I don't even know). I want to implement Face Recognition based on the previously saved faces when a user signs up. I also want to recognize a person even with a face mask on. Can you help me by providing a path to use?
I have a sample Application https://play.google.com/store/apps/details?id=com.ttv.facedemo
This is implemented using FaceOnLive SDK which is paid, I want to implement the same feature using OpenCV.

How to apply all instagram photo effects in android

Hi Guys I am developing a similar app like Instagram, tumbler, Filker etc. But I stuck in photo effects actually I need photo effects like Instagram.
I generated some new effects by the help of Color Matrix, saturation, image masking etc. But I am not able to get similar effect like Instagram have.
Any know about instagram photo effects color matrix or other fectors which give me exact effects or any library which provide me similar effects.
I want to include one thing that I create some instagram effects by the help masking of images but that's not actual one. I am ready to R&D but give some way to do it.
Thanks in advance.
Instagram actually acquired a company to enhance its photo and video filters,for which this app is so famous. So this should give you an idea on how elaborated is their concept.
However there is a library OpenCV. This is by far the most efficient opensource library for image/video processing. It is also used in advanced robotics and AI projects.
It also has a JAVA wrapper called JavaCV. Actually, OpenCV is written in C, and JavaCv is a java wrapper for it.
This could be your solution. But again, this library does not have direct functions implemented for a specific effect. You need to use its basic functions to manipulate your image/video. It will involve some RnD for sure, but I guess the effort will be worth it.
Other than this(OpenCv/JavaCv), you may find some libraries on GitHub to serve your need.These libraries may provide you with direct functions like, toSepia(bitmap) etc, but your app's image filters will be limited to scope of the Library you choose.
Hope this helps!

Android Image recognition

I have a particular problem about image recognition on Android.
I am looking for some library able to recognize several objects from a photo. For instance, given a photo snapped by the user how can I count how many red circles and yellow triangles there are? Those shapes are just an example, since I want to recognize images which are pretty simple.
I have seen that there exists a good framework called Vuforia, which is designed for augmented reality. Do you think it is right for me? I am not an expert, so I ask you to help me.
check OpenCV for that, open source and works great on android
or
OpenCv

identifying eyes from images

i am upto recognizing the eye in an image (which is opened).The image is taken by the camera Activity in a tablet.By webservice i could connect it to postgres.But i dont know how i should consider those images to identify the eyes.when i searched i came across OpenCV but im new to it..is there any particular algorithm (name) to identify the eye..when i searched they said its possible in android with the help of opencv by simply importing some packages..but i dont know how to start and from where..can any one plz help me..Something supporting android will be helpful..
If my understanding is correct, there are few differences between the CV4Android library and the OpenCV C++ library. In addition, C++ code can be used by using the Native Development Kit for Android.
With that being said, OpenCV has a C++ tutorial that uses Cascade Classifiers to identify an individual's face and eyes and places a circle around each one of the eyes and a larger circle around the head.
The tutorial can be found here.
Edit: If you're looking for more information on the CV4Android and OpenCV C++ libraries, I'd recommend reading the reply to this question. Hope that helps.

Android Face recognition & get similar faces from the database

In my application I'm going to implement an image search like Google image search. Only difference is here I'm searching only for human faces. Here's how it goes..
user take a picture of a person using the camera.
my app should identify the face of that person and get details from the image regarding the face (eg: colors).
Using those details app will do a search in the image database for similar faces.
Finally it'll display results to the user.
So I want to recognize faces using Android face recognition class and select that recognized area and save the details of that face into an array or a database.
I got few questions on above scenario.
what are the things I need from that image to do a proper image search?
Can I do it only using colors?
Do you have any idea on getting pixel details from that recognized face? I know how to do it on bitmap images. But i'm not sure that method still works with the face recognition class.
Can anyone explain those thing to me please?
Use OpenCV's Recognition API.
I wrote a bit about how to set it up in another question.
I recommend you too to use OpenCV functions, they are well optimized for face detection and recognition .
for recognition, you don't need to colour processing.
Since you develop your application on Android, you can use OpenCV4Android
Here there some helpful links, that let you have a good idea to start:
Face Recognition on Android
Here you find a useful tutorial for face detection and recognition
http://www.shervinemami.info/faceRecognition.html
I also recommend you to apply the detection api that already implemented in android stuff:
http://pi-virtualworld.blogspot.com.br/2013/04/android-opencv-face-detection.html
In order to prepare a clean and a proper face database, which in turn enhance the goodness of recognition results, don' forget to align faces
http://bytefish.de/blog/aligning_face_images/
Try and test already benchmark face database, to evaluate your implementation:
http://vis-www.cs.umass.edu/lfw/#deepfunnel-anchor
http://www.cl.cam.ac.uk/research/dtg/attarchive/facedatabase.html

Categories

Resources