# DetectedData Structure Reference



## Scope and provenance

- Product: mobile
- Status: Imported reference snapshot. Import date is not a verification date or guarantee of current release support.
- SDK version: Not declared for this page. Versions in examples must not be assumed current.
- Environment: Page-specific. Confirm the environment host, credentials, and service configuration; do not infer them from another product.
- Source: https://documentation.idmission.com/identity/iOS-SDK-2/Structs/DetectedData.html
- Imported at: 2026-10-21T17:27:02.187Z
- Canonical page: https://docs.idmission.com/mobile/reference/ios/Structs/DetectedData
- Agent index: https://docs.idmission.com/llms.txt

---

<a id="detecteddata"></a>

# DetectedData

```
public struct DetectedData
```

Detected ID capture data.

<a id="/Enumerations"></a>

[]()

<a id="//apple_ref/swift/Section/Enumerations"></a>

[]()

[](https://docs.idmission.com/markdown/mobile/reference/ios/Structs/DetectedData.md#/Enumerations)

<a id="enumerations"></a>

### Enumerations

- <a id="/s:17IDentitySDK_Swift12DetectedDataV12DocumentSideO"></a>

  <a id="//apple_ref/swift/Enum/DocumentSide"></a>

  `DocumentSide`

  Detected document side. (Front or back.)

  [See more](https://docs.idmission.com/markdown/mobile/reference/ios/Structs/DetectedData/DocumentSide.md)

  <a id="declaration"></a>

  #### Declaration

  Swift

  ```
  public enum DocumentSide
  ```

<a id="/Properties"></a>

[]()

<a id="//apple_ref/swift/Section/Properties"></a>

[]()

[](https://docs.idmission.com/markdown/mobile/reference/ios/Structs/DetectedData.md#/Properties)

<a id="properties"></a>

### Properties

- <a id="/s:17IDentitySDK_Swift12DetectedDataV16documentLocationSo6CGRectVvp"></a>

  <a id="//apple_ref/swift/Property/documentLocation"></a>

  `documentLocation`

  Detected document rectangle within the captured image.

  <a id="declaration-2"></a>

  #### Declaration

  Swift

  ```
  public var documentLocation: CGRect
  ```

- <a id="/s:17IDentitySDK_Swift12DetectedDataV18documentConfidenceSfvp"></a>

  <a id="//apple_ref/swift/Property/documentConfidence"></a>

  `documentConfidence`

  Detected document rectangle confidence within the captured image.

  <a id="declaration-3"></a>

  #### Declaration

  Swift

  ```
  public var documentConfidence: Float
  ```

- <a id="/s:17IDentitySDK_Swift12DetectedDataV12faceLocationSo6CGRectVSgvp"></a>

  <a id="//apple_ref/swift/Property/faceLocation"></a>

  `faceLocation`

  Largest detected face rectangle within the captured image.

  <a id="declaration-4"></a>

  #### Declaration

  Swift

  ```
  public var faceLocation: CGRect?
  ```

- <a id="/s:17IDentitySDK_Swift12DetectedDataV13faceRectScoreSfSgvp"></a>

  <a id="//apple_ref/swift/Property/faceRectScore"></a>

  `faceRectScore`

  Largest detected face rectangle score withing the captured image

  <a id="declaration-5"></a>

  #### Declaration

  Swift

  ```
  public var faceRectScore: Float?
  ```

- <a id="/s:17IDentitySDK_Swift12DetectedDataV13fullImageSizeSo6CGSizeVvp"></a>

  <a id="//apple_ref/swift/Property/fullImageSize"></a>

  `fullImageSize`

  Full image size.

  <a id="declaration-6"></a>

  #### Declaration

  Swift

  ```
  public var fullImageSize: CGSize
  ```

- <a id="/s:17IDentitySDK_Swift12DetectedDataV4typeSSSgvp"></a>

  <a id="//apple_ref/swift/Property/type"></a>

  `type`

  Captured ID side type.

  <a id="declaration-7"></a>

  #### Declaration

  Swift

  ```
  public var type: String?
  ```

- <a id="/s:17IDentitySDK_Swift12DetectedDataV5sidesSivp"></a>

  <a id="//apple_ref/swift/Property/sides"></a>

  `sides`

  The number of sides this document type should have.

  <a id="declaration-8"></a>

  #### Declaration

  Swift

  ```
  public var sides: Int
  ```

- <a id="/s:17IDentitySDK_Swift12DetectedDataV4sideAC12DocumentSideOSgvp"></a>

  <a id="//apple_ref/swift/Property/side"></a>

  `side`

  Detected data document side. (Front or back.)

  <a id="declaration-9"></a>

  #### Declaration

  Swift

  ```
  public var side: DocumentSide?
  ```

- <a id="/s:17IDentitySDK_Swift12DetectedDataV15shouldHavePhotoSbvp"></a>

  <a id="//apple_ref/swift/Property/shouldHavePhoto"></a>

  `shouldHavePhoto`

  Whether or not the detected document side should have a photo.

  <a id="declaration-10"></a>

  #### Declaration

  Swift

  ```
  public var shouldHavePhoto: Bool
  ```

- <a id="/s:17IDentitySDK_Swift12DetectedDataV13shouldHaveMrzSbvp"></a>

  <a id="//apple_ref/swift/Property/shouldHaveMrz"></a>

  `shouldHaveMrz`

  Whether or not the detected document side should have an MRZ.

  <a id="declaration-11"></a>

  #### Declaration

  Swift

  ```
  public var shouldHaveMrz: Bool
  ```

- <a id="/s:17IDentitySDK_Swift12DetectedDataV17shouldHaveBarcodeSbvp"></a>

  <a id="//apple_ref/swift/Property/shouldHaveBarcode"></a>

  `shouldHaveBarcode`

  Whether or not the detected document side should have a barcode.

  <a id="declaration-12"></a>

  #### Declaration

  Swift

  ```
  public var shouldHaveBarcode: Bool { get }
  ```

- <a id="/s:17IDentitySDK_Swift12DetectedDataV18isRealnesCheckDoneSbSgvp"></a>

  <a id="//apple_ref/swift/Property/isRealnesCheckDone"></a>

  `isRealnesCheckDone`

  Whether or not a document realness process executed.

  <a id="declaration-13"></a>

  #### Declaration

  Swift

  ```
  public var isRealnesCheckDone: Bool?
  ```

- <a id="/s:17IDentitySDK_Swift12DetectedDataV6isRealSbSgvp"></a>

  <a id="//apple_ref/swift/Property/isReal"></a>

  `isReal`

  Whether or not a document was determined to be real.

  <a id="declaration-14"></a>

  #### Declaration

  Swift

  ```
  public var isReal: Bool?
  ```

- <a id="/s:17IDentitySDK_Swift12DetectedDataV8realnessSfSgvp"></a>

  <a id="//apple_ref/swift/Property/realness"></a>

  `realness`

  Average measured realness.

  <a id="declaration-15"></a>

  #### Declaration

  Swift

  ```
  public var realness: Float?
  ```

- <a id="/s:17IDentitySDK_Swift12DetectedDataV12avgPhotoCopySfSgvp"></a>

  <a id="//apple_ref/swift/Property/avgPhotoCopy"></a>

  `avgPhotoCopy`

  Average measured photo copy .

  <a id="declaration-16"></a>

  #### Declaration

  Swift

  ```
  public var avgPhotoCopy: Float?
  ```

- <a id="/s:17IDentitySDK_Swift12DetectedDataV9avgScreenSfSgvp"></a>

  <a id="//apple_ref/swift/Property/avgScreen"></a>

  `avgScreen`

  Average measured screen.

  <a id="declaration-17"></a>

  #### Declaration

  Swift

  ```
  public var avgScreen: Float?
  ```

- <a id="/s:17IDentitySDK_Swift12DetectedDataV14isPhotoPresentSbvp"></a>

  <a id="//apple_ref/swift/Property/isPhotoPresent"></a>

  `isPhotoPresent`

  Whether or not a photo was found on the detected document side.

  <a id="declaration-18"></a>

  #### Declaration

  Swift

  ```
  public var isPhotoPresent: Bool
  ```

- <a id="/s:17IDentitySDK_Swift12DetectedDataV3mrzAA9MRZResultVSgvp"></a>

  <a id="//apple_ref/swift/Property/mrz"></a>

  `mrz`

  The detected MRZ

  <a id="declaration-19"></a>

  #### Declaration

  Swift

  ```
  public var mrz: MRZResult?
  ```

- <a id="/s:17IDentitySDK_Swift12DetectedDataV7barcodeSDyS2SGSgvp"></a>

  <a id="//apple_ref/swift/Property/barcode"></a>

  `barcode`

  The detected barcode.

  <a id="declaration-20"></a>

  #### Declaration

  Swift

  ```
  public var barcode: [String : String]?
  ```

- <a id="/s:17IDentitySDK_Swift12DetectedDataV12barcodeImageSo7UIImageCSgvp"></a>

  <a id="//apple_ref/swift/Property/barcodeImage"></a>

  `barcodeImage`

  The detected barcode image.

  <a id="declaration-21"></a>

  #### Declaration

  Swift

  ```
  public var barcodeImage: UIImage?
  ```

- <a id="/"></a>

  <a id="//apple_ref/swift/Property/nfc"></a>

  `nfc`

  The detected passport NFC chip data.

- <a id="/s:17IDentitySDK_Swift12DetectedDataV19nfcFaceImageMatchedSbSgvp"></a>

  <a id="//apple_ref/swift/Property/nfcFaceImageMatched"></a>

  `nfcFaceImageMatched`

  Whether or not the NFC face image matched the detected face image.

  <a id="declaration-22"></a>

  #### Declaration

  Swift

  ```
  public var nfcFaceImageMatched: Bool?
  ```

- <a id="/s:17IDentitySDK_Swift12DetectedDataV25nfcFaceImageMatchDistanceSfSgvp"></a>

  <a id="//apple_ref/swift/Property/nfcFaceImageMatchDistance"></a>

  `nfcFaceImageMatchDistance`

  <a id="declaration-23"></a>

  #### Declaration

  Swift

  ```
  public var nfcFaceImageMatchDistance: Float?
  ```

- <a id="/s:17IDentitySDK_Swift12DetectedDataV6idTypeSSSgvp"></a>

  <a id="//apple_ref/swift/Property/idType"></a>

  `idType`

  Captured ID type.

  <a id="declaration-24"></a>

  #### Declaration

  Swift

  ```
  public var idType: String?
  ```

- <a id="/s:17IDentitySDK_Swift12DetectedDataV7countrySSSgvp"></a>

  <a id="//apple_ref/swift/Property/country"></a>

  `country`

  Captured ID country.

  <a id="declaration-25"></a>

  #### Declaration

  Swift

  ```
  public var country: String?
  ```

- <a id="/s:17IDentitySDK_Swift12DetectedDataV5stateSSSgvp"></a>

  <a id="//apple_ref/swift/Property/state"></a>

  `state`

  Captured ID state.

  <a id="declaration-26"></a>

  #### Declaration

  Swift

  ```
  public var state: String?
  ```

- <a id="/s:17IDentitySDK_Swift12DetectedDataV11barcodeTypeSSSgvp"></a>

  <a id="//apple_ref/swift/Property/barcodeType"></a>

  `barcodeType`

  Detected ID barcode type.

  <a id="declaration-27"></a>

  #### Declaration

  Swift

  ```
  public var barcodeType: String?
  ```

- <a id="/s:17IDentitySDK_Swift12DetectedDataV5imageSo7UIImageCSgvp"></a>

  <a id="//apple_ref/swift/Property/image"></a>

  `image`

  Detected document image.

  <a id="declaration-28"></a>

  #### Declaration

  Swift

  ```
  public var image: UIImage?
  ```

- <a id="/s:17IDentitySDK_Swift12DetectedDataV9faceImageSo7UIImageCSgvp"></a>

  <a id="//apple_ref/swift/Property/faceImage"></a>

  `faceImage`

  Detected face image.

  <a id="declaration-29"></a>

  #### Declaration

  Swift

  ```
  public var faceImage: UIImage?
  ```

- <a id="/s:17IDentitySDK_Swift12DetectedDataV28finalExifIdImageBase64StringSSSgvp"></a>

  <a id="//apple_ref/swift/Property/finalExifIdImageBase64String"></a>

  `finalExifIdImageBase64String`

  Detected document imageBase64String.

  <a id="declaration-30"></a>

  #### Declaration

  Swift

  ```
  public var finalExifIdImageBase64String: String?
  ```

<a id="footer"></a>

© 2026 [IDmission](https://www.idmission.com/). All rights reserved. (Last updated: 2026-07-20)

Generated by [jazzy ♪♫ v0.15.3](https://github.com/realm/jazzy), a [Realm](https://realm.io/) project.
