In view of the problems of large model size, high parameter count, and difficult deployment on computational resource-constrained mobile devices in capsicum annuum var.conoides detection, this study proposes a lightweight capsicum annuum var. conoides detection model based on YOLOv5s(You Only Look Once version 5s). The feature extraction network is reconstructed using the Ghost module and Ghost BottleNeck structure from GhostNet to reduce model parameters and computational complexity. In the feature fusion stage, the GSConv(Ghost-Shuffle Convolution) lightweight convolution and VoV-GSCSP(VoVNet-Ghost Shuffle-Cross Stage Partial) structure are used to replace the original convolution and CSP(Cross Stage Partial) module, respectively, achieving optimal model lightweighting while ensuring accuracy. An angle penalty metric SIoU(SCYLLA-Intersaction over Union) loss is adopted to optimize the bounding box loss function, enhancing the accuracy and generalization ability of the lightweighted model. Experimental results show that the improved YOLOv5s-GGS(YOLOv5s-GhostNet GSConv SIoU) model achieves improvements of 7.0 percentage points, 3.5 percentage points, and 3.8 percentage points in precision, recall, and mAP(mean Average Precision), respectively, compared to the original network model. The number of parameters, computational complexity, and model weight are reduced by over 42%. Compared with mainstream object detection models, the proposed model exhibits higher detection accuracy, smaller model size, significant precision improvement, faster inference speed, and better suitability for deployment on mobile devices.