Pro iOS 5 Augmented Reality by Kyle Roche

Pro iOS 5 Augmented Reality by Kyle Roche

Author:Kyle Roche
Language: eng
Format: epub
Publisher: Apress®
Published: 2011-12-10T16:00:00+00:00


if (!isProcessingRequest) {

isProcessingRequest = YES;

//NSLog(@"Detecting Faces");

NSArray *arr = [detector featuresInImage:[CIImage imageWithCGImage:[image CGImage]]];

if ([arr count] > 0) {

//NSLog(@"Faces found.");

for (int i = 0; i < 1; i++) { //< [arr count]; i++) {

CIFaceFeature *feature = [arr objectAtIndex:i];

double xPosition = (feature.leftEyePosition.x + feature.rightEyePosition.x+feature.mouthPosition.x)/(3*image.size.width) ;

double yPosition = (feature.leftEyePosition.y + feature.rightEyePosition.y+feature.mouthPosition.y)/(3*image.size.height);



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.