Detect the contents of an image file: Find a scanned document in amongst pictures
<p>I have very many folders with a large number of image files in there. Occasionally a scanned document image ends up in a folder by accident and short of someone visually scanning the folder, these remain undetected but could cause problems if published to the wrong location.</p>

<p>Since they could have been scanned as any file type and sizes are broadly in the range of the genuine images, they are very hard to detect from metadata.</p>

<p>Does anyone know of a way to detect a scanned document from a genuine image - either a tool or a programmatic way?</p>