fix(ios): camera is not detecting any faces (#2611)

This commit is contained in:
annakoro 2019-11-29 17:02:25 +03:00 committed by Sibelius Seraphini
parent 168b3eec8b
commit b3d0ebe649

View File

@ -149,7 +149,7 @@
videoImage = [temporaryContext createCGImage:ciImage fromRect:boundingRect];
CGRect croppedSize = AVMakeRectWithAspectRatioInsideRect(previewSize, boundingRect);
CGImageRef croppedCGImage = CGImageCreateWithImageInRect(videoImage, croppedSize);
UIImage *image = [[UIImage alloc] initWithCGImage:croppedCGImage];
UIImage *image = [[UIImage alloc] initWithCGImage:videoImage];
CGImageRelease(videoImage);
CGImageRelease(croppedCGImage);
return image;