Python wrapper for Intel RealSense cameras on Apple Silicon
Project description
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
# Install librealsense2 (required)
brew install librealsense2
Installing the Python Package
# 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
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
# 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
pytest tests/
Code formatting
# Format code
black .
# Sort imports
isort .
# Run linter
flake8 .
License
MIT License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file realsense_applesilicon-0.1.6-cp312-cp312-macosx_10_13_universal2.whl.
File metadata
- Download URL: realsense_applesilicon-0.1.6-cp312-cp312-macosx_10_13_universal2.whl
- Upload date:
- Size: 226.5 kB
- Tags: CPython 3.12, macOS 10.13+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6deac826047bf5a8b0feac726f3cc74760638ac5692ed12575bb622edfecfe29
|
|
| MD5 |
920228fd0f79ecfe0e165529f47334cb
|
|
| BLAKE2b-256 |
be35224e7eb99eb26f09e1d5996f50aa90f45a41898614e4c801486b8b07566e
|
File details
Details for the file realsense_applesilicon-0.1.6-cp311-cp311-macosx_10_9_universal2.whl.
File metadata
- Download URL: realsense_applesilicon-0.1.6-cp311-cp311-macosx_10_9_universal2.whl
- Upload date:
- Size: 226.2 kB
- Tags: CPython 3.11, macOS 10.9+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
632553310251403b26a1ccd8794a505510ce7f1dfd640f1003414f0b6ca7c24c
|
|
| MD5 |
32b8fe812e334c8d72dccdeaa75f8de6
|
|
| BLAKE2b-256 |
9c022dd26b88986d606de5ef7366dc72c2ca6b814ac7cd83be32f7b568b7894f
|
File details
Details for the file realsense_applesilicon-0.1.6-cp310-cp310-macosx_10_9_universal2.whl.
File metadata
- Download URL: realsense_applesilicon-0.1.6-cp310-cp310-macosx_10_9_universal2.whl
- Upload date:
- Size: 226.0 kB
- Tags: CPython 3.10, macOS 10.9+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
120040b226d53dc2ac99ebf8809b42381fcc3ce3613ac930801598be5cb71676
|
|
| MD5 |
f54805cbacb503af0e54d5a776804ea4
|
|
| BLAKE2b-256 |
4e50081b47f956d7f52f89cdaf07821529d8f294a260c800abb0ac80fe3d1946
|
File details
Details for the file realsense_applesilicon-0.1.6-cp39-cp39-macosx_10_9_universal2.whl.
File metadata
- Download URL: realsense_applesilicon-0.1.6-cp39-cp39-macosx_10_9_universal2.whl
- Upload date:
- Size: 227.4 kB
- Tags: CPython 3.9, macOS 10.9+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eaed8a7fdffeac06f94d500641d3a6afc2391ca20b790f5507083297f3f1ef63
|
|
| MD5 |
5ee4730adfc738995909e324931a4f9e
|
|
| BLAKE2b-256 |
f2583fc9dd3492c960c9f946d3f324c1f9d7990f7e0e5f968054b8dac082de65
|