Machine Vision - Infinity Focus effect
"Infinity focus" refers to the Hyperfocal Distance of the camera's lens. This is the distance beyond which all objects will appear acceptably focused.

Therefore, if your objects come closer (to the camera) than its hyperfocal distance they will appear blured and detection of sharp features such as corners will become more challenging.