Text this: Automatic Rock Classification Algorithm Based on Ensemble Residual Network and Merged Region Extraction