Ios 使用Google Mobile Vision固定帧方向
我用它来处理相机帧和检测人脸。检测到人脸后,我想将帧保存到文件中,但它的方向错误Ios 使用Google Mobile Vision固定帧方向,ios,swift,uiimage,google-ios-vision,Ios,Swift,Uiimage,Google Ios Vision,我用它来处理相机帧和检测人脸。检测到人脸后,我想将帧保存到文件中,但它的方向错误 func captureOutput(_ captureOutput: AVCaptureOutput!, didOutputSampleBuffer sampleBuffer: CMSampleBuffer!, from connection: AVCaptureConnection!) { guard let image = GMVUtility.sampleBufferTo32RGBA(sampleB
func captureOutput(_ captureOutput: AVCaptureOutput!, didOutputSampleBuffer sampleBuffer: CMSampleBuffer!, from connection: AVCaptureConnection!) {
guard let image = GMVUtility.sampleBufferTo32RGBA(sampleBuffer) else {
print("No Image")
return
}
// wrong orientation when saving image here
}
你是怎么解决的?@ChanchalWarde,还没有解决。你是怎么解决的?@ChanchalWarde,还没有解决。