CopyPastor

Detecting plagiarism made easy.

Score: 1; Reported for: String similarity Open both answers

Possible Plagiarism

Reposted on 2018-06-20
by Niresh S

Original Post

Original - Posted on 2018-06-20
by Niresh S



            
Present in both answers; Present only in the new answer; Present only in the old answer;

To read a QRCode/BarCode from a small rect(specific region) from a full camera view. <br> **Mandatory to keep the below line after (start running)** <br> [captureMetadataOutput setRectOfInterest:[_videoPreviewLayer metadataOutputRectOfInterestForRect:scanRect] ]; [_captureSession startRunning]; [captureMetadataOutput setRectOfInterest:[_videoPreviewLayer metadataOutputRectOfInterestForRect:scanRect] ]; Note: 1.) captureMetadataOutput --> AVCaptureMetadataOutput 2.) _videoPreviewLayer --> AVCaptureVideoPreviewLayer 3.) scanRect --> Rect where you want the QRCode to be read.

To read a QRCode/BarCode from a small rect(specific region) from a full camera view. <br> **Mandatory to keep the below line after (start running)** <br> [captureMetadataOutput setRectOfInterest:[_videoPreviewLayer metadataOutputRectOfInterestForRect:scanRect] ]; [_captureSession startRunning]; [captureMetadataOutput setRectOfInterest:[_videoPreviewLayer metadataOutputRectOfInterestForRect:scanRect] ]; Note: 1.) captureMetadataOutput --> AVCaptureMetadataOutput 2.) _videoPreviewLayer --> AVCaptureVideoPreviewLayer 3.) scanRect --> Rect where you want the QRCode to be read.


        
Present in both answers; Present only in the new answer; Present only in the old answer;