Lottery Ticket Inspection Method, Device, Equipment and Storage Medium

By connecting the lottery inspection device to the existing lottery printing device, and using the speed measurement module and scanning module to verify the printing results in real time, the problems of resource waste and commercial costs in the existing technology are solved, and efficient lottery inspection function is realized.

CN116466897BActive Publication Date: 2025-06-20SHENZHEN SINODATA TECH
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202310316738.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2023-02-21
Filing Date
2023-03-22
Publication Date
2025-06-20
Estimated Expiration
2043-03-22

AI Technical Summary

Technical Problem

When the existing lottery printing device adds ticket checking function, it needs to redesign the ticket machine structure, resulting in waste of resources and increased commercial costs.

Method used

By connecting a lottery inspection device to the existing lottery printing device, the printing speed is obtained using the speed measurement module, the scanning speed is controlled synchronized with the printing speed, the printing results are scanned in real time, and the printing results are compared, and the printing abnormality prompt information is generated.

Benefits of technology

It realizes real-time inspection of lottery printing results without changing the structure of the existing printing device, reducing resource waste and commercial costs, and improving ticket inspection efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116466897B_ABST
    Figure CN116466897B_ABST
Patent Text Reader

Abstract

This application is applicable to the field of printing technology, and provides a lottery ticket inspection method, device, equipment and storage medium. The method can be applied to a lottery ticket inspection device, and the method includes: obtaining the printing speed of the lottery ticket printing device; controlling the scanning speed according to the printing speed; scanning and obtaining the actual printing result of the lottery ticket according to the scanning speed; if the actual printing result of the lottery ticket is different from the preset printing result, generating a prompt message for printing abnormality. In this application, by installing the above lottery ticket inspection device on the basis of the original printer and running the above lottery ticket inspection method on the lottery ticket inspection device, the lottery ticket printing information can be obtained in a timely manner, and the function of scanning while printing can be realized. By controlling the scanning speed of the lottery ticket inspection device to adapt to the existing traditional printer, the cost of replacement and upgrade can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of printing technology, and in particular to lottery ticket inspection methods, devices, equipment and storage media. Background Art

[0002] During the printing process of lottery tickets on the market, due to environmental reasons or printing equipment reasons, there may be problems such as missing prints, incomplete lottery paper, or incorrect printing information. When traditional lottery ticket machines print and sell lottery tickets, although they can be checked manually to exclude problematic tickets with the above problems, manual inspections are bound to have omissions, and in some lottery business outlets where self-service lottery tickets are purchased, there is no on-site manual service, so it is easier to make mistakes when selling lottery tickets. When problematic tickets are not checked out and are bought by lottery buyers, it may lead to a series of subsequent sales disputes. Traditional lottery ticket machines work normally. If they need to be modified and updated to add ticket inspection and verification functions, the ticket machine structure needs to be redesigned and the updated ticket machine needs to be re-promoted. Merchants may need to replace a new ticket machine and eliminate the old ticket machine, which not only wastes existing resources but also increases business costs. Summary of the invention

[0003] The embodiments of the present application provide a lottery ticket inspection method, device, equipment and storage medium, which are used to solve the problem of waste of existing resources that may occur when redesigning a lottery ticket printing device with a ticket inspection function.

[0004] In a first aspect, an embodiment of the present application provides a lottery ticket inspection method, which is applied to a lottery ticket inspection device, wherein the lottery ticket inspection device is externally connected to a lottery ticket printing device, and the method comprises the following steps:

[0005] Obtain the printing speed of the lottery printing device;

[0006] Control the scanning speed of the lottery ticket inspection device according to the printing speed;

[0007] Scan and obtain the actual printing result of the lottery ticket according to the scanning speed;

[0008] If the actual printing result of the lottery ticket is different from the preset printing result, a prompt message of printing abnormality is generated.

[0009] In a possible implementation of the first aspect, obtaining a printing speed of a lottery printing device includes:

[0010] Detect the printing speed of lottery tickets by photoelectric speed measurement method;

[0011] Alternatively, the printing speed of the lottery ticket is detected by an encoder speed measurement method. In this method, the encoder is in contact with the lottery ticket, and the moving distance of the encoder is measured by an optoelectronic speed measurement method for speed measurement.

