Holographic lens determination method, device, computer equipment and storage medium

By constructing a spherical lens model and performing image processing, a holographic lens with a moiré effect was obtained, which solved the problem of low anti-counterfeiting effect of existing holographic lenses and achieved higher anti-counterfeiting effect and discernmentality.

CN115407443BActive Publication Date: 2025-05-02WUHAN HUAGONG IMAGE TECH & DEV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211049775.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-30
Publication Date
2025-05-02
Estimated Expiration
2042-08-30

AI Technical Summary

Technical Problem

Existing holographic lenses are easily imitated, resulting in low anti-counterfeiting effect.

Method used

By constructing a model of a spherical lens, the lens grayscale image is determined, and the lens grayscale image is equally expanded and contour-cut based on the preset expansion coefficient and cutting height, a holographic lens with a moirer-like effect is obtained.

Benefits of technology

The anti-counterfeiting effect of the holographic lens is improved, and the anti-counterfeiting is enhanced by confirming whether there are any Moir-like optical stripes, which can enhance the discrimination of the lens.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115407443B_ABST
    Figure CN115407443B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention discloses a holographic lens determination method, device, computer equipment and storage medium, the holographic lens determination method comprising: constructing a spherical lens model, and determining a lens grayscale image through the spherical lens model; proportionally enlarging the lens grayscale image based on a preset enlargement coefficient to obtain an enlarged lens image; performing equal-height cutting on the enlarged lens image based on a preset cutting height to obtain a Fresnel lens image of the spherical lens; and obtaining a holographic lens with a moiré-like effect according to the Fresnel lens image of the spherical lens. When the holographic lens with a moiré-like effect of the present application is used for anti-counterfeiting, compared with the existing holographic lens, anti-counterfeiting can also be performed by confirming whether optical stripes with a moiré-like effect appear, thereby improving the anti-counterfeiting effect of the holographic lens. At the same time, the preset magnification factor and the preset cutting height can be adjusted according to demand, thereby further improving the anti-counterfeiting effect of the holographic lens.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of anti-counterfeiting, and in particular to a holographic lens determination method, device, computer equipment and storage medium. Background Art

[0002] Holographic anti-counterfeiting refers to the production of visual text information with a sense of dynamics and layers for anti-counterfeiting. Currently, holographic lenses are widely used in the field of holographic anti-counterfeiting of outer packaging due to their clear apparent color, obvious convexity, good three-dimensional effect, and rainbow colors on the edges.

[0003] Usually, the continuous surface of a holographic lens collapses to a plane, and most of the optical materials on the surface are removed while retaining the curvature of the surface, so that the refraction energy of the lens occurs only on the surface of the lens, and a lens effect with a large focal length is achieved within a very small thickness range. However, holographic lenses are easy to imitate. After understanding the principle of holographic lenses, the same holographic lenses can be manufactured, resulting in a low anti-counterfeiting effect of holographic lenses. Summary of the invention

[0004] In view of this, the purpose of the present invention is to overcome the deficiencies in the prior art and provide a holographic lens determination method, device, computer equipment and storage medium to solve the problem of low anti-counterfeiting effect of the holographic lens.

[0005] In a first aspect, the present application provides a method for determining a holographic lens, the method comprising:

[0006] Constructing a model of a spherical lens, and determining a lens grayscale image through the model of the spherical lens;

[0007] Proportionally enlarging the lens grayscale image based on a preset enlargement coefficient to obtain a lens enlarged image;

[0008] Performing equal-height cutting on the enlarged lens image based on a preset cutting height to obtain a Fresnel lens image of the spherical lens;

[0009] According to the Fresnel lens image of the spherical lens, a holographic lens with a moiré-like effect is obtained.

[0010] In combination with the first aspect, in a first possible implementation manner, after performing equal-height cutting on the lens enlarged image based on a preset cutting height to obtain the Fresnel lens image of the spherical lens, the method further includes:

[0011] The expansion coefficient and cutting height of the Fresnel lens image are adjusted until the stripe thickness value of the Fresnel lens image is within a preset thickness range.

[0012] In combination with the first aspect, in a second possible implementation manner, constructing a model of a spherical lens and determining a lens grayscale image by using the model of the spherical lens includes:

