Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

OpenCV Image DPI

Hello,

I have small openCV python code that covers a rectangle in an image with a solid color, basically covering it up. (Trying to censor out an image and some personal details from an ID to be specific) using coordinates from another OCR engine.

The problem is when I use the coordinates from the other OCR engine's recognition, the white boxes (solid color to cover up the image) are way off.

All I know is that the coordinates from the other OCR engine were from a 300dpi image, but I dont know what dpi openCV works with its images when dealing with coordinates.

Any help?

OpenCV Image DPI

Hello,

I have small openCV python code that covers a rectangle in an image with a solid color, basically covering it up. (Trying to censor out an image and some personal details from an ID to be specific) using coordinates from another OCR engine.

The problem is when I use the coordinates from the other OCR engine's recognition, the white boxes (solid color to cover up the image) are way off.arent in the correct places.

All I know is that the coordinates from the other OCR engine were from a 300dpi image, but I dont know what dpi openCV works with its images when dealing with coordinates.

Any help?