[0012] In a possible implementation manner of the first aspect, the optoelectronic speed measurement method includes:

[0013] The optoelectronic sensor obtains the position data of the lottery ticket in the lottery ticket inspection device according to a preset data acquisition frequency;

[0014] The printing speed is obtained according to a preset time interval and the corresponding position data.

[0015] In a possible implementation manner of the first aspect, controlling the scanning speed according to the printing speed includes:

[0016] Obtain the printing speed and control the scanning speed to be the same as the printing speed.

[0017] In a possible implementation manner of the first aspect, controlling the scanning speed according to the printing speed, the method further includes the following steps:

[0018] Determine an arc-shaped channel according to the printing speed. When the lottery ticket passes through the arc-shaped channel, the lottery ticket arches upward;

[0019] Determine the scanning speed according to the arc-shaped channel, where the scanning speed is a fixed value and the scanning speed is less than or equal to the printing speed.

[0020] In a possible implementation manner of the first aspect, determining the arc-shaped channel according to the printing speed includes:

[0021] Determine the length value of the arc-shaped channel according to the printing speed;

[0022] Through the length value of the arc-shaped channel and in combination with the angle value of the arc-shaped channel, determine the height value of the arc-shaped channel;

[0023] Determine the arc-shaped channel according to the length value, height value and angle value.

[0024] In a possible implementation manner of the first aspect, if the actual printing result of the lottery ticket is different from the preset printing result, a prompt message for printing abnormality is generated, including:

[0025] When the actual printing result of the lottery ticket is different from the preset printing result, the lottery ticket inspection device sends an error message to the lottery ticket printing device and transports the lottery ticket back to the lottery ticket printing device in the reverse direction. When the lottery ticket printing device receives the error message, an error mark is printed on the lottery ticket;

[0026] Continue to scan the next lottery ticket. If the actual printing result of the lottery ticket is still different from the preset printing result, a prompt message for abnormal printing is generated.

[0027] In a second aspect, an embodiment of the present application provides a lottery ticket inspection device, including:

[0028] A speed measurement module that obtains the printing speed of the lottery ticket printing device;

[0029] A speed control module that controls the scanning speed of the lottery ticket inspection device according to the printing speed;

[0030] A scanning module that scans and obtains the actual printing result of the lottery ticket according to the scanning speed;

[0031] An error feedback module that generates a prompt message for abnormal printing if the actual printing result of the lottery ticket is different from the preset printing result.

[0032] In a third aspect, an embodiment of the present application provides a lottery ticket inspection device, including a memory, a processor, a computer program stored in the memory and executable on the processor, and an image sensor. The image sensor is used to scan the lottery ticket, and when the processor executes the computer program, it implements the lottery ticket inspection method according to any one of the first aspects.

[0033] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the method according to any one of the first aspects.

[0034] In a fifth aspect, an embodiment of the present application provides a computer program product. When the computer program product runs on the lottery ticket inspection device, the lottery ticket inspection device is enabled to execute the lottery ticket inspection method according to any one of the first aspects.

[0035] It can be understood that the beneficial effects of the above second to fifth aspects can refer to the relevant descriptions in the above first aspect and will not be elaborated here.

[0036] The beneficial effects of the embodiments of the present application compared with the prior art are as follows:

[0037] Compared with the way of redesigning a printer with an inspection function in the prior art, the present application provides a lottery ticket inspection method, device, device and storage medium. In the present application, by installing the above lottery ticket inspection device on the basis of the original printer and running the above lottery ticket inspection method on the lottery ticket inspection device, lottery ticket printing information can be obtained in a timely manner, and the function of scanning while printing can be realized. By controlling the scanning speed of the lottery ticket inspection device to adapt to the existing traditional printers, the cost of replacement is reduced. Description of the Drawings

[0038] To more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the accompanying drawings required for describing the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other accompanying drawings can also be obtained based on these drawings.

[0039] Figure 1 is a schematic flowchart of a lottery verification method provided by an embodiment of the present application;

[0040] Figure 2 is a schematic flowchart of an optoelectronic speed measurement method provided by an embodiment of the present application;

[0041] Figure 3 is a schematic structural diagram of an arc-shaped channel structure provided by an embodiment of the present application;

