Flaw simulation method and device for securities, storage medium and electronic equipment

By collecting securities images and adjusting the parameters of UV flatbed printers, the defects are simulated to print out, and the problems of uneven color and low efficiency in the prior art are solved, and the generation of samples with high efficiency and uniformity is achieved, which improves the accuracy of the classifier and reduces development costs.

CN120071045APending Publication Date: 2025-05-30CHINA BANKNOTE PRINTING & MINTING +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510120918.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-24
Publication Date
2025-05-30

AI Technical Summary

Technical Problem

The existing securities defect simulation methods use manual coloring or chemical soaking dyeing, resulting in uneven color, low efficiency, poor uniformity, and difficulty in accurately mimicking different types of defects.

Method used

By collecting defective securities images, obtaining image data, and adjusting the printing parameters of the UV flatbed printer based on the data, the simulated printing of defects is achieved.

Benefits of technology

Improves the color uniformity and production efficiency of the sample sheet, enhances the accuracy of the classifier, and reduces development costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120071045A_ABST
    Figure CN120071045A_ABST
Patent Text Reader

Abstract

The invention provides a security flaw simulation method and device, a storage medium and electronic equipment. The flaw simulation method comprises the following steps: acquiring images of flawed securities; acquiring image data of the images of the defective securities; adjusting printing parameters of a UV flatbed printer according to the image data of the defective securities image; and the UV flat printer carries out printing according to the printing parameters. According to the flaw simulation method, a UV flat plate printing mode is used for replacing processes such as manual coloring and chemical soaking dyeing, and UV ink is printed on flawless negotiable securities, so that a simulation sample sheet of the negotiable securities with flaws is obtained. According to the defect simulation method, the color uniformity of the sample page can be effectively improved, the manufacturing efficiency and uniformity can be improved, the accuracy of the classifier can be improved, and the development cost of the classifier can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of surface treatment of securities, and in particular to a method, device, storage medium and electronic device for simulating defects of securities. Background Art

[0002] At present, banknote processing equipment used in the financial field, such as cash recyclers, banknote sorters, etc., inputs the sample image of the banknote to be identified into the banknote recognition system, extracts features, and applies the classification model obtained in the banknote classification learning system to make classification decisions on the samples and output the final classification results.

[0003] In order to eliminate the interference of the quality of the samples to be identified on the recognition results as much as possible, it is usually necessary to input a more diverse sample to be learned when learning the banknote classifier. However, in the process of selecting samples, in addition to considering brand new banknote samples, it is also necessary to consider various new and old securities samples, as well as samples with different degrees of dirt. Therefore, the number of sample selections is relatively large. Therefore, it is difficult to collect all the required categories of banknotes in the circulation field, especially for the development of non-domestic banknote algorithms. It is almost impossible to collect a complete banknote sample set.

[0004] In order to solve the above problems, in the related art, it is usually to simulate and generate securities samples with different defects on securities. However, the existing simulation methods usually use manual coloring, chemical immersion dyeing and other methods. Due to the height difference between offset printing and gravure printing on securities samples, and the addition of anti-counterfeiting materials, it is easy to cause uneven distribution of dyeing materials, making the samples have different shades of color, and there are disadvantages such as easy fading, poor wear resistance, low production efficiency, and poor uniformity. Summary of the invention

[0005] The present application aims to solve at least one of the technical problems existing in the related art.

[0006] To this end, a first aspect of the present application is to propose a method for simulating defects of securities.

[0007] A second aspect of the present application is to provide a device for simulating defects of securities.

[0008] A third aspect of the present application is to provide a computer-readable storage medium.

[0009] A fourth aspect of the present application is to provide an electronic device.

[0010] In view of this, according to the first aspect of the present application, a method for simulating defects of securities is proposed, comprising: Capture images of defective securities; Obtain the image data of the defective security image; Adjust the printing parameters of the UV flatbed printer according to the image data of the defective security image; The UV flatbed printer prints according to the printing parameters.

