The pinhole effect is a method of focusing your vision by causing the pupil to dilate or get smaller. This causes light that is scattered and unfocused to be able to enter your eye, leaving only focused light to enter and reach your retina. This results in sharper, more focused vision.