0

背景差分画像からキーポイントを抽出できますか? 最初に背景を差し引いてビデオからキーポイントを抽出していますが、実行時エラーが表示されます

    if (! previous_frame.empty())  {
       subtract(current_frame, previous_frame, predict_img);
       detector.detect(predict_img, keypoint2);
       if (keypoint2.size > 20) // Error
   {
       RetainBestKeypoints(keypoint2, 20);
   }
   else 
   {
       //Want to ignore the frame , but how ?
   }

エラーはコードに記載されています。

4

1 に答える 1