What problem does it solve?
DockKit eliminates manual camera re-framing and complex motor control by providing integrated support for motorized iPhone docks, allowing apps to keep faces, bodies, and objects properly framed without bespoke hardware logic.
Core Features & Use Cases
- Automatic System Tracking: Built-in ML-based face and body detection that drives motors to keep subjects in frame.
- Custom Tracking Options: Disable system tracking to feed custom Vision or model observations at 10β30 fps for bespoke behaviors.
- Motor and Framing Control: APIs for angular velocity, orientation, framing modes, and region-of-interest to implement manual control, panoramas, or animated motions.
- Accessory Integration & Events: Discovery, accessory state monitoring, physical button events, and battery reporting for full-featured camera apps.
- Production Patterns: Error handling, testing strategies, and mock accessories for UI development without hardware.
Quick Start
Enable system tracking, subscribe to accessoryStateChanges to detect a dock, and observe trackingStates to keep subjects framed automatically.