I have a working furnace test-rig with a Raspberry Pi, an IR camera pointed at the molten metal pool, and a stepper motor that adjusts the power input. What I need now is a clean, reliable Python program that closes the loop between size of the molten metal zone and stepper motor control. The flow is straightforward: the camera streams infrared frames, the script tracks the pool width in real time, and the stepper motor turns to raise or lower power so the pool stays within a target size. All components are already wired and bench-tested; you can SSH into the Pi as soon as the project begins. Key features the code must ship with: • Real-time monitoring of the pool size (OpenCV or a comparable library is fine) • Auto-calibration routine that maps the width of the molten metal pool on first start-up or on demand • Error logging to a local file with timestamps for any camera drops, motor stalls, or anomalies Python is the language of choice, so please structure the project as a self-contained module with clear README instructions and autostart. Acceptance is simple: when the program holds the pool size within the ± tolerance set in a config file for a full production cycle, logs each adjustment, and restarts cleanly after a power loss, we’re done. I’m happy to walk you through the rig and answer questions in a brief call—just let me know your availability.