Online machine vision method for measuring the diameter and straightness of seamless steel pipes