Skip to content

Commit

Permalink
rename var
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaRuiz committed Oct 18, 2024
1 parent 96becf0 commit d8512f4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions ios/Classes/MobileScanner.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ public class MobileScanner: NSObject, AVCaptureVideoDataOutputSampleBufferDelega

var detectionSpeed: DetectionSpeed = DetectionSpeed.noDuplicates

/// Analyze inverted image intervally to include both inverted and normal images
var shouldConsiderInvertedImages: Bool = false
// local variable to invert this image only this time,
// it changes based on [shouldConsiderInvertedImages] and
Expand Down Expand Up @@ -467,16 +466,16 @@ public class MobileScanner: NSObject, AVCaptureVideoDataOutputSampleBufferDelega
if (invertCurrentImage) {
uiImage = self.invertInputImage(image: uiImage)
}
let visImage = VisionImage(image: uiImage)
visImage.orientation = imageOrientation(
let visionImage = VisionImage(image: uiImage)
visionImage.orientation = imageOrientation(
deviceOrientation: UIDevice.current.orientation,
defaultOrientation: .portrait,
position: position
)

let scanner: BarcodeScanner = barcodeScannerOptions != nil ? BarcodeScanner.barcodeScanner(options: barcodeScannerOptions!) : BarcodeScanner.barcodeScanner()

scanner.process(visImage, completion: callback)
scanner.process(visionImage, completion: callback)
}

func invertInputImage(image: UIImage) -> UIImage {
Expand Down

0 comments on commit d8512f4

Please sign in to comment.