Files
Mini-Nav/mini-nav/scenegraph/__init__.py
SikongJueluo ba96cec406 feat(scenegraph): refactor image scene graph query into reusable function
- Export ImageSceneGraphQueryResult and query_image_against_scene_graph from scenegraph module
- Replace inline hamming-distance-based image matching with dedicated query_image_against_scene_graph function
- Improve top_matches structure by extracting similarity scores and hash_bytes from matches
- Add .codegraph/ to gitignore (machine-local data, should not be committed)
- Add CodeGraph configuration for multi-language indexing
2026-05-21 14:25:50 +08:00

37 lines
1006 B
Python

"""Scenegraph public API.
This module exports the main scenegraph objects for easy import:
from mini_nav.scenegraph import SimpleSceneGraph, RoomNode, ObjectNode
"""
from .hash_codec import (
bits_tensor_to_cam_row,
bits_tensor_to_hash_bytes,
cam_row_to_hash_bytes,
hash_bytes_to_bits_array,
hash_bytes_to_cam_row,
)
from .objectnode import ObjectNode
from .query import ImageSceneGraphQueryResult, query_image_against_scene_graph
from .roomnode import RoomNode
from .scenegraph import SceneGraphMatch, SimpleSceneGraph
from .software_cam import CamMatch, SoftwareCamIndex, xnor_popcount_score
__all__ = [
"CamMatch",
"ImageSceneGraphQueryResult",
"ObjectNode",
"RoomNode",
"SceneGraphMatch",
"SimpleSceneGraph",
"SoftwareCamIndex",
"bits_tensor_to_cam_row",
"bits_tensor_to_hash_bytes",
"cam_row_to_hash_bytes",
"hash_bytes_to_bits_array",
"hash_bytes_to_cam_row",
"query_image_against_scene_graph",
"xnor_popcount_score",
]