Create a mask in iOS - 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!

Related

Curves matching libraries and service

I have some images like below
Now I need build a website allow user draw some line on white board, and then the website return images which is most similar with or contain curves of user drawn.
A user image like this
So, are there some libraries or services to implement that?
Thanks in advance.

bezier path select same color

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.

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

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

Trying to change a person's skin colour

I am creating an app at the moment which take a picture of a person's face and I want to change the colour of their skin (just for fun!)
I have a piece of code that runs through the image pixel by pixel and finds the skin colour and then amends it to a new colour, which kind of works, but even though I am allowing for the differences in tones and adjusting the new colour in the same way it is still very hit and miss.
can anyone point me in the right direction?? is it even possible? I dont really want to use a filter as I dont think it would give the right effect.
Thanks
You should look at some computer vision techniques such as segmentation and feature extraction.

Resources