bezier path select same color - ios

In my application I have created 3D effect image for example suppose user have selected all the flower using bezier path than after clicking on done button all the image except flowers will become blur. I have done this successfully. Now I want to enhance this functionality. What I need is that when user select flower than only flower should be selectable not green color.
Thanks in advance
Edit:
Example of such application is https://itunes.apple.com/in/app/tadaa-hd-pro-camera/id410005685?mt=8 I just need some help to start this. in this application how they are selecting object?
Please suggest me some SDK or toll to start.
Thanks.

Related

Create a mask in iOS

I am trying to develop an app in iOS, where the user can try colors on hair.
So the first task is to allow the user select his hair
Second, will be to fill in color in the user selected areas
I've been exploring a lot, but I find links where a geometrical shape can be selected. Can someone point me towards a solution, where I can allow the user select all the areas of his hair in the image he uploaded please?
Thanks a lot!

show region with different color

I have an app where I am showing map where I will be showing the driver area allocated to him.
Client want this area will be highlighted with some color.
Sample can be as below.
Any idea how this can be done?
What I was planning to do is having images for different regions and show image for respective area.
However I just wanted to check if this can be done using MapKit that we already have, I don't want to go with images.
More info on this would be appreciated.
I didn't thought this would be so easy...
Below link will do the trick I was looking for...
http://www.shawngrimes.me/2011/04/adding-polygon-map-overlays/
Something you may want to try for performance reasons is to use TileMill to parse the source data (KML, SHP, etc.) and render out raster tiles, possibly with alpha transparency so that they can be used as a true overlay. Then, you could use those tiles in MapKit or something like Mapbox.
you can see HTML "map" tag with "area":
http://www.w3schools.com/tags/tag_area.asp

Project ideation using image processing

I am in my final year of BS Computer Science. I have chosen a project in the image processing domain. But I really don't know where to start from! Here is a rough draft of my project idea:
Project Description:
Often people are faced with the problem of deciding which colors to choose to paint their walls, doors and ceilings. They want to know how their rooms will look like after applying a certain color. We want to design a mobile application that can give people the opportunity to preview their rooms/walls/ceilings, etc, with a certain color before applying the color. Through our application the user can take photos of their rooms/walls/ceilings, etc, and change their colors virtually and preview them. This will give them a good estimate about the final look of their house.
Development will be in java using open CV libraries.
Can anyone provide some help?
For starting OpenCV with android you can follow the tutorial here.
And as your above description, I think you need to do the following...
Filter out the color of room's wall or ceiling color.
Replace with your preview color.
But as your room's color is not unique, you may need to mark the color manually and segment it. Here watershed algorithm might be helpful.
And one more thing is that there might be a chance of lighting variation, so you should use HSV color space instead of RGB.
And finally this is not the full solution, but you will get some idea about how to start with your project.
ImageMagick as a famous image processing library.You may look that one too.It can perform numerous operations with images
Thanks

Get Started with Open CV image recognition

I am trying to make an app for image recognition with Open CV, i want to implement something like this but i don't know how should i do it can any one give me any help where should i begin from i have downloaded Opencv for iOS from here,
I have a hardcopy of image as an example which i want to scan through the camera and the images(markers) i have imported in project now when i scan the image through camera then it should overlay the markers on the image and when i tap/select the marker it should show the info of that marker.
Here is my image :
It's just an example i have taken (Square,Circle and Triangle as Markers)
So now when the image is scanned then the markers will come up as an overlay and on clicking the markers i should get the names (If the Overlay image over the Circle Named "Air" is tapped it should show me "Air" on an alert or if Square Named "Tiger" is tapped it should say "Tiger")
My problem is that the images are kind of same pattern but the result is different on every part so i don't know how should i approach in this ..
Please can any one help me out by suggesting any idea or if any one has done thing like this please tell me how should i implement it.
I have to start from scratch any help please .
Can this be achieved using Open CV or i have to use any other SDK such as vuforia or layar.
Maybe you should search a little bit before asking help...
Anyway, the shapes you want to find do not seems to change (scale, rotation) so, you can look at the template matching methods implemented in OpenCV (see Tutorial OpenCV)
If the shapes are changing, you should look at more powerful methods such as SIFT or SURF. Both are already implemented in OpenCV (the link from aishack is a tutorial to re-implement SIFT, you can find in the same website a tutorial to use the OpenCV method).

How to change the colour of skin in an image using Xcode?

I am creating a new app in which either taking or selecting an existing photo of a person I want to have a control / action so that the skin colour can be changed. For example to show someone with pale skin what they would look like with a sun tan.
Any help would be great!
I am not sure what the requirement, but this is a link to the Apple docs that will help you get started. Check out the part where you can mask certain colors. So if you allowed the user to tap somewhere where skin is exposed, retain a reference to the color and then mask it is one way you could tackle this problem. Here is the apple doc: http://bit.ly/GzHtyH
Hope this helps
Tams

Resources