fix: enchance error

This commit is contained in:
2025-10-01 21:28:30 +03:00
parent 4d3e0d0e59
commit 7610fc6f50
2 changed files with 4 additions and 4 deletions

View File

@@ -27,7 +27,7 @@ class PilotCommand:
self.stop = stop
self.velocity = velocity
MOVE_KOF: float = 0.8274
MOVE_KOF: float = 1 / 1.2
class AutoPilot(Pilot):
@@ -141,8 +141,8 @@ class AutoPilot(Pilot):
Точки уже отцентрированы относительно центра изображения
"""
# Используем RANSAC для оценки матрицы гомографии
H, mask = cv2.findHomography(src_pts, dst_pts, cv2.RANSAC, 5.0)
RH, rmask = cv2.findHomography(dst_pts, src_pts, cv2.RANSAC, 5.0)
H, mask = cv2.findHomography(src_pts, dst_pts, cv2.RANSAC, 1.0)
RH, rmask = cv2.findHomography(dst_pts, src_pts, cv2.RANSAC, 1.0)
if H is None:
return None