An automation method is disclosed for an X-ray tube scanner having an X-ray tube and an X-ray detector. The method allows the X-ray tube scanner to detect the X-ray detector's plane with an object to be imaged placed on the X-ray detector; determine a boundary box of the object to be imaged on the X-ray detector; determine the object's center position and orientation on the X-ray detector's plane; transfer the object's center position from the object's coordinate system to the X-ray tube's coordinate system; and estimate the X-ray tube control parameters for aligning the X-ray field emitted from the X-ray tube's collimator to the object's center position and the object's orientation on the X-ray detector.