Given the morphological similarity and medicinal efficacy differences between Acorus tatarinowii Rhizoma and Acorus calamus Rhizoma, both belonging to the Acorus rhizome slices, as well as the phenomenon of their mixed use in the market, this study aims to achieve high-precision classification and rapid object detection of these two Acorus Species Slices using deep learning technology, thus enhancing the accuracy and efficiency of Traditional Chinese Medicine (TCM) identification. The study constructed a high-quality dataset consisting of 1,928 rigorously preprocessed and annotated images of Acorus tatarinowii Rhizoma and Acorus calamus Rhizoma specimens. The ResNet50 model was employed for classifying to improve classification accuracy. Furthermore, the YOLOv8 algorithm was utilized for object detection. Experimental results indicate that the ResNet50 model can accurately distinguish between Acorus tatarinowii Rhizoma and Acorus calamus Rhizoma decoction pieces, achieving a test set accuracy of 92.8%, thereby realizing precise classification. Meanwhile, the YOLOv8 algorithm achieved rapid object detection in mixed states of the two, with a detection accuracy of 98.6% and a detection frame rate of 22fps. This study successfully applied deep learning technology to the classification and object detection of TCM decoction pieces, providing an effective means for intelligent identification and management of Chinese medicinal materials.