[0011] Compared with the simulation methods such as manual coloring and chemical immersion dyeing in the related art, in the above technical solution, by obtaining the image data of the defective security image and adjusting the printing parameters of the UV flatbed printer according to the image data of the defective security image, defects are simulated and printed on the security through the UV flatbed printer to obtain a sample. In this way, the UV flat printing method replaces the processes such as manual coloring and chemical immersion dyeing in the related art, and the ink is printed on the security, so as to obtain a simulated sample of the defective security. Compared with the related art, the simulation method of the present application can effectively improve the color uniformity of the sample, and helps to improve the production efficiency and uniformity. Furthermore, it can not only improve the accuracy of the classifier, but also help to reduce the development cost of the classifier.

[0012] In some technical solutions, optionally, the defects include dirt defects and fading defects.

[0013] Specifically, when the defect is a dirt defect, obtaining the image data of the defective security image specifically includes: Extract the dirty area of the defective security image and simulate and generate a source dirty image; Obtain the area of the source dirty image and the color of the source dirty image.

[0014] When the defect is a fading defect, obtaining the image data of the defective security image specifically includes: obtaining the lightness value of the defective security image.

[0015] In practical applications, for dirt defects, it is necessary to obtain the area and color of the dirt in the defective security image; for fading defects, it is necessary to obtain the lightness value of the defective security image. In this way, the current defects of the security can be accurately reflected, which helps to improve the uniformity of the sample.

[0016] In some technical solutions, optionally, obtaining the area of the source dirty image specifically includes: Obtain the source dirty image; Overlay and fuse the source dirty image and a preset blank image to generate a fused image; Obtain the number N of pixel points in the fused image and calculate the number n of pixel points per unit area; Obtain the number m of pixel points in the fused image whose gray value is greater than the threshold, and calculate the area S of the source dirty image; where S = m / n.

[0017] In the above technical solution, by superimposing and fusing the source dirty image and a preset blank image, and counting the number of pixels contained in the fused image; at the same time, defining and calculating the number of pixels contained in each unit area. Since the gray value of the dirty area is greater than that of other areas, the area of the dirty area can be quickly and accurately obtained by counting the number of pixels with a gray value greater than the threshold. Therefore, the method provided in this embodiment can meet the actual needs of calculating the area of irregular dirt, and has high accuracy, so as to accurately obtain a sample sheet with uniform color and good uniformity.

[0018] In some technical solutions, optionally, the printing parameters include: the color combination of CMYK and the ink output.

[0019] Specifically, when the defect is a dirt defect, according to the image data of the defective security image, adjusting the printing parameters of the UV flatbed printer specifically includes: adjusting the CMYK color combination of the UV flatbed printer according to the color of the source dirt image; adjusting the ink output of the UV flatbed printer according to the area S of the source dirt image and the color of the source dirt image.

[0020] When the defect is a fading defect, according to the image data of the defective security image, adjusting the printing parameters of the UV flatbed printer specifically includes: adjusting the CMYK color combination and the ink output of the UV flatbed printer according to the lightness value of the defective security image.

[0021] In the above technical solution, for the color of the source dirt image, the color combination of the UV flatbed printer can be adjusted to match the color of the source dirt image. And the area and depth of the dirt on the security are related to the ink output and the diffusion degree of the ink. Therefore, by adjusting the ink output of the UV flatbed printer, the diffusion degree of the ink can be accurately controlled, and then a sample sheet with uniform color and good uniformity can be accurately obtained.

[0022] In some technical solutions, optionally, the printing parameters further include at least one of the type of the printing head, the resolution of the printing head, the voltage of the printing head, the wavelength of the ultraviolet curing light source, and the ultraviolet curing energy.

[0023] Specifically, when the defect is a dirt defect, according to the image data of the defective security image, adjusting the printing parameters of the UV flatbed printer specifically further includes: adjusting the type of the printing head, the resolution of the printing head, the voltage of the printing head, the wavelength of the ultraviolet curing light source, and the ultraviolet curing energy of the UV flatbed printer according to the area S of the source dirt image and the color of the source dirt image.

