enpeizhao / CVprojects

computer vision projects | 计算机视觉相关好玩的AI项目(Python、C++、embedded system)
2.23k stars 676 forks source link

bug:射线法 #29

Closed xingmche closed 1 year ago

xingmche commented 1 year ago

根据代码参考的出处https://www.geeksforgeeks.org/check-if-two-given-line-segments-intersect/, 似乎这一行应该改为return true; https://github.com/enpeizhao/CVprojects/blob/db977a0f622f90245182447351a525f13c92a649/cpp_projs/2.deepstream_detect_track/task/border_cross.cpp#L39

xingmche commented 1 year ago

测试了一下,当外部点水平穿过多边形顶点时,两种写法都有不同的问题。