Skip to content

Conversation

yurii-scanbot
Copy link
Collaborator

No description provided.

@yurii-scanbot yurii-scanbot changed the title Prepare for stable RC Prepare/restructure for stable RC Aug 18, 2025
@yurii-scanbot yurii-scanbot changed the title Prepare/restructure for stable RC [EPIC-6378] Prepare/restructure for stable RC Aug 26, 2025
@yurii-scanbot yurii-scanbot marked this pull request as ready for review September 3, 2025 11:15

## Setup

1. Go to [GitHub Releases](https://github.com/doo/scanbot-sdk-example-linux/releases)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no need to manually install addon. The customer should only install corresponding mpm package. The addon will be downloaded and installed automatically

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated within npm install

"typescript": "^5.9.2"
},
"dependencies": {
"scanbotsdk": "file:scanbotsdk-20.0.16.tgz"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we specify url to the npm package here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@@ -0,0 +1,20 @@
{
"name": "nodejs",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably something like scanbotsdk_nodejs_example (not sure about case convention here)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

renamed

}

private static printResult(page: ScanbotSDK.Page): void {
if (page.blocks) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need for these ifs I believe

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

condition removed

export class TextPatternScannerSnippet {
public static async run(image: ScanbotSDK.ImageRef): Promise<void> {
const config = new ScanbotSDK.TextPatternScannerConfiguration();
config.minimumNumberOfRequiredFramesWithEqualScanningResult = 2;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't be 1?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated to 1

filePath: string
): Promise<ScanbotSDK.PageExtractionResult> {
return await ScanbotSDK.autorelease(async () => {
const source = await ScanbotSDK.RandomAccessSource.fromPath(filePath);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

await using source =

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

replaced with await using

): Promise<ScanbotSDK.PageExtractionResult> {
return await ScanbotSDK.autorelease(async () => {
const source = await ScanbotSDK.RandomAccessSource.fromPath(filePath);
const extractor = await ScanbotSDK.MultiPageImageExtractor.create();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

await using extractor = ... autorelease pool works only for images

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

replaced with await using

* Install the Scanbot SDK package
### 4. Download and install the Scanbot SDK
1. Go to [GitHub Releases](https://github.com/doo/scanbot-sdk-example-linux/releases)
2. Manually download the **Python package** for your platform (ARM64 or x86_64).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pip supports install from url, no need to manually download wheels

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated withing pip install usage


### ⚡ Performance notes (Jetson)
To avoid throttling, set max GPU/CPU/memory clocks:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need this note for all the wrappers which support live mode, i.e. for c as well

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated c wrapper readme with this part


### Setup
1. Go to [GitHub Releases](https://github.com/doo/scanbot-sdk-example-linux/releases)
2. Manually download the **Jar package** for your platform (ARM64 or x86_64).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why should it be manually downloaded? In the previous example it was automatically downloaded bu gradle

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated build.gradle

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants