Nowadays, induction motors and gearboxes play an important role in the industry due to the fact that they are indispensable tools that allow a large number of machines to operate. In this research, a diagnosis method is proposed for the detection of different faults in an electromechanical system through infrared thermography and a convolutional neural network (CNN). During the experiment, we tested different conditions in the motor and the gearbox. The induction motor was operated in four conditions, in a healthy state, with one broken bar, a damaged bearing, and misalignment, while the gearbox was operated in three conditions with healthy gears, 50% wear, and 75% wear. The motor failures and gear wear were induced by different machining operations. Data augmentation was then performed using basic transformations such as mirror image and brightness variation. Ablation tests were also carried out, and a convolutional neural network with a basic architecture was proposed; the performance indicators show a precision of 98.53%, accuracy of 98.54%, recall of 98.65%, and F1-Score of 98.55%. The system obtained confirms that through the use of infrared thermography and deep learning, it is possible to identify faults at different points of an electromechanical system.