[0024] When the defect is a fading defect, adjusting the printing parameters of the UV flatbed printer according to the image data of the defective security image specifically further includes: adjusting the type of the printing head of the UV flatbed printer, the resolution of the printing head, the voltage of the printing head, the wavelength of the ultraviolet curing light source, and the ultraviolet curing energy according to the brightness value of the defective security image.

[0025] In the above technical solution, the wavelength of the ultraviolet curing light source has a direct impact on the printing effect. The wavelength should match the initiator of the UV ink, which can cure the ink more effectively, making the printed image more firm, vivid, and clear. If the color of the source dirty image is relatively dark, it may be necessary to increase the energy density of the ultraviolet curing light source. However, it is also necessary to pay attention not to overly shorten the wavelength to avoid damaging the print head and the securities.

[0026] The voltage of the printing head of the UV flatbed printer also affects the printing effect. If the printing head pressure is too high, it may cause uneven ink ejection, forming spots, ink fluttering, or rough edges; if the pressure is too low, the ink may not be completely transferred to the substrate, resulting in phenomena such as light color, uneven color blocks, and lack of saturation. Therefore, it is necessary to appropriately adjust the voltage of the printing head of the UV flatbed printer according to the color depth of the source dirty image.

[0027] According to the second aspect of the present application, the present application proposes a defect simulation device for securities, and this simulation device adopts the defect simulation method for securities provided in the first aspect of the present application. Therefore, this simulation device has all the beneficial effects of any of the above technical solutions, which will not be elaborated here.

[0028] Specifically, the defect simulation device for securities includes: an image acquisition module for acquiring a defective security image; an image processing module for obtaining the image data of the defective security image; a printing parameter adjustment module for adjusting the printing parameters of the UV flatbed printer according to the image data of the defective security; and a UV flatbed printer for printing according to the printing parameters.

[0029] According to the third aspect of the present application, the present application proposes a computer-readable storage medium, which stores a computer program. When the computer program is executed, it implements the steps of the defect simulation method for securities as in any technical solution of the present application.

[0030] According to the fourth aspect of the present application, the present application proposes an electronic device, including: a memory and a processor. The memory stores a program or instruction that can run on the processor. When the program or instruction is executed by the processor, it implements the steps of the defect simulation method for securities as in any of the above technical solutions of the present application.

[0031] Additional aspects and advantages of the present application will become apparent in the following description section or will be learned through the practice of the present application. Description of the Drawings

[0032] The above and / or additional aspects and advantages of the present application will become apparent and be readily understood from the description of the embodiments in conjunction with the following drawings, where: Figure 1 FIG. 1 shows one of the schematic flowcharts of the method for simulating defects of securities according to an embodiment of the present application; Figure 2 FIG. 2 shows another schematic flowchart of the method for simulating defects of securities according to an embodiment of the present application; Figure 3 FIG. 3 shows the schematic flowchart of obtaining the area of the source dirt image when the defect in the embodiment of the present application is dirt; Figure 4 FIG. 4 shows a third schematic flowchart of the method for simulating defects of securities according to an embodiment of the present application; Figure 5 FIG. 5 shows the structural block diagram of the device for simulating defects of securities according to an embodiment of the present application. Detailed Embodiments

[0033] In order to more clearly understand the above objects, features, and advantages of the present application, the present application will be further described in detail below in conjunction with the drawings and specific embodiments. It should be noted that, without conflict, the embodiments of the present application and the features in the embodiments can be combined with each other.

[0034] Many specific details are set forth in the following description in order to fully understand the present application. However, the present application may also be implemented in other ways different from those described herein. Therefore, the protection scope of the present application is not limited by the limitations of the specific embodiments disclosed below.

[0035] The following Figures 1 to 5 , through specific embodiments and their application scenarios, the method, device, storage medium, and electronic device for simulating defects of securities provided by the embodiments of the present application will be described in detail.

[0036] As Figure 1 shown, in the embodiment of the present application, a method for simulating defects of securities is provided, including: S102, collecting an image of a defective security; S104, obtaining the image data of the image of the defective security; S106, adjusting the printing parameters of the UV flatbed printer according to the image data of the image of the defective security; S108, the UV flatbed printer performs printing according to the printing parameters.

