~/talk

From minutes to seconds: Capillary auto-alignment with python and opencv

Talkat PyCon AU 2024 · 2024-11-22..11-26· [python, machine-learning]
links:none on file
slides:none on file

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

  1. 0:00Introduction
  2. 0:47Automate capillary alignment
  3. 3:19Beam line instrument components
  4. 5:28Hardware setup Python motors
  5. 8:39Python hardware control tools
  6. 10:28Visualize alignment OpenCV
  7. 12:56Binary images for detection
  8. 15:06Calibrate motors with camera
  9. 18:41Alignment time reduced
  10. 20:31Debug camera tilt trigonometry
  11. 21:57Live demo automated alignment
  12. 23:00Lessons learned collaboration
  13. 24:49Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.