Metadata-Version: 2.4
Name: realsense-applesilicon
Version: 0.1.0
Summary: Python wrapper for Intel RealSense cameras on Apple Silicon
Author: James Ball
Author-email: James Ball <James@istarirobotics.com>
License-Expression: MIT
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: numpy<2.0.0,>=1.19.0
Requires-Dist: opencv-python<5.0.0,>=4.5.0
Requires-Dist: cython<1.0.0,>=0.29.0
Dynamic: author
Dynamic: license-file
Dynamic: requires-python

# realsense-applesilicon

Python wrapper for Intel RealSense cameras on Apple Silicon

## Installation

### System Requirements

- macOS running on Apple Silicon (M1/M2)
- Homebrew package manager
- Python 3.8 or higher

### Installing System Dependencies

```bash
# Install librealsense2 (required)
brew install librealsense2
```

### Installing the Python Package

```bash
# Basic installation
pip install realsense-applesilicon

```

## Dependencies

### Core Dependencies

- Python 3.8+
- librealsense
- numpy>=1.19.0,<2.0.0
- opencv-python>=4.5.0,<5.0.0
- cython>=0.29.0,<1.0.0

## Usage

```python
from realsense.wrapper import PyRealSense

# Initialize the camera
rs = PyRealSense(width=640, height=480, framerate=30)

# Start the camera
rs.start()

try:
    # Get frames
    frames = rs.get_frames()
    depth_frame = frames.get('depth')
    color_frame = frames.get('color')
    ir_frame = frames.get('infrared')
  
    # Process frames...
  
finally:
    # Stop the camera
    rs.stop()
```

## Development

### Setting up development environment

```bash
# Clone the repository
git clone https://github.com/yourusername/realsense-applesilicon.git
cd realsense-applesilicon

# Create and activate virtual environment
python -m venv venv
source venv/bin/activate

# Install development dependencies
pip install -e ".[dev,test,docs]"
```

### Running tests

```bash
pytest tests/
```

### Code formatting

```bash
# Format code
black .

# Sort imports
isort .

# Run linter
flake8 .
```

## License

MIT License
