liuheng92 / tensorflow_PSENet

This is a tensorflow re-implementation of PSENet: Shape Robust Text Detection with Progressive Scale Expansion Network.My blog:

Home Page:https://blog.csdn.net/liuxiaoheng1992/article/details/87646951

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The variable is_edge does not change in previous loop in file pse.cpp

minizon opened this issue · comments

bool is_edge = true;
for (int idx=0; idx<4; idx++)
{
int index_y = y + dy[idx];
int index_x = x + dx[idx];
if (index_y<0 || index_y>=h || index_x<0 || index_x>=w)
continue;
if (!p_Sn[index_y*w+index_x] || res[index_y][index_x]>0)
continue;
q.push(std::make_tuple(index_y, index_x, l));
res[index_y][index_x]=l;
}
if (is_edge){

@minizon thanks for your remind, it's already fixed