[0042] Figure 4 is a schematic flowchart of an arc-shaped channel design process provided by an embodiment of the present application;

[0043] Figure 5 is a schematic geometric structural diagram of an arc-shaped channel structure provided by an embodiment of the present application;

[0044] Figure 6 is a schematic structural diagram of a lottery verification device provided by an embodiment of the present application;

[0045] Figure 7 is a schematic structural diagram of a lottery verification device provided by an embodiment of the present application. Detailed implementation manners

[0046] In the following description, specific details such as specific system structures and technologies are presented for the purpose of illustration rather than limitation, so as to thoroughly understand the embodiments of the present application. However, those skilled in the art should understand that the present application can also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid unnecessary details from interfering with the description of the present application.

[0047] It should be understood that when used in the specification and appended claims of the present application, the term "comprising" indicates the presence of the described features, wholes, steps, operations, elements, and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components, and / or their combinations.

[0048] It should also be understood that the term "and / or" as used in the specification and appended claims of this application refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0049] Reference to "one embodiment" or "some embodiments" or the like described in the specification of this application means that a specific feature, structure, or characteristic described in connection with that embodiment is included in one or more embodiments of this application. Thus, statements such as "in one embodiment", "in some embodiments", "in other some embodiments", "in still other embodiments", etc. that appear in different places in this specification do not necessarily all refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "comprise", "include", "have" and their variants all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0050] This application provides a lottery ticket inspection method, device, equipment and storage medium. An external lottery ticket inspection device is added to a traditional lottery ticket printing device, and the above-mentioned lottery ticket inspection method is run on the lottery ticket inspection device. When adding the inspection function for printed lottery tickets to a traditional lottery ticket printing device, it is necessary to redesign the internal structure of the traditional lottery ticket printing device, which will waste the original lottery ticket printing device. When this application is applied to manned or unmanned lottery sales, the lottery ticket inspection device can be externally connected to the lottery ticket printing device through a general-purpose adapter hanger structure. In this way, it is not necessary to replace the traditional lottery ticket printing device, saving resources, and the lottery ticket inspection function can be well realized.

[0051] Figure 1 The flowchart of a lottery ticket inspection method provided by an embodiment of this application is shown. This method is applied to a lottery ticket inspection device that is externally connected to a lottery ticket printing device. The method includes the following steps:

[0052] S101, obtain the printing speed of the lottery ticket printing device.

[0053] In the above steps, a possible implementation is to use an optoelectronic speed measurement method and a non-contact speed measurement method. Within a unit time, detect the moving distance of the lottery ticket and calculate the printing speed of the lottery ticket printing device. Among them, the printing paper used for the lottery ticket is thermal printing paper, which is convenient for the optoelectronic sensor to sense it. The details of the optoelectronic speed measurement method can be found in the relevant description of Figure 2 in the subsequent embodiments of this application.

[0054] In a possible implementation, an encoder speed measurement method is used, and a contact speed measurement method is adopted, where the encoder contacts the lottery printing paper. When the printing paper moves, the encoder moves under the thrust of the printing paper. The moving distance of the encoder per unit time is detected by a photoelectric sensor, and the printing speed of the lottery printing device is calculated.

[0055] In a possible implementation, a direct speed measurement method is used to measure the printing time of the lottery ticket, and the printing speed of the lottery ticket printing device is calculated based on the length of the lottery ticket and the paper feeding speed of the lottery ticket in the lottery ticket printing device.

[0056] S102, controlling the scanning speed of the lottery ticket inspection device according to the printing speed.

[0057] In the above steps, a possible implementation method is that when the length of the printed ticket is not fixed, a synchronous speed measurement scheme is adopted, using the photoelectric sensor speed measurement method or the encoder speed measurement method in the previous step, and according to the printing speed, the stepper motor control frequency of the lottery printing device is obtained, and the stepper motor control frequency of the lottery inspection device is adjusted to control the scanning speed. The lottery printing device and the lottery inspection device are designed to be connected by a gear set, and both are controlled by a stepper motor. When the lottery inspection device obtains the printing speed, the stepper motor control frequency of the lottery inspection device is adjusted so that the scanning speed of the lottery inspection device is synchronized with the printing speed of the lottery printing device.

