Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计提醒

netryx-street-level-geolocationnetryx 街道级地理定位

Agent Skill

netryx-street-level-geolocation 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

941

周安装

40

GitHub Stars

39

下载量

330
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:netryx-street-level-geolocation(netryx 街道级地理定位)
来源仓库:https://github.com/aradotso/trending-skills
仓库路径:skills/netryx-street-level-geolocation
安装命令:
npx skills add https://github.com/aradotso/trending-skills --skill netryx-street-level-geolocation
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/aradotso/trending-skills --skill netryx-street-level-geolocation

简介

netryx-street-level-geolocation 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中快速定位候选结果。

  • 适用于根据关键词、任务场景或来源线索进行信息检索与筛选的场景。
  • 通过 npx skills add 命令从 GitHub 仓库安装并使用该技能。
  • 安装前需确认权限范围、维护状态,以及是否会触发联网或文件操作。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Netryx Street-Level Geolocation

Skill by ara.so — Daily 2026 Skills collection.

Netryx is a locally-hosted open-source geolocation engine that takes any street-level photo and returns precise GPS coordinates (sub-50m accuracy). It works by indexing crawled Street View panoramas as 512-dim CosPlace fingerprints, then matching a query image through a three-stage pipeline: global retrieval → local geometric verification → spatial refinement. No landmarks or internet image presence required.


Installation

git clone https://github.com/sparkyniner/Netryx-OpenSource-Next-Gen-Street-Level-Geolocation.git
cd Netryx-OpenSource-Next-Gen-Street-Level-Geolocation

python3 -m venv venv
source venv/bin/activate        # Windows: venv\Scripts\activate

pip install -r requirements.txt
pip install git+https://github.com/cvg/LightGlue.git   # required
pip install kornia                                       # optional: Ultra Mode (LoFTR)

macOS tkinter fix (blank GUI):

brew install python-tk@3.11    # match your Python version

Optional — Gemini API for AI Coarse mode:

export GEMINI_API_KEY="your_key_here"

Hardware Requirements

ComponentMinimumRecommended
GPU VRAM4 GB8 GB+
RAM8 GB16 GB+
Storage10 GB50 GB+
Python3.9+3.10+

GPU backends auto-selected: CUDA (NVIDIA) → MPS (Apple Silicon) → CPU fallback.


Launch the GUI

python test_super.py

The GUI is the primary interface. All indexing, searching, and result visualization runs from here.


Project Structure

netryx/
├── test_super.py          # Main GUI app — indexing + search
├── cosplace_utils.py      # CosPlace model loading + descriptor extraction
├── build_index.py         # Standalone index builder for large datasets
├── requirements.txt
├── cosplace_parts/        # Raw embedding chunks (.npz, created during indexing)
└── index/
    ├── cosplace_descriptors.npy   # All 512-dim descriptors
    └── metadata.npz               # Lat/lon, headings, panorama IDs

Core Workflow

Step 1 — Create an Index

Index a geographic area by crawling Street View panoramas and extracting CosPlace descriptors.

