Skip to content

Commit

Permalink
let uiimage
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaRuiz committed Oct 18, 2024
1 parent 47f8155 commit c1313ef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ios/Classes/MobileScanner.swift
Original file line number Diff line number Diff line change
Expand Up @@ -462,9 +462,11 @@ public class MobileScanner: NSObject, AVCaptureVideoDataOutputSampleBufferDelega
/// Analyze a single image
func analyzeImage(image: UIImage, position: AVCaptureDevice.Position,
barcodeScannerOptions: BarcodeScannerOptions?, callback: @escaping BarcodeScanningCallback) {
let uiImage = image
let uiImage: UIImage
if (invertCurrentImage) {
uiImage = self.invertInputImage(image: uiImage)
} else {
uiImage = image
}
let visionImage = VisionImage(image: uiImage)
visionImage.orientation = imageOrientation(
Expand Down

0 comments on commit c1313ef

Please sign in to comment.