[0037] Compared with the simulation methods in the related art that use manual painting, chemical immersion dyeing and other methods, in the above embodiments, by acquiring the image data of the defective securities image and adjusting the printing parameters of the UV (Ultraviolet) flatbed printer according to the image data of the defective securities image, defects are simulated and printed on the securities by the UV flatbed printer to obtain a sample. In this way, the UV flatbed printing method replaces the manual painting, chemical immersion dyeing and other processes in the related art, and prints the ink on the securities, so as to obtain a simulated sample of defective securities. Compared with the related art, the simulation method of the present application can effectively improve the color uniformity of the sample, and helps to improve the production efficiency and unity. Furthermore, it can not only improve the accuracy of the classifier, but also help to reduce the development cost of the classifier.

[0038] In the above embodiments, first, it is necessary to collect the defective securities image, which can be achieved by using a professional image acquisition device (such as a high-resolution camera) for shooting. When shooting, it should be ensured that the image is clear and the details are complete for subsequent processing and analysis. After obtaining the defective securities image, it is necessary to further extract the image data therein, which can be achieved through the measurement tools and analysis functions of image processing software (such as Photoshop). For example, the area and shape of the dirt can be obtained through the measurement tool; the color information of the dirt can be obtained through the color analysis tool.

[0039] In some embodiments, the defects include dirt defects (such as stains and scribbles) and fading defects. For dirt defects, it is necessary to obtain the area and color of the dirt in the defective securities image; for fading defects, it is necessary to obtain the lightness value in the defective securities image. In this way, the current defects of the securities can be accurately reflected, which helps to improve the unity of the sample.

[0040] Figure 2 shows a schematic flow chart of the method for simulating defects of securities in the embodiments of the present application; wherein, the defect is a dirt defect, and the method includes: S202, collect the defective securities image; S204, extract the dirty area of the defective securities image and simulate and generate the source dirty image; S206, obtain the area of the source dirty image and the color of the source dirty image; S208, adjust the printing parameters of the UV flatbed printer according to the area of the source dirty image and the color of the source dirty image; S210, the UV flatbed printer prints according to the printing parameters.

[0041] In the above embodiments, after obtaining the defective securities image, it is necessary to further extract the soiled part therein and generate an independent source soiled image. This can be achieved through selection tools, color extraction tools, etc. of image processing software (such as Photoshop). By adjusting the selection parameters and color extraction accuracy, the soiled part can be accurately extracted, and a source image containing only soiled information can be generated. By simulating and generating the source soiled image of the defective securities image and adjusting the printing parameters of the UV flatbed printer based on the image data of the source soiled image, the printing accuracy of the UV flatbed printer can be improved, and then a sample with good color uniformity and unity can be accurately obtained.

[0042] Specifically, the image data of the source soiled image includes the area S of the source soiled image and the color of the source soiled image. In this embodiment, since there are obvious differences between the soiling and the securities, the soiling defects of the securities can be accurately represented by the area S and color of the source soiled image, thereby effectively improving the color uniformity of the sample. It can be understood that in order to obtain this information more accurately, the measurement tools and analysis functions of image processing software can be used. For example, the area and shape of the soiling can be obtained through the measurement tool; the color information of the soiling can be obtained through the color analysis tool.

[0043] In the above embodiments, the printing parameters of the UV flatbed printer include at least one of the CMYK color combination, ink output, type of print head, resolution of the print head, voltage of the print head, wavelength of the ultraviolet curing light source, and ultraviolet curing energy.

[0044] Specifically, for the color of the source soiled image, the color combination of the UV flatbed printer can be adjusted to match the color of the source soiled image. And the area and depth of the soiling on the securities are related to the ink output and the degree of ink diffusion. Therefore, by adjusting the ink output of the UV flatbed printer and at the same time adjusting the wavelength and ultraviolet curing energy of the ultraviolet curing light source of the UV flatbed printer, the degree of ink diffusion can be precisely controlled, and then a sample with good color uniformity and unity can be accurately obtained.