[0058] In one possible implementation, when the length of the printed ticket is a fixed value, an arc channel solution is adopted. At this time, the structure of the arc channel is designed according to the printing speed and the structure of the lottery printing device. The scanning speed of the lottery inspection device is also a fixed value, and the scanning speed of the lottery inspection device is less than or equal to the printing speed of the lottery printing device. Using the direct speed measurement method in the previous step, when the printing speed is obtained, an arc channel is designed according to the printing speed and the length of the lottery ticket. When the lottery ticket enters the arc channel at a fixed speed, since the scanning speed is less than or equal to the printing speed, the lottery ticket will arch in the arc structure of the arc channel. The arc channel structure and design process are described in the subsequent embodiments of this application. Figure 3 , Figure 4 and Figure 5 Related description.

[0059] S103, scanning and obtaining the actual printing result of the lottery ticket according to the scanning speed.

[0060] In the above steps, a possible implementation is to use a contact image sensor (CIS for short, full English name: Contact Image Sensor) to scan and detect the printed lottery ticket. The internal light source in the CIS is used to irradiate the lottery ticket. After the reflected light on the lottery ticket is photosensitive, the light signal is converted into an electrical signal, and then the conversion circuit converts the electrical signal into a digital signal for transmission to obtain the actual printing result of the lottery ticket.

[0061] In a possible implementation, a synchronous speed measurement scheme is adopted. When the length of the lottery ticket is not fixed, the scanning speed of the lottery ticket inspection device is controlled so that the scanning speed is synchronized with the printing speed of the lottery ticket printing device. After the lottery ticket is printed, it synchronously enters the lottery ticket inspection device and is scanned by the CIS.

[0062] In a possible implementation, an arc channel scheme is adopted. When the length of the lottery ticket is fixed, a fixed arc channel is designed. After the lottery ticket is printed, it enters the lottery ticket inspection device. The lottery ticket arches at the arc channel in the lottery ticket inspection device, and the CIS is used for uniform scanning. Among them, the above arc channel scheme needs to be designed according to the speed difference between the printing speed of the actual lottery ticket printing device and the scanning speed of the lottery ticket inspection device, combined with the physical structure of the lottery ticket printing device.

[0063] S104, if the actual printing result of the lottery ticket is different from the preset printing result, a prompt message for printing abnormality is generated.

[0064] In the above steps, a possible implementation is to obtain the image information of the lottery ticket through CIS scanning and compare it with the preset printing result to check the correctness and integrity of the lottery ticket.

[0065] In a possible implementation, when the synchronous speed measurement scheme is adopted, when the lottery ticket inspection device checks that the printing result of the lottery ticket is different from the preset printing result of the lottery ticket, the lottery ticket inspection device sends an error message and returns the problematic ticket to the lottery ticket printing device. After receiving the error message, the lottery ticket printing device marks the text "void" or other error marks at the specified position on the problematic ticket and continues to detect the next lottery ticket. If there are still problems, the lottery ticket inspection device gives an alarm and generates a prompt message for printing abnormality.

[0066] In a possible implementation, when the arc channel scheme is adopted, when the lottery ticket inspection device checks that the printing result of the lottery ticket is different from the preset printing result of the lottery ticket, the lottery ticket inspection device sends an error message and continues to detect the next lottery ticket. If there are still problems, the lottery ticket inspection device gives an alarm and generates a prompt message for printing abnormality.

[0067] In a possible implementation, the lottery verification device has a function of recycling invalid tickets. When it detects that the printed lottery ticket has a problem, the lottery verification device will send back the problematic ticket and send it into the invalid ticket recycling bin, so that the lottery purchaser will not come into contact with the problematic ticket throughout the purchase process. Through the design of the invalid ticket bin, it is possible to prevent invalid tickets from falling into the hands of lottery purchasers, effectively reducing problem disputes caused by invalid tickets.

[0068] Figure 2 The flowchart of an optoelectronic speed measurement method provided by an embodiment of the present application is shown. The method includes the following steps:

[0069] S201. The optoelectronic sensor obtains the position data of the lottery ticket in the lottery verification device according to a preset data acquisition frequency.

