Skip to content

Commit

Permalink
Fix bad angle triggering capture
Browse files Browse the repository at this point in the history
  • Loading branch information
Michaël Villeneuve committed Jul 13, 2017
1 parent 3d23123 commit 894276c
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions ios/DocumentScannerView.m
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand All @@ -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;
Expand Down

0 comments on commit 894276c

Please sign in to comment.