leswright1977/PyThermalCamera — reverse-engineered prompt

Reverse engineered prompt

GitHub

Build me a Python program for using a Topdon TC001 thermal camera on Linux and Raspberry Pi. I want to plug in the camera, pick the video device number, and see a live thermal image that looks much nicer than the tiny raw feed.

Show the video as a false color heatmap with selectable color styles, adjustable contrast, optional smoothing, and zoom levels so the image is easier to read. Put a simple on screen HUD with the average scene temperature, the center temperature with crosshairs, the hottest and coldest points when they pass a chosen threshold, plus the current settings.

Add keyboard controls for changing blur, zoom, contrast, fullscreen, color map, labels, HUD visibility, recording, and snapshots. Save recordings as AVI files and snapshots as PNG files in the current folder.

Please make it practical to run from the command line, and add basic error messages if the camera is missing or the wrong device is chosen.

Want more depth? Deep Reverse