[0070] In the above step, a possible implementation is that when the lottery ticket moves within a unit time, the optoelectronic sensor acquires the position data of the lottery ticket printing paper according to a preset data acquisition frequency. The above data acquisition frequency refers to the number of times of data acquisition within a unit time. For example: in a general optoelectronic sensor, the data acquisition frequency can be 125 times / second, 500 times / second, or 1000 times / second, which respectively represent acquiring 125 times, 500 times, or 1000 times of data within one second.

[0071] S202. The printing speed is obtained according to a preset time interval and the corresponding position data.

[0072] In the above step, a possible implementation is that within a preset time interval, the printing speed is obtained according to the position data of the lottery ticket printing paper in combination with the printing time of the lottery ticket printing device.

[0073] Specifically, after obtaining the printing speed, in order to control the lottery verification device, it is necessary to obtain the printing frequency of the lottery ticket printing device according to the printing speed. In a possible implementation, the preset time interval is taken as 1 millisecond, the data acquisition frequency of the optoelectronic sensor is 1000 times / second, and in combination with the position data measured by the optoelectronic sensor, the number of paper feed points within a unit time can be obtained; then in combination with the position data, the paper feed distance is calculated, and the printing frequency of the lottery ticket printing device can be obtained according to this paper feed distance.

[0074] Specifically, after obtaining the printing speed and the printing frequency of the lottery printing device, it is necessary to control the stepping motor of the lottery inspection device. In a possible implementation, in combination with the resolution of the photoelectric sensor and the resolution of the lottery printing device, the moving distance of the lottery within the lottery inspection device within the preset time interval is obtained. Among them, the resolution of the photoelectric sensor is used to represent the number of points transmitted when moving a preset unit distance, and the unit is the number of measurements per inch (the full English name is Count Per Inch, and the English abbreviation is CPI); the resolution of the lottery printing device is used to determine the number of points when moving a preset unit distance in the lottery printing device, and the unit is the number of dots per inch (the full English name is Dots Per Inch, and the English abbreviation is DPI).

[0075] Exemplarily, in the embodiments of the present application, the resolution of the photoelectric sensor can take parameters such as 800 CPI, 1200 CPI, 2400 CPI, and 3200 CPI. The resolution of the lottery printing device can take 203 DPI or 300 DPI.

[0076] Specifically, divide the resolution of the photoelectric sensor by the resolution of the lottery printing device to obtain the resolution ratio; within a time interval of 1 millisecond, calculate the difference between the initial position data and the end position data within 1 millisecond, and divide this difference by the above resolution ratio to obtain the moving distance per unit time when the lottery is in the lottery inspection device; combine this moving distance with the printing speed of the aforementioned lottery printing device to obtain the control frequency of the stepping motor of the lottery inspection device; then compare this control frequency with the printing frequency obtained above to control the stepping motor of the lottery inspection device, so that the control frequency matches the printing frequency in the lottery printing device, and printing and inspection can be synchronized.

[0077] Figure 3 Fig. shows a schematic structural diagram of an arc-shaped channel provided by an embodiment of the present application, as Figure 3 shown, the lottery printing device has a cutting knife and a first rubber roller. The cutting knife is used to cut the lottery, and the first rubber roller drives the lottery to move by rotation; the lottery inspection device has a second rubber roller, and the second rubber roller drives the lottery to move by rotation. The arc-shaped channel is located between the lottery printing device and the lottery inspection device.

[0078] Specifically, the lottery is transported by the first rubber roller of the lottery printing device, passes through the arc-shaped channel and contacts the second rubber roller for transportation. Since the scanning speed is less than or equal to the printing speed, the rotation speed of the second rubber roller is less than or equal to the rotation speed of the first rubber roller. At this time, the lottery will arch at the arc-shaped channel when passing through this structure, and the lottery inspection device scans the lottery at the arc-shaped channel. When the lottery is transported out of the lottery printing device, the cutting knife cuts the lottery, and the first rubber roller and the second rubber roller transport the lottery to the ticket outlet.

[0079] Figure 4 The figure shows a schematic flowchart of a design process for an arc-shaped channel provided by an embodiment of the present application. The design process includes the following steps:

[0080] S401. Determine the length value of the arc-shaped channel according to the printing speed.

