Method for producing a coating on a surface of a coated or uncoated spectacle lens, comprising the following steps: - Applying at least one masking on at least one partial region of at least one surface of the coated or uncoated spectacle lens, - Applying at least one layer on the at least one surface, and - Removing the at least one masking and the at least one layer applied on the at least one masking from the partial region of the at least one surface, wherein applying the masking is carried out by means of a matrix printing method, characterized in that a proportion of that partial region of at least one surface of the coated or uncoated spectacle lens which is provided with at least one masking is 20% or less relative to the entire at least one surface of the finished, edged spectacle lens that is provided with at least one masking, wherein the proportion of that partial region of at least one surface of the coated or uncoated spectacle lens which is provided with at least one masking is present in a circumferential edge region of the same surface, wherein the circumferential edge region is at a constant distance from the boundary of the at least one surface, wherein the at least one layer is a part of an antireflection layer or a part of a reflection layer, wherein the at least one layer is a first layer, wherein at least one second layer is applied before the step of applying the at least one masking on the at least one surface and after the step of removing the at least one masking from the partial region of the same surface, wherein the at least one layer has a reflection maximum of less than 400 nm or more than 780 nm in a non-visible spectral range such that a reflection image is produced in the non-visible spectral range, rather than in a visible spectral range, wherein the reflection image is present in the form of a 2D code or a three-dimensional barcode and contains readable information about the spectacle lens. - Applying at least one masking on at least one partial region of at least one surface of the coated or uncoated spectacle lens, - Applying at least one layer on the at least one surface, and - Removing the at least one masking and the at least one layer applied on the at least one masking from the partial region of the at least one surface, wherein applying the masking is carried out by means of a matrix printing method, characterized in that a proportion of that partial region of at least one surface of the coated or uncoated spectacle lens which is provided with at least one masking is 20% or less relative to the entire at least one surface of the finished, edged spectacle lens that is provided with at least one masking, wherein the proportion of that partial region of at least one surface of the coated or uncoated spectacle lens which is provided with at least one masking is present in a circumferential edge region of the same surface, wherein the circumferential edge region is at a constant distance from the boundary of the at least one surface, wherein the at least one layer is a part of an antireflection layer or a part of a reflection layer, wherein the at least one layer is a first layer, wherein at least one second layer is applied before the step of applying the at least one masking on the at least one surface and after the step of removing the at least one masking from the partial region of the same surface, wherein the at least one layer has a reflection maximum of less than 400 nm or more than 780 nm in a non-visible spectral range such that a reflection image is produced in the non-visible spectral range, rather than in a visible spectral range, wherein the reflection image is present in the form of a 2D code or a three-dimensional barcode and contains readable information about the spectacle lens.