capacitor-plugin-camera-forked 3.1.120 → 3.1.121

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.
@@ -16,6 +16,8 @@ Pod::Spec.new do |s|
16
16
  s.dependency 'Capacitor'
17
17
  s.dependency 'TensorFlowLiteSwift', '~> 2.17.0'
18
18
  s.dependency 'TensorFlowLiteC', '~> 2.17.0'
19
+ s.dependency 'MLKitObjectDetection'
20
+ s.dependency 'MLKitTextRecognition', '~> 7.0.0'
19
21
  s.static_framework = true
20
22
  s.swift_version = '5.1'
21
23
  end
package/README.md CHANGED
@@ -290,7 +290,7 @@ stopCamera() => Promise<void>
290
290
  ### takeSnapshot(...)
291
291
 
292
292
  ```typescript
293
- takeSnapshot(options: { quality?: number; checkBlur?: boolean; }) => Promise<{ base64: string; confidence?: number; boundingBoxes?: number[][]; }>
293
+ takeSnapshot(options: { quality?: number; checkBlur?: boolean; }) => Promise<{ base64: string; confidence?: number; boundingBoxes?: number[][]; isBlur?: boolean; detectionMethod?: string; }>
294
294
  ```
295
295
 
296
296
  take a snapshot as base64.
@@ -299,7 +299,7 @@ take a snapshot as base64.
299
299
  | ------------- | ------------------------------------------------------- |
300
300
  | **`options`** | <code>{ quality?: number; checkBlur?: boolean; }</code> |
301
301
 
302
- **Returns:** <code>Promise&lt;{ base64: string; confidence?: number; boundingBoxes?: number[][]; }&gt;</code>
302
+ **Returns:** <code>Promise&lt;{ base64: string; confidence?: number; boundingBoxes?: number[][]; isBlur?: boolean; detectionMethod?: string; }&gt;</code>
303
303
 
304
304
  --------------------
305
305
 
@@ -307,7 +307,7 @@ take a snapshot as base64.
307
307
  ### detectBlur(...)
308
308
 
309
309
  ```typescript
310
- detectBlur(options: { image: string; }) => Promise<{ isBlur: boolean; blurConfidence: number; sharpConfidence: number; }>
310
+ detectBlur(options: { image: string; }) => Promise<{ isBlur: boolean; blurConfidence: number; sharpConfidence: number; method?: string; boundingBoxes?: number[][]; objectCount?: number; wordCount?: number; readableWords?: number; }>
311
311
  ```
312
312
 
313
313
  analyze an image for blur detection with detailed confidence scores.
@@ -316,7 +316,7 @@ analyze an image for blur detection with detailed confidence scores.
316
316
  | ------------- | ------------------------------- |
317
317
  | **`options`** | <code>{ image: string; }</code> |
318
318
 
319
- **Returns:** <code>Promise&lt;{ isBlur: boolean; blurConfidence: number; sharpConfidence: number; }&gt;</code>
319
+ **Returns:** <code>Promise&lt;{ isBlur: boolean; blurConfidence: number; sharpConfidence: number; method?: string; boundingBoxes?: number[][]; objectCount?: number; wordCount?: number; readableWords?: number; }&gt;</code>
320
320
 
321
321
  --------------------
322
322
 
@@ -76,6 +76,7 @@ dependencies {
76
76
  implementation 'org.tensorflow:tensorflow-lite-support:0.4.4'
77
77
  implementation 'org.tensorflow:tensorflow-lite-gpu:2.14.0'
78
78
 
79
- // Google ML Kit dependencies for text recognition
79
+ // Google ML Kit dependencies for text recognition and object detection
80
80
  implementation 'com.google.mlkit:text-recognition:16.0.1'
81
+ implementation 'com.google.mlkit:object-detection:17.0.1'
81
82
  }