[0013] A model of a spherical lens with a preset accuracy is constructed, a height attribute of the spherical lens is used as the image grayscale of the lens grayscale image, and a position attribute of the spherical lens is used as the distance of the lens grayscale image along a preset direction to determine the lens grayscale image.

[0014] In combination with the first aspect, in a third possible implementation manner, the enlarging the lens grayscale image in equal proportion based on a preset enlargement coefficient to obtain a lens enlarged image includes:

[0015] Based on a preset enlargement coefficient, the lens grayscale image is enlarged in equal proportion by a nearest neighbor interpolation algorithm in a square matrix to obtain a lens enlarged image.

[0016] In combination with the first aspect, in a fourth possible implementation manner, the performing equal-height cutting on the lens enlarged image based on a preset cutting height to obtain a Fresnel lens image of the spherical lens includes:

[0017] Based on a preset cutting height, the lens enlarged image is cut at equal heights using a Fresnel lens cutting algorithm to obtain a Fresnel lens image of the spherical lens.

[0018] In combination with the first aspect, in a fifth possible implementation manner, the model of the spherical lens is a zoom spherical lens model along the radius.

[0019] In combination with the first aspect, in a sixth possible implementation manner, the model of the spherical lens is a spherical lens model in which a concave lens and a convex lens are connected.

[0020] In a second aspect, the present application provides a holographic lens determination device, the device comprising:

[0021] A grayscale image determination module, used to construct a model of a spherical lens and determine a lens grayscale image through the model of the spherical lens;

[0022] A lens image enlargement module, used to enlarge the lens grayscale image in equal proportion based on a preset enlargement coefficient to obtain a lens enlarged image;

[0023] A lens image cutting module, used for performing equal-height cutting on the enlarged lens image based on a preset cutting height to obtain a Fresnel lens image of the spherical lens;

[0024] The holographic lens obtaining module is used to obtain a holographic lens with a moiré-like effect according to the Fresnel lens image of the spherical lens.

[0025] In a third aspect, the present application provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the holographic lens determination method as described in the first aspect is implemented.

[0026] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the holographic lens determination method as described in the first aspect is implemented.

[0027] The present application provides a method for determining a holographic lens, the method comprising: constructing a model of a spherical lens, and determining a lens grayscale image through the model of the spherical lens; proportionally enlarging the lens grayscale image based on a preset enlargement coefficient to obtain an enlarged lens image; performing equal-height cutting on the enlarged lens image based on a preset cutting height to obtain a Fresnel lens image of the spherical lens; and obtaining a holographic lens with a moiré-like effect according to the Fresnel lens image of the spherical lens. When the holographic lens with a moiré-like effect of the present application is used for anti-counterfeiting, compared with the existing holographic lens, anti-counterfeiting can also be performed by confirming whether optical stripes with a moiré-like effect appear, thereby improving the anti-counterfeiting effect of the holographic lens. At the same time, the preset magnification factor and the preset cutting height can be adjusted according to demand, thereby further improving the anti-counterfeiting effect of the holographic lens. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] In order to more clearly illustrate the technical solution of the present invention, the following is a brief introduction to the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present invention and should not be regarded as limiting the scope of protection of the present invention. In each of the drawings, similar components are numbered similarly.

[0029] Figure 1 A flow chart of a holographic lens determination method provided by an embodiment of the present invention is shown;

[0030] Figure 2 A schematic diagram of a lens grayscale image of a spherical lens model provided by the prior art is shown;

[0031] Figure 3 A schematic diagram of a lens grayscale image of a spherical lens model provided by an embodiment of the present invention is shown;

[0032] Figure 4 The embodiment of the present invention provides Figure 3 Schematic diagram of the local enlarged image at A in the middle;

[0033] Figure 5 A schematic diagram of the structure of a holographic lens determination device provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0034] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments.

[0035] The components of the embodiments of the present invention generally described and shown in the drawings herein may be arranged and designed in a variety of different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0036] Hereinafter, the terms "including", "having" and their cognates, which may be used in various embodiments of the present invention, are intended only to indicate specific features, numbers, steps, operations, elements, components or combinations of the foregoing items, and should not be understood as first excluding the existence of one or more other features, numbers, steps, operations, elements, components or combinations of the foregoing items or adding the possibility of one or more features, numbers, steps, operations, elements, components or combinations of the foregoing items.

