# CapturedResultReceiver

The `CapturedResultReceiver` class is responsible for receiving captured results. It contains several callback functions for different types of results, including original image, decoded barcodes, recognized text lines, detected quads, normalized images, and parsed results.

## Definition

*Namespace:* Dynamsoft.CVR


```csharp
public class CapturedResultReceiver 
```

## Methods

| Method                                                            | Description                                          |
| ----------------------------------------------------------------- | ---------------------------------------------------- |
| [`OnCapturedResultReceived`](#oncapturedresultreceived)           | Callback function triggered after processing each image and returns all captured results.          |
| [`OnOriginalImageResultReceived`](#onoriginalimageresultreceived) | Callback function triggered when start processing each image and returns the original image result.        |
| [`OnDecodedBarcodesReceived`](#ondecodedbarcodesreceived)         | Callback function triggered after processing each image and returns all decoded barcodes results.      |
| [`OnRecognizedTextLinesReceived`](#onrecognizedtextlinesreceived) | Callback function triggered after processing each image and returns all recognized text lines results. |
| [`OnProcessedDocumentResultReceived`](#onprocesseddocumentresultreceived)       | Callback function triggered after processing each image and returns all processed document results.  |
| [`OnParsedResultsReceived`](#onparsedresultsreceived)             | Callback function triggered after processing each image and returns all parsed results.                |
| [`GetName`](#getname)       | Gets the name of the captured result receiver.                                             |
| [`SetName`](#setname)       | Sets the name of the captured result receiver.                                             |

### OnCapturedResultReceived

Callback function triggered after processing each image and returns all captured results.

```csharp
virtual void OnCapturedResultReceived(CapturedResult result)
```

**Parameters**

`[in] result` The captured result.

**See Also**

[CapturedResult](https://www.dynamsoft.com/capture-vision/docs/server/programming/dotnet/api-reference/capture-vision-router/auxiliary-classes/captured-result.md)

### OnOriginalImageResultReceived

Callback function triggered when start processing each image and returns the original image result. For the callback to be triggered, it is essential that the parameter `OutputOriginalImage` is set to value `1`.

```csharp
virtual void OnOriginalImageResultReceived(OriginalImageResultItem result)
```

**Parameters**

`[in] result` The original image result.

**See Also**

[OriginalImageResultItem](https://www.dynamsoft.com/capture-vision/docs/server/programming/dotnet/api-reference/core/basic-classes/original-image-result-item.md)

### OnDecodedBarcodesReceived

Callback function triggered after processing each image and returns all decoded barcodes. For the callback to be triggered, it is essential that the `BarcodeReaderTask` is properly configured.

```csharp
virtual void OnDecodedBarcodesReceived(DecodedBarcodesResult result)
```

**Parameters**

`[in] result` The decoded barcodes result.

**See Also**

[DecodedBarcodesResult](https://www.dynamsoft.com/barcode-reader/docs/server/programming/dotnet/api-reference/decoded-barcodes-result.md)

### OnRecognizedTextLinesReceived

Callback function triggered after processing each image and returns all recognized text lines. For the callback to be triggered, it is essential that the `LabelRecognizerTask` is properly configured.

```csharp
virtual void OnRecognizedTextLinesReceived(RecognizedTextLinesResult result)
```

**Parameters**

`[in] result` The recognized text lines result.

**See Also**

[RecognizedTextLinesResult](https://www.dynamsoft.com/label-recognition/docs/server/programming/dotnet/api-reference/recognized-text-lines-result.md)

### OnProcessedDocumentResultReceived

Callback function triggered after processing each image and returns all processed document results. For the callback to be triggered, it is essential that the `DocumentNormalizerTask` is properly configured.

```csharp
public virtual void OnProcessedDocumentResultReceived(ProcessedDocumentResult result)
```

**Parameters**

`[in] result` The processed document results.

**See Also**

[ProcessedDocumentResult](https://www.dynamsoft.com/document-normalizer/docs/server/programming/dotnet/api-reference/processed-document-result.md)

### OnParsedResultsReceived

Callback function triggered after processing each image and returns all parsed results. For the callback to be triggered, it is essential that the `CodeParserTask` is properly configured.

```csharp
virtual void OnParsedResultsReceived(ParsedResult result)
```

**Parameters**

`[in] result` The parsed result.

**See Also**

[ParsedResult](https://www.dynamsoft.com/code-parser/docs/server/programming/dotnet/api-reference/parsed-result.md)

### GetName

Gets the name of the captured result receiver.  

```csharp
string GetName()
```

**Return Value**

Returns the name of the captured result receiver.  

### SetName

Sets the name of the captured result receiver.  

```csharp
void SetName(string name)
```

**Parameters**

`[in] name` The name of the captured result receiver.
