Results are presented from the practical application of opto-electronic flatness gage IP-4 on a continuous heat-treatment line. The gage is being used to increase the flatness of aluminum alloys after their quenching and combination straightening by bending and tension. The gage allows quality adjustment of straightening machines and makes it possible to quantitatively measure flatness in real time. The machine operator can adjust the parameters of the straightening operation and significantly improve the quality of the product. When coils are being straightened, the gage makes it possible to reliably predict the flatness of the rolled product at the outlet of the machine and decide on the need for additional straightening without having to prepare samples of the metal.