---
Source: https://docs.microblink.com/blinkid/image-quality
Title: Handle low-quality or blurry images
Description: How to reject and tune handling of blurry, glare-affected, and poorly lit frames in BlinkID v8000
---

# Handle low-quality or blurry images

BlinkID assesses the quality of every camera frame before it tries to extract data.
You can control how strictly the SDK treats blur, glare, and poor lighting through the `documentCaptureModule` of `ScanningSettings`.

:::note

The built-in camera UX already guides users in real time, prompting them to move closer, hold steady, or avoid glare.
Most low-quality input is handled automatically, so you only need these settings when you want finer control over which frames the SDK accepts.

:::

## Use a quality profile

:::note

Added in BlinkID Web v8003.0.0, and in BlinkID Android and iOS v8002.0.0.
Earlier v8xxx versions don't have use cases; follow [Reject low-quality frames](#reject-low-quality-frames) and [Tune the sensitivity levels](#tune-the-sensitivity-levels) instead.

:::

The document video and document photo [use cases](scanning-use-cases.md) have a `quality` option that sets the rejection flags and sensitivity levels for you:

- `balanced` (default): the default rejection flags and sensitivity levels.
- `high-accuracy`: raises blur, glare, and tilt sensitivity to `high`, so only clean frames are accepted.
  It also requires a face image on the document.
- `permissive`: lowers sensitivity and turns off blur, glare, poor lighting, and hand occlusion rejection, so frames are accepted even in difficult conditions.
- `high-speed` (video only): lowers blur, glare, and tilt sensitivity to `low`, and picks the first acceptable frame faster.

