EAST icon indicating copy to clipboard operation
EAST copied to clipboard

error:flag = is_cross_text([start_w, start_h], length, new_vertices[labels==1,:]) IndexError: too many indices for array

Open pycoco opened this issue 5 years ago • 6 comments

pycoco avatar Nov 04 '19 17:11 pycoco

hi , Does your question solved? I had the same problem.

Gyann-z avatar Apr 14 '20 12:04 Gyann-z

Sry for the late reply. More information would be helpful if you still need help...

SakuraRiven avatar Jun 24 '20 11:06 SakuraRiven

Does your question solved? I had the same problem.

dagonglu avatar Sep 07 '20 06:09 dagonglu

Maybe check cross_text is not convenient and simply ignoring the boundary text is also ok.

SakuraRiven avatar Sep 07 '20 08:09 SakuraRiven

Yes, the problem lies in the data marked on the edge

dagonglu avatar Sep 08 '20 03:09 dagonglu

Finally solved this issue. The problem occurs, when there are images in your gt that contain zero bounding boxes. So the shape of vertices becomes one dimensional which was supposed to be (total_vertices, 8). Replace this line in dataset.py: new_vertices = np.zeros(vertices.shape) with new_vertices = np.zeros((vertices.shape[0], 8))

ZdsAlpha avatar Dec 30 '20 15:12 ZdsAlpha