Pinhole glasses; also called stenopeic glasses; are eyeglasses with lenses that consist of many tiny holes filling an opaque sheet of plastic. These “pinholes” block indirect rays from entering the eye; thus preventing them from distorting your vision. While this does not actually improve the focusing ability of the eye; it does reduce the size of the blur circle on the back of the retina; so reasonably clear vision may be achieved. Pinholes may allow you to read small print; see distant objects more clearly; relax eye muscles; reduce eye strain and are ideal for computers and TV.
They are not legal for driving and are not a substitute for sunglasses.