[0045] Among them, the wavelength of the ultraviolet curing light source has a direct impact on the printing effect. Its wavelength should match the initiator of the UV ink, which can more effectively cure the ink and make the printed image more firm, vivid, and clear. If the color of the source soiled image is darker, it may be necessary to increase the energy density of the ultraviolet curing light source. However, it is also necessary to pay attention not to overly shorten the wavelength to avoid damage to the print head, ink, and securities.

[0046] The voltage of the print head of the UV flatbed printer will also affect the printing effect. If the pressure of the print head is too high, it may cause uneven ink spraying, forming spots or floating ink or rough edges; if the pressure is too low, the ink may not be fully transferred to the substrate, resulting in light color, uneven color blocks and incomplete color. Therefore, it is necessary to adjust the voltage of the print head appropriately according to the color depth of the source dirty image. If the lines are relatively grouped and dark, the pressure can be appropriately increased to ensure that the amount of ink can be fully transferred to the substrate; if the lines are thin and shallow, the pressure can be appropriately reduced to avoid waste caused by excessive ink spraying.

[0047] Figure 3 The schematic diagram of the process of obtaining the area of ​​the source dirty image in the embodiment of the present application is shown, including: S302, obtaining a source dirty image; S304, superimposing and fusing the source dirty image and the preset blank image to generate a fused image; S306, obtaining the number N of pixels in the fused image, and calculating the number n of pixels per unit area; S308, obtaining the number m of pixels in the fused image whose grayscale values ​​are greater than a threshold, and calculating the area S of the source dirty image; wherein S=m / n.

[0048] Specifically, since the dirty area may have an irregular shape, traditional measurement methods (such as using a ruler or a protractor) are often difficult to measure accurately. In this embodiment, the source dirty image and the preset blank image are superimposed and fused, and the number of pixels contained in the fused image is counted; at the same time, the number of pixels contained per unit area is defined and calculated. Since the grayscale value of the dirty area is greater than the grayscale value of other areas, the number of pixels with a grayscale value greater than a threshold can be counted, so that the area of ​​the dirty area can be quickly and accurately obtained. Therefore, the method provided in this embodiment can meet the actual needs of calculating irregular dirty areas, and has high accuracy, so as to accurately obtain samples with uniform color and good uniformity.

[0049] Figure 4 FIG. 1 shows a flow chart of a method for simulating defects of securities in an embodiment of the present application, wherein the defect is a fading defect, and the method comprises: S402, collecting images of defective securities; S404, obtaining the brightness value of the defective securities image; S406, adjusting the printing parameters of the UV flatbed printer according to the brightness value of the defective securities image; S408, the UV flatbed printer prints according to the printing parameters.

[0050] In this embodiment, the brightness value generally reflects the brightness of the image. For fading defects, the faded area is often represented by a decrease in the brightness value. Therefore, accurately obtaining the brightness value is crucial for simulating fading defects. Therefore, by obtaining the brightness value of the defective securities image, the fading defects of the securities can be accurately represented. In this way, the color uniformity of the sample can be effectively improved.

[0051] It is understandable that, since the brightness value of the securities used as the printing substrate is likely to affect the brightness value of the sample, in order to obtain a more accurate simulation effect, brand new securities are generally used as the printing substrate.

[0052] In the above embodiment, the CMYK color combination, ink output, print head model, print head resolution, print head voltage, UV curing light source wavelength and UV curing energy of the UV flatbed printer are adjusted according to the brightness value of the defective security image.

[0053] Figure 5 A defect simulation device 50 for securities of the present application is shown, and the simulation device includes: an image acquisition module 502, used to acquire images of defective securities; an image processing module 504, used to obtain image data of the defective securities image; a printing parameter adjustment module 506, used to generate printing parameters of a UV flatbed printer according to the image data of the defective securities image; and a UV flatbed printer 508, which prints according to the printing parameters.

[0054] In this embodiment, the defects include dirt defects and discoloration defects.

[0055] Specifically, when the defect is a dirty defect, the image processing module 504 simulates and generates a source dirty image of the defective security image, that is, extracts the dirty area in the defective security image and simulates and generates the source dirty image; the image processing module 504 can also obtain the area and color of the source dirty image.

