fix(ios): camera is not detecting any faces (#2611)
This commit is contained in:
parent
168b3eec8b
commit
b3d0ebe649
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user