Reputation: 1547
I am kind of new to Image processing and OpenCV. In my project, I am doing OCR. But before that, I want to check quality of image is enough good or not. The library I am using for doing OCR says that image should have more than 300 DPI. As far as I know, DPI is related to printer/scanner.
So what can OpenCV give it to me which is directly proportional to DPI ?
Upvotes: 3
Views: 3875
Reputation: 1822
Indeed, DPI is related to printer/scanner thus you will not find any information on that directly from the (pixels of) the images. However, such an information relative to the capture conditions may be present among metadata such as EXIF or XMP. In C++, you can use libexif that is easy to include into a program that uses OpenCV. In Java, you can use metadata-extractor.
Upvotes: 2