Samagra-Development / ai-tools

AI Tooling to bootstrap applications fast
44 stars 110 forks source link

Implement Interactive PDF Viewer with Selectable Bounding Boxes and Metadata Output #301

Open Gautam-Rajeev opened 8 months ago

Gautam-Rajeev commented 8 months ago

Goal:

Create an interactive PDF viewer that allows users to view the PDF and its parsed text side by side, interact with selectable bounding boxes on the PDF, and obtain JSON outputs for selected PDF elements (e.g., table, header, footer, heading) along with required metadata.

Description

Develop a feature that enhances the user's ability to interact with PDF documents by:

An example of the desired functionality can be viewed in the video provided here.

Implementation Details

The implementation should cover the following aspects:

This project is open for anyone to start. Initially, no specific assignees. Questions and solutions can be discussed in the comments. The ticket will be assigned based on contributions and the quality of the pull request.

Product Name

pdfparsing

Organization Name

ai-tools

Domain

document parsing

Tech Skills Needed

Category

Enhancement

Feature

Interactive PDF Viewer

Mentor(s)

@ChakshuGautam

Complexity

Medium

Azazel0203 commented 7 months ago

Hello @GautamR-Samagra,

I'm Aadarsh, an ECE undergrad at IIT Varanasi. This project seems really interesting and aligns perfectly with my passion for machine learning.

I have compiled the output of the notebook into a PDF document for your convenience. You can download and review it from the following link: Output PDF.

To provide you with a visual insight into the project, I have also included some images of the output. You can view them here: 1 image 2 image

I'm intrigued by your project's potential and would love to contribute my skills. Could you guide me on how to get started with contributing to this project?

Looking forward to the opportunity. Thanks!

Gautam-Rajeev commented 7 months ago

Hi, this looks very promising. Can you integrate with a ocr tool/ PymuPDF so that you also get a json with the actual text on the right tab and whatever you have on the right tab is the left tab

Azazel0203 commented 7 months ago

Sir i am getting the texts as well...i just haven't shown it in the output pdf

Thankyou

On Fri, 19 Apr, 2024, 9:55 am Gautam, @.***> wrote:

Hi, this looks very promising. Can you integrate with a ocr tool/ PymuPDF so that you also get a json with the actual text on the right tab and whatever you have on the right tab is the left tab

— Reply to this email directly, view it on GitHub https://github.com/Samagra-Development/ai-tools/issues/301#issuecomment-2065732917, or unsubscribe https://github.com/notifications/unsubscribe-auth/BBGMFX5USAAHCWFBX3SNI3DY6CMCXAVCNFSM6AAAAABFKSNEUKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRVG4ZTEOJRG4 . You are receiving this because you commented.Message ID: @.***>

Gautam-Rajeev commented 7 months ago

Sir i am getting the texts as well...i just haven't shown it in the output pdf Thankyou On Fri, 19 Apr, 2024, 9:55 am Gautam, @.> wrote: Hi, this looks very promising. Can you integrate with a ocr tool/ PymuPDF so that you also get a json with the actual text on the right tab and whatever you have on the right tab is the left tab — Reply to this email directly, view it on GitHub <#301 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/BBGMFX5USAAHCWFBX3SNI3DY6CMCXAVCNFSM6AAAAABFKSNEUKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRVG4ZTEOJRG4 . You are receiving this because you commented.Message ID: @.>

That's great, can you create a repo for it and share that, will assign this ticket to you

Azazel0203 commented 7 months ago

I've developed a repository that incorporates functionality for extracting text and implementing bounding boxes in PDF files. The backend processes for bounding box placement and text extraction are fully implemented and functional.

While the basic frontend tasks have been completed, such as establishing the frontend structure, more complex functionalities remain to be implemented.

You can find the repository here.

Thankyou