Text this: Determination of Vickers hardness in D2 steel and TiNbN coating using convolutional neural networks