For the full list of settings each profile changes, see [Settings applied by each option](scanning-use-cases.md#settings-applied-by-each-option).

<Tabs queryString="platform">

  <TabItem value="web" label="Web (TS)" default>

  ```typescript
  import { createBlinkId } from "@microblink/blinkid";

  const blinkId = await createBlinkId({
    licenseKey: "your-license-key",
    presetScanningSettingsBuilder: (presetBuilder) =>
      presetBuilder.buildDocumentVideoSettings({
        quality: "high-accuracy",
      }),
  });
  ```

  </TabItem>
  <TabItem value="android" label="Android (Kotlin)">

  ```kotlin
  val sessionSettings = BlinkIdSessionSettings.documentVideo(
      DocumentVideoUseCase(quality = VideoQualityProfile.HighAccuracy)
  )
  ```

  </TabItem>
  <TabItem value="ios" label="iOS (Swift)">

  ```swift
  let sessionSettings = BlinkIDSessionSettings.documentVideo(
      DocumentVideoUseCase(quality: .highAccuracy)
  )
  ```

  </TabItem>
</Tabs>

## Reject low-quality frames

:::note

This section and [Tune the sensitivity levels](#tune-the-sensitivity-levels) apply to versions earlier than BlinkID Web v8003.0.0, and BlinkID Android and iOS v8002.0.0.
If you have a newer version, you can also use a [quality profile](#use-a-quality-profile).

:::

When a quality issue is detected on a frame, you can tell the SDK to skip that frame instead of processing it.
Three boolean flags control this:

- `imageWithBlurRejected`: when `true`, frames with detected blur are skipped, so only sharp frames are processed.
- `imageWithGlareRejected`: when `true`, frames with detected glare are skipped.
- `imageWithPoorLightingRejected`: when `true`, frames with inadequate lighting are skipped.

Rejecting low-quality frames improves the reliability of the extracted data because the SDK only reads from clean input.
The trade-off is capture speed: in difficult conditions, such as poor lighting or a reflective document, fewer frames qualify, so scanning can take longer before a usable frame arrives.

<Tabs queryString="platform">

  <TabItem value="web" label="Web (TS)" default>

  ```typescript
  const settings: ScanningSettings = {
    documentCaptureModule: {
      imageWithBlurRejected: true,
      imageWithGlareRejected: true,
      imageWithPoorLightingRejected: true,
    },
  };
  ```

  </TabItem>
  <TabItem value="android" label="Android (Kotlin)">

  ```kotlin
  val settings = ScanningSettings(
      documentCaptureModule = DocumentCaptureModuleSettings(
          imageWithBlurRejected = true,
          imageWithGlareRejected = true,
          imageWithPoorLightingRejected = true,
      ),
  )
  ```

  </TabItem>
  <TabItem value="ios" label="iOS (Swift)">

  ```swift
  let settings = ScanningSettings(
      documentCaptureModule: DocumentCaptureModuleSettings(
          imageWithBlurRejected: true,
          imageWithGlareRejected: true,
          imageWithPoorLightingRejected: true
      )
  )
  ```

  </TabItem>
  <TabItem value="flutter" label="Flutter (Dart)">

  ```dart
  // Modules you leave out are disabled, so list every module you need.
  final settings = BlinkIdScanningSettings(
    documentCaptureModule: DocumentCaptureModuleSettings(
      imageWithBlurRejected: true,
      imageWithGlareRejected: true,
      imageWithPoorLightingRejected: true,
    ),
    mrzModule: MrzModuleSettings(),
    barcodeModule: BarcodeModuleSettings(),
    vizModule: VizModuleSettings(),
  );
  ```

  </TabItem>
  <TabItem value="react-native" label="React Native (TS)">

  ```typescript
  // Modules you leave out are disabled, so list every module you need.
  const scanningSettings: BlinkIdScanningSettings = {
    documentCaptureModule: {
      imageWithBlurRejected: true,
      imageWithGlareRejected: true,
      imageWithPoorLightingRejected: true,
    },
    mrzModule: {},
    barcodeModule: {},
    vizModule: {},
  };
  ```

  </TabItem>
</Tabs>

## Tune the sensitivity levels

Blur and glare detection have an adjustable sensitivity that determines how aggressively the SDK flags a frame as affected.
Two fields control this:

- `blurSensitivityLevel`
  - **type**: string
  - one of `"off"`, `"low"`, `"mid"`, `"high"`
  - a higher level means more aggressive blur detection
- `glareSensitivityLevel`
  - **type**: string
  - one of `"off"`, `"low"`, `"mid"`, `"high"`
  - a higher level means more aggressive glare detection

Setting a level to `"off"` disables detection for that quality issue.
Raising the level catches more borderline frames, which pairs well with the rejection flags above for the strictest possible capture.
Lowering it is more permissive and can speed up capture when conditions are consistently good.

<Tabs queryString="platform">

  <TabItem value="web" label="Web (TS)" default>

  ```typescript
  const settings: ScanningSettings = {
    documentCaptureModule: {
      blurSensitivityLevel: "high",
      imageWithBlurRejected: true,
      glareSensitivityLevel: "high",
      imageWithGlareRejected: true,
      imageWithPoorLightingRejected: true,
    },
  };
  ```

  </TabItem>
  <TabItem value="android" label="Android (Kotlin)">

  ```kotlin
  val settings = ScanningSettings(
      documentCaptureModule = DocumentCaptureModuleSettings(
          blurSensitivityLevel = SensitivityLevel.High,
          imageWithBlurRejected = true,
          glareSensitivityLevel = SensitivityLevel.High,
          imageWithGlareRejected = true,
          imageWithPoorLightingRejected = true,
      ),
  )
  ```

  </TabItem>
  <TabItem value="ios" label="iOS (Swift)">

  ```swift
  let settings = ScanningSettings(
      documentCaptureModule: DocumentCaptureModuleSettings(
          blurSensitivityLevel: .high,
          imageWithBlurRejected: true,
          glareSensitivityLevel: .high,
          imageWithGlareRejected: true,
          imageWithPoorLightingRejected: true
      )
  )
  ```

  </TabItem>
  <TabItem value="flutter" label="Flutter (Dart)">

  ```dart
  final settings = BlinkIdScanningSettings(
    documentCaptureModule: DocumentCaptureModuleSettings(
      blurSensitivityLevel: SensitivityLevel.high,
      imageWithBlurRejected: true,
      glareSensitivityLevel: SensitivityLevel.high,
      imageWithGlareRejected: true,
      imageWithPoorLightingRejected: true,
    ),
    mrzModule: MrzModuleSettings(),
    barcodeModule: BarcodeModuleSettings(),
    vizModule: VizModuleSettings(),
  );
  ```

  </TabItem>
  <TabItem value="react-native" label="React Native (TS)">

  ```typescript
  const scanningSettings: BlinkIdScanningSettings = {
    documentCaptureModule: {
      blurSensitivityLevel: 'high',
      imageWithBlurRejected: true,
      glareSensitivityLevel: 'high',
      imageWithGlareRejected: true,
      imageWithPoorLightingRejected: true,
    },
    mrzModule: {},
    barcodeModule: {},
    vizModule: {},
  };
  ```

  </TabItem>
</Tabs>

On web the sensitivity is a plain string.
On Android it is the `SensitivityLevel` enum (`SensitivityLevel.Off`, `.Low`, `.Mid`, `.High`), and on iOS it is the `SensitivityLevel` case (`.off`, `.low`, `.mid`, `.high`).

## Related articles

- [Scanning settings](./scanning-settings.md)
- [Settings validation](./settings-validation.md)


Last updated on Oct 26, 2026
