← Back to Projects

RoboCam Autofocus

Updated: Dec 2023 Tags: Computer Vision, Research Automation, Microscopy Tech: Python, OpenCV, Gabor Filters, 3D Printing
RoboCam Autofocus

Context

RoboCam was used for long-duration Drosophila imaging, but focus drift regularly compromised datasets during 24-hour runs. The system needed a reliable way to recover focus without constant manual intervention.

Contribution

Approach

The autofocus routine evaluated 5 to 20 images at each 0.1 mm z-step and selected the sharpest plane during setup and follow-up corrections. Initial focusing completed in about 30 seconds, while later corrections took about 15 seconds. I paired the software work with mechanical improvements so the imaging geometry stayed consistent during long recordings.

Result

The system captured continuous 1080p video at 24 fps and stabilized focus across more than 40 imaging runs.

Acknowledgments
  • National Institutes of Health U-RISE: T34-GM145400
  • NSF LSAMP: HRD-1826490
  • Genentech Foundation Scholars #G-7874540
  • NSF STC Center for Cellular Construction: DBI-1548297
  • Student Enrichment Opportunities (SEO) at SFSU
  • Esquerra Lab

Get in touch

Want to talk about this work?

I enjoy projects that sit between software, research tooling, and physical prototyping. If that overlaps with what you are building, reach out.