Note that this is an existing product category, usually cheap too.
Lots of examples here: https://thermalprintcameras.wordpress.com
Of course one can still want to hack something like this yourself for fun or other reasons.