[0037] Furthermore, the terms “first”, “second”, “third”, etc. are merely used for distinguishing descriptions and are not to be understood as indicating or implying relative importance.

[0038] Unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meanings as those generally understood by those skilled in the art to which the various embodiments of the present invention belong. The terms (such as those defined in generally used dictionaries) will be interpreted as having the same meanings as the contextual meanings in the relevant technical field and will not be interpreted as having idealized meanings or overly formal meanings unless clearly defined in the various embodiments of the present invention.

[0039] Example 1

[0040] See also Figure 1 , Figure 1 The flowchart of the holographic lens determination method provided by the embodiment of the present invention is shown. The holographic lens determination method comprises the following steps:

[0041] Step 110: construct a model of a spherical lens, and determine a lens grayscale image through the model of the spherical lens.

[0042] The optical effect of the spherical lens can make parallel light rays form a focus. The spherical lens can be cut at equal heights or at equal intervals to obtain a holographic lens. Based on the height and position of the spherical lens, a mathematical model of the spherical lens is constructed. The three-dimensional spherical lens image is converted into a two-dimensional spherical lens image, and the lens grayscale image of the spherical lens is determined by the spherical lens model, where the grayscale value in the lens grayscale image is used to represent the height of the spherical lens.

[0043] As an example, constructing a model of a spherical lens and determining a lens grayscale image by using the model of the spherical lens includes:

[0044] A model of a spherical lens with a preset accuracy is constructed, a height attribute of the spherical lens is used as the image grayscale of the lens grayscale image, and a position attribute of the spherical lens is used as the distance of the lens grayscale image along a preset direction to determine the lens grayscale image.

[0045] A mathematical model representing the three directions of the spherical lens x, y, and z is constructed, wherein the z direction is the height direction of the spherical lens, and the x and y directions are the position directions of the spherical lens. For ease of understanding, in the embodiment of the present application, the preset accuracy of the spherical lens model is a minimum resolution of 100 nm. At the same time, since the requirement is to determine the two-dimensional image of the spherical lens, the height attribute of the spherical lens is used as the image grayscale of the lens grayscale image, and the position attribute of the spherical lens is used as the distance of the lens grayscale image along the preset x and y directions to determine the two-dimensional lens grayscale image. The holographic lens is obtained by cutting the lens grayscale image with equal heights.

[0046] The height of each point in the spherical lens is recorded as h, and the height attribute of the spherical lens is used as the image grayscale of the lens grayscale image. For ease of understanding, in the embodiment of the present application, the calculated height h of each point in the spherical lens is normalized to a corresponding grayscale value between 0 and 255. Affected by the grayscale range recognized by the lithography machine, the maximum height of the spherical lens is used as the 255 grayscale value of the lens grayscale image, and the minimum height of the spherical lens is used as the 0 grayscale value of the lens grayscale image. The grayscale value of the lens grayscale image is a uniform gradient grayscale of 0 to 255.

[0047] See also Figure 2 , Figure 2 A schematic diagram of a lens grayscale image of a spherical lens model provided by the prior art is shown. As an example, the spherical lens model is a zoom spherical lens model along the radius.

[0048] For ease of understanding, in the embodiment of the present application, the distance from the center of the spherical lens along the x direction is m, and the distance along the y direction is n, that is, the center point of the spherical lens is (m, n), then the distance between each point of the spherical lens model projected on the xy plane and the center of the lens is:

[0049]

[0050] Among them, (i, j) is the distance from the spherical lens to each point on the xy plane except the center of the spherical lens, (m, n) is the lens center point of the spherical lens, and r is the distance from the spherical lens to each point on the xy plane and the lens center.

[0051] Usually, the height of each point in the spherical lens model provided by the prior art is:

[0052]

[0053] Among them, f is the focal length of the spherical lens, h is the height of each spherical lens, and r is the distance from the spherical lens to each point on the xy plane and the center of the lens.

