This paper presents a method for automatic target detection in hyperspectral images using principal component analysis (PCA) and neural networks. The approach aims to reduce dimensionality and improve classification accuracy for various applications such as agriculture and environmental monitoring, achieving approximately 90% accuracy in classification tasks. The findings demonstrate that PCA is an effective technique for feature extraction in hyperspectral imaging, facilitating the detection of small targets.