s6.app.utils.aruco_detector¶
- s6.app.utils.aruco_detector.my_estimatePoseSingleMarkers(corners, marker_size, mtx, distortion)
- This will estimate the rvec and tvec for each of the marker corners detected by:
corners, ids, rejectedImgPoints = detector.detectMarkers(image)
corners - is an array of detected corners for each detected marker in the image marker_size - is the size of the detected markers mtx - is the camera matrix distortion - is the camera distortion matrix RETURN list of rvecs, tvecs, and trash (so that it corresponds to the old estimatePoseSingleMarkers())
- s6.app.utils.aruco_detector.draw_axis(img, camera_matrix, dist_coeffs, rvec, tvec, length)
Draw 3D axis on the image for the given pose, with the origin at the marker’s top-left corner. X axis is drawn in red, Y axis in green, and Z axis in blue.
- s6.app.utils.aruco_detector.main()