Closed xingmche closed 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
测试了一下,当外部点水平穿过多边形顶点时,两种写法都有不同的问题。
根据代码参考的出处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