An embodiment of the invention discloses a device for detecting a wheel hub and an automobile component product. The device comprises a frame body, a lifting and lowering detecting device, a first workpiece conveying mechanism, a second workpiece conveying mechanism and a workpiece clamping and moving mechanism. The lifting and lowering detecting device comprises a bracket, a lens fixing plate, alifting and lowering device, a backlight source, a detecting platform, a lens and a camera. The lens is disposed on the lens fixing plate, the camera is disposed under the lens, the detecting platformis disposed above the lens, and the detecting platform is provided with a window penetrating the thickness direction of the detecting platform, a lower surface of the detecting platform is provided with a front light source, and the lifting and lowering device is respectively connected to the lens fixing plate and the detecting platform. Through the cooperation of the camera, the lens and the combined light source, the non-contact online detection is achieved, the automatic data acquisition, processing and automatic identification are completed by a vision system and a control system in the whole process, human subjective factors are reduced, the manual processing is not needed, the detection efficiency and detection accuracy are improved, and the labor cost is reduced.