Technical newsheet
Machine Vision & InspectionDevice profile
Gaze monitor runs four NPU inferences per frame at 38 FPS on IQ-9075
Four NPU inferences per frame at 38 FPS on a Dragonwing IQ-9075 chain three BSD-licensed Qualcomm models into an operator attention monitor with 15-degree gaze error, cut to 10 by per-user calibration.
By Grace Kim4 min read849 words
Features
- Four NPU inferences per frame run at 38 FPS on 1080p video on the Dragonwing IQ-9075 EVK.
- EyeGaze averages ~15 degrees error, cut to ~10 by three-second per-user calibration; per-person bias ranged 3.38–18.31 degrees.
- NPU delegation gave 15.6x model-time speedup; EyeGaze takes 4.78 ms despite half the parameters of the 1.01 ms landmark model due to VTCM spill.
- CPU and NPU pipelines differed by ~5 degrees end-to-end despite each model matching its reference, reporting 1581 vs 1550 alert frames on the same clip.
- MPIIGaze evaluation on 576 samples across 15 subjects reproduced the published accuracy on the NPU.

A three-model pipeline chained on a Qualcomm Dragonwing IQ-9075 NPU runs four inferences per frame at 38 FPS on 1080p video and detects operator attention lapses within roughly 10 degrees of gaze accuracy after per-user calibration. The open build, published at github.com/SamuelAlexander/dragonwing-gaze-attention, chains Qualcomm's own EyeGaze, Lightweight-Face-Detection and Facial-Landmark-Detection models — all BSD-3-Clause, all compiled through Qualcomm AI Hub.
The honest headline number is the error: EyeGaze averages about 15 degrees off. At a 60 cm viewing distance that covers a patch 31 cm wide, most of a laptop screen. The application therefore classifies gaze into a cone around a calibrated direction rather than pointing at targets.
What does the pipeline actually do?
Four stages run per frame. Lightweight-Face-Detection finds the face in a 480x640 grayscale input. Facemap_3dmm takes a 128x128 face crop and returns 265 numbers — 219 identity coefficients, 39 expression coefficients, three pose angles, two translations, one focal length — converted to 68 landmarks and a head pose. Eye patches are then warped, not cropped, so each eye lands at the same place and scale the model trained on; the right eye is mirrored on input and its yaw negated on output. EyeGaze takes a 96x160 grayscale image of one eye and returns pitch-yaw.
The two per-eye estimates disagree by about 20 degrees — that is the error budget, not a bug. Averaging the direction vectors beats either eye alone.
A three-second calibration removes per-person constant offset. Measured per-person bias ranged from 3.38 to 18.31 degrees: one subject improved 63% after calibration, two improved only 3%, which argues for calibrating every user rather than shipping one correction.
How fast is it on the NPU?
With the QNN TFLite delegate on the HTP backend, governor pinned to performance, 50 runs, medians: 15.6x speedup on model time, 11.5x end to end. The gap is host work — cropping, warping, decoding — that does not accelerate; it occupied 3% of frame time on one CPU thread and 29% on the NPU.
Counterintuitively, the middle model is twice the size and five times faster. Facemap_3dmm has 5.42M parameters and runs in 1.01 ms; EyeGaze has 2.58M and takes 4.78 ms. The delegate log explains why: EyeGaze's three-stack hourglass holds 48x80 feature maps that do not fit in VTCM, so each inference moves about 12 MB to and from DDR. Re-exporting without the 1.57 MB heatmaps tensor — 99.98% of output bytes that no application reads — cut VTCM spill from 5.91 MB to 3.95 MB, yet latency barely moved, because that traffic overlaps with compute.
Which measurements change the design?
Three findings shaped the application:
- Frame of reference. It seems obvious an eye model reports gaze relative to the head. Tested against MPIIGaze ground truth on 2,924 eyes, a perfect head-pose rotation made results twice as bad where the head turned most; the fitted head term came out near zero (-0.07 pitch, -0.09 yaw). EyeGaze is camera-relative.
- Under-reading. The fitted gaze term is only 0.44 to 0.54: a 40-degree glance reads as about 20. This is why the application pairs gaze with a head-pose cue, which catches eyes looking down where gaze alone fails.
- Backend divergence. Each model matched its CPU reference to a fraction of a degree, yet the chained pipeline differed by about 5 degrees on one image, because a 0.4-pixel difference propagates through self-cropped stages. Over the 133-second demo clip with identical calibration, CPU and NPU reported 1,581 and 1,550 alert frames, catching every lapse.
How were the thresholds set?
Defaults of 20 degrees for the gaze cone and 15 degrees for head limit sit clear of all on-task footage measured. Running the detector only every third frame cost 1.4x error for under 2 degrees on desk footage — but three to four times the cost on a handheld close-up of a fast-moving face. The lesson: measure on footage that resembles the deployment.
Asymmetric hysteresis matters most. Requiring several consecutive frames back inside the cone before clearing a look-away took the alert on a sleeping-at-desk clip from 5 frames to 93.
What about driver monitoring?
The same pipeline shape matches production driver monitoring systems, and EyeGaze's documentation lists that use first. Changes required: in-seat calibration for off-axis cameras, IR illumination for night cabins (MPIIGaze is daylight visible-light data), wider cone and shorter dwell, and handling glasses reflections. The author states plainly: this is not a certified DMS and makes no claim against vehicle regulations.
The compliance question the build raises is narrow: with 15 degrees raw and 10 calibrated, is region-level attention classification enough for control-room and cab alerting standards that currently assume presence detection only?
All raw data — bench logs, per-sample MPIIGaze errors, per-frame timelines, demo videos — ships in the repository's results/ folder.
via hackster.io (Source)
Filed under
More from Grace Kim
Show full bio
Correspondent covering companies, deals and strategy in Instruments, test and measurement at Testbench Report.
122 articles
Application notes
- Sentinel and Zebra Technologies Link on Enhanced Machine Vision
- CLE Closes $11.9M Series A to Scale 3D Machine-Vision Platform
- Quality Magazine: Machine Vision Moves to On-Camera Inference
- VISION 2026 Stuttgart: 100 Gbit/s Imaging Heads a Bandwidth-Driven Agenda
- VISION Award 2026 finalists named ahead of Stuttgart show