Showing
1 changed file
with
0 additions
and
8 deletions
| 1 | import AVFoundation | 1 | import AVFoundation |
| 2 | -import Flutter | ||
| 3 | import Foundation | 2 | import Foundation |
| 4 | import MLKitBarcodeScanning | 3 | import MLKitBarcodeScanning |
| 5 | 4 | ||
| 6 | -extension Error { | ||
| 7 | - func throwNative(_ result: FlutterResult) { | ||
| 8 | - let error = FlutterError(code: localizedDescription, message: nil, details: nil) | ||
| 9 | - result(error) | ||
| 10 | - } | ||
| 11 | -} | ||
| 12 | - | ||
| 13 | extension CVBuffer { | 5 | extension CVBuffer { |
| 14 | var image: UIImage { | 6 | var image: UIImage { |
| 15 | let ciImage = CIImage(cvPixelBuffer: self) | 7 | let ciImage = CIImage(cvPixelBuffer: self) |
-
Please register or login to post a comment