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.1.tar.gz (25.3 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.1-py3-none-any.whl (29.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for mindar-0.1.1.tar.gz
Algorithm Hash digest
SHA256 9cf445c39a8a1cbbbae0efed07065005162005b308c8ee464ec39f7058968595
MD5 dace52a2281db926321fb3e39981397b
BLAKE2b-256 4cc3dbdb852c78d3e7dad0580500d16719018804203dd9fc85f99df642edb3c1

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for mindar-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cda570cbdeda9f7ac799e38184edbf3759d2dc287912c4d969446a6ac232f25c
MD5 bfa8bcf4d2fb00e956b4e66c7c0f9bba
BLAKE2b-256 08c0a5fa6c9beb72e8e9bcaf089daf815868d3094031f6fa9015584c89a08105

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