Files
gps-denied-desktop/components/global_place_recognition/global_place_recognition.py
T
Oleksandr Bezdieniezhnykh abc26d5c20 initial structure implemented
docs -> _docs
2025-12-01 14:20:56 +02:00

40 lines
1.1 KiB
Python

import numpy as np
from .base import GlobalPlaceRecognitionBase
from models.core import GPSPoint
from models.satellite import TileCandidate
from models.processing import AlignmentResult
class GlobalPlaceRecognition(GlobalPlaceRecognitionBase):
async def extract_global_descriptor(self, image: np.ndarray) -> np.ndarray:
raise NotImplementedError
async def search_candidates(
self,
descriptor: np.ndarray,
search_center: GPSPoint,
search_radius: float,
top_k: int = 10,
) -> list[TileCandidate]:
raise NotImplementedError
async def verify_candidate(
self, uav_image: np.ndarray, satellite_image: np.ndarray
) -> AlignmentResult:
raise NotImplementedError
async def index_tile(
self, tile_image: np.ndarray, tile_id: str, gps_center: GPSPoint
) -> bool:
raise NotImplementedError
async def build_index_for_area(
self, nw: GPSPoint, se: GPSPoint, zoom: int
) -> int:
raise NotImplementedError
async def get_indexed_tile_count(self) -> int:
raise NotImplementedError