ID Card detection

Hii guys,
i am a beginner with opencv and i want to wire a code on python to detect if the image is a personal ID or not.
I don’t need any information from the image, just to know if the image is a ID card.
can you help me or do you have maybe the Code?
Thank you