Open syt06162 opened 3 months ago
In line 79, // 画出连线 (Draw the lines connecting the poses) parts, I think for statement should be changed :
for (size_t i = 0; i < poses.size(); i++) to for (size_t i = 0; i < poses.size() - 1 ; i++)
for (size_t i = 0; i < poses.size(); i++)
for (size_t i = 0; i < poses.size() - 1 ; i++)
because auto p1 = poses[i], p2 = poses[i + 1]; can cause the error vector subscript out of range. (in other OS, compilers..)
auto p1 = poses[i], p2 = poses[i + 1];
vector subscript out of range
In line 79, // 画出连线 (Draw the lines connecting the poses) parts, I think for statement should be changed :
for (size_t i = 0; i < poses.size(); i++)
tofor (size_t i = 0; i < poses.size() - 1 ; i++)
because
auto p1 = poses[i], p2 = poses[i + 1];
can cause the errorvector subscript out of range
. (in other OS, compilers..)