[0056] Furthermore, obtaining the area of ​​the source dirty image specifically includes: obtaining the source dirty image; superimposing and fusing the source dirty image and a preset blank image to generate a fused image; obtaining the number N of pixels in the fused image, and calculating the number n of pixels per unit area; obtaining the number m of pixels in the fused image whose grayscale values ​​are greater than a threshold, and calculating the area S of the source dirty image; wherein S=m / n.

[0057] Furthermore, when the defect is a fading defect, the image processing module 504 directly obtains the brightness value of the defective security image.

[0058] In this embodiment, the printing parameters of the UV flatbed printer include at least one of CMYK color combination, ink output, type of print head, resolution of print head, voltage of print head, wavelength of ultraviolet curing light source, and ultraviolet curing energy.

[0059] Specifically, for the color of the source soiled image, the color combination of the UV flatbed printer can be adjusted to match the color of the source soiled image. The area and depth of the soiling on the security are related to the ink output and the degree of ink diffusion. Therefore, by adjusting the ink output of the UV flatbed printer while adjusting the wavelength of the ultraviolet curing light source and the magnitude of the ultraviolet curing energy of the UV flatbed printer, the degree of ink diffusion can be precisely controlled, and thus a sample with uniform color and good uniformity can be accurately obtained.

[0060] In some embodiments of the present application, a computer-readable storage medium is also provided. The computer-readable storage medium stores a computer program, and when the computer program is executed, the steps of the method for simulating defects on securities as in any embodiment of the present application are implemented.

[0061] In some embodiments of the present application, an electronic device is also provided, including: a memory and a processor. The memory stores a program or instruction that can run on the processor, and when the program or instruction is executed by the processor, the steps of the method for simulating defects on securities as in any embodiment of the present application are implemented.

[0062] In the above embodiments, the method can be implemented in various different ways according to specific features and / or example applications. For example, these methods can be implemented by a combination of hardware, firmware, and / or software. For example, in a hardware implementation, the processor can be implemented in one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, electronic devices, other device units for performing the above functions, and / or combinations thereof.

[0063] A computer-readable storage medium can be a tangible device that can retain and store instructions for use by an instruction execution device. The computer-readable storage medium can be an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing devices, but is not limited thereto. A non-exhaustive list of more specific examples of the computer-readable storage medium includes: portable computer floppy disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static random access memory (SRAM), portable compact disc read-only memory (CD-ROM), digital versatile disks (DVDs), memory cards, floppy disks, encoding mechanical devices (such as punched cards or grooves with raised structures recording instructions), and any suitable combination of the foregoing devices. The computer-readable storage medium used herein should not be construed as a signal per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagated through waveguides or other transmission media, or electrical signals transmitted through wires, etc.

[0064] It should be clear that in the claims, the specification, and the drawings of this application, the term "a plurality of" means two or more, unless otherwise explicitly defined. The orientation or positional relationship indicated by terms such as "upper", "lower", etc. is based on the orientation or positional relationship shown in the drawings, and is only for more convenient description of this application and to simplify the description process, rather than to indicate or imply that the device or element referred to must have the specific orientation, be constructed and operated in the specific orientation. Therefore, these descriptions should not be construed as limitations on this application; terms such as "connected", "installed", "fixed", etc. should all be understood in a broad sense. For example, "connected" can be a fixed connection between multiple objects, a detachable connection between multiple objects, or an integral connection; it can be a direct connection between multiple objects, or an indirect connection between multiple objects through an intermediate medium. For those of ordinary skill in the art, the specific meanings of the above terms in this application can be understood according to the specific circumstances of the above data.

[0065] In the claims, the specification, and the drawings of this application, the descriptions of terms such as "one embodiment", "some embodiments", "specific embodiments", etc. mean that the specific features, structures, materials, or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of this application. In the claims, the specification, and the drawings of this application, the schematic expressions of the above terms do not necessarily refer to the same embodiment or instance. Moreover, the specific features, structures, materials, or characteristics described can be combined in a suitable manner in any one or more embodiments or examples.