[0054] like Figure 2 As shown, after the lens grayscale image of the spherical lens model is enlarged, the thickness of the stripes in the lens grayscale image changes rapidly and violently, which is not conducive to the holographic lens to produce optical stripes similar to the moiré effect, and further affects the visual effect of the obtained holographic lens.

[0055] In the embodiment of the present application, the model of the spherical lens is a zoom spherical lens model along the radius, wherein the lens focal length of the zoom spherical lens along the radius gradually increases as the radius increases. Specifically, the change process of the lens focal length can be expressed as:

[0056]

[0057] Among them, f1 is the change value of the focal length of the zoom spherical lens along the radius, f is the initial focal length of the zoom spherical lens along the radius, a is the initial radius of the zoom spherical lens along the radius, and t is the change value of the radius of the zoom spherical lens along the radius.

[0058] Since the focal length of the zoom spherical lens along the radius changes dynamically, the height of each point of the zoom spherical lens along the radius is:

[0059]

[0060] Wherein, h1 is the height of each point of the zoom spherical lens along the radius, f1 is the change value of the focal length of the zoom spherical lens along the radius, and r is the distance from each point on the xy plane of the zoom spherical lens along the radius to the center of the lens.

[0061] See also Figure 3 , Figure 3A schematic diagram of the lens grayscale image of the spherical lens model provided by an embodiment of the present invention is shown. The present application constructs a variable-radius spherical lens, and on the basis of not affecting the concave-convex feeling of the holographic lens in the central area, the thickness of the stripes in the lens grayscale image of the spherical lens model will not change drastically and rapidly, which is conducive to the holographic lens to produce optical stripes with a moiré effect.

[0062] As an example, the model of the spherical lens is a spherical lens model in which a concave lens and a convex lens are connected.

[0063] In the spherical lens connected by a concave lens and a convex lens, the one close to the center of the lens is a convex lens, and the one far away from the center of the lens is a concave lens. For ease of understanding, in the embodiment of the present application, the convex lens is two-thirds of the total diameter of the spherical lens, and the concave lens is one-third of the total diameter of the spherical lens. The convex lens is within two-thirds of the total diameter of the spherical lens, and the concave lens is outside two-thirds of the total diameter of the spherical lens. The height of each point of the convex lens in the spherical lens connected by a concave lens and a convex lens is:

[0064]

[0065] Among them, h a is the height of each point of the convex lens, f a is the focal length of the convex lens, and r is the distance from the convex lens to every point on the xy plane and the center of the lens.

[0066] The height of each point of the concave lens in the spherical lens connected to the concave lens and the convex lens is:

[0067]

[0068] Among them, h b is the height of each point of the concave lens, f b is the focal length of the concave lens, r is the distance from the concave lens to each point on the xy plane and the center of the lens, r max It is the total diameter of the spherical lens connected by the concave lens and the convex lens.

[0069] Please also read Figure 4 , Figure 4 The embodiment of the present invention provides Figure 3 Schematic diagram of the local enlarged image at point A in the middle.

[0070] It should be understood that in this embodiment, the spherical lens model can be a spherical lens model of a concave lens and a convex lens connected together, or a spherical lens model with a zoom along the radius, which is not limited here. After the lens grayscale image of the zoom spherical lens model along the radius is enlarged, or after the lens grayscale image of the spherical lens model of a concave lens and a convex lens connected together is enlarged, Figure 3The thickness of the fringes in the local magnified image of the lens grayscale image of the spherical lens model at A in the middle changes evenly, which is conducive to the holographic lens to produce optical fringes similar to the moiré effect.

[0071] Step 120, proportionally enlarge the lens grayscale image based on a preset enlargement coefficient to obtain a lens enlarged image.

[0072] It should be understood that the preset magnification coefficient is set according to actual needs and is not limited here. For ease of understanding, in the embodiment of the present application, the preset magnification coefficient is a value in the range of 3 times to 5 times. Based on the preset magnification coefficient, the lens grayscale image is proportionally enlarged to obtain a lens enlarged image, wherein the lens enlarged image is close to the size of the holographic lens required, which is not limited here.

[0073] As an example, the step of proportionally enlarging the lens grayscale image based on a preset enlargement coefficient to obtain a lens enlarged image includes:

