Blogs

Custom Camera Image Signal Processing (ISP) Pipeline with Raspberry Pi

ISP art

This post presents a custom, real-time camera image signal processing (ISP) pipeline developed from scratch for the Raspberry Pi HQ camera, designed to meet the precise control requirements for future stereo vision applications. The pipeline encompasses raw Bayer capture, stride correction, black level subtraction, demosaicing, white balance, and color correction calibration, and gamma mapping to sRGB. A reusable Python library is provided to support others working with raw data from the Pi HQ camera (See GitHub).

My AI Piano Tutor

ToF art

I am a beginner piano player—despite holding ABRSM Grade 8 in both oboe and music theory. Piano presents a new set of challenges. For me, the difficulty lies in sight-reading: identifying notes on both clefs, finding the correct keys on the keyboard, and coordinating both hands in real time. That became the inspiration for this project: building my own AI-powered piano tutor using computer vision, a webcam, and a piano to improve my sight-reading.

What is the best form lens?

best form lens art

I recently came across an interesting question: “What is the best form of a singlet lens?” At first, it seemed trivial — the answer is clearly the plano-convex lens. That’s what many optical design texts suggest, since it minimizes spherical aberration and coma. But I soon discovered that this answer relies on certain assumptions.

Light Detection and Ranging (LiDAR)

ToF art

In my last blog post, I discussed optical Time-of-Flight (ToF) sensing and explained how it works with a single emitter that produces a single beam of light and a single-pixel detector. Because of this setup, we could measure the ToF at only one point in space.

The question, then, is: How can we sense depth across an entire area? The answer lies in Light Detection and Ranging (LiDAR) — a system based on ToF that can measure depth over a broad region. In this blog post, I will (a) discuss the fundamentals of LiDAR and (b) demonstrate the optical system of a specific type of LiDAR, Flash LiDAR, using Zemax.

Optical Time-of-Flight (ToF) sensing and lock-in detection

ToF art

Distance measurements is important for a lot of applications, such as 3D imaging and depth sensing. One common method for distance measurement is by using optical time-of-flight. I will introduce two concepts: (a) The time-of-flight Principle and (b) lock-in detection/amplification to explain how it works.

The Dual Excitation with Adaptive Excitation Polygon-scanning Multiphoton Microscope (DEEPscope)

DEEPscope Animation

In neuroscience research, imaging neuronal activity in the deep brain is crucial for understanding neurological diseases. However, as imaging depth increases, the field of view usually decreases exponentially. We have improved the fluorescence signal generation efficiency of three-photon microscopy, achieving an imaging field two order of magnitudes larger than traditional three-photon microscopes in deep brain regions with cellular resolution.