diff --git a/ios/DocumentScannerView.m b/ios/DocumentScannerView.m index 0b8f857..d0ae8a6 100644 --- a/ios/DocumentScannerView.m +++ b/ios/DocumentScannerView.m @@ -21,19 +21,19 @@ - (instancetype)init { if (self) { [self setupCameraView]; [self setEnableBorderDetection:YES]; - - + + [self setOverlayColor: self.overlayColor]; [self setEnableTorch: self.enableTorch]; - + [self setContrast: self.contrast]; [self setBrightness: self.brightness]; [self setSaturation: self.saturation]; - + [self setDelegate: self]; [self start]; } - + return self; } @@ -43,9 +43,6 @@ - (void) didDetectRectangle:(CIRectangleFeature *)rectangle withType:(IPDFRectan case IPDFRectangeTypeGood: self.stableCounter ++; break; - case IPDFRectangeTypeBadAngle: - self.stableCounter ++; - break; default: self.stableCounter = 0; break;