The textile industry primarily relies on fabric as a crucial raw material, the production of which involves multiple complex stages. Due to the multitude and complexity of these stages, fabric defects can frequently occur. With the modern fabric production process being nearly fully automated, and given the variety of potential defects, detecting errors on fabrics has become increasingly challenging. The rapid pace of production and the substantial market share of the sector mean that relying on human inspection for error detection can lead to significant time losses and can reduce the accuracy of defect detection to around 60%. Consequently, recent years have seen a shift towards the development of intelligent systems for fabric defect detection in parallel with technological advancements. With the rapid progression of artificial intelligence, the application of image processing techniques has commenced in this field. This study has developed a real-time defect detection system for fabrics using deep learning techniques. Initially, a network model was created using an open-source neural network library, CNN, achieving 89% accuracy. Subsequent implementations using the VGG16 and InceptionV3 architectures reached accuracies of 89% and 86%, respectively. To further improve the study, fabrics were classified into two categories: defective and non-defective, and the pre-trained Convolutional Neural Networks model ResNet50-v2 was employed as a feature extractor. This approach yielded an approximate accuracy of 95%.