[0081] In the above step, a possible implementation is that in the geometric structure schematic diagram of the arc-shaped channel structure as shown in Figure 5 the arc ACB has an arc length L, the straight line BD or AD has a distance X, the straight line CD has a height H, Figure 5 and there are also an angle θ and a circle radius R. The above length value is the arc length L. According to the difference between the printing speed and the scanning speed of the lottery printing device, multiplying by the printing time to obtain the arc length L, that is, obtaining the length value of the arc-shaped channel.

[0082] S402. Determine the height value of the arc-shaped channel by combining the length value of the arc-shaped channel with the angle value of the arc-shaped channel.

[0083] In the above step, a possible implementation is that the above angle value is the angle θ. Using the angle θ and the circle radius R, and combining with the trigonometric function formula X = R*sin(θ / 2), the value of the distance X can be calculated, and then according to the Pythagorean theorem formula the above height value, that is, the value of the height H, can be calculated.

[0084] S403. Determine the arc-shaped channel according to the length value, the height value and the angle value.

[0085] In the above step, a possible implementation is that according to the length value, that is, the arc length L, the height value, that is, the height H, and the angle value, that is, the angle θ, the arc-shaped channel is designed.

[0086] Exemplarily, taking the arc length L as 55.6 mm, different distances X and heights H can be calculated by combining different angles θ. For example, when taking the angle θ as π, according to the formula in step S402, 2 times the distance X is 35.41 mm, and the height H is 17.71 mm; when taking the angle θ as π / 2, according to the formula in step S402, 2 times the distance X is 50.78 mm, and the height H is 10.73 mm.

[0087] Exemplarily, taking the arc length L as 70 mm, different distances X and heights H can be calculated by combining different angles θ. For example, when taking the angle θ as π, according to the formula in step S402, 2 times the distance X is 44.59 mm, and the height H is 22.29 mm; when taking the angle θ as π / 2, according to the formula in step S402, 2 times the distance X is 63.94 mm, and the height H is 13.51 mm.

[0088] As can be seen from the data calculated in the above examples, in actual design, the arc length L can be calculated based on the printing speed of the lottery printing device, and different angles θ can be selected in combination with the specific structure of the lottery printing device to design the arc-shaped channel.

[0089] Figure 6 Fig. shows a schematic structural diagram of a lottery inspection device provided by an embodiment of the present application. As Figure 6 shown, the lottery inspection device has a speed measurement module 601, a speed control module 602, a scanning module 603, and an error feedback module 604.

[0090] The lottery inspection device is used to scan the lottery, check whether the actual printing result of the lottery is the same as the preset printing result, and determine whether the lottery is a problematic ticket. Among them:

[0091] The speed measurement module 601 is used to obtain the printing speed of the lottery printing device.

[0092] In a possible implementation manner, this module can use an optoelectronic sensor to measure the speed, without contacting the lottery, measure the speed of the lottery to obtain the printing speed, and the specific steps are described in the foregoing method embodiment of the present application and will not be elaborated here.

[0093] In a possible implementation manner, this module can measure the speed by using an encoder. The encoder is in contact with the lottery, and the movement of the lottery drives the encoder to move. The printing speed is obtained by measuring the speed of the encoder through an optoelectronic sensor.

[0094] In a possible implementation manner, the printing time is obtained, and the printing speed is directly calculated according to the length of the lottery and the paper feeding speed of the lottery.

[0095] The speed control module 602 is used to control the scanning speed of the lottery inspection device according to the printing speed.

[0096] In a possible implementation manner, according to the obtained printing speed, the printing frequency of the lottery printing device is obtained, and the control frequency of the lottery inspection device is adjusted, so that the scanning speed is synchronized with the printing speed. The specific working steps are described in the foregoing method embodiment of the present application and will not be elaborated here.

[0097] The scanning module 603 is used to scan and obtain the actual printing result of the lottery according to the scanning speed. The specific working steps are described in the foregoing method embodiment of the present application and will not be elaborated here.

[0098] The error feedback module 604 is used to determine whether the actual printing result of the lottery is the same as the preset printing result. If the actual printing result of the lottery is different from the preset printing result, a prompt message of printing abnormality is generated.

[0099] In a possible implementation, the actual printing result of the lottery ticket is obtained through an image sensor and compared with a preset printing result. If the actual printing result is different from the preset printing result, an error message is sent. The specific working steps are described in the foregoing method embodiments of this application and will not be elaborated here.

