title: Aruco Marker detect a single marker
body: <p>I have a program for aruco markers to detect, I would like to use 1 marker his pose for a calculation from a camera image with multiple aruco IDs.</p>
  
  <p>I have a board with aruco id 256, 257, 258 The problem is that when aruco id 256 is seen it will calculate all aruco tags in the image and not only the aruco id 256. </p>
  
  <p>Is there a solution to this problem, below my code.</p>
  
  <p>************** code ****************</p>
  
  <pre><code>    // if marker detected = ID 256
  for(int i = 0;i &lt; ids.size();i++){
  std::cout &lt;&lt; "aruco ID: " &lt;&lt; ids[i] &lt;&lt; std::endl; //print de marker ID die we gevonden hebben
      if (ids[i]==256) // als de gedetecteerde marker gelijk is aan de gewenste marker 
      {
      std::cout &lt;&lt; "aruco marker grootte in meters: " &lt;&lt; actual_marker_length &lt;&lt; std::endl;   
          cv::aruco::drawDetectedMarkers(image_copy, corners, ids); 
          std::vector&lt;cv::Vec3d&gt; rvecs, tvecs;
          cv::aruco::estimatePoseSingleMarkers(corners, actual_marker_length,
                  camera_matrix, dist_coeffs, rvecs, tvecs);
  
          cv::aruco::drawAxis(image_copy, camera_matrix, dist_coeffs,
                  rvecs[i], tvecs[i], 0.1);
  
          vector_to_marker.str(std::string());
          vector_to_marker &lt;&lt; std::setprecision(4) 
                           &lt;&lt; "x: " &lt;&lt; std::setw(8)&lt;&lt;  tvecs[0](0);
          std::cout &lt;&lt; "x: " &lt;&lt; tvecs[0](0) &lt;&lt; std::endl;
  
          cv::putText(image_copy, vector_to_marker.str(), 
                  cvPoint(10, 30), cv::FONT_HERSHEY_SIMPLEX, 0.6, 
                  cvScalar(0, 252, 124), 1, CV_AA);
  
          vector_to_marker.str(std::string());
          vector_to_marker &lt;&lt; std::setprecision(4) 
                           &lt;&lt; "y: " &lt;&lt; std::setw(8) &lt;&lt; tvecs[0](1);
          std::cout &lt;&lt; "y: " &lt;&lt; tvecs[0](1) &lt;&lt; std::endl;
  
          cv::putText(image_copy, vector_to_marker.str(), 
                  cvPoint(10, 50), cv::FONT_HERSHEY_SIMPLEX, 0.6, 
                  cvScalar(0, 252, 124), 1, CV_AA);
  
      vector_to_marker.str(std::string());
      vector_to_marker &lt;&lt; std::setprecision(4) 
      &lt;&lt; "z: " &lt;&lt; std::setw(8) &lt;&lt; tvecs[0](2);
  
          berekenZ(ArucoMarker, tvecs[0](2));
  
      cv::putText(image_copy, vector_to_marker.str(), 
          cvPoint(10, 70), cv::FONT_HERSHEY_SIMPLEX, 0.6, 
          cvScalar(0, 252, 124), 1, CV_AA);
  
  berekeningenIrLock(tvecs[0](0), tvecs[0](1), tvecs[0](2));
  
  
      }
  </code></pre>