Turbo Pascal war story: A project to retrofit Bear automotive pollution inspection stations with anti-fraud measures.
Situation was that mechanics in Pennsylvania were swapping in clean cars for tailpipe readings. For a small gratuity, repairs thereby could be avoided by customers.
So, "just" randomly capture an image of the vehicle with license plate and probe in view, store these and sometimes upload them to state regulator. And let mechanics know about it, and that image uploads without a clear shot would generate a phone call.
This was ca. 1992 or thereabouts so this involved sourcing an affordable digital camera suitable for the job, reasonably robust. As it shook out, this turned out to be the Connectix QuickCam. The Bear machine was centered on an embedded PC so a parallel port was available for connection. After quite a bit of correspondence we negotiated an NDA with Connectix and obtained complete documentation for talking to the camera (and they sent us a handful of free cameras for development!).
In order for the image capture to function with adequate speed, we needed to use assembly language. Turbo Pascal's inline assembly option made this a snap, was a huge timesaver. As well, this add-on was super simple for Bear to integrate as it was a standalone chunk that the machine's main software could call. Almost no effort on Bear's part, and no administrative hassles as the capture/upload process was entirely independent from their process.