[0100] Figure 7 The following is a schematic structural diagram of a lottery ticket inspection device provided by an embodiment of this application. As Figure 7 shown, the lottery ticket inspection device 7 of this embodiment includes: at least one processor 70 ( Figure 7 only one is shown in the figure), a processor, a memory 71, a computer program 72 stored in the memory 71 and executable on the at least one processor 70, and an image sensor 73. The image sensor 73 is used to scan the lottery ticket to obtain information of the lottery ticket. When the processor 70 executes the computer program 72, the steps in any of the foregoing lottery ticket inspection method embodiments are implemented.

[0101] The lottery ticket inspection device 7 may include, but is not limited to, a processor 70, a memory 71, and an image sensor 73. Those skilled in the art can understand that Figure 7 this is only an example of the lottery ticket inspection device 7 and does not constitute a limitation on the lottery ticket inspection device 7. It may include more or fewer components than shown in the figure, or combine certain components, or different components. For example, it may also include input / output devices, network access devices, etc.

[0102] The so-called processor 70 may be a central processing unit (CPU). This processor 70 may also be other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or this processor may also be any conventional processor, etc.

[0103] The memory 71 may be an internal storage unit of the lottery verification device 7 in some embodiments, such as the hard disk or memory of the lottery verification device 7. The memory 71 may also be an external storage device of the lottery verification device 7 in other embodiments, such as a plug-in hard disk, a SmartMedia Card (SMC), a Secure Digital (SD) card, a Flash Card, etc. equipped on the lottery verification device 7. Further, the memory 71 may also include both the internal storage unit and the external storage device of the lottery verification device 7. The memory 71 is used to store an operating system, application programs, a BootLoader, data, and other programs, such as the program code of the computer program, etc. The memory 71 may also be used to temporarily store the data that has been output or will be output.

[0104] The image sensor 73 may be a Contact Image Sensor (CIS), a Charge Coupled Device (CCD), or any other conventional and general image sensor.

[0105] It should be noted that for the information interaction, execution process, etc. between the above-mentioned devices / units, since they are based on the same concept as the method embodiments of the present application, for their specific functions and the technical effects brought, reference may be specifically made to the method embodiment part, and details will not be elaborated here.

[0106] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the above-mentioned division of each functional unit and module is used for illustration. In practical applications, the above-mentioned functions may be allocated to different functional units and modules according to needs, that is, the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment may be integrated into a processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of a software functional unit. In addition, the specific names of each functional unit and module are only for the convenience of mutual distinction and do not limit the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiments, and details will not be elaborated here.

[0107] An embodiment of the present application also provides a computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the steps in the above method embodiments can be implemented.

[0108] An embodiment of the present application provides a computer program product, and when the computer program product runs on a mobile terminal, the mobile terminal is enabled to implement the steps in the above method embodiments when executed.

[0109] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, to implement all or part of the processes in the above method embodiments of the present application, a computer program can be used to instruct relevant hardware to complete. The computer program can be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps in the above method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in the form of source code, object code, executable file or some intermediate form, etc. The computer-readable medium can at least include: any entity or device capable of carrying the computer program code to the photographing device / terminal device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electrical carrier signal, telecommunication signal, and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disc, etc. In some jurisdictions, according to legislation and patent practice, the computer-readable medium may not be an electrical carrier signal and a telecommunication signal.

[0110] In the above embodiments, the descriptions of the various embodiments have their own emphases. For parts not detailed or recorded in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0111] Those of ordinary skill in the art can realize that the units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be implemented by electronic hardware, or by a combination of computer software and electronic hardware. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.

[0112] In the embodiments provided in the present application, it should be understood that the disclosed device / network device and method can be implemented in other ways. For example, the device / network device embodiments described above are merely illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed coupling or direct coupling or communication connection to each other can be through some interfaces. The indirect coupling or communication connection of the device or unit can be in an electrical, mechanical or other form.

