There is an app named Funny Face Effects on the play store.
I am trying to achieve the effect in which when a user moves the finger on image, pixels under the finger in certain radius shifts in that direction. It feels like moving a cloth with a finger or moving some thick paste with the finger. I could not find a proper name but I think it is called smudge/liquify.
After searching and trying I found that I can achieve this with GPUImage library.This library uses OpenGL fragment shader to apply some effect on image.
How can I achieve this effect without using the GPUImage library? Thank you.
Plenty of libraries are there in the github. Search for it. Here is a nice one : https://github.com/imgly/imgly-sdk-android-demo
Related
I have an image. i want it to spin/flip 360 degree continuously. All the tutorials i m referring are of rotating image 360 on a 2D axis.
I tried using the rotate animation from android but it has same problem of rotating around a point but not 3D spin or flip.
Thanks
What you are describing sounds very similar to a card flip (google android documentation). Bare in mind that you need to think about what is on the opposite side of the image (for your specific use case) if you are going to implement that.
I am developing an app which will change the color of your eye. I need some help about detecting eye ball. Currently i have a selector that will be used to reduce ROI. It look like
this
So who we can detect eye ball from that selected region. I was thinking about changing the image to grayscale and then detect big black spot from that and then change color of it which will be the next step. i'll really appreciate any help.
Your way of thinking about a returning pattern is a good start. I am doing some work on a pattern recognition chair as well, so here is some help for your task:
using a grayscale is a good start btw ;)
There are some "facts" that are always applicable to a non pathologic eye:
the center is dark
left and right side surrounding dark ball are almost white (depends on how open the eye is)
do not forget: you have 2 eyes. link them together in some way (usually they are on an approximately horizontal line)
there is usually motion in the eyes while the other regions of the picture are relatively calm
Of course I cannot provide any code here, this would blast this whole post, but I hope I could help you in some way.
I found some link these guys detecting pupil of the eye. May b this will help you . See here and here
you could use the template matching method from open cv. template matching
this will help you find the eye in most of the cases.
Another solution would be to convert your image into an edge image with e.g. canny edge detector from opencv. and then search for this pattern with the template matcher. Using the edges makes you independent of the color. Using grayscale images will also facilitate the procedure.
I want create a snake game in Android using AndEngine. But in my game, the snake won't be controlled by the player. It'll just move in random directions.
I have a snake that can move in random directions. My problem is that I want real-time animation (i.e. the snake shouldn't just move after a delay).
I tried using register modifiers to move the snake, and that works. But the problem is that I have images for each snake's tail element.
If I had just rectangles, I would know how do this, but I'm using more advenced images.
When the snake changes direction, I should have an element connecting different directions (example: right and down).
Is there any algorithm for this? Alternatively, where I can find an open source project that explains this?
It's the same with rectangles. Ideally you wouldn't delete the images for the time of the animation.
I am developing one application with drawing and all, One problem I am facing is I want single touch scaling image. I have done image scaling with multi touch but I am so stuck with single touch.
Example :-
I have one Rectangle on canvas. Now I want to scale and rotate that Rectangle with its one corner with one finger. I am finding this on google but not get perfect materiel or demo and else.
Please help me to find this.
For zooming with single touch this will help you
http://developer.sonymobile.com/wp/2010/05/18/android-one-finger-zoom-tutorial-part-1/
I am building a virtual store with the effect same like this
enter link description here
The user can freely rotate the image from left to right and top to bottom or vice versa. I suppose to use sprite 2D to implement that animation. There are some tutorials I found but because Im pretty new about graphic programming so could anyone point me to the correct way that approach my expected performance. Thanks a lot.
The easiest way is to use the Canvas API in Android. Here is an example of how to use it with sprites.