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

✨ add support for multi-receipt extraction #240

Merged
merged 13 commits into from
Jun 12, 2024

Conversation

sebastianMindee
Copy link
Collaborator

@sebastianMindee sebastianMindee commented Jun 10, 2024

Description

  • ✨ add support for multi-receipts extraction & enqueueing
  • ✨ add support for image operations & associated namespace
  • ♻️ add PIL dependency to support image operations

Related Issue

How Has This Been Tested

Types of changes

  • Docs change / refactoring / dependency upgrade
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Requires a change to the official Guide documentation.

@ianardee ianardee self-requested a review June 10, 2024 13:21
@sebastianMindee sebastianMindee marked this pull request as ready for review June 10, 2024 13:49
Comment on lines 37 to 42
for receipt_id, receipt in enumerate(receipts):
buffer = io.BytesIO()
receipt.save(buffer, format="JPEG")
buffer.seek(0)
bytes_input = BytesInput(buffer.read(), input_source.filename)
extracted_receipts.append(ExtractedImage(bytes_input, page_id, receipt_id))
Copy link
Contributor

Choose a reason for hiding this comment

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

just append to extracted_receipts, no?

@sebastianMindee sebastianMindee merged commit d5a1336 into main Jun 12, 2024
22 checks passed
@sebastianMindee sebastianMindee deleted the add-image-extraction branch June 12, 2024 14:58
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.

2 participants