[0074] Based on a preset enlargement coefficient, the lens grayscale image is enlarged in equal proportion by a nearest neighbor interpolation algorithm in a square matrix to obtain a lens enlarged image.

[0075] Specifically, take the example of a spherical lens model with an expansion coefficient whose position accuracy is 100*100nm. If the preset expansion coefficient is 3 times, based on the preset expansion coefficient, the lens grayscale image is proportionally expanded by the nearest neighbor interpolation algorithm of the square matrix type, and a lens enlarged image with a position accuracy of 300*300nm is obtained. If the preset expansion coefficient is 5 times, based on the preset expansion coefficient, the lens grayscale image is proportionally expanded by the nearest neighbor interpolation algorithm of the square matrix type, and a lens enlarged image with a position accuracy of 500*500nm is obtained. Based on the preset expansion coefficient, the lens grayscale image is proportionally expanded by the nearest neighbor interpolation algorithm of the square matrix type, and the thickness of the stripes in the obtained lens enlarged image will not change drastically and rapidly, which is conducive to the holographic lens to produce optical stripes with a moiré effect.

[0076] Step 130 , performing equal-height cutting on the enlarged lens image based on a preset cutting height to obtain a Fresnel lens image of the spherical lens.

[0077] Based on the preset cutting height, the lens enlarged image is cut at the same height to obtain the Fresnel lens image of the spherical lens. In the lens model after the Fresnel principle is cut at the same height, some stripes will have optical stripes similar to the moiré effect. At the same time, because the width of the stripes changes slowly and evenly, the optical stripes similar to the moiré effect appear in some positions and then gradually disappear, which will not affect the convexity of the holographic lens obtained through the Fresnel lens image.

[0078] As an example, the step of performing equal-height cutting on the enlarged lens image based on a preset cutting height to obtain a Fresnel lens image of the spherical lens includes:

[0079] The Fresnel lens removes most of the optical material on the surface while retaining the curvature of the surface, so that the refraction energy of the lens occurs only on the lens surface, achieving a lens effect with a larger focal length within a very small thickness range. Based on the preset cutting height, the Fresnel lens cutting algorithm is used to perform iso-height cutting on the enlarged image of the lens to obtain the Fresnel lens image of the spherical lens.

[0080] For ease of understanding, in the embodiment of the present application, the stripe depth in the Fresnel lens image obtained after switching is 2um to 3um. Based on the preset cutting height, the lens enlarged image is cut at equal heights by the Fresnel lens cutting algorithm to obtain the Fresnel lens image of the spherical lens. Compared with ordinary lenses, Fresnel lenses can transmit more light.

[0081] Step 140: obtaining a holographic lens with a moiré-like effect according to the Fresnel lens image of the spherical lens.

[0082] Specifically, according to the Fresnel lens image of the spherical lens, the photoresist is exposed, developed, electroformed and molded, etc., to obtain a holographic lens with a moiré-like effect. It should be understood that moiré fringes are the third visible pattern of different original graphics formed after two periodic grating patterns with similar spatial frequencies overlap in the graphics. The moiré-like effect is the light phenomenon that the human eye cannot distinguish the original graphics and observes the moiré fringes. Compared with the existing holographic lenses, the present application obtains a holographic lens with a moiré-like effect, and there will be dynamic and randomly changing optical fringes of a moiré-like effect, which has a stronger sense of depth of field. When the holographic lens with a moiré-like effect is used for anti-counterfeiting, if no optical fringes of a moiré-like effect appear, it is determined to be a counterfeit holographic lens. It can be confirmed whether optical fringes of a moiré-like effect appear for anti-counterfeiting, which improves the anti-counterfeiting effect of the holographic lens. At the same time, the preset magnification factor and the preset cutting height can be adjusted according to the needs to obtain a variety of different holographic lenses with a moiré-like effect, which further improves the anti-counterfeiting effect of the holographic lens.

[0083] As an example, after performing equal-height cutting on the lens enlarged image based on a preset cutting height to obtain the Fresnel lens image of the spherical lens, the method further includes:

[0084] The expansion coefficient and cutting height of the Fresnel lens image are adjusted until the thickness of the edge stripes of the Fresnel lens image is within a preset thickness range.

