Thin section analysis of sedimentary rocks is the basis for identifying minerals and textures. In general, quantitative analysis of thin sections of rock often requires many hours of work when done manually. In today's era, mineralogical interpretation and percentage calculations must be carried out automatically using more practical applications. The research method begins with the identification of 44 thin section samples in parallel plane polarized (PPL) and crossed polarized (XPL) conditions with thin section analysis then mineralogy detection is carried out using a computational approach, namely the use of image-based Deep Learning YoloV4 architecture with 2D RGB image objects from the thin section of sedimentary rock. The results of this study show the best values of Average Precision in Quartz, Feldspar, and lithic are 39.21% in the XPL model, 26.53% in the XPL model, and 15.75% in combined mode, according to the training and testing of YoloV4 Models for the identification of rock minerals in thin sections. Based on the complexity of the mineral types, the granularity of the detection, and the specific geological objectives, establishing a meaningful benchmark or baseline for comparison is always challenging. Additionally, consider discussing the trade-offs between precision and recall, as a higher precision may be more critical in some geological applications. It is expected that the application of this research can produce practical, fast and accurate interpretation of the determination of minerals in sedimentary rocks from all thin-section images of rocks and thus provide a complete understanding of geological views automatically.