objective c - Image orientation issue AVCaptureOutput delegate iOS sdk -


I'm working on performance face detection and am receiving buffer at the bottom of Representatives, but when I Siaimaj with attempts to create Uaimej am, I only portrait orientation I have app is getting the image in landscape code,:

1) - just trying to build, Portrait mode session:

  // previewLayer is a kind of AVCaptureVideoPreviewLayer ([self.previewLayer.connectionVideoOrientationSupported Land]) [self.previewLayer.connection setVideoOrientation: AVCaptureVideoOrientationPortrait];  

2) - Representative:

  - (minus) captureOutput: (AVCaptureOutput *) captureOutput didOutputSampleBuffer: (CMSampleBufferRef) sampleBuffer fromConnection: (AVCaptureConnection *) connection  

3) - UIImage turn image.CGImage nil as to turn

is not
  CVPixelBufferRef pixelBuffer = CMSampleBufferGetImageBuffer (sampleBuffer); /// CVPixelBufferRef pixel buffer = [auto rotate buffer: sample buffer]; Siaffhastraf attachments = Simseepiadiasnof attachments (Kesifaeloketr default, Pikselbfr, Kesimtiatticmentmod_sldpropaget); CIImage * ciImage = [[CIImage alloc] initWithCVPixelBuffer: pixelBuffer option: (__ bridge NSDictionary *) attachment]; UIImage * image = [UIImage imageWithCIImage: ciImage];  

I'm not sure what the image that I have wrong with the orientation of the representative, I'm not trying with several code snap stack overflow answer but one of them Some images or buffers used to rotate, some are:


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

javascript - amcharts makechart not working -

java - Algorithm negotiation fail SSH in Jenkins -