[0113] The units described as separate components may or may not be physically separated. The components displayed as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0114] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements for some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A lottery ticket verification method, characterized in that, Applied to a lottery inspection device, wherein the lottery inspection device is externally connected to a lottery printing device through a general-purpose adapter hanger structure, and the method includes: Obtain the printing speed of the lottery printing device; Control the scanning speed of the lottery inspection device according to the printing speed; Scan and obtain the actual printing result of the lottery according to the scanning speed; If the actual printing result of the lottery is different from the preset printing result, generate a prompt message for printing abnormality; Wherein, when the length of the lottery is a fixed value, the scanning speed is a fixed value, and the scanning speed is less than or equal to the printing speed; the lottery printing device has a first rubber roller, and the lottery inspection device has a second rubber roller. The lottery is transported through the first rubber roller, passes through an arc-shaped channel and contacts the second rubber roller for transportation, and the rotation speed of the second rubber roller is less than that of the first rubber roller; when the lottery passes through the arc-shaped channel, the lottery arches upward; The arc-shaped channel is determined based on the following method: Multiply the difference between the printing speed and the scanning speed by the printing time to obtain the length value of the arc-shaped channel; combine the length value of the arc-shaped channel with a preset angle value to determine the height value of the arc-shaped channel; determine the arc-shaped channel according to the length value, the height value and the angle value.

2. The method according to claim 1, characterized in that, Obtaining the printing speed of the lottery printing device includes: Detect the printing speed of the lottery by means of photoelectric speed measurement; Alternatively, detect the printing speed of the lottery by means of encoder speed measurement, wherein the encoder speed measurement method uses an encoder to contact the lottery and uses the photoelectric speed measurement method to check the moving distance of the encoder for speed measurement.

3. The method according to claim 2, characterized in that, The photoelectric speed measurement method includes: The photoelectric sensor obtains the position data of the lottery in the lottery inspection device according to a preset data acquisition frequency; Obtain the printing speed according to a preset time interval and the corresponding position data.

4. The method according to claim 1, characterized in that, Controlling the scanning speed according to the printing speed includes: Obtain the printing speed and control the scanning speed to be the same as the printing speed.

5. The method according to claim 1, characterized in that, If the actual printing result of the lottery is different from the preset printing result, generating a prompt message for printing abnormality includes: When the actual printing result of the lottery is different from the preset printing result, the lottery inspection device sends an error message to the lottery printing device and transports the lottery back to the lottery printing device in the reverse direction. When the lottery printing device receives the error message, an error mark is printed on the lottery; Continue to scan the next lottery. If the actual printing result of the lottery is still different from the preset printing result, generate a prompt message for printing abnormality.

6. A lottery ticket verification device, characterized in that, The lottery inspection device is externally connected to the lottery printing device through a general-purpose adapter hanger structure, including: A speed measurement module that obtains the printing speed of the lottery printing device; A speed control module that controls the scanning speed of the lottery inspection device according to the printing speed; A scanning module that scans and obtains the actual printing result of the lottery according to the scanning speed; An error feedback module generates a prompt message for abnormal printing if the actual lottery printing result is different from the preset printing result. Wherein, when the length of the lottery is a fixed value, the scanning speed is a fixed value, and the scanning speed is less than or equal to the printing speed; the lottery printing device has a first rubber roller, and the lottery inspection device has a second rubber roller. The lottery is transported through the first rubber roller, passes through an arc-shaped channel and contacts the second rubber roller for transportation, and the rotation speed of the second rubber roller is less than that of the first rubber roller; when the lottery passes through the arc-shaped channel, the lottery arches upward. The arc-shaped channel is determined based on the following method: Multiply the difference between the printing speed and the scanning speed by the printing time to obtain the length value of the arc-shaped channel; Combine the length value of the arc-shaped channel with a preset angle value to determine the height value of the arc-shaped channel; Determine the arc-shaped channel according to the length value, the height value and the angle value.

7. A lottery ticket verification device, comprising a memory, a processor, a computer program stored in the memory and executable on the processor, and an image sensor, characterized in that, The image sensor is used to scan the lottery, and when the processor executes the computer program, it implements the method according to any one of claims 1 to 5.

8. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Printing device and control method for the same

    CN105799342A

  • Printing and scanning integrated device and work method thereof

    CN111703218A

  • Method, device and system for verifying integrity of printed lottery tickets

    CN112906023A

  • Lottery printing control method and system

    CN115686395A