HsiehYiChia / Scene-text-recognition

Scene text detection and recognition based on Extremal Region(ER)
MIT License
165 stars 55 forks source link

I am using visual studio 2015 enterprice and getting error (Errpr : "node" is ambigious")? #1

Closed arsalan993 closed 4 years ago

arsalan993 commented 7 years ago

Debugger takes me to ER.h struct Node { Node(ER v, const int i) : vertex(v), index(i){}; ER vertex; int index; vector adj_list; vector edge_prob; };

typedef vector < Node > Graph;

In Type def vector < Node > Graph , Node is ambiguous

HsiehYiChia commented 7 years ago

Hi Arsalan,

The definition of Graph should be typedef vector Graph; It seems that your code could be wrong, it should be compilable after you git clone and config some environment variables.

[image: 內置圖片 1]

Best regards, Yichia

2017-11-22 19:04 GMT+08:00 Arsalan Ahmed notifications@github.com:

Debugger takes me to ER.h "`struct Node { Node(ER v, const int i) : vertex(v), index(i){}; ER vertex; int index; vector adj_list; vector edge_prob; };

typedef vector Graph;`

In Type def vectorGraph , Node is ambiguous

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/HsiehYiChia/Scene-text-recognition/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/AMz_sYS-bLAuhAUV5Ixtaj9el9ohvsWKks5s4__KgaJpZM4QnORc .

arsalan993 commented 7 years ago

Sir, I just edited my first comment actually i didnt cause any changes to your code , it gitclone as it is .. linked OpenCV to it and when i run it i get 8 errors and all 8 errors are related to This "Node" struct. Type def is one of them .. where ever in code you call "Node" i get this error.. So over all 8 errors because of Node

arsalan993 commented 7 years ago

can u upload .exe file

arsalan993 commented 7 years ago

Who ever get this error just Change the word "Node" to "Node1" , because Word "Node" is clashing with pre-existing "Node"