react-native-rectangle-doc-scanner 3.6.0 → 3.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -313,7 +313,10 @@
|
|
|
313
313
|
{
|
|
314
314
|
_isStopped = NO;
|
|
315
315
|
|
|
316
|
-
|
|
316
|
+
// Start camera session on background thread to avoid UI blocking
|
|
317
|
+
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
|
|
318
|
+
[self.captureSession startRunning];
|
|
319
|
+
});
|
|
317
320
|
|
|
318
321
|
float detectionRefreshRate = _detectionRefreshRateInMS;
|
|
319
322
|
CGFloat detectionRefreshRateInSec = detectionRefreshRate/100;
|
|
@@ -489,7 +492,6 @@
|
|
|
489
492
|
|
|
490
493
|
- (CIImage *)filteredImageUsingEnhanceFilterOnImage:(CIImage *)image
|
|
491
494
|
{
|
|
492
|
-
[self start];
|
|
493
495
|
return [CIFilter filterWithName:@"CIColorControls" keysAndValues:kCIInputImageKey, image, @"inputBrightness", @(self.brightness), @"inputContrast", @(self.contrast), @"inputSaturation", @(self.saturation), nil].outputImage;
|
|
494
496
|
}
|
|
495
497
|
|