Skip to main content

High-performance MindAR implementation for real-time image recognition on edge devices. Developed by FANSEE LAB.

Project description

MindAR Python

High-performance MindAR implementation for real-time image recognition on edge devices.

Features

  • MindAR Compatible: Full compatibility with MindAR .mind file format
  • High Performance: Optimized for Raspberry Pi and edge devices
  • Real-time Detection: Efficient feature detection and matching
  • Pure Python: No complex dependencies, easy deployment

Installation

cd mindar
pip install -e .

Usage

Basic Detection

import cv2
from mindar import Detector, Matcher, MindARCompiler

# Load target images and create detector
detector = Detector(width=640, height=480)
matcher = Matcher()

# Detect features in image
image = cv2.imread("target.jpg", cv2.IMREAD_GRAYSCALE)
result = detector.detect(image)
feature_points = result["feature_points"]

print(f"Detected {len(feature_points)} features")

Compile .mind Files

from mindar import MindARCompiler

compiler = MindARCompiler()

# Compile images to .mind file
success = compiler.compile_directory("./images", "./targets.mind")
if success:
    print("✅ Compilation successful")

# Load compiled targets
mind_data = compiler.load_mind_file("./targets.mind")

Performance

Optimized for edge devices like Raspberry Pi 4:

  • Detection: ~50ms per frame (640x480)
  • Matching: ~20ms per target
  • Memory: <100MB usage

License

MIT License - Compatible with original MindAR project

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mindar-0.1.0.tar.gz (25.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mindar-0.1.0-py3-none-any.whl (29.6 kB view details)

Uploaded Python 3

File details

Details for the file mindar-0.1.0.tar.gz.

File metadata

  • Download URL: mindar-0.1.0.tar.gz
  • Upload date:
  • Size: 25.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.13

File hashes

Hashes for mindar-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ca92a46bd1e21c686f8ca5711e350975577dd79913b7b543633431d60c7f2333
MD5 f1507f30b3b117598ee86f12e1e0393f
BLAKE2b-256 b50884fb5f4369bc9a1ee5fa6883438ea7b8684a95494d429f0adc31b8124f9a

See more details on using hashes here.

File details

Details for the file mindar-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: mindar-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 29.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.13

File hashes

Hashes for mindar-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c76b07357a7ea9f5a79d0d5c9c8b0cefbc898a8bde287c9242a43bba54a72a24
MD5 3a9b1b2868ef7222458812eb1606c609
BLAKE2b-256 7745ab557045c4f6f7852d7169d7b1d6d4ec7da0c8a92182a4e435cd0e1d4ee1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page