fix: enchance error
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user