[0066] The above are only the preferred embodiments of the present application and are not intended to limit the present application. For those skilled in the art, various changes and modifications can be made to the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included within the protection scope of the present application.

Claims

1. A method for simulating defects in securities, characterized in that: include: Capture images of defective securities; Acquiring image data of the defective security image; adjusting the printing parameters of the UV flatbed printer according to the image data of the defective securities image; The UV flatbed printer prints according to the printing parameters.

2. The method for simulating a defect of a security according to claim 1, characterized in that: Defects include dirt and discoloration; In the case where the defect is the dirt defect, the step of acquiring the image data of the image of the defective securities specifically includes: Extracting the dirty area of ​​the defective securities image and simulating and generating a source dirty image; Acquire the area of ​​the source dirty image and the color of the source dirty image; In the case where the defect is the fading defect, the step of acquiring image data of the image of the defective security specifically includes: The brightness value of the defective security image is obtained.

3. The method for simulating a defect of a security according to claim 2, characterized in that: The step of obtaining the area of ​​the source dirty image specifically includes: Acquire the source dirty image; The source dirty image and the preset blank image are superimposed and fused to generate a fused image; Obtaining the number N of pixels in the fused image, and calculating the number n of pixels per unit area; The number m of pixels in the fused image whose grayscale values ​​are greater than a threshold is obtained, and the area S of the source dirty image is calculated; wherein S=m / n.

4. The method for simulating a defect of a security according to claim 2 or 3, characterized in that: The printing parameters include: CMYK color combination and ink output.

5. The method for simulating a defect of a security according to claim 4, characterized in that: In the case where the defect is the dirt defect, adjusting the printing parameters of the UV flatbed printer according to the image data of the defective securities image specifically includes: According to the color of the source dirty image, adjusting the CMYK color combination of the UV flatbed printer; The ink output of the UV flatbed printer is adjusted according to the area S of the source dirty image and the color of the source dirty image.

6. The method for simulating a defect of a security according to claim 5, characterized in that: In the case where the defect is the fading defect, adjusting the printing parameters of the UV flatbed printer according to the image data of the defective securities image specifically includes: According to the brightness value of the defective securities image, the CMYK color combination and ink output of the UV flatbed printer are adjusted.

7. The method for simulating a defect of a security according to claim 2 or 3, characterized in that: The printing parameters also include at least one of the model of the print head, the resolution of the print head, the voltage of the print head, the wavelength of the ultraviolet curing light source and the ultraviolet curing energy.

8. The method for simulating a defect of a security according to claim 7, characterized in that: In the case where the defect is the dirt defect, adjusting the printing parameters of the UV flatbed printer according to the image data of the defective securities image specifically includes: According to the area S of the source dirty image and the color of the source dirty image, at least one of the model of the print head of the UV flatbed printer, the resolution of the print head, the voltage of the print head, the wavelength of the ultraviolet curing light source and the ultraviolet curing energy is adjusted.

9. The method for simulating a defect of a security according to claim 8, characterized in that: In the case where the defect is the fading defect, adjusting the printing parameters of the UV flatbed printer according to the image data of the defective securities image specifically includes: According to the brightness value of the defective security image, at least one of the model of the print head of the UV flatbed printer, the resolution of the print head, the voltage of the print head, the wavelength of the UV curing light source and the UV curing energy is adjusted.

10. A device for simulating defects in securities, characterized in that: The method for simulating defects of securities as claimed in any one of claims 1 to 9 is used to simulate and print defects on the securities; the device for simulating defects of securities comprises: An image acquisition module, used for acquiring images of defective securities; An image processing module, used for acquiring image data of the image of the defective securities; A printing parameter adjustment module, used for adjusting the printing parameters of the UV flatbed printer according to the image data of the defective securities image; A UV flatbed printer is used to print according to the printing parameters.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed, the steps of the method for simulating defects of a security according to any one of claims 1 to 9 are implemented.

12. An electronic device, characterized in that: including a processor and a memory; The memory stores a program or an instruction executable on the processor, and when the program or the instruction is executed by the processor, the steps of the method for simulating defects of a security according to any one of claims 1 to 9 are implemented.