Skip to content
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

[WebComponents] Enh document capture margins #292

Merged
merged 18 commits into from
Aug 13, 2024

Conversation

ayinloya
Copy link
Collaborator

@ayinloya ayinloya commented Jul 18, 2024

This improves the capture of documents by adding extra margins to the submitted image.

https://app.shortcut.com/smileid/story/13030/add-extra-margins-when-capturing-documents-to-prevent-overcropping-on-web-component

Testing

Example App

The Example App can be used to test out changes made locally to the embed and it's dependencies.
To start testing locally with the embed

  • Copy the Sample env to example/.env in the example app and provide the relevant values

  • Build and start the embed server (it should be running on port 8000)

     cd packages/embed
     npm install
     npm build
     npm start
  • Start the example app

     cd example
     npm install
     npm start
     npm run dev

@ayinloya ayinloya self-assigned this Jul 18, 2024
Copy link

This branch has been deployed to s3 / cloudfront.

✅ Preview URL for Smart Camera Web:
https://cdn.smileidentity.com/js/preview-enh-document-capture-margins/smart-camera-web.js
✅ Preview URL for Embed:
https://cdn.smileidentity.com/inline/preview-enh-document-capture-margins/js/script.min.js

@ayinloya ayinloya changed the title Enh document capture margins [WebComponents] Enh document capture margins Jul 24, 2024
@ayinloya ayinloya marked this pull request as ready for review July 24, 2024 12:38
Copy link

This branch has been deployed to s3 / cloudfront.

✅ Preview URL for Smart Camera Web:
https://cdn.smileidentity.com/js/preview-enh-document-capture-margins/smart-camera-web.js
✅ Preview URL for Embed:
https://cdn.smileidentity.com/inline/preview-enh-document-capture-margins/js/script.min.js

Copy link
Contributor

@beastawakens beastawakens left a comment

Choose a reason for hiding this comment

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

LGTM

@ayinloya ayinloya merged commit 2f28e9b into main Aug 13, 2024
10 checks passed
@ayinloya ayinloya deleted the enh-document-capture-margins branch August 13, 2024 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants