tomassosorio / OCR_tablenet

TableNet Implementation on Pytorch
144 stars 45 forks source link

How I can get the coordinates of the cells #10

Closed z-pc closed 3 years ago

z-pc commented 3 years ago

Thanks for your perfect works. I need get the bounding box of the cells. Do you have any ideas for this?

tomassosorio commented 3 years ago

Hi @z-pc,

Could you please explain a bit better what you pretend?

HungVS commented 1 year ago

Hello, thanks for your great work. @tomassosorio I face the same issue with @z-pc

I can not understand the output of predict.py. For example, from the output of the default image, how can I interpret it into table structure (or bounding box/coordinates of cells like @z-pc mentioned)

[           0           1          2          3              4           5
0   Wellname  ‘Toss (ft)  LOT (psi)  ‘Sv (psi)  ‘Sv-LOT (psi)  Normalized
1      117-4        4265       2785       2871            116      LoTisv
2      117-4         631       4465       4782            216        0.96
3      117-4        7615       5690       5045            246        0.94
4      117-4        9528       7439         m2            333        0.96
5        172         414       2042        089            247        0.96
6        172         821       4684       sigt            505        0.92
7        172                   6361       6815            464        0.90
8        172        8550      10368      10150            218        0.93
9     Popeye       11982       aria       2828            247        1.02
10   Average        4491       4742       4901             16        0.95
11     161-4        6778       6075       7105            159        0.96
12     161-4                   2639       2784            130        0.97
13     161-4        9154        27a       2857            145        0.98
14     205-2        4442       5989       6105             16        0.95
15     205-2        4518       6685       6786             16        0.96
16     205-2        8091       6670       eats            401        0.98
17     205-2        9812       2087       3103            145        0.99
18     205-2        8845       3085        161             16        0.98
19    205-42        4806       4597       arta             16        0.96
20   205.414        4862       4713       4829             16        0.96
21    205.14        6588          

                                                         16        0.97
22   205.414                    NaN        NaN            131        0.98
23   Genesis        6703        NaN        NaN              
                                                                    0.97
24   Average           
                               NaN        NaN            NaN           

25         
                    NaN        NaN        NaN            NaN         NaN]

Thanks.