Skip to content

React-js: Add OCR demonstration #114

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

React-js: Add OCR demonstration #114

wants to merge 1 commit into from

Conversation

Nikituh
Copy link
Contributor

@Nikituh Nikituh commented Apr 16, 2025

No description provided.

@Nikituh Nikituh requested a review from Copilot April 16, 2025 12:05
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Comments suppressed due to low confidence (1)

react-js/src/service/ImageUtils.ts:95

  • [nitpick] The function name 'uuidV4' differs from the previously used 'uuidv4' casing; ensure consistency with the rest of the codebase if this function is used elsewhere.
private static uuidV4() {

@Nikituh Nikituh requested a review from ildar-scanbot April 22, 2025 15:04
// Scanbot SDK functions return raw pixel data. Images should be encoded it as jpegs before saving or displaying them.
const jpeg = await SBSDKService.SDK.imageToJpeg(cropped);
console.log("Done processing image: ", jpeg);

const engine = await SBSDKService.SDK.createOcrEngine();
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think we need to add the OCR here as it will delay the process for no reason in the "default" use case. We better extract it to a separate button or so.

@ildar-scanbot ildar-scanbot requested a review from eddyfrank April 28, 2025 08:39
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