Skip to content

Commit 1b6fc4c

Browse files
Denis-AverinIvan Kamkin
andauthored
Release 23.3 (#57)
* Update project file * Resize icon * Add xml and pdb files to nuget * Release 23.3 * Add test with Timeout --------- Co-authored-by: Ivan Kamkin <[email protected]>
1 parent 780fdf9 commit 1b6fc4c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+197
-135
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 0 additions & 57 deletions
This file was deleted.

.github/workflows/dotnet-core.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: .NET Core Linux
22

33
on:
44
push:
5-
branches: [ master, main ]
5+
branches: [ main ]
66
pull_request:
7-
branches: [ master, main ]
7+
branches: [ main ]
88

99
jobs:
1010
build-and-test:

.github/workflows/dotnet-net6.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: .NET 6
22

33
on:
44
push:
5-
branches: [ master, main ]
5+
branches: [ main ]
66
pull_request:
7-
branches: [ master, main ]
7+
branches: [ main ]
88

99
jobs:
1010
build-and-test:

.github/workflows/net-framework.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: .NET Framework Windows
22

33
on:
44
push:
5-
branches: [ master, main ]
5+
branches: [ main ]
66
pull_request:
7-
branches: [ master, main ]
7+
branches: [ main ]
88

99
jobs:
1010
build-and-test:

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
all: test
33

44
.PHONY: init
5-
init:
6-
dotnet tool install -g dotnet-format
7-
5+
init:
6+
dotnet tool install --global dotnet-format
7+
88
.PHONY: format
99
format:
1010
~/.dotnet/tools/dotnet-format ./Aspose.BarCode.Cloud.Sdk.sln

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
[![Nuget](https://img.shields.io/nuget/v/Aspose.BarCode-Cloud)](https://www.nuget.org/packages/Aspose.BarCode-Cloud/)
88

99
- API version: 3.0
10-
- SDK version: 23.2.0
10+
- SDK version: 23.3.0
1111

1212
## Demo applications
1313

Tests/RecognizeTests.cs

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ public void Cleanup()
2323
{
2424
}
2525

26+
2627
[Test]
2728
public void RecognizeQrTest()
2829
{
@@ -43,5 +44,30 @@ public void RecognizeQrTest()
4344
Assert.AreEqual(DecodeBarcodeType.QR.ToString(), response.Barcodes[0].Type);
4445
Assert.AreEqual("Hello world!", response.Barcodes[0].BarcodeValue);
4546
}
47+
48+
49+
[Test]
50+
public void RecognizeWithTimeoutTest()
51+
{
52+
// Arrange
53+
using Stream image = GetTestImage("Test_PostGenerateMultiple.png");
54+
55+
// Act
56+
var apiException = Assert.Throws<ApiException>(() =>
57+
{
58+
_api.PostBarcodeRecognizeFromUrlOrContent(
59+
new PostBarcodeRecognizeFromUrlOrContentRequest(
60+
image: image,
61+
preset: PresetType.HighPerformance.ToString(),
62+
type: DecodeBarcodeType.QR.ToString(),
63+
timeout: 1
64+
)
65+
);
66+
});
67+
68+
// Assert
69+
Assert.IsNotNull(apiException);
70+
Assert.AreEqual(408, apiException.ErrorCode);
71+
}
4672
}
4773
}

docs/BarcodeApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ Name | Type | Description | Notes
9393
**rectWidth** | **int?**| Set Width of area for recognition. | [optional]
9494
**rectHeight** | **int?**| Set Height of area for recognition. | [optional]
9595
**stripFNC** | **bool?**| Value indicating whether FNC symbol strip must be done. | [optional]
96-
**timeout** | **int?**| Timeout of recognition process in milliseconds. Default value is 15_000 (15 seconds). In case of a timeout RequestTimeout (408) status will be returned. Try reducing the image size to avoid timeout. | [optional]
96+
**timeout** | **int?**| Timeout of recognition process in milliseconds. Default value is 15_000 (15 seconds). Maximum value is 60_000 (1 minute). In case of a timeout RequestTimeout (408) status will be returned. Try reducing the image size to avoid timeout. | [optional]
9797
**medianSmoothingWindowSize** | **int?**| Window size for median smoothing. Typical values are 3 or 4. Default value is 3. AllowMedianSmoothing must be set. | [optional]
9898
**allowMedianSmoothing** | **bool?**| Allows engine to enable median smoothing as additional scan. Mode helps to recognize noised barcodes. | [optional]
9999
**allowComplexBackground** | **bool?**| Allows engine to recognize color barcodes on color background as additional scan. Extremely slow mode. | [optional]
@@ -153,7 +153,7 @@ Name | Type | Description | Notes
153153
**rectWidth** | **int?**| Set Width of area for recognition. | [optional]
154154
**rectHeight** | **int?**| Set Height of area for recognition. | [optional]
155155
**stripFNC** | **bool?**| Value indicating whether FNC symbol strip must be done. | [optional]
156-
**timeout** | **int?**| Timeout of recognition process in milliseconds. Default value is 15_000 (15 seconds). In case of a timeout RequestTimeout (408) status will be returned. Try reducing the image size to avoid timeout. | [optional]
156+
**timeout** | **int?**| Timeout of recognition process in milliseconds. Default value is 15_000 (15 seconds). Maximum value is 60_000 (1 minute). In case of a timeout RequestTimeout (408) status will be returned. Try reducing the image size to avoid timeout. | [optional]
157157
**medianSmoothingWindowSize** | **int?**| Window size for median smoothing. Typical values are 3 or 4. Default value is 3. AllowMedianSmoothing must be set. | [optional]
158158
**allowMedianSmoothing** | **bool?**| Allows engine to enable median smoothing as additional scan. Mode helps to recognize noised barcodes. | [optional]
159159
**allowComplexBackground** | **bool?**| Allows engine to recognize color barcodes on color background as additional scan. Extremely slow mode. | [optional]

docs/ReaderParams.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Name | Type | Description | Notes
1313
**RectWidth** | **int?** | Set Width of area for recognition. | [optional]
1414
**RectHeight** | **int?** | Set Height of area for recognition. | [optional]
1515
**StripFNC** | **bool?** | Value indicating whether FNC symbol strip must be done. | [optional]
16-
**Timeout** | **int?** | Timeout of recognition process in milliseconds. Default value is 15_000 (15 seconds). In case of a timeout RequestTimeout (408) status will be returned. Try reducing the image size to avoid timeout. | [optional]
16+
**Timeout** | **int?** | Timeout of recognition process in milliseconds. Default value is 15_000 (15 seconds). Maximum value is 60_000 (1 minute). In case of a timeout RequestTimeout (408) status will be returned. Try reducing the image size to avoid timeout. | [optional]
1717
**MedianSmoothingWindowSize** | **int?** | Window size for median smoothing. Typical values are 3 or 4. Default value is 3. AllowMedianSmoothing must be set. | [optional]
1818
**AllowMedianSmoothing** | **bool?** | Allows engine to enable median smoothing as additional scan. Mode helps to recognize noised barcodes. | [optional]
1919
**AllowComplexBackground** | **bool?** | Allows engine to recognize color barcodes on color background as additional scan. Extremely slow mode. | [optional]

examples/GenerateQR/GenerateQR.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="Aspose.BarCode-Cloud" Version="23.2.0" />
9+
<PackageReference Include="Aspose.BarCode-Cloud" Version="23.3.0" />
1010
</ItemGroup>
1111

1212
</Project>

0 commit comments

Comments
 (0)