Skip to content

[SBC-4238] Windows Example - #28

Open
stedra-apryse wants to merge 31 commits into
mainfrom
sd/windows
Open

[SBC-4238] Windows Example#28
stedra-apryse wants to merge 31 commits into
mainfrom
sd/windows

Conversation

@stedra-apryse

Copy link
Copy Markdown

No description provided.

@stedra-apryse stedra-apryse changed the title Windows Example [SBC-4238] Windows Example Jun 10, 2026
Comment thread examples/c/cmake/FindScanbotSDK.cmake
Comment thread examples/c/CMakeLists.txt Outdated
Comment thread examples/c/CMakeLists.txt
fprintf(stdout, " %zu) %s\n", i + 1, text);
scanbotsdk_barcode_item_get_text(barcodes[i], &text_ref);
const char *text = scanbotsdk_u8string_ref_assume_cstring(text_ref);
fprintf(stdout, " %zu) %s\n", i + 1, text ? text : "");

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I think nullptr is impossible here, was text ever null in your tests?

System.out.println("Detected points: " + detectionResult.getPoints().size());

try (ImageRef cropped = processor.crop(image, detectionResult.getPointsNormalized())) {
try (ImageRef cropped = processor.crop(image, detectionResult.getPointsNormalized(), null)) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Doesn't it fail here? You should pass valid value of the enum here, not null

"nvvidconv flip-method=0 ! "
"video/x-raw, format=(string)BGRx ! "
"videoconvert ! video/x-raw, format=(string)BGR ! appsink drop=1"
"videoconvert ! "

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Are all the changes in this file needed because of windows? Have you checked that linux and jetson still work?


scanbotsdk_document_straightening_result_t *result = NULL;
scanbotsdk_document_straightening_parameters_t *straightening_params = NULL;
scanbotsdk_document_straightener_t *straightener = NULL;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

File should be renamed as well. Same for other platforms

Comment thread examples/python/README.md
python main.py scan <subcommand> --file <path/to/file.jpg> [--license <KEY>]
python main.py analyze <subcommand> --file <path/to/file.jpg> [--save <out.jpg>] [--license <KEY>]
python main.py classify <subcommand> --file|--resource <path/to/file.jpg> [--license <KEY>]
python main.py enhance <subcommand> --file <path/to/file.jpg> [--license <KEY>]

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Probably straighten, same on other platforms

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.

5 participants