[0085] If the thickness of the edge stripes of the Fresnel lens image obtained after step 130 is within the preset thickness range, the expansion coefficient and cutting height of the Fresnel lens image are not adjusted. Since there are errors in the actual process of obtaining the Fresnel lens image, if the thickness of the edge stripes of the Fresnel lens image is not within the preset thickness range, the expansion coefficient and cutting height of the Fresnel lens image are adjusted to adjust the thickness of the edge stripes of the Fresnel lens image until the stripe thickness of the Fresnel lens image is within the preset thickness range.

[0086] It should be understood that the preset thickness range is set according to the actual size of the holographic lens and is not limited here. For ease of understanding, in the embodiment of the present application, the preset thickness range is 500nm to 500um. Adjust the expansion coefficient and cutting height of the Fresnel lens image until the stripe thickness value of the Fresnel lens image is within 500nm to 500um. The thickness value of the thinnest edge stripe is 500nm. Since the thinnest edge stripe is close to the thickest edge stripe period, when the cutting line of the thinner stripes in the lens is close to the resolution matrix of the lens, the lens can produce optical stripes with a moiré-like effect. When observing a holographic lens with a moiré-like effect, compared with an ordinary holographic lens, a kaleidoscope-like visual effect can be observed, which improves the anti-counterfeiting effect of the holographic lens.

[0087] The present application provides a method for determining a holographic lens, the method comprising: constructing a model of a spherical lens, and determining a lens grayscale image through the model of the spherical lens; proportionally enlarging the lens grayscale image based on a preset enlargement coefficient to obtain an enlarged lens image; performing equal-height cutting on the enlarged lens image based on a preset cutting height to obtain a Fresnel lens image of the spherical lens; and obtaining a holographic lens with a moiré-like effect according to the Fresnel lens image of the spherical lens. When the holographic lens with a moiré-like effect of the present application is used for anti-counterfeiting, compared with the existing holographic lens, anti-counterfeiting can also be performed by confirming whether optical stripes with a moiré-like effect appear, thereby improving the anti-counterfeiting effect of the holographic lens. At the same time, the preset magnification factor and the preset cutting height can be adjusted according to demand, thereby further improving the anti-counterfeiting effect of the holographic lens.

[0088] Example 2

[0089] See also Figure 5 , Figure 5 A schematic diagram of the structure of a holographic lens determination device provided by an embodiment of the present invention is shown. Figure 5 The holographic lens determining device 200 in the embodiment includes:

[0090] A grayscale image determination module 210 is used to construct a model of a spherical lens and determine a lens grayscale image through the model of the spherical lens;

[0091] A lens image enlargement module 220, used to enlarge the lens grayscale image in equal proportion based on a preset enlargement coefficient to obtain a lens enlarged image;

[0092] A lens image cutting module 230, configured to perform equal-height cutting on the lens enlarged image based on a preset cutting height to obtain a Fresnel lens image of the spherical lens;

[0093] The holographic lens obtaining module 240 is used to obtain a holographic lens with a moiré-like effect according to the Fresnel lens image of the spherical lens.

[0094] As an example, the holographic lens determination device 200 further includes:

[0095] The Fresnel lens image adjustment module is used to adjust the expansion coefficient and cutting height of the Fresnel lens image until the stripe thickness value of the Fresnel lens image is within a preset thickness range.

[0096] As an example, the grayscale image determination module 210 is also used to construct a model of a spherical lens with a preset accuracy, use the height attribute of the spherical lens as the image grayscale of the lens grayscale image, and use the position attribute of the spherical lens as the distance of the lens grayscale image along a preset direction to determine the lens grayscale image.

[0097] As an example, the lens image enlargement module 220 is further used to enlarge the lens grayscale image in equal proportion based on a preset enlargement coefficient by a square matrix nearest neighbor interpolation algorithm to obtain a lens enlarged image.

[0098] As an example, the lens image cutting module 230 is further configured to perform equal-height cutting on the lens enlarged image based on a preset cutting height by using a Fresnel lens cutting algorithm to obtain a Fresnel lens image of the spherical lens.

