Android Image recognition - android

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

Related

comparing dog pictures

I am building an android app,
And I want to add the ability that when I take a picture of a dog, I will search in my DB that consist picture of dogs, I want to find the pictures that is the same dog or at least quite similar to him.
Is there any library or github that can be used to compare pictures of dogs?
I'm pretty new at this.
thanks!
You need to use some image processing framework.., Like opencv i have used it for detecting the difference in two images and showing rectangle over the difference area. You can also go for google tensorflow.
Well, if you want to detect images containing dogs, you need a harcascade and you have to train it with positive and negative samples, so that it would learn how to find dogs within images. And answer is not so short it is a machine learning library. If you want to detect dogs are present in given image or not , with c++ and opencv, i can help by providing sample basic programs too
Personally i have used opencv it is great fun in learning and there is also very active forum like stackoverflow for them :
This is the link of opencv forum
Hope it helps :)

Implement puzzle game on Android

I'm familiar with Android Development,
But not with the subject of manipulations on images, etc.
I need to implement a puzzle game:
Let the user mark and cut a (non symmetric) piece of an image.
Let the user move and rotate this piece.
Let the user drag this piece into original place. And so on...
I heard about the OPENCV library (also for android). Is it the best option to start with?
I have seen a lot of questions/answers of this issue,
But do android have an official/unoffical library for this issue?
One of OpenCV's for Android sample projects is actually one of those puzzle games.
It does not allow the user to cut the pieces and rotate them, but all the rest is there. You have the source code if you download the android package, so it is a great starting point.

Image recognition: Detecting billiard balls on Android

I am trying to create an android app which can recognize Billiard balls on a pool table in an image coming from the camera. What would be the best approach to do this?
We can assume that the camera and the pool table are in fixed positions, but there could be object other than the balls on the pool table.
I am currently looking into two possible solutions:
Vuforia SDK - Simple API for object tracking / recognition, but I couldn't find any information about ball/sphere shape tracking. They have Cylinder and Image target that could possibly be used somehow to track the balls.
OpenCV - Seems much richer and steeper learning curve in comparison with Vuforia, but there is some information about Billiard ball detection online (e.g. this, and this).
Are there any addition approaches for solving this problem? What would be the easiest working approach for this?
Thanks!
The balls are moving or not?
I've used SURF (and SFIT) they work great for arrested objects. Have a look to the documentation page there are also two questions you should see this and this. Than if you want to calculate the trajectory I've tried Pymecavideo that uses OpenCv maybe a look into the source code could be interesting for your work.

Are there simple AR SDK that does not use image recognition?

I'm looking for a 'basic' AR SDK that allows me to draw images and 3D shapes around the user (no matter where he is). It would be even better if the SDK includes a simple way to detect interaction with the shapes (something like onClick).
I made a project from scratch on Android but there's still a lot of work to do and I'll need to do the same on iOS after... So that's why I'm looking for an SDK or a similar project (no matter what platform).
I tested Metaio but it's quite expensive and maybe overkill for my purpose because it uses LLA coordinates.
I tested DroidAR on Android but it's only for Android and it looks heavy too (don't need the GPS).
How about Qualcomm's Vuforia? I was able to quickly get a sample project running on it.
EDIT Looks like I was wrong about what it could do. According to this (which is slightly dated, so who knows) Metaio might be your only choice.
i really don't sure what you really want to do ..but if you simply show images or 3d models on camera without any detection you can achieve this very easily i am explaining for Android and you can extend it to ios on same logic.
first approach:
you have to use custom camera of Android in your app,then use any game engine as per your need..i will suggest Jpct-ae or Rajawali
they are very simple to integrate and can be used for 2d images and 3d models.
this tutorial will explains a lot
keep the gl-surafce transparent and you can have model floating in space ...
second approach :
to add some more effect to your AR app you can use sensor values to move model in 3d space as per movement of device..it gives a cool effect.
use first approach and additionally collect sensor values and apply that matrix to gl camera of your game engine..for sensor values follow here
good tutorial here..
i hope this may help you..i done these a long time ago but try to help if you want..

Must be OpenGL?

I'm new to android and I need to do a project like this : I have 22 images that represent a person which is rotating. When the user touch the right side of an other image the image is changing (the person is rotating to right). The same thing is for left side.
My question is: I must use OpenGL? I made some example with openGL but I don't see if for my project it is necessary. I was thinking that maybe it is enough to change the background image at every touch.
What do you guide me to do?
Thanks in advance
I know this isn't exactly the same thing but this tutorial by the excellent guys at Sony Ericsson show how to make a nice looking 3D list without OpenGL - http://developer.sonyericsson.com/wp/2010/05/20/android-tutorial-making-your-own-3d-list-part-1/
Maybe you could use some of the techniques in this tutorial to achieve what you want?
The OpenGL may be useful to do your project
you can see the Example Code project here code.google.com
And The Blog url that has explained nicely to work with OpenGL has many part of the Tutorial
May be looking at this you can get idea how to go ahead.

Categories

Resources