Recognize the type of a document

I want to create an application that can detect or recognize the type of a document. Like invoice, receipt, id card and etc…

User will upload a scanned document and system will give response ‘the type of document’

Can i deal it with opencv? Because as i know, opencv can detect ‘real object’ like human, car, cat etc… i not found yet any information that opencv can recognize a document type

If opencv can do it, what is the right keyword to find resources or information about that

If can’t, are you have another suggestion?

Thank you