how to paste a photo on top a video in objective c
i have a photo where it should appear on top of a video (ex: face) so
when the face moves the photo also moves along with face , is there a
way where we can program it ,any help would be appreciated
i have a photo where it should appear on top of a video (ex: face) so
when the face moves the photo also moves along with face , is there a
way where we can program it ,any help would be appreciated
So you want to track the face in the picture, and have the image move along with the face?
There is a face recognition system built into Core Image in iOS 5. It's an object of class CIDetector.
You create a face detector with the CIDetector class method detectorOfType:contextptions, passing in a type of CIDetectorTypeFace.
You then pass the detector a CIImage that contains one or more faces, and it hands you back an array of CIFaceFeature objects, which gives you a bounding rectangle for the face, plus point coordinates for each eye and the mouth.
We've only used it so far in high accuracy mode, which is intended for still images. Supposedly the low accuracy mode can be used to find faces in a video feed.
Once you find a face i an an image, you could use it's location to move a party transparent image view over the face.
Check out this password generator app that shows various techniques including using a data container singleton object to share data between objects in your project.
So you want to track the face in the picture, and have the image move along with the face?
There is a face recognition system built into Core Image in iOS 5. It's an object of class CIDetector.
You create a face detector with the CIDetector class method detectorOfType:contextptions, passing in a type of CIDetectorTypeFace.
You then pass the detector a CIImage that contains one or more faces, and it hands you back an array of CIFaceFeature objects, which gives you a bounding rectangle for the face, plus point coordinates for each eye and the mouth.
We've only used it so far in high accuracy mode, which is intended for still images. Supposedly the low accuracy mode can be used to find faces in a video feed.
Once you find a face i an an image, you could use it's location to move a party transparent image view over the face.
should i use this code while declaring NSDictionary object
NSDictionary *options = [NSDictionary dictionaryWithObject: CIDetectorAccuracyLow forKey: CIDetectorAccuracy];
should i use this code while declaring NSDictionary object
NSDictionary *options = [NSDictionary dictionaryWithObject: CIDetectorAccuracyLow forKey: CIDetectorAccuracy];
Looks reasonable, but I am a lousy proofreader. The compiler will certainly complain if you have any syntax errors, and the real test will be what happens if you run it. Why not try it?
Check out this password generator app that shows various techniques including using a data container singleton object to share data between objects in your project.