Quantum blackbody thermometry