The paper shows an approach to solving the problem of classifying X-ray images of the chest part of a healthy person and with the presence of COVID-19. The method is a trainable convolutional neural network. The results obtained allow improving existing approaches and methods in the field of classification of medical images with COVID-19, as well as obtaining an auxiliary mechanism for detecting COVID-19 in patients.