[0099] As an example, the model of the spherical lens is a zoom spherical lens model along the radius.

[0100] As an example, the model of the spherical lens is a spherical lens model in which a concave lens and a convex lens are connected.

[0101] The holographic lens determination device 200 is used to execute the corresponding steps in the above-mentioned holographic lens determination method, and the specific implementation of each function is not described one by one here. In addition, the optional examples in embodiment 1 are also applicable to the holographic lens determination device 200 of embodiment 2.

[0102] An embodiment of the present application further provides a computer device, which includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the holographic lens determination method as described in Embodiment 1 is implemented.

[0103] The embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the holographic lens determination method as described in Embodiment 1 is implemented.

[0104] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and structure diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in an alternative implementation, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the structure diagram and / or the flow chart, and the combination of boxes in the structure diagram and / or the flow chart, can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0105] In addition, the functional modules or units in the various embodiments of the present invention may be integrated together to form an independent part, or each module may exist independently, or two or more modules may be integrated to form an independent part.

[0106] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a smart phone, a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0107] The above description is only a specific implementation mode of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.

Claims

1. A method for determining a holographic lens, characterized in that: The method comprises: Constructing a model of a spherical lens, and determining a lens grayscale image through the model of the spherical lens; Proportionally enlarging the lens grayscale image based on a preset enlargement coefficient to obtain a lens enlarged image; Performing equal-height cutting on the enlarged lens image based on a preset cutting height to obtain a Fresnel lens image of the spherical lens; According to the Fresnel lens image of the spherical lens, a holographic lens with a moiré-like effect is obtained.

2. The holographic lens determination method according to claim 1, characterized in that: After performing equal-height cutting on the enlarged lens image based on the preset cutting height to obtain the Fresnel lens image of the spherical lens, the method further includes: The expansion coefficient and cutting height of the Fresnel lens image are adjusted until the stripe thickness value of the Fresnel lens image is within a preset thickness range.

3. The holographic lens determination method according to claim 1, characterized in that: The step of constructing a spherical lens model and determining a lens grayscale image by using the spherical lens model comprises: A model of a spherical lens with a preset accuracy is constructed, a height attribute of the spherical lens is used as the image grayscale of the lens grayscale image, and a position attribute of the spherical lens is used as the distance of the lens grayscale image along a preset direction to determine the lens grayscale image.

4. The holographic lens determination method according to claim 1, characterized in that: The step of proportionally enlarging the lens grayscale image based on a preset enlargement coefficient to obtain a lens enlarged image includes: Based on a preset enlargement coefficient, the lens grayscale image is enlarged in equal proportion by a nearest neighbor interpolation algorithm in a square matrix to obtain a lens enlarged image.

5. The holographic lens determination method according to claim 1, characterized in that: The method of performing equal-height cutting on the enlarged lens image based on a preset cutting height to obtain a Fresnel lens image of the spherical lens includes: Based on a preset cutting height, the lens enlarged image is cut at equal heights using a Fresnel lens cutting algorithm to obtain a Fresnel lens image of the spherical lens.

6. The holographic lens determination method according to claim 1, characterized in that: The model of the spherical lens is a zoom spherical lens model along the radius.

7. The holographic lens determination method according to claim 1, characterized in that: The model of the spherical lens is a spherical lens model in which a concave lens and a convex lens are connected.

8. A holographic lens determination device, characterized in that: The device comprises: A grayscale image determination module, used to construct a model of a spherical lens and determine a lens grayscale image through the model of the spherical lens; A lens image enlargement module, used to enlarge the lens grayscale image in equal proportion based on a preset enlargement coefficient to obtain a lens enlarged image; A lens image cutting module, used for performing equal-height cutting on the enlarged lens image based on a preset cutting height to obtain a Fresnel lens image of the spherical lens; The holographic lens obtaining module is used to obtain a holographic lens with a moiré-like effect according to the Fresnel lens image of the spherical lens.

9. A computer device, characterized in that: The computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the holographic lens determination method according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the holographic lens determination method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Hologram generation method and system based on light field renderin, storage medium and near-to-eye AR holographic three-dimensional display system

    CN109683461A

  • Manufacturing method and device for holographic lens projection screen

    CN110109320A