A Python library for interfacing with Photoneo MotionCam 3D cameras using the Harvesters framework. This library provides a high-level interface for capturing color frames and point clouds from MotionCam devices.
- Simple API: Easy-to-use interface for camera operations
- 3D Point Cloud Capture: Extract calibrated 3D point clouds
- Color Frame Capture: Capture RGB color frames
- Python 3.8+
- NumPy
- Open3D
- Matplotlib
- Harvesters
- GenICam
- Clone this repository:
git clone <repository-url>
cd py_photoneo- Install required dependencies:
pip install numpy open3d matplotlib harvesters-core genicam- Ensure you have the appropriate GenTL producer installed for your camera system.
import numpy as np
import open3d as o3d
import matplotlib.pyplot as plt
from motion_cam import MotionCam
# Initialize camera with device serial number
cam = MotionCam("IDV-016")
# Connect to camera
cam.connect()
# Capture a frame with color information
frame = cam.get_frame(include_colors=True)
# Extract color frame and point cloud
color = cam.get_color_frame(frame)
pc = cam.get_point_cloud(frame)
# Disconnect when done
cam.disconnect()