OpenCV, C++: Distance between two points

前端 未结 4 1737
旧时难觅i
旧时难觅i 2020-12-23 23:02

For a group project, we are attempting to make a game, where functions are executed whenever a player forms a set of specific hand gestures in front of a camera. To process

4条回答
  •  一整个雨季
    2020-12-23 23:21

    You should try this

    cv::Point a(1, 3);
    cv::Point b(5, 6);
    double res = cv::norm(a-b);//Euclidian distance
    

提交回复
热议问题