wenwenyu / PICK-pytorch

Code for the paper "PICK: Processing Key Information Extraction from Documents using Improved Graph Learning-Convolutional Networks" (ICPR 2020)
https://arxiv.org/abs/2004.07464
MIT License
553 stars 191 forks source link

Extract Bounding Box of identified text #115

Open sabyasachi-basu-i opened 2 years ago

sabyasachi-basu-i commented 2 years ago

Dear Team,

This is a brilliant work on form data extraction. I was working on a custom model on top of this research. However, I ma stuck at one point. I want to extract the bounding box of the recognized entity. While I am able to retrieve the entity o/p I'm confused where are we storing the bounding box of the recognized entity in runtime memory (if we are doing that at all)

I could not find any exactly relevant issue thread answering my question. PFB the o/p of my code.

[note] spans/rangeTemp is giving me a tuple, but I'm looking for the complete bounding box x1 through y4. image