You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The callback triggered when the processing of a task is finished.
93
93
94
+
> [!Note]
95
+
> This callback may be invoked on different threads. Ensure that any shared resources accessed within the callback are properly synchronized to avoid data corruption or crashes.
Copy file name to clipboardExpand all lines: programming/android/api-reference/capture-vision-router/multiple-file-processing.md
+36Lines changed: 36 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,16 +16,20 @@ noTitleIndex: true
16
16
|[`getInput`](#getinput)| Returns the image source object. |
17
17
|[`addResultReceiver`](#addresultreceiver)| Adds a [`CapturedResultReceiver`]({{ site.dcv_android_api }}capture-vision-router/auxiliary-classes/captured-result-receiver.html) object as the receiver of captured results. |
18
18
|[`removeResultReceiver`](#removeresultreceiver)| Removes the specified [`CapturedResultReceiver`]({{ site.dcv_android_api }}capture-vision-router/auxiliary-classes/captured-result-receiver.html) object. |
19
+
|[`removeAllResultReceivers`](#removeallresultreceivers)| Removes all user-added [`CapturedResultReceivers`]({{ site.dcv_android_api }}capture-vision-router/auxiliary-classes/captured-result-receiver.html). |
19
20
|[`startCapturing`](#startcapturing)| Initiates a capturing process based on a specified template. This process is repeated for each image fetched from the source. |
20
21
|[`stopCapturing`](#stopcapturing)| Stops the capturing process. |
21
22
|[`pauseCapturing`](#pausecapturing)| Pauses the Capture Vision Router. |
22
23
|[`resumeCapturing`](#resumecapturing)| Resumes the Capture Vision Router. |
23
24
|[`addCaptureStateListener`](#addcapturestatelistener)| Registers a [`CaptureStateListener`](auxiliary-classes/capture-state-listener.html) to be used as a callback when capture state is received. |
24
25
|[`removeCaptureStateListener`](#removecapturestatelistener)| Removes a [`CaptureStateListener`](auxiliary-classes/capture-state-listener.html) that has been configured for the Capture Vision Router. |
26
+
|[`removeAllCaptureStateListeners`](#removeallcapturestatelisteners)| Removes all user-added [`CaptureStateListeners`](auxiliary-classes/capture-state-listener.html). |
25
27
|[`addResultFilter`](#addresultfilter)| Adds a `CapturedResultFilter` object to filter non-essential results. |
26
28
|[`removeResultFilter`](#removeresultfilter)| Removes the specified `CapturedResultFilter` object. |
29
+
|[`removeAllResultFilters`](#removeallresultfilters)| Removes all user-added `CapturedResultFilters`. |
27
30
|[`addImageSourceStateListener`](#addimagesourcestatelistener)| Register a [`ImageSourceStateListener`](auxiliary-classes/image-source-state-listener.html) to get callback when the status of [`ImageSourceAdapter`]({{ site.dcv_android_api }}core/basic-structures/image-source-adapter.html) received. |
28
31
|[`removeImageSourceStateListener`](#removeimagesourcestatelistener)| Removes a [`ImageSourceStateListener`](auxiliary-classes/image-source-state-listener.html) from the Capture Vision Router. |
32
+
|[`removeAllImageSourceStateListeners`](#removeallimagesourcestatelisteners)| Removes all user-added [`ImageSourceStateListeners`](auxiliary-classes/image-source-state-listener.html). |
`[in] receiver`: The receiver object, of type [`CapturedResultReceiver`]({{ site.dcv_android_api }}capture-vision-router/auxiliary-classes/captured-result-receiver.html).
89
93
94
+
## removeAllResultReceivers
95
+
96
+
Removes all user-added [`CapturedResultReceivers`]({{ site.dcv_android_api }}capture-vision-router/auxiliary-classes/captured-result-receiver.html).
97
+
98
+
```java
99
+
void removeAllResultReceivers();
100
+
```
101
+
90
102
## startCapturing
91
103
92
104
Initiates a capturing process based on a specified template. This process is repeated for each image fetched from the source.
`[in] filter`: The filter object, of type [`CapturedResultFilter`]({{ site.dcv_android_api }}capture-vision-router/auxiliary-classes/captured-result-filter.html).
155
167
168
+
## removeResultFilter
169
+
170
+
Removes all user-added`CapturedResultFilters`.
171
+
172
+
```java
173
+
void removeAllResultFilters();
174
+
```
175
+
156
176
## addCaptureStateListener
157
177
158
178
Registers a [`CaptureStateListener`](auxiliary-classes/capture-state-listener.html) to be used as a callback when capture state is received.
`[in] listener`: An object of [`CaptureStateListener`](auxiliary-classes/capture-state-listener.html)
179
199
200
+
## removeAllCaptureStateListeners
201
+
202
+
Removes all user-added [`CaptureStateListeners`](auxiliary-classes/capture-state-listener.html).
203
+
204
+
```java
205
+
void removeAllCaptureStateListeners();
206
+
```
207
+
180
208
## addImageSourceStateListener
181
209
182
210
Register a [`ImageSourceStateListener`](auxiliary-classes/image-source-state-listener.html) to get callback when the status of [`ImageSourceAdapter`]({{ site.dcv_android_api }}core/basic-structures/image-source-adapter.html) received.
Copy file name to clipboardExpand all lines: programming/android/api-reference/utility/image-processor.md
+11-12Lines changed: 11 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,8 +26,9 @@ class ImageProcessor
26
26
27
27
| Method | Description |
28
28
| ------ | ----------- |
29
-
| [`cropImage`](#cropimageimagedatarect) | Crops an image based on the provided rectangle or quadrilateral. |
30
-
| [`cropImage`](#cropimageimagedataquad) | Crops an image based on the provided rectangle or quadrilateral. |
29
+
| [`cropImage`](#cropimageimagedatarect) | Crops an image based on the provided rectangle. |
30
+
| [`cropAndDeskewImage(imageData,quad,dstWidth,dstHeight,padding)`](#cropanddeskewimageimagedataquaddstwidthdstheightpaddingerrorcode) | Crops and deskew an image based on the provided quadrilateral and additional information. |
31
+
| [`cropAndDeskewImage(imageData,quad)`](#cropanddeskewimageimagedataquad) | Crops and deskew an image based on the provided quadrilateral. |
31
32
| [`adjustBrightness`](#adjustbrightness) | Adjusts the brightness of an image. |
32
33
| [`adjustContrast`](#adjustcontrast) | Adjusts the contrast of an image. |
33
34
| [`filterImage`](#filterimage) | Applies a filter to an image. |
-**License Validation Behavior**: Instead of stopping execution immediately on an invalid license module, the library now continues processing and returns results from modules with valid licenses. An error is still reported to indicate the license issue.
21
+
22
+
### Fixed
23
+
24
+
- Fixed various minor bugs and improved overall stability.
Copy file name to clipboardExpand all lines: programming/ios/api-reference/capture-vision-router/multiple-file-processing.md
+84-11Lines changed: 84 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,20 +12,25 @@ noTitleIndex: true
12
12
13
13
| Method | Description |
14
14
| ------ | ----------- |
15
-
|[`setInput`](#setinput)| Sets an image source that will provide images to be consecutively processed. |
16
-
|[`getInput`](#getinput)| Gets the attached image source adapter object of the Capture Vision Router. |
17
-
|[`addImageSourceStateListener`](#addimagesourcestatelistener)| Registers a `DSImageSourceStateListener` object to be used as a callback when the status of `DSImageSourceAdapter` changes. |
18
-
|[`removeImageSourceStateListener`](#removeimagesourcestatelistener)| Removes a `DSImageSourceStateListener` from the Capture Vision Router. |
15
+
|[`setInput`](#setinput)| Sets up an image source to provide images for continuous processing. |
16
+
|[`getInput`](#getinput)| Returns the image source object. |
19
17
|[`addResultReceiver`](#addresultreceiver)| Adds a [`CapturedResultReceiver`]({{ site.dcv_ios_api }}capture-vision-router/auxiliary-classes/captured-result-receiver.html) object as the receiver of captured results. |
20
18
|[`removeResultReceiver`](#removeresultreceiver)| Removes the specified [`CapturedResultReceiver`]({{ site.dcv_ios_api }}capture-vision-router/auxiliary-classes/captured-result-receiver.html) object. |
19
+
|[`removeAllResultReceivers`](#removeallresultreceivers)| Removes all user-added [`CapturedResultReceivers`]({{ site.dcv_ios_api }}capture-vision-router/auxiliary-classes/captured-result-receiver.html). |
21
20
|[`startCapturing`](#startcapturing)| Initiates a capturing process based on a specified template. This process is repeated for each image fetched from the source. |
22
21
|[`stopCapturing`](#stopcapturing)| Stops the capturing process. |
23
-
|[`pauseCapturing`](#pausecapturing)| Pauses the capturing process. |
24
-
|[`resumeCapturing`](#resumecapturing)| Resumes the capturing process. |
25
-
|[`addCaptureStateListener`](#addcapturestatelistener)| Registers a `DSCaptureStateListener` to be used as a callback when capture state changes. |
26
-
|[`removeCaptureStateListener`](#removecapturestatelistener)| Removes a `DSCaptureStateListener` that has been configured for the Capture Vision Router. |
27
-
|[`addResultFilter`](#addresultfilter)| Adds a `DSCapturedResultFilter` object to filter non-essential results. |
28
-
|[`removeResultFilter`](#removeresultfilter)| Removes the specified `DSCapturedResultFilter` object. |
22
+
|[`pauseCapturing`](#pausecapturing)| Pauses the Capture Vision Router. |
23
+
|[`resumeCapturing`](#resumecapturing)| Resumes the Capture Vision Router. |
24
+
|[`addCaptureStateListener`](#addcapturestatelistener)| Registers a [`CaptureStateListener`](auxiliary-classes/capture-state-listener.html) to be used as a callback when capture state is received. |
25
+
|[`removeCaptureStateListener`](#removecapturestatelistener)| Removes a [`CaptureStateListener`](auxiliary-classes/capture-state-listener.html) that has been configured for the Capture Vision Router. |
26
+
|[`removeAllCaptureStateListeners`](#removeallcapturestatelisteners)| Removes all user-added [`CaptureStateListeners`](auxiliary-classes/capture-state-listener.html). |
27
+
|[`addResultFilter`](#addresultfilter)| Adds a `CapturedResultFilter` object to filter non-essential results. |
28
+
|[`removeResultFilter`](#removeresultfilter)| Removes the specified `CapturedResultFilter` object. |
29
+
|[`removeAllResultFilters`](#removeallresultfilters)| Removes all user-added `CapturedResultFilters`. |
30
+
|[`addImageSourceStateListener`](#addimagesourcestatelistener)| Register a [`ImageSourceStateListener`](auxiliary-classes/image-source-state-listener.html) to get callback when the status of [`ImageSourceAdapter`]({{ site.dcv_android_api }}core/basic-structures/image-source-adapter.html) received. |
31
+
|[`removeImageSourceStateListener`](#removeimagesourcestatelistener)| Removes a [`ImageSourceStateListener`](auxiliary-classes/image-source-state-listener.html) from the Capture Vision Router. |
32
+
|[`removeAllImageSourceStateListeners`](#removeallimagesourcestatelisteners)| Removes all user-added [`ImageSourceStateListeners`](auxiliary-classes/image-source-state-listener.html). |
33
+
29
34
30
35
## setInput
31
36
@@ -131,6 +136,23 @@ func removeImageSourceStateListener(_ listener:DSImageSourceStateListener) -> BO
131
136
132
137
A BOOL value that indicates whether the `DSImageSourceStateListener` is removed successfully.
133
138
139
+
## removeAllImageSourceStateListeners
140
+
141
+
Removes all user-added `DSImageSourceStateListeners`.
142
+
143
+
<divclass="sample-code-prefix"></div>
144
+
>- Objective-C
145
+
>- Swift
146
+
>
147
+
>1.
148
+
```objc
149
+
- (BOOL)removeAllImageSourceStateListeners;
150
+
```
151
+
2.
152
+
```swift
153
+
funcremoveAllImageSourceStateListeners()
154
+
```
155
+
134
156
## addResultReceiver
135
157
136
158
Adds a [`CapturedResultReceiver`]({{ site.dcv_ios_api }}capture-vision-router/auxiliary-classes/captured-result-receiver.html) object as the receiver of captured results.
A BOOL value that indicates whether the capture state listener is removed successfully.
327
366
367
+
## removeAllCaptureStateListeners
368
+
369
+
Removes all user-added `DSCaptureStateListeners`.
370
+
371
+
<divclass="sample-code-prefix"></div>
372
+
>- Objective-C
373
+
>- Swift
374
+
>
375
+
>1.
376
+
```objc
377
+
- (BOOL)removeAllCaptureStateListeners;
378
+
```
379
+
2.
380
+
```swift
381
+
funcremoveAllCaptureStateListeners()
382
+
```
383
+
328
384
## addResultFilter
329
385
330
386
Adds a [`DSCapturedResultFilter`]({{ site.dcv_ios_api }}capture-vision-router/auxiliary-classes/captured-result-filter.html) object to filter non-essential results. Currnetly, is must be a [`MultiFrameCrossFilter`]({{ site.dcv_ios_api }}utility/multi-frame-result-cross-filter.html) object.
0 commit comments