scanbot-web-sdk 5.0.1-beta.2 → 5.0.1

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.
@@ -53,15 +53,6 @@ export declare class CaptureButtonStyleConfiguration {
53
53
  }
54
54
  export declare class DocumentScannerConfiguration extends ScannerConfiguration {
55
55
  constructor();
56
- /**
57
- * An average brightness is computed as follows: It is the average
58
- * of the Value channel in the HSV color space of:
59
- * - the whole image, if no document was detected
60
- * - the document crop, if a document was detected
61
- * It ranges from 0 to 255.
62
- * If this computed value is below the acceptanceBrightnessThreshold, the document is accepted.
63
- */
64
- acceptedBrightnessThreshold?: number;
65
56
  /**
66
57
  * The minimum score in percent (0 - 100) of the perspective
67
58
  * distortion to accept a detected document. Default is 75.0.
@@ -8,7 +8,6 @@ export declare class ScannerConfiguration extends BaseConfiguration {
8
8
  width: number;
9
9
  height: number;
10
10
  };
11
- static DEFAULT_ACCEPTED_BRIGHTNESS_SCORE: number;
12
11
  static DEFAULT_ACCEPTED_ANGLE_SCORE: number;
13
12
  static DEFAULT_ACCEPTED_SIZE_SCORE: number;
14
13
  /**
@@ -7,13 +7,5 @@ export declare class ContourDetectionResult {
7
7
  polygon?: Polygon;
8
8
  detectionStatus?: DetectionStatus;
9
9
  success?: boolean;
10
- /**
11
- * Average brightness, calculated as the average
12
- * of the Value channel in the HSV color space of:
13
- * - the whole image, if no document was detected
14
- * - the document crop, if a document was detected
15
- * Ranges from 0 to 255
16
- */
17
- averageBrightness?: number;
18
10
  constructor(contourDetectionResult?: ContourDetectionResult);
19
11
  }
@@ -54,7 +54,7 @@ export default class ScanbotSDK {
54
54
  applyFilter(imageBuffer: ArrayBuffer, filterType: ImageFilter): Promise<ArrayBuffer>;
55
55
  rotateImageCcw(imageBuffer: ArrayBuffer, rotations: number): Promise<ArrayBuffer>;
56
56
  cropAndRotateImageCcw(imageBuffer: ArrayBuffer, polygon: Polygon, rotations: number): Promise<any>;
57
- detectDocument(imageBuffer: ArrayBuffer, acceptedAngleScore?: number, acceptedSizeScore?: number, acceptedBrightnessThreshold?: number): Promise<ContourDetectionResult>;
57
+ detectDocument(imageBuffer: ArrayBuffer, acceptedAngleScore?: number, acceptedSizeScore?: number): Promise<ContourDetectionResult>;
58
58
  detectAndCropDocument(imageBuffer: ArrayBuffer): Promise<ContourDetectionResult>;
59
59
  detectBarcodes(base64: string, engineMode?: EngineMode, barcodeFormats?: BarcodeFormat[], returnBarcodeImage?: boolean): Promise<BarcodeResult>;
60
60
  createSimpleMRZRecognizer(): Promise<SimpleMrzRecognizer>;