How to implement a model that can recognise the condition of multiple items of same kind

Hello Everyone, Is there a “template” for an image-recognition model that I could learn which condition an item of the same kind is in ? Like a 10 level grading responds.

Im sure this is a normal topic put I fail to find it.

Thank you in advance !

Best regards