From minutes to seconds: Capillary auto-alignment with python and opencv
summary
Automated capillary alignment uses Python and OpenCV to turn camera frames into a binary midpoint line, fits slope with numpy polyfit, and drives a 5‑axis motorized stage via ophyd and Bluesky talking to EPICS. Calibration measures camera tilt and stage-to-image orientation, then a coordinated multi‑motor move aligns rotation to the beam. Result: per‑sample alignment drops from minutes to about 10 seconds, validated end‑to‑end on the beamline setup.
AI-written summary · about
chapters (13)
- 0:00Introduction
- 0:47Automate capillary alignment
- 3:19Beam line instrument components
- 5:28Hardware setup Python motors
- 8:39Python hardware control tools
- 10:28Visualize alignment OpenCV
- 12:56Binary images for detection
- 15:06Calibrate motors with camera
- 18:41Alignment time reduced
- 20:31Debug camera tilt trigonometry
- 21:57Live demo automated alignment
- 23:00Lessons learned collaboration
- 24:49Q&A
related talks
24mImage recognition and camera positioning with OpenCV. A tourist guide application.
14mAI-Driven Precision Manufacturing
44mFrom Athlete to Algorithm: Transforming Canoe Technique Analysis with AI
30mWhen performance matters: running a real-time computer vision pipeline
36mFrom Athlete to Algorithm: Transforming Canoe Technique Analysis with AI
21mLeveraging Python for Real-Time Image processing
41mKEYNOTE – Robert Erdmann
30mIntroduction to Computer Vision with OpenCV