Via GUI:

  1. Select Create mode
  2. Enter center lat, lon of the area
  3. Set radius (km) and grid resolution (default 300 — don't change)
  4. Click Create Index

Indexing time estimates:

Radius~PanoramasTime (M2 Max)Index size
0.5 km~50030 min~60 MB
1 km~2,0001–2 hr~250 MB
5 km~30,0008–12 hr~3 GB
10 km~100,00024–48 hr~7 GB

The index saves incrementally — safe to interrupt and resume.

All cities go into one unified index. Radius filtering at search time handles city separation automatically.

Step 2 — Search

Via GUI:

  1. Select Search mode
  2. Upload any street-level photo
  3. Choose search method:

- Manual: provide approximate center lat, lon + radius - AI Coarse: Gemini infers region from visual cues (requires GEMINI_API_KEY)

  1. Click Run SearchStart Full Search
  2. Result: GPS pin on map + confidence score

Enable Ultra Mode checkbox for difficult images (night, blur, low texture). Adds LoFTR dense matching, descriptor hopping, and ±100m neighborhood expansion. Slower but more robust.


Pipeline Internals

Stage 1 — Global Retrieval (CosPlace)

# cosplace_utils.py pattern
from cosplace_utils import get_cosplace_model, get_descriptor

model = get_cosplace_model(device="cuda")  # or "mps" / "cpu"

# Extract 512-dim descriptor from a PIL image
descriptor = get_descriptor(model, pil_image, device="cuda")

# Also extracts from horizontally-flipped version for reversed perspectives
descriptor_flipped = get_descriptor(model, pil_image.transpose(Image.FLIP_LEFT_RIGHT), device="cuda")

Index search is a single cosine similarity matrix multiply + haversine radius filter → top 500–1000 candidates in <1 second.

Stage 2 — Geometric Verification (ALIKED/DISK + LightGlue)

# Pseudo-code reflecting internal pipeline
from lightglue import LightGlue, ALIKED, DISK
from lightglue.utils import load_image, rbd

# Device-aware extractor selection
if device == "cuda":
    extractor = ALIKED(max_num_keypoints=1024).eval().to(device)
else:
    extractor = DISK(max_num_keypoints=768).eval().to(device)

matcher = LightGlue(features="aliked").eval().to(device)   # or "disk"

# For each candidate: download panorama, crop at 3 FOVs (70°, 90°, 110°)
for fov in [70, 90, 110]:
    candidate_crop = get_rectilinear_crop(panorama, heading, fov)

    feats0 = extractor.extract(query_tensor)
    feats1 = extractor.extract(candidate_tensor)
    matches = matcher({"image0": feats0, "image1": feats1})

    # RANSAC filters to geometrically consistent inliers
    inliers = ransac_filter(matches)

300–500 candidates processed in 2–5 minutes depending on hardware.

Stage 3 — Refinement

# Heading refinement: test ±45° at 15° steps for top 15 candidates
for heading_offset in range(-45, 46, 15):
    refined_crop = get_rectilinear_crop(panorama, base_heading + heading_offset, fov)
    # re-run LightGlue, track best inlier count

# Spatial consensus: cluster matches into 50m cells
# Prefer clusters over isolated high-inlier outliers

# Confidence score based on:
#   - geographic clustering of top matches
#   - uniqueness ratio (best vs. runner-up at different location)

Building a Large Index Programmatically

Use build_index.py for large areas outside the GUI:

python build_index.py \
  --lat 48.8566 \
  --lon 2.3522 \
  --radius 5.0 \
  --resolution 300 \
  --device cuda

This writes chunks to cosplace_parts/ and auto-builds the compiled index at index/cosplace_descriptors.npy + index/metadata.npz.


Using the Index Programmatically

import numpy as np
from math import radians, sin, cos, sqrt, atan2

# Load compiled index
descriptors = np.load("index/cosplace_descriptors.npy")   # shape: (N, 512)
meta = np.load("index/metadata.npz", allow_pickle=True)
lats = meta["lats"]       # shape: (N,)
lons = meta["lons"]       # shape: (N,)
headings = meta["headings"]
panoids = meta["panoids"]

def haversine_km(lat1, lon1, lat2, lon2):
    R = 6371.0
    dlat = radians(lat2 - lat1)
    dlon = radians(lon2 - lon1)
    a = sin(dlat/2)**2 + cos(radians(lat1))*cos(radians(lat2))*sin(dlon/2)**2
    return R * 2 * atan2(sqrt(a), sqrt(1 - a))

def search_index(query_descriptor, center_lat, center_lon, radius_km, top_k=500):
    """
    Returns indices of top_k candidates within radius sorted by cosine similarity.
    query_descriptor: np.ndarray shape (512,), already L2-normalized
    """
    # Radius filter
    distances = np.array([
        haversine_km(center_lat, center_lon, lats[i], lons[i])
        for i in range(len(lats))
    ])
    mask = distances <= radius_km

    # Cosine similarity (descriptors assumed normalized)
    sims = descriptors[mask] @ query_descriptor

    # Get top_k
    masked_indices = np.where(mask)[0]
    top_local = np.argsort(sims)[::-1][:top_k]
    top_global = masked_indices[top_local]

    return [
        {
            "index": int(top_global[i]),
            "similarity": float(sims[top_local[i]]),
            "lat": float(lats[top_global[i]]),
            "lon": float(lons[top_global[i]]),
            "heading": float(headings[top_global[i]]),
            "panoid": str(panoids[top_global[i]]),
        }
        for i in range(len(top_global))
    ]

# Example usage
from cosplace_utils import get_cosplace_model, get_descriptor
from PIL import Image

model = get_cosplace_model(device="cuda")
img = Image.open("query.jpg")
desc = get_descriptor(model, img, device="cuda")          # (512,) normalized
desc_flip = get_descriptor(model, img.transpose(Image.FLIP_LEFT_RIGHT), device="cuda")

# Average normal + flipped descriptor
combined = (desc + desc_flip) / 2
combined /= np.linalg.norm(combined)

candidates = search_index(combined, center_lat=48.8566, center_lon=2.3522, radius_km=2.0)
print(f"Top candidate: {candidates[0]}")

Common Patterns

Pattern: Geolocate with Known Approximate Region

# 1. Index the region first (run once)
# python test_super.py → Create mode → lat/lon/radius → Create Index

# 2. Search with known region
# GUI: Search mode → Manual → enter approximate center + radius
# Result: GPS coordinates + confidence score shown on map

Pattern: Geolocate with No Prior Knowledge (AI Coarse)

export GEMINI_API_KEY=$GEMINI_API_KEY   # set from environment, never hardcode

# GUI: Search mode → AI Coarse → upload photo → Run Search
# Gemini analyzes visual cues (signs, architecture, vegetation) → infers region
# Pipeline then runs normally within that region

Pattern: Ultra Mode for Difficult Images

Enable in GUI, or note that it activates:

  1. LoFTR dense matching (no keypoint detection needed — handles blur/night)
  2. Descriptor hopping — re-indexes using the matched panorama's clean descriptor
  3. Neighborhood expansion — searches all panoramas within 100m of best match

Use Ultra Mode when standard search returns confidence < 50 inliers or obviously wrong location.

Pattern: Multi-City Index

# Index Paris
# GUI: Create → lat=48.8566, lon=2.3522, radius=5km

# Index London (same index, just run again with different coords)
# GUI: Create → lat=51.5074, lon=-0.1278, radius=5km

# Search is automatically scoped by center+radius at query time
# No city selection needed

Troubleshooting

GUI appears blank on macOS

brew install python-tk@3.11   # match your exact Python version

CUDA out of memory

  • Reduce max_num_keypoints in extractor (1024 → 512)
  • Process fewer candidates (top_k 500 → 200)
  • Switch to MPS or CPU backend

LightGlue import error

pip install git+https://github.com/cvg/LightGlue.git
# Note: NOT available on PyPI — must install from GitHub

Poor match quality / wrong location

  1. Enable Ultra Mode
  2. Increase search radius (the correct panorama may be slightly outside initial radius)
  3. Ensure the indexed area was crawled densely enough (radius 0.5–1km with resolution 300 for testing)
  4. Try a different crop of the query image — remove sky/foreground, focus on architectural features

Index build interrupted

Safe to re-run — index builds incrementally from cosplace_parts/*.npz. Already-processed panoramas are skipped.

No panoramas found in area

Some areas have sparse Street View coverage. Verify coverage at maps.google.com before indexing.

LoFTR / kornia not found (Ultra Mode disabled)

pip install kornia

Key Models Reference

ModelRoleUsed When
CosPlaceGlobal 512-dim descriptorAlways — retrieval stage
ALIKEDLocal keypoints + descriptorsCUDA devices
DISKLocal keypoints + descriptorsMPS / CPU devices
LightGlueDeep feature matchingAlways — verification stage
LoFTRDetector-free dense matchingUltra Mode only

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

39.57%
按下载量换算131

Claude

28.18%
按下载量换算93

Cursor

19.69%
按下载量换算65

Gemini CLI

9.77%
按下载量换算32

安全审计

Gen Agent Trust